diff --git a/src/views/hardware/deviceList/index.vue b/src/views/hardware/deviceList/index.vue
index 258a902..0aec0a1 100644
--- a/src/views/hardware/deviceList/index.vue
+++ b/src/views/hardware/deviceList/index.vue
@@ -80,15 +80,24 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -110,6 +119,7 @@ import {
update,
del,
} from "@/api/hardware/device";
+import { select as productSelect } from "@/api/hardware/product";
export default {
name: "DeviceList",
components: {
@@ -117,6 +127,8 @@ export default {
},
data () {
return {
+ // 产品下拉列表
+ productSelectList: [],
// 选中数组
ids: [],
// 非单个禁用
@@ -141,7 +153,7 @@ export default {
},
],
// 表单参数
- form: { },
+ form: {},
// 表格数据
tableData: null,
// 查询参数
@@ -159,10 +171,20 @@ export default {
deviceType: [
{ required: true, message: "设备编码不能为空", trigger: "blur" },
],
+ productId: [
+ { required: true, message: "产品不能为空", trigger: "blur" },
+ ],
},
};
},
created () {
+ productSelect().then(({ code, msg, select }) => {
+ if (code == 200) {
+ this.productSelectList = select;
+ } else {
+ this.$message.error(msg);
+ }
+ })
this.getList();
},
methods: {
diff --git a/src/views/hardware/productList/index.vue b/src/views/hardware/productList/index.vue
index 0eaf53a..c297ab7 100644
--- a/src/views/hardware/productList/index.vue
+++ b/src/views/hardware/productList/index.vue
@@ -258,7 +258,7 @@ export default {
productId: "",
productType: "",
productName: "",
- status: "0",
+ status: "",
};
this.nodeForm = {
productId: "",
diff --git a/src/views/hardware/projectList/index.vue b/src/views/hardware/projectList/index.vue
index 406c99e..402b1a4 100644
--- a/src/views/hardware/projectList/index.vue
+++ b/src/views/hardware/projectList/index.vue
@@ -1,76 +1,82 @@
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
- 增加
-
-
- 批量删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 修改
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+ 增加
+
+
+ 批量删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+