From b093914dbe7cf596aa6ea5a93748ce1354b4c900 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期五, 26 四月 2024 14:58:14 +0800 Subject: [PATCH] 修改this.componentData.selectField.qualificationId.select = list --- src/components/view/a7-standard-method.vue | 62 ++++++++++++++++++++++++++++++- 1 files changed, 60 insertions(+), 2 deletions(-) diff --git a/src/components/view/a7-standard-method.vue b/src/components/view/a7-standard-method.vue index 9bd74b1..60a635d 100644 --- a/src/components/view/a7-standard-method.vue +++ b/src/components/view/a7-standard-method.vue @@ -115,6 +115,19 @@ value: 1, label: '鏄�' }] + }, + isUse: { + select: [{ + value: 0, + type: 'info', + label: '鍚�' + }, { + value: 1, + label: '鏄�' + }] + }, + qualificationId:{ + select: [] } }, selectField: { @@ -130,10 +143,23 @@ value: 1, label: '鏄�' }] + }, + isUse: { + select: [{ + value: 0, + type: 'info', + label: '鍚�' + }, { + value: 1, + label: '鏄�' + }] + }, + qualificationId:{ + select: [] } }, - requiredAdd: ['code', 'name', 'structureTestObjectId', 'isProduct'], - requiredUp: ['code', 'name', 'structureTestObjectId', 'isProduct'] + requiredAdd: ['code', 'name', 'structureTestObjectId', 'isProduct','isUse','nameEn'], + requiredUp: ['code', 'name', 'structureTestObjectId', 'isProduct','isUse','nameEn'] }, entityCopy: {}, upIndex: 0, @@ -145,6 +171,7 @@ this.entityCopy = this.HaveJson(this.componentData.entity) this.getPower() this.selectTestObjectByName() + this.getQualificationList() }, methods: { refreshTable() { @@ -195,6 +222,37 @@ this.componentData.tagField.structureTestObjectId.select = data }) }, + getQualificationList(){ + this.$axios.post(this.$api.enums.selectEnumByCategory, { + category: "璧勮川鍚嶇О" + }).then(res => { + let list = res.data + this.componentData.selectField.qualificationId.select = list + this.componentData.tagField.qualificationId.select = list + }) + // this.$axios.post(this.$api.certification.getCertificationDetail,{ + // page: { + // current: -1, + // size: -1 + // }, + // entity:{ + // name: null, + // }}, { + // headers: { + // 'Content-Type': 'application/json' + // } + // }).then(res => { + // if(res.code==200){ + // let list = res.data.body.records.map(item => { + // item.label = item.name + // item.value = item.id + // return item + // }); + // this.componentData.selectField.qualificationId.select = list + // this.componentData.tagField.qualificationId.select = list + // } + // }) + } } } </script> -- Gitblit v1.9.3