| | |
| | | showSelect: true, |
| | | select: true, |
| | | do: [], |
| | | tagField: {}, |
| | | tagField: { |
| | | inspectionItemType: { |
| | | select: [] |
| | | }, |
| | | valueType: { |
| | | select: [] |
| | | }, |
| | | bsm:{ |
| | | select: [] |
| | | }, |
| | | inspectionValueType:{ |
| | | select:[] |
| | | }, |
| | | deviceGroup:{select:[]} |
| | | }, |
| | | selectField: {}, |
| | | } |
| | | } |
| | |
| | | this.selectEnumByCategoryForsampleType() |
| | | this.selectTestObjectByName() |
| | | this.selectStandardMethods() |
| | | this.selectEnumByCategoryForDevice() |
| | | this.selectEnumByCategory() |
| | | this.selectEnumByCategoryForValue() |
| | | this.selectEnumByCategoryForSpecial() |
| | | this.selectEnumByCategoryForInspectionValueType() |
| | | }, |
| | | methods: { |
| | | filterNode(value, data) { |
| | |
| | | this.sampleType = res.data |
| | | }) |
| | | }, |
| | | selectEnumByCategoryForDevice() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "设备分类" |
| | | }).then(res => { |
| | | this.componentData.tagField.deviceGroup.select = res.data |
| | | }) |
| | | }, |
| | | selectEnumByCategory() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "检验项类型" |
| | | }).then(res => { |
| | | res.data[1].type = 'info' |
| | | this.componentData.tagField.inspectionItemType.select = res.data |
| | | }) |
| | | }, |
| | | selectEnumByCategoryForValue() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "取值类型" |
| | | }).then(res => { |
| | | this.componentData.tagField.valueType.select = res.data |
| | | }) |
| | | }, |
| | | selectEnumByCategoryForSpecial() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "特殊标识" |
| | | }).then(res => { |
| | | this.componentData.tagField.bsm.select = res.data |
| | | }) |
| | | }, |
| | | selectEnumByCategoryForInspectionValueType() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "检验值类型" |
| | | }).then(res => { |
| | | this.componentData.tagField.inspectionValueType.select = res.data |
| | | }) |
| | | }, |
| | | selectStandardTreeList() { |
| | | this.treeLoad = true |
| | | this.$axios.get(this.$api.standardTree.selectStandardTreeList).then(res => { |