From 0da9c6652870390cd07bc90211aefe095445baf6 Mon Sep 17 00:00:00 2001
From: master <master@163.com>
Date: 星期三, 23 三月 2022 17:09:23 +0800
Subject: [PATCH] 完善表格功能

---
 src/cool/modules/basedevice/views/basedevice_info.vue |  175 ++++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 128 insertions(+), 47 deletions(-)

diff --git a/src/cool/modules/deviceGroup/views/deviceGroup.vue b/src/cool/modules/basedevice/views/basedevice_info.vue
similarity index 60%
copy from src/cool/modules/deviceGroup/views/deviceGroup.vue
copy to src/cool/modules/basedevice/views/basedevice_info.vue
index b3bdba1..288c363 100644
--- a/src/cool/modules/deviceGroup/views/deviceGroup.vue
+++ b/src/cool/modules/basedevice/views/basedevice_info.vue
@@ -45,37 +45,32 @@
 		const upsert = reactive<Upsert>({
 			items: [
 				{
-					label: "鍚嶇О",
-					prop: "name",
-					component: {
-						name: "el-input"
-					},
-					//鏄惁涓哄繀濉」,娉細鎺ュ彛閰嶇疆瀛楁鏃舵病鏈夎缃粯璁ゅ�兼椂锛岄兘闇�瑕侀�夋嫨蹇呭~
-					required: true
-				},
-				{
 					label: "閫昏緫ID",
 					prop: "logic_id",
 					component: {
 						name: "el-input"
-					},
-					required: true
+					}
 				},
 				{
 					label: "鐗╃悊ID",
 					prop: "device_id",
 					component: {
 						name: "el-input"
-					},
-					required: true
+					}
 				},
 				{
-					label: "璐熻矗浜�",
-					prop: "operator",
+					label: "璁惧鍚嶇О",
+					prop: "name",
 					component: {
 						name: "el-input"
-					},
-					required: true
+					}
+				},
+				{
+					label: "瀹夎浣嶇疆",
+					prop: "location",
+					component: {
+						name: "el-input"
+					}
 				},
 				{
 					label: "缁忓害",
@@ -99,15 +94,64 @@
 					}
 				},
 				{
-					label: "瀹夎浣嶇疆",
-					prop: "location",
+					label: "璁惧绮惧害",
+					prop: "dimension",
 					component: {
 						name: "el-input"
 					}
 				},
 				{
-					label: "鐘舵��",
-					prop: "status",
+					label: "鑸悜瑙�",
+					prop: "precision",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "鏃嬭浆瑙�",
+					prop: "heading_angle",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "淇话瑙�",
+					prop: "petch_angle",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "妯粴瑙�",
+					prop: "roll_angle",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "IP鍦板潃",
+					prop: "ipaddres",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "绔彛",
+					prop: "device_port",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "璐﹀彿",
+					prop: "device_account",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "璐熻矗浜�",
+					prop: "opertator",
 					component: {
 						name: "el-input"
 					}
@@ -115,6 +159,13 @@
 				{
 					label: "澶囨敞",
 					prop: "remark",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "鐘舵��",
+					prop: "status",
 					component: {
 						name: "el-input"
 					}
@@ -135,45 +186,76 @@
 					sortable: true //鏄惁鎺掑簭鍔熻兘
 				},
 				{
-					label: "杩愯鐘舵��",
-					prop: "status",
-					filters: [
-						{ text: 0, value: 0 },
-						{ text: 1, value: 1 }
-					]
-					// filters:"[{ text: '瀹�', value: '瀹�' }, { text: '鍏徃', value: '鍏徃' }]"
-				},
-				{
-					label: "鍚嶇О",
-					prop: "name"
-				},
-				{
-					label: "浣嶇疆",
-					prop: "location",
-					width: 200
-				},
-				{
 					label: "閫昏緫ID",
 					prop: "logic_id"
 				},
 				{
 					label: "鐗╃悊ID",
-					prop: "device_id",
-					width: 100
+					prop: "device_id"
+				},
+				{
+					label: "璁惧鍚嶇О",
+					prop: "name"
+				},
+				{
+					label: "瀹夎浣嶇疆",
+					prop: "location"
 				},
 				{
 					label: "缁忓害",
-					prop: "longitude",
-					width: 150
+					prop: "longitude"
 				},
 				{
 					label: "绾害",
-					prop: "latitude",
-					width: 150
+					prop: "latitude"
 				},
 				{
 					label: "楂樺害",
 					prop: "altitude"
+				},
+				{
+					label: "璁惧绮惧害",
+					prop: "dimension"
+				},
+				{
+					label: "鑸悜瑙�",
+					prop: "precision"
+				},
+				{
+					label: "鏃嬭浆瑙�",
+					prop: "heading_angle"
+				},
+				{
+					label: "淇话瑙�",
+					prop: "petch_angle"
+				},
+				{
+					label: "妯粴瑙�",
+					prop: "roll_angle"
+				},
+				{
+					label: "IP鍦板潃",
+					prop: "ipaddres"
+				},
+				{
+					label: "绔彛",
+					prop: "device_port"
+				},
+				{
+					label: "璐﹀彿",
+					prop: "device_account"
+				},
+				{
+					label: "璐熻矗浜�",
+					prop: "opertator"
+				},
+				{
+					label: "澶囨敞",
+					prop: "remark"
+				},
+				{
+					label: "鐘舵��",
+					prop: "status"
 				},
 				{
 					label: "鎿嶄綔",
@@ -185,8 +267,7 @@
 		// crud 鍔犺浇
 		function onLoad({ ctx, app }: CrudLoad) {
 			// 缁戝畾 service
-			console.log(service);
-			ctx.service(service.business.devicegroup).done();
+			ctx.service(service.business.basedeviceinfo).done();
 			app.refresh();
 		}
 

--
Gitblit v1.9.1