|
@@ -8,7 +8,7 @@
|
|
<SearchBoxVue v-if="currentTab === '审核列表'" ref="SearchBoxRef" @search="handleSearch" @reset="handleReset" />
|
|
<SearchBoxVue v-if="currentTab === '审核列表'" ref="SearchBoxRef" @search="handleSearch" @reset="handleReset" />
|
|
<CorrectionSearchBoxVue v-else ref="SearchBoxRef" @search="handleSearch" @reset="handleReset" />
|
|
<CorrectionSearchBoxVue v-else ref="SearchBoxRef" @search="handleSearch" @reset="handleReset" />
|
|
</div>
|
|
</div>
|
|
- <TableBoxVue v-if="currentTab === '审核列表'" :loading="loading" :data="tableData" :status="status" />
|
|
|
|
|
|
+ <TableBoxVue v-if="currentTab === '审核列表'" :loading="loading" :data="tableData" />
|
|
<CorrectionTableBoxVue v-else :loading="loading" :data="tableData"/>
|
|
<CorrectionTableBoxVue v-else :loading="loading" :data="tableData"/>
|
|
<div class="filter-list-table-pagination">
|
|
<div class="filter-list-table-pagination">
|
|
<mPagination v-if="tableData && tableData.length !== 0" :data="paginationData" @pageChangeEvent="pageHasChanged"></mPagination>
|
|
<mPagination v-if="tableData && tableData.length !== 0" :data="paginationData" @pageChangeEvent="pageHasChanged"></mPagination>
|
|
@@ -23,7 +23,7 @@ import CorrectionTableBoxVue from '@/views/recordsRoom/qc/components/correction/
|
|
import SearchBoxVue from '@/views/recordsRoom/qc/components/SearchBox.vue'
|
|
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, getCorrectionList, getQualityControlStatus } from '@/api/qc'
|
|
|
|
|
|
+import { getBlZkList, getCorrectionList } from '@/api/qc'
|
|
let current = ''
|
|
let current = ''
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -39,7 +39,6 @@ export default {
|
|
return {
|
|
return {
|
|
currentTab: '审核列表',
|
|
currentTab: '审核列表',
|
|
loading: false,
|
|
loading: false,
|
|
- status: 0,
|
|
|
|
tableData: [],
|
|
tableData: [],
|
|
paginationData: {
|
|
paginationData: {
|
|
total: 0,
|
|
total: 0,
|
|
@@ -49,9 +48,7 @@ export default {
|
|
current: ''
|
|
current: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- this.getQualityControlStatus()
|
|
|
|
- },
|
|
|
|
|
|
+ created() {},
|
|
activated() {
|
|
activated() {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
@@ -80,16 +77,7 @@ export default {
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- /**
|
|
|
|
- * 获取开关状态
|
|
|
|
- */
|
|
|
|
- getQualityControlStatus() {
|
|
|
|
- getQualityControlStatus().then(res => {
|
|
|
|
- this.status = Number(res.data.status);
|
|
|
|
- }).catch(error => {
|
|
|
|
- console.log(error);
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
pageHasChanged(params) {
|
|
pageHasChanged(params) {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|