diff --git a/src/components/treeSelect/treeSelect.vue b/src/components/treeSelect/treeSelect.vue new file mode 100644 index 000000000..2998f54b5 --- /dev/null +++ b/src/components/treeSelect/treeSelect.vue @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index 73fc02eaa..44ea1b563 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -385,7 +385,7 @@ clearable > - + - - 重要度 - - - - - - - - {{ opt.label }} - - - - - - - - - - - - - - - - - - - - - 文本状态 - - - {{ opt.label }} - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + {{ displayLocation.label }} + + + + + + + + + + + + + + + + + + + + 标准性质 + + + {{ item.label }} + + + + + 文本状态 + + + {{ opt.label }} + + + + + + + 是否纳入认证清单 + + + + + + + 标准体系 + + + { + if (res.ok) { + this.data = res.data + } + }) + }, // 树-删除 sureDeleteSarMenu () { this.$confirm('是否删除?', '提示', { @@ -2582,6 +2654,7 @@ export default { if (flag) { // 时间格式修改 let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO)) + console.log(nowstandinfo) if (nowstandinfo.putTime != null && nowstandinfo.putTime !== '') { nowstandinfo.putTime = this.$dateFormat(this.sarStandardsInfoEO.putTime, 'yyyy-MM-dd hh:mm:ss') } @@ -2611,7 +2684,9 @@ export default { sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField] }) nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'") - this.$http.postData(this.addOrUPdateFlag === 1 ? 'sarStandardsInfo/sar-standards-info/addarStandardsInfo' : 'lawss/sarStandardsInfo/updateSarStandardsInfo', nowstandinfo, { + console.log(formFieldList) + console.log(nowstandinfo) + this.$http.postData(this.addOrUPdateFlag === 1 ? 'sarStandardsInfo/sar-standards-info/addarStandardsInfo' : 'sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', nowstandinfo, { _this: this }, res => { this.isSubmit = false @@ -3596,7 +3671,7 @@ export default { * 动态改变必填项 * */ isRegulationsChange (val) { - if (val === '0') { + if (val === '2') { const formFieldList = this.formFieldList const rules = {...this.defaultAddFormFieldRules} formFieldList.forEach((item) => { @@ -3807,28 +3882,31 @@ export default { } } }, - async mounted () { + created(){ + }, + async mounted () { // 进入页面后查询树形结构目录 await this.selectMenu() + // 进入页面后查询标准体系树形结构目录 + await this.selectStandardMenu() this.treeReload = true // 从数据库中查询各下拉框数据 this.$http.get('sys/dictype/getDicTypeListCode', '', { _this: this }, res => { - this.allSelectOptions = res.data || {} - this.countryOptions = res.data.COUNTRY - this.regionOptions = res.data.REGION // 区域 - this.standSortOptions = res.data.STANDCLASSIFY - this.applyArcticOptions = res.data.PRODUCTTYPE // 根据需求文档,产品类别对应标准属性中的“适用车型” - this.standStateOptions = res.data.STANDSTATE - this.standNatureOptions = res.data.SARPROPERTY // 标准性质 - this.adoptExtentOptions = res.data.DEGREESTANDARD - this.emergyKindOptions = res.data.ENERGYTYPES - this.applyAuthOptions = res.data.PROVETYPE // 适用认证下拉框 - this.categoryOptions = res.data.CATEGORY // 能源种类 - this.assemClassOptions = res.data.ASSEMCLASSIFY // 总成分类 - this.categoryConfigOptions = res.data.CATEGORY - this.standAttributeList = res.data.RULETYPE + this.allSelectOptions = res.data || {} + this.standSortOptions = res.data.STANDCLASSIFY // 标准类别 + this.standNatureOptions = res.data.SARPROPERTY // 标准性质 + this.standStateOptions = res.data.WBZTCLASS // 文本状态 + this.standSystemOptions = res.data.BZTXCLASS // 标准体系 + this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型 + this.categoryOptions = res.data.NYLXCLASS // 能源类型 + this.applyAuthOptions = res.data.SYRZCLASS // 适用认证 + this.cysdOptions = res.data.WSCYSD // 我司参与深度 + this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线 + this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 + this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师 + this.txlbOptions = res.data.TXLBCLASS // 体系类别 this.getGzzOption() }, e => { })