From e0530468d54abb4030453ce5d60d53477204957b Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期六, 30 七月 2022 14:47:52 +0800
Subject: [PATCH] 对接

---
 src/views/facilityManagement/deviceType/component/Dailog.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/views/facilityManagement/deviceType/component/Dailog.vue b/src/views/facilityManagement/deviceType/component/Dailog.vue
index 4859882..3ea7555 100644
--- a/src/views/facilityManagement/deviceType/component/Dailog.vue
+++ b/src/views/facilityManagement/deviceType/component/Dailog.vue
@@ -13,7 +13,7 @@
 				</el-col>
 				<el-col :span="11" :offset="2">
 					<el-form-item label="父级编号" size="default">
-						<el-tree-select v-model="form.parentId" :data="data" :props="propse" class="w100" placeholder="请选择" />
+						<el-tree-select v-model="form.parentId" :data="data" :props="propst" class="w100" placeholder="请选择" />
 					</el-form-item>
 				</el-col>
 			</el-row>
@@ -50,8 +50,8 @@
 			isContent: '', ////是否为设备内容  1:是 2:否
 			typeName: '', ////类别名称
 			parentId: 0, ////父级ID,如果没有父级,为0
-			isCheck: 1, ////是否检测  1:是 2:否
-			isVisit: 1, ////是否巡检 1:是 2:否
+			isCheck: 0, ////是否检测  1:是 2:否
+			isVisit: 0, ////是否巡检 1:是 2:否
 			sortNum: '', //排列序列
 			id: '', //设备类型ID ,更新时必填
 		});
@@ -101,11 +101,11 @@
 					}
 				});
 		};
-		const data = ref();
-		const propse = {
+		const data = ref([]);
+		const propst = {
+			value: 'id',
 			lable: 'typeName',
 			children: 'childList',
-			value: 'id',
 		};
 		const submitForm = () => {
 			facilityManagementApi()
@@ -160,7 +160,7 @@
 		return {
 			detail,
 			listApi,
-			propse,
+			propst,
 			submitForm,
 			resetForm,
 			data,

--
Gitblit v1.9.2