| | |
| | | value: 1, |
| | | label: '是' |
| | | }] |
| | | }, |
| | | qualificationId:{ |
| | | select: [] |
| | | } |
| | | }, |
| | | selectField: { |
| | |
| | | value: 1, |
| | | label: '是' |
| | | }] |
| | | }, |
| | | qualificationId:{ |
| | | select: [] |
| | | } |
| | | }, |
| | | requiredAdd: ['code', 'name', 'structureTestObjectId', 'isProduct','isUse','nameEn'], |
| | |
| | | this.entityCopy = this.HaveJson(this.componentData.entity) |
| | | this.getPower() |
| | | this.selectTestObjectByName() |
| | | this.getQualificationList() |
| | | }, |
| | | methods: { |
| | | refreshTable() { |
| | |
| | | this.componentData.tagField.structureTestObjectId.select = data |
| | | }) |
| | | }, |
| | | getQualificationList(){ |
| | | 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> |