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/hntask/views/immediate_task.vue |  132 +++++++++++++++++++------------------------
 1 files changed, 58 insertions(+), 74 deletions(-)

diff --git a/src/cool/modules/deviceGroup/views/deviceGroup.vue b/src/cool/modules/hntask/views/immediate_task.vue
similarity index 68%
rename from src/cool/modules/deviceGroup/views/deviceGroup.vue
rename to src/cool/modules/hntask/views/immediate_task.vue
index b3bdba1..af120c9 100644
--- a/src/cool/modules/deviceGroup/views/deviceGroup.vue
+++ b/src/cool/modules/hntask/views/immediate_task.vue
@@ -45,8 +45,8 @@
 		const upsert = reactive<Upsert>({
 			items: [
 				{
-					label: "鍚嶇О",
-					prop: "name",
+					label: "閫昏緫ID",
+					prop: "logic_ids",
 					component: {
 						name: "el-input"
 					},
@@ -54,60 +54,43 @@
 					required: true
 				},
 				{
-					label: "閫昏緫ID",
-					prop: "logic_id",
+					label: "浠诲姟鎸囦护",
+					prop: "task_command",
 					component: {
 						name: "el-input"
-					},
-					required: true
+					}
 				},
 				{
-					label: "鐗╃悊ID",
-					prop: "device_id",
+					label: "浠诲姟鍐呭鎻忚堪",
+					prop: "task_content",
 					component: {
 						name: "el-input"
-					},
-					required: true
+					}
 				},
 				{
-					label: "璐熻矗浜�",
+					label: "浠诲姟鍙傛暟",
+					prop: "task_params",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "浠诲姟绫诲瀷",
+					prop: "task_type",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "鎿嶄綔浜�",
 					prop: "operator",
 					component: {
 						name: "el-input"
-					},
-					required: true
-				},
-				{
-					label: "缁忓害",
-					prop: "longitude",
-					component: {
-						name: "el-input"
 					}
 				},
 				{
-					label: "绾害",
-					prop: "latitude",
-					component: {
-						name: "el-input"
-					}
-				},
-				{
-					label: "楂樺害",
-					prop: "altitude",
-					component: {
-						name: "el-input"
-					}
-				},
-				{
-					label: "瀹夎浣嶇疆",
-					prop: "location",
-					component: {
-						name: "el-input"
-					}
-				},
-				{
-					label: "鐘舵��",
-					prop: "status",
+					label: "璁剧疆鏃堕棿",
+					prop: "operate_time",
 					component: {
 						name: "el-input"
 					}
@@ -115,6 +98,13 @@
 				{
 					label: "澶囨敞",
 					prop: "remark",
+					component: {
+						name: "el-input"
+					}
+				},
+				{
+					label: "鐘舵��",
+					prop: "status",
 					component: {
 						name: "el-input"
 					}
@@ -135,45 +125,40 @@
 					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"
+					prop: "logic_ids"
 				},
 				{
-					label: "鐗╃悊ID",
-					prop: "device_id",
-					width: 100
+					label: "浠诲姟鎸囦护",
+					prop: "task_command"
 				},
 				{
-					label: "缁忓害",
-					prop: "longitude",
-					width: 150
+					label: "浠诲姟鍐呭鎻忚堪",
+					prop: "task_content"
 				},
 				{
-					label: "绾害",
-					prop: "latitude",
-					width: 150
+					label: "浠诲姟鍙傛暟",
+					prop: "task_params"
 				},
 				{
-					label: "楂樺害",
-					prop: "altitude"
+					label: "浠诲姟绫诲瀷",
+					prop: "task_type"
+				},
+				{
+					label: "鎿嶄綔浜�",
+					prop: "operator"
+				},
+				{
+					label: "璁剧疆鏃堕棿",
+					prop: "operate_time"
+				},
+				{
+					label: "澶囨敞",
+					prop: "remark"
+				},
+				{
+					label: "鐘舵��",
+					prop: "status"
 				},
 				{
 					label: "鎿嶄綔",
@@ -185,8 +170,7 @@
 		// crud 鍔犺浇
 		function onLoad({ ctx, app }: CrudLoad) {
 			// 缁戝畾 service
-			console.log(service);
-			ctx.service(service.business.devicegroup).done();
+			ctx.service(service.business.taskimmediately).done();
 			app.refresh();
 		}
 

--
Gitblit v1.9.1