|
@@ -30,7 +30,7 @@ import SearchBoxVue from '@/views/recordsRoom/qc/components/expertQualityControl
|
|
|
import TableBoxVue from '@/views/recordsRoom/qc/components/expertQualityControl/TableBox.vue'
|
|
|
import DetailBoxVue from '@/views/recordsRoom/qc/components/expertQualityControl/detailBox.vue'
|
|
|
import pagination from '@/components/Pagination/index2.vue'
|
|
|
-import { getZJZKList, getBrry } from '@/api/qc'
|
|
|
+import { getZJZKList, getBrry, getDefaultCollectSearch } from '@/api/qc'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -65,9 +65,26 @@ export default {
|
|
|
created() {
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getList()
|
|
|
+ this.initData()
|
|
|
},
|
|
|
methods: {
|
|
|
+ initData() {
|
|
|
+ getDefaultCollectSearch().then((res) => {
|
|
|
+ if(res.code == 200) {
|
|
|
+ const data = res.data || {}
|
|
|
+ if(data.filter_content) {
|
|
|
+ this.$refs.SearchBoxRef.formData = {...this.$refs.SearchBoxRef.formData, ...JSON.parse(data.filter_content)}
|
|
|
+ this.getList()
|
|
|
+ }else {
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ },
|
|
|
// table 字段排序
|
|
|
handleSortChange(column) {
|
|
|
this.$refs.SearchBoxRef.handleSortChange(column)
|