| | |
| | | style="width: 100%" |
| | | > |
| | | <el-option |
| | | v-for="item in inspectionValueTypeList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | v-for="dict in dict.type.inspection_value_type" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | data() { |
| | | // 这里存放数据 |
| | | return { |
| | | dicts: ["inspection_value_type"], |
| | | editInspectionDia: false, |
| | | entity: { |
| | | id: 0, |
| | | }, |
| | | inspectionValueTypeList: [], // 检验值类型下拉框 |
| | | editColumn: [ |
| | | { |
| | | label: "样品编号", |
| | |
| | | // 修改弹框 |
| | | editIns(row) { |
| | | this.editAskDia = true; |
| | | this.selectEnumByCategoryForInspectionValueType(); |
| | | this.editForm = { ...row }; |
| | | }, |
| | | // 提交修改 |
| | |
| | | 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; |
| | | }); |
| | | }, |
| | | }, |
| | | }; |