From 0924fcc06ead4d10ea5d0d579c8224850a0f37a4 Mon Sep 17 00:00:00 2001
From: fuchengshen <men883234@gmail.com>
Date: 星期五, 24 六月 2022 09:15:09 +0800
Subject: [PATCH] 更改设备分组页面样式
---
src/cool/modules/basedevice/views/basedevice_group.vue | 54 ++++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 44 insertions(+), 10 deletions(-)
diff --git a/src/cool/modules/basedevice/views/basedevice_group.vue b/src/cool/modules/basedevice/views/basedevice_group.vue
index 21d5575..2eda7d6 100644
--- a/src/cool/modules/basedevice/views/basedevice_group.vue
+++ b/src/cool/modules/basedevice/views/basedevice_group.vue
@@ -48,11 +48,19 @@
{
label: "閫昏緫ID",
prop: "logic_id",
+ value: [],
component: {
- name: "el-input"
+ name: "cl-device-select",
+ props: {
+ props: {
+ "multiple-limit": 3
+ }
+ }
},
- //鏄惁涓哄繀濉」,娉細鎺ュ彛閰嶇疆瀛楁鏃舵病鏈夎缃粯璁ゅ�兼椂锛岄兘闇�瑕侀�夋嫨蹇呭~
- required: true
+ rules: {
+ required: true,
+ message: "瑙掕壊涓嶈兘涓虹┖"
+ }
},
{
label: "鎿嶄綔浜�",
@@ -73,7 +81,17 @@
label: "鐘舵��",
prop: "status",
component: {
- name: "el-input"
+ name: "el-radio-group",
+ options: [
+ {
+ label: "鏈惎鐢�",
+ value: 0
+ },
+ {
+ label: "鍚敤",
+ value: 1
+ }
+ ]
}
}
]
@@ -105,7 +123,28 @@
},
{
label: "鐘舵��",
- prop: "status"
+ prop: "status",
+ dict: [
+ {
+ label: "鍋滅敤",
+ value: 0,
+ type: "info" //success warning danger info鍙��
+ },
+ {
+ label: "鍚敤",
+ value: 1
+ }
+ ],
+ filters: [
+ {
+ text: "鍋滅敤",
+ value: 0
+ },
+ {
+ text: "鍚敤",
+ value: 1
+ }
+ ]
},
{
label: "鎿嶄綔",
@@ -121,11 +160,6 @@
}
async function onRefresh(params: any, { next, done, render }: any) {
- // params 鏄瘡娆¤姹傜殑鍙傛暟
- // next(params) 鏄户缁線涓嬫墽琛� page 鐨勮姹�
- // done() 瀹屾垚璇锋眰锛屽叧闂璴oading
- // render(list, pagination) 娓叉煋鍒楄〃鍙婂垎椤典俊鎭�
-
let { list, pagination } = await next({});
list.map((_e: any) => {});
--
Gitblit v1.9.1