From 6b89c5f43094bb8292466e427c55e4784e737463 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Wed, 25 Aug 2021 10:55:51 +0800 Subject: [PATCH] feat: There is no way the buss --- .../searchCenter/pages/advancedSearch.vue | 41 +++++++++++++++++-- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/src/pages/searchCenter/pages/advancedSearch.vue b/src/pages/searchCenter/pages/advancedSearch.vue index d6dce4ec3..23a60ebce 100644 --- a/src/pages/searchCenter/pages/advancedSearch.vue +++ b/src/pages/searchCenter/pages/advancedSearch.vue @@ -775,7 +775,19 @@ - + + @@ -1126,6 +1138,7 @@ export default { modalShowFlag2: false, // drawer开关 modalShowFlag3: false, // drawer开关 modalShowFlag4: false, // drawer开关 + modalShowFlagBuss: false, // drawer开关 url:'', urlChild:'', drawerTitle: '', //drawer标题 @@ -1151,6 +1164,7 @@ export default { key1:2, key2:3, key3:4, + keyBuss:5, nodeKey: 'id', defaultCheckedKeys: [], nodeKeyCode: 'code', @@ -1302,6 +1316,7 @@ export default { // 国家/地区 countryOptions: [], standSystemOptions: [], // 标准体系 + standSystemBussOptions: [], // 企标体系 busVppsOptions: [], // 车系体系架构 busVppsChildOptions: [], // 车系体系架构子集合 modelOptions: [], // 模块体系架构 @@ -1390,11 +1405,19 @@ export default { // 国内外标准 const inlandList = data['INLAND_STAND'] || [] const foreignList = data['FOREIGN_STAND'] || [] + const bussList = data['BUSS'] || [] const foreignFilterList = foreignList.filter ( item => item.attrField === 'GXHBQ' || item.attrField === 'ZBJBD' || item.attrField === 'KWJ' || item.attrField === 'TXLB'); - this.formFieldListStandData = this.formFieldListStandData.concat(inlandList).concat(foreignFilterList); + const bussFilterList = bussList.filter ( item => item.attrField !== 'QCDW' && item.attrField !== 'XGLC'); + this.formFieldListStandData = this.formFieldListStandData.concat(inlandList).concat(foreignFilterList).concat(bussFilterList); + console.log(this.formFieldListStandData) } }, e => {}) }, + choiceZRRTxlbBuss (type, title, id) { + this.drawerTitle = title + this.modalShowFlagBuss = true + this.keyBuss++ + }, choiceZRR1 (type, title, id) { this.drawerTitle = title this.modalShowFlag1 = true @@ -1427,6 +1450,17 @@ export default { this.urlChild="sarModelTree/childByList" this.key3++ }, + popoverBuss (checkedIds, checkedData,isShow,isLoadChild,topId) { + if(checkedData) { + if(checkedData.length > 0){ + this.standForm.TXLBBUSS = checkedData.map(item => item.menuName).join(",") + }else { + this.standForm.TXLBBUSS = checkedData.menuName + } + } + this.modalShowFlagBuss = false + this.$forceUpdate() + }, popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) { if(checkedData) { if(checkedData.length > 0){ @@ -1784,7 +1818,7 @@ export default { const formFieldList = this.formFieldListStandData const sarStandAttrObj = {} formFieldList.forEach((item) => { - const attrField = item.attrField.toLowerCase(); + const attrField = this.selectIndex === 'INLAND_STAND' ? item.attrField.toLowerCase() : item.attrField; const value = nowStandForm[attrField] // 时间格式处理 if (item.attrType === 'DATE_PICKER' && value) { @@ -2407,6 +2441,7 @@ export default { this.standNatureOptions = res.data.SARPROPERTY // 标准性质 this.standStateOptions = res.data.WBZTCLASS // 文本状态 this.standSystemOptions = res.data.BZTXCLASS // 标准体系 + this.standSystemBussOptions = res.data.TXLBBUSS // 企标体系 this.applyArcticOptions = res.data.ENERGYTYPES // 根据需求文档,产品类别对应标准属性中的“适用车型” this.categoryOptions = res.data.NYLXCLASS // 能源类型 this.applyAuthOptions = res.data.SYRZCLASS // 适用认证