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