李林
2024-03-08 a2ae35d75856018cb66f407ed1f88b5dd3d5f422
src/components/view/b2-standard.vue
@@ -311,7 +311,21 @@
               showSelect: true,
               select: true,
               do: [],
               tagField: {},
               tagField: {
                  inspectionItemType: {
                     select: []
                  },
                  valueType: {
                     select: []
                  },
                  bsm:{
                     select: []
                  },
                  inspectionValueType:{
                     select:[]
                  },
                  deviceGroup:{select:[]}
               },
               selectField: {},
            }
         }
@@ -324,6 +338,11 @@
         this.selectEnumByCategoryForsampleType()
         this.selectTestObjectByName()
         this.selectStandardMethods()
         this.selectEnumByCategoryForDevice()
         this.selectEnumByCategory()
         this.selectEnumByCategoryForValue()
         this.selectEnumByCategoryForSpecial()
         this.selectEnumByCategoryForInspectionValueType()
      },
      methods: {
         filterNode(value, data) {
@@ -400,6 +419,42 @@
               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 => {