From a2ae35d75856018cb66f407ed1f88b5dd3d5f422 Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期五, 08 三月 2024 09:02:08 +0800
Subject: [PATCH] 功能调整
---
src/components/view/b2-standard.vue | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 56 insertions(+), 1 deletions(-)
diff --git a/src/components/view/b2-standard.vue b/src/components/view/b2-standard.vue
index a67a3e0..42eb543 100644
--- a/src/components/view/b2-standard.vue
+++ b/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 => {
--
Gitblit v1.9.3