|
@@ -14,6 +14,7 @@ import SearchBoxVue from '@/views/recordsRoom/qc/components/SearchBox.vue'
|
|
import TableBoxVue from '@/views/recordsRoom/qc/components/TableBox.vue'
|
|
import TableBoxVue from '@/views/recordsRoom/qc/components/TableBox.vue'
|
|
import pagination from '@/components/Pagination/index2.vue'
|
|
import pagination from '@/components/Pagination/index2.vue'
|
|
import { getBlZkList, getQualityControlStatus } from '@/api/qc'
|
|
import { getBlZkList, getQualityControlStatus } from '@/api/qc'
|
|
|
|
+let current = ''
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -31,7 +32,8 @@ export default {
|
|
total: 0,
|
|
total: 0,
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10
|
|
pageSize: 10
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ current: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -40,8 +42,14 @@ export default {
|
|
activated() {
|
|
activated() {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
|
|
+ beforeRouteEnter(to, from, next) {
|
|
|
|
+ current = from.query.ZYH || ''
|
|
|
|
+ // console.log('>>>>>>>>>111', a, b)
|
|
|
|
+ next()
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
getList() {
|
|
getList() {
|
|
|
|
+ console.log(1111111111111111, this.$route)
|
|
this.loading = true
|
|
this.loading = true
|
|
getBlZkList({
|
|
getBlZkList({
|
|
...this.$refs.SearchBoxRef.formData,
|
|
...this.$refs.SearchBoxRef.formData,
|
|
@@ -52,7 +60,7 @@ export default {
|
|
this.tableData = res.data.list
|
|
this.tableData = res.data.list
|
|
// 切换选中状态
|
|
// 切换选中状态
|
|
Array.isArray(this.tableData) && this.tableData.map(item => {
|
|
Array.isArray(this.tableData) && this.tableData.map(item => {
|
|
- item.selected = (item.ZYH == localStorage.getItem('getData')) ? !item.selected : false
|
|
|
|
|
|
+ item.selected = item.ZYH == current ? !item.selected : false
|
|
})
|
|
})
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
console.log(error)
|
|
console.log(error)
|