diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue index e0fe6b1e3..2b1e09ec3 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue @@ -6,7 +6,7 @@ @@ -74,7 +74,7 @@ align="center"> @@ -139,14 +139,23 @@ > + + 手动查找 @@ -157,8 +166,9 @@ class="add-form-item" > @@ -304,76 +314,410 @@ fontWeight: 'bold', height: '48px'}" @selection-change="handleSelectTableChange" > + - - - - - - - - + + +
+ + + + + + + + + + + + + + + + + + + +
+ @@ -420,7 +764,7 @@ export default { ], addOrEdit: '', attributeEOFormRules: { - lawId: [ + lawCode: [ { required: true, message: '标准编号/政策编号不能为空', trigger: 'blur' }, ], lawName: [ @@ -437,8 +781,11 @@ export default { ], }, attributeEO: { - id: '', lawId: '', + //数据来源 + dataSource: '', + id: '', + lawCode: '', lawName: '', productType: '', implTime: '', @@ -458,7 +805,7 @@ export default { rows: 10, // 查询相关参数 sarSarAccessEOSearch: { - lawId: '', + lawCode: '', lawName: '', productType: '', accessContent: '', @@ -516,12 +863,6 @@ export default { deadLine: '', // 截止时间 applyAuth: '' // 认证类型 }, - dataSourceOptions: [ - {value: 'INLAND', label: '国内标准法规'}, - {value: 'FOREIGN', label: '海外标准法规'}, - {value: 'FOREIGN_LAWS', label: '国内外政策'}, - {value: 'BUSINESS', label: '企业标准 '} - ], sarAccessInfoSearchList: [], selectedAccInfoSearchList: [], sarAccessInfoListArry: [], @@ -536,6 +877,14 @@ export default { } }, methods: { + formatIssueDate(str) { + const momentDate = this.$moment(str) + if (momentDate.isValid()) { + return this.$moment(str).format('YYYY-MM-DD') + } else { + return str + } + }, // 点击查看 handlePreview(item) { console.log('539',item) @@ -585,6 +934,7 @@ export default { }) }, dataSourceChange() { + this.handleSelectForm.page = 1 this.lawInfoTableLoading = true this.handleSelectForm.standType = this.handleSelectForm.dataSource this.searchLawBtn() @@ -608,13 +958,10 @@ export default { this.$message.warning('请选择一条数据') } else { - // dataSourceOptions: [ - // {value: 'INLAND', label: '国内标准法规'}, - // {value: 'FOREIGN', label: '海外标准法规'}, - // {value: 'FOREIGN_LAWS', label: '国内外政策'}, - // {value: 'BUSINESS', label: '企业标准 '} - // ], - this.attributeEO.lawId =this.handleSelectTableList[0].standCode || this.handleSelectTableList[0].lawsNumber || this.handleSelectTableList[0].standSort+" "+this.handleSelectTableList[0].standNumber+"-"+this.handleSelectTableList[0].standYear + console.log('619',this.handleSelectForm.dataSource) + this.attributeEO.dataSource = this.handleSelectForm.dataSource + this.attributeEO.lawId = this.handleSelectTableList[0].id + this.attributeEO.lawCode =this.handleSelectTableList[0].standCode || this.handleSelectTableList[0].lawsNumber || this.handleSelectTableList[0].standSort+" "+this.handleSelectTableList[0].standNumber+"-"+this.handleSelectTableList[0].standYear this.attributeEO.lawName = this.handleSelectTableList[0].standName || this.handleSelectTableList[0].lawsName this.selectModal = false } @@ -647,7 +994,7 @@ export default { console.log('国内标准库数据',res) if (res.ok){ this.lawInfoTable = res.data.list - this.handleSelectTotal = res.data.count + this.handleSelectForm.total = res.data.count if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) { this.lawInfoTableLoading = true this.handleSelectPageChange(1) @@ -660,7 +1007,7 @@ export default { } },e=>{ this.lawInfoTable = [] - this.total = 0 + this.handleSelectForm.total = 0 }) console.log('国内标准库') }else if(this.handleSelectForm.dataSource === 'FOREIGN'){ @@ -670,7 +1017,7 @@ export default { console.log('海外标准库数据',res) if (res.ok){ this.lawInfoTable = res.data.list - this.handleSelectTotal = res.data.count + this.handleSelectForm.total = res.data.count if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) { this.lawInfoTableLoading = true this.handleSelectPageChange(1) @@ -683,7 +1030,7 @@ export default { } },e=>{ this.lawInfoTable = [] - this.total = 0 + this.handleSelectForm.total = 0 }) console.log('海外标准库') }else if(this.handleSelectForm.dataSource === 'FOREIGN_LAWS'){ @@ -693,7 +1040,7 @@ export default { console.log('国内外政策库数据',res) if (res.ok){ this.lawInfoTable = res.data.list - this.handleSelectTotal = res.data.count + this.handleSelectForm.total = res.data.count if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) { this.lawInfoTableLoading = true this.handleSelectPageChange(1) @@ -706,7 +1053,7 @@ export default { } },e=>{ this.lawInfoTable = [] - this.total = 0 + this.handleSelectForm.total = 0 }) console.log('国内外政策库') }else if(this.handleSelectForm.dataSource === 'BUSINESS_STAND'){ @@ -716,7 +1063,7 @@ export default { console.log('企业标准库数据',res) if (res.ok){ this.lawInfoTable = res.data.list - this.handleSelectTotal = res.data.count + this.handleSelectForm.total = res.data.count if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) { this.lawInfoTableLoading = true this.handleSelectPageChange(1) @@ -729,7 +1076,7 @@ export default { } },e=>{ this.lawInfoTable = [] - this.total = 0 + this.handleSelectForm.total = 0 }) console.log('企业标准库') }else { @@ -744,7 +1091,7 @@ export default { }, handleSelectPageSizeChange(pageSize){ this.lawInfoTableLoading = true - this.handleSelectForm.pageSize = this.$store.getters.userInfo.configContent + this.handleSelectForm.pageSize = pageSize console.log(this.handleSelectForm.pageSize) this.searchLawBtn() }, @@ -816,7 +1163,7 @@ export default { // this.$refs['attributeEO'].resetFields() // this.attributeEO = { // id: '', - // lawId: '', + // lawCode: '', // lawName: '', // productType: '', // implTime: '', @@ -830,7 +1177,7 @@ export default { this.$refs['attributeEO'].resetFields() this.attributeEO = { id: '', - lawId: '', + lawCode: '', lawName: '', productType: '', implTime: '', @@ -848,7 +1195,7 @@ export default { this.$nextTick(() => { this.attributeEO = { id: '', - lawId: '', + lawCode: '', lawName: '', productType: '', implTime: '', @@ -960,12 +1307,12 @@ export default { }, pageSizeChange (pageSize) { this.sarSarAccessEOSearch.page = 1 - this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent + this.sarSarAccessEOSearch.pageSize = pageSize this.searchSarAccess() }, clearSearch (search = true) { // search 字段是为了处理高级查询时清空字段用的 - this.sarSarAccessEOSearch.lawId = '' + this.sarSarAccessEOSearch.lawCode = '' this.sarSarAccessEOSearch.lawName = '' this.sarSarAccessEOSearch.productType = '' this.sarSarAccessEOSearch.accessContent = ''