spring
2025-02-20 037a7112a2bc9e38bb2f398ff5ca740ac01a8fb2
src/views/business/inspectionTask/components/EditInspectionItem.vue
@@ -38,10 +38,10 @@
            style="width: 100%"
          >
            <el-option
              v-for="item in inspectionValueTypeList"
              :key="item.value"
              :label="item.label"
              :value="item.value"
              v-for="dict in inspectionValueType"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
@@ -77,7 +77,6 @@
      entity: {
        id: 0,
      },
      inspectionValueTypeList: [], // 检验值类型下拉框
      editColumn: [
        {
          label: "样品编号",
@@ -164,7 +163,13 @@
        inspectionValueType: "",
      },
      handleEditLoading: false,
      inspectionValueType: [],
    };
  },
  mounted() {
    this.getDicts("inspection_value_type").then((response) => {
      this.inspectionValueType = this.dictToValue(response.data);
    });
  },
  // 方法集合
  methods: {
@@ -193,7 +198,6 @@
    // 修改弹框
    editIns(row) {
      this.editAskDia = true;
      this.selectEnumByCategoryForInspectionValueType();
      this.editForm = { ...row };
    },
    // 提交修改
@@ -222,15 +226,6 @@
      this.page.current = page;
      this.page.size = limit;
      this.getTableData();
    },
    selectEnumByCategoryForInspectionValueType() {
      this.$axios
        .post(this.$api.enums.selectEnumByCategory, {
          category: "检验值类型",
        })
        .then((res) => {
          this.inspectionValueTypeList = res.data;
        });
    },
  },
};