From f3f8e451f3b133f32785f26a67a6c37849d93925 Mon Sep 17 00:00:00 2001 From: zhangyichen <5277314+zacty@user.noreply.gitee.com> Date: Sat, 2 Apr 2022 11:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E5=86=85=20=E9=AB=98=E7=BA=A7?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/unqualProcess.js | 8 +++ .../pages/details.vue | 50 ++++++++++++++++--- 2 files changed, 51 insertions(+), 7 deletions(-) diff --git a/src/api/unqualProcess.js b/src/api/unqualProcess.js index fd83b43bf..4cdab4b68 100644 --- a/src/api/unqualProcess.js +++ b/src/api/unqualProcess.js @@ -43,6 +43,14 @@ export function StandardsInfoPage(data) { }); } +export function selectHighLawsById(data) { + return axios({ + url: "api/sarStandardsInfo/sar-standards-info/selectHighLawsById", + method: "get", + params: data + }); +} + // 车型库清单的下拉列表 export function solostarData(data) { return axios({ diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue index 4f76138e5..0deb91efd 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue @@ -458,7 +458,7 @@ import { interfaceUrl } from "@/sysConfig"; import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle' import CustomSelectArray from "@/components/CustomFormComponents/SelectArray"; -import { StandardsInfoPage } from "api/unqualProcess"; +import { StandardsInfoPage, selectHighLawsById } from "api/unqualProcess"; export default { name: "AccessStandardDetails", @@ -648,24 +648,60 @@ export default { }*/ this.sarAccessInfo = formData this.showQueryMore = false - this.selectLawsStands() + this.selectLawsStands(1) }, // 查询数据搜索 table 数据 - selectLawsStands() { + selectLawsStands(type) { if (this.sarAccessInfo.dataSource === 'INLAND_STAND') { this.sarAccessInfo.standType = 'INLAND' - this.pageInfo() + if (type === 1) { + this.seniorPageInfo() + } else { + this.pageInfo() + } } else if (this.sarAccessInfo.dataSource === 'FOREIGN_STAND') { this.sarAccessInfo.standType = 'FOREIGN' - this.pageInfo() + if (type === 1) { + this.seniorPageInfo() + } else { + this.pageInfo() + } } else if (this.sarAccessInfo.dataSource === 'FOREIGN_LAWS') { this.sarAccessInfo.standType = 'LAWS' - this.pageInfo() + if (type === 1) { + this.seniorPageInfo() + } else { + this.pageInfo() + } } else if (this.sarAccessInfo.dataSource === 'BUSINESS') { this.sarAccessInfo.standType = 'BUSINESS' - this.pageInfo() + if (type === 1) { + this.seniorPageInfo() + } else { + this.pageInfo() + } } }, + seniorPageInfo() { + this.sarAccessInfo.qdFlag = '1' + this.sarAccessInfo.qdid = this.$route.params.id + selectHighLawsById((this.sarAccessInfo)).then(res => { + this.standinfoList = res.data.list + this.standinfoList.forEach(item => { + if (item.standYear === null) { + item.standNumber = item.standSortShow + ' ' + item.standNumber + } else { + item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear + } + item.zrbm = item.attrInfoCaseMap.zrbm + item.sycpx = item.attrInfoCaseMap.sycpx + item.typeApplicable = item.attrInfoMap.CLLX + item.nylx = item.attrInfoMap.NYLX + }) + this.total = res.data.count + }, e => { + }) + }, pageInfo() { if (this.sarAccessInfo.dataSource === 'INLAND_STAND' || this.sarAccessInfo.dataSource === 'FOREIGN_STAND') { StandardsInfoPage((this.sarAccessInfo)).then(res => {