diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 2d70086ad..b1bbd0aed 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -1108,66 +1108,6 @@ export default { } ] // 国内外政策可查字段 - }else if (val === 'FOREIGN_LAWS'){ - this.twoOptions=[ - { - label: '适用车辆类型', - value: 'SYCLLX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '政策编号', - value: 'LAWS_NUMBER', - type: 'INPUT', - disabled: false - }, { - label: '中文名称', - value: 'LAWS_NAME', - type: 'INPUT', - disabled: false - }, { - label: '英文名称', - value: 'LAWS_EN_NAME', - type: 'INPUT', - disabled: false - }, { - label: '个性化标签', - value: 'GXHBQXX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '新车型实施日期(文本)', - value: 'XCXSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '在产车实施日期(文本)', - value: 'ZCCSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '维护工程师', - value: 'ZCGCS', - type: 'SEL_OPTION', - selVal: "USERLIST", - disabled: false - } - ] - // 标准法规清单可查字段 - }else { - this.twoOptions=[ - { - label: '清单名称', - value: 'ACCESS_CONTENT', - type: 'INPUT', - disabled: false - }, { - label: '国家地区', - value: 'COUNTRY', - type: 'SEL_OPTION', - disabled: false - } - ] } }, /** @@ -1382,14 +1322,7 @@ export default { } }) }, - // 查询数据搜索 table 数据 - selectLawsStands () { - if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' - this.sarAccessInfoSearch.standType = '' - } else { - this.sarAccessInfoSearch.standType = 'FOREIGN' - } + pageInfo() { StandardsInfoPage(this.sarAccessInfoSearch).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1426,12 +1359,18 @@ export default { }, e => { }) }, - selectBtn() { + // 查询数据搜索 table 数据 + selectLawsStands () { if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' + this.sarAccessInfoSearch.standType = 'INLAND' + this.pageInfo() } else { this.sarAccessInfoSearch.standType = 'FOREIGN' + this.pageInfo() } + + }, + selectPage() { StandardsInfoPage(this.sarAccessInfo).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1468,6 +1407,15 @@ export default { }, e => { }) }, + selectBtn() { + if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { + this.sarAccessInfoSearch.standType = 'INLAND' + this.selectPage() + } else { + this.sarAccessInfoSearch.standType = 'FOREIGN' + this.selectPage() + } + }, // 数据搜索table判断checked状态 selectable (row) { return row.isRelateAccess === '1' diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue index cb8e18827..5a1df3685 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue @@ -1076,66 +1076,6 @@ export default { } ] // 国内外政策可查字段 - }else if (val === 'FOREIGN_LAWS'){ - this.twoOptions=[ - { - label: '适用车辆类型', - value: 'SYCLLX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '政策编号', - value: 'LAWS_NUMBER', - type: 'INPUT', - disabled: false - }, { - label: '中文名称', - value: 'LAWS_NAME', - type: 'INPUT', - disabled: false - }, { - label: '英文名称', - value: 'LAWS_EN_NAME', - type: 'INPUT', - disabled: false - }, { - label: '个性化标签', - value: 'GXHBQXX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '新车型实施日期(文本)', - value: 'XCXSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '在产车实施日期(文本)', - value: 'ZCCSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '维护工程师', - value: 'ZCGCS', - type: 'SEL_OPTION', - selVal: "USERLIST", - disabled: false - } - ] - // 标准法规清单可查字段 - }else { - this.twoOptions=[ - { - label: '清单名称', - value: 'ACCESS_CONTENT', - type: 'INPUT', - disabled: false - }, { - label: '国家地区', - value: 'COUNTRY', - type: 'SEL_OPTION', - disabled: false - } - ] } }, /** @@ -1350,14 +1290,7 @@ export default { } }) }, - // 查询数据搜索 table 数据 - selectLawsStands () { - if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' - this.sarAccessInfoSearch.standType = '' - } else { - this.sarAccessInfoSearch.standType = 'FOREIGN' - } + pageInfo() { StandardsInfoPage(this.sarAccessInfoSearch).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1394,13 +1327,17 @@ export default { }, e => { }) }, - // 高级检索查询按钮 - selectBtn() { + // 查询数据搜索 table 数据 + selectLawsStands () { if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' + this.sarAccessInfoSearch.standType = 'INLAND' + this.pageInfo() } else { this.sarAccessInfoSearch.standType = 'FOREIGN' + this.pageInfo() } + }, + selectPage() { StandardsInfoPage(this.sarAccessInfo).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1437,6 +1374,16 @@ export default { }, e => { }) }, + // 高级检索查询按钮 + selectBtn() { + if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { + this.sarAccessInfoSearch.standType = 'INLAND' + this.selectPage() + } else { + this.sarAccessInfoSearch.standType = 'FOREIGN' + this.selectPage() + } + }, // 数据搜索table判断checked状态 selectable (row) { return row.isRelateAccess === '1' diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue index ab1d9d8b1..f75c5adfc 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue @@ -1076,66 +1076,6 @@ export default { } ] // 国内外政策可查字段 - }else if (val === 'FOREIGN_LAWS'){ - this.twoOptions=[ - { - label: '适用车辆类型', - value: 'SYCLLX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '政策编号', - value: 'LAWS_NUMBER', - type: 'INPUT', - disabled: false - }, { - label: '中文名称', - value: 'LAWS_NAME', - type: 'INPUT', - disabled: false - }, { - label: '英文名称', - value: 'LAWS_EN_NAME', - type: 'INPUT', - disabled: false - }, { - label: '个性化标签', - value: 'GXHBQXX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '新车型实施日期(文本)', - value: 'XCXSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '在产车实施日期(文本)', - value: 'ZCCSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '维护工程师', - value: 'ZCGCS', - type: 'SEL_OPTION', - selVal: "USERLIST", - disabled: false - } - ] - // 标准法规清单可查字段 - }else { - this.twoOptions=[ - { - label: '清单名称', - value: 'ACCESS_CONTENT', - type: 'INPUT', - disabled: false - }, { - label: '国家地区', - value: 'COUNTRY', - type: 'SEL_OPTION', - disabled: false - } - ] } }, /** @@ -1350,13 +1290,7 @@ export default { }) }, // 查询数据搜索 table 数据 - selectLawsStands () { - if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' - this.sarAccessInfoSearch.standType = '' - } else { - this.sarAccessInfoSearch.standType = 'FOREIGN' - } + pageInfo() { StandardsInfoPage(this.sarAccessInfoSearch, this.sarAccessInfo).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1393,13 +1327,17 @@ export default { }, e => { }) }, - /** 高级查询查询按钮*/ - selectBtn() { + selectLawsStands () { if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' + this.sarAccessInfoSearch.standType = 'INLAND' + this.pageInfo() } else { this.sarAccessInfoSearch.standType = 'FOREIGN' + this.pageInfo() } + }, + /** 高级查询查询按钮*/ + selectPage() { StandardsInfoPage(this.sarAccessInfo).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1436,6 +1374,15 @@ export default { }, e => { }) }, + selectBtn() { + if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { + this.sarAccessInfoSearch.standType = 'INLAND' + this.selectPage() + } else { + this.sarAccessInfoSearch.standType = 'FOREIGN' + this.selectPage() + } + }, // 数据搜索table判断checked状态 selectable (row) { return row.isRelateAccess === '1'