From 3c2a2e3351fb9d892ff635b7512db2baf2b8eb95 Mon Sep 17 00:00:00 2001
From: xiebin <123456>
Date: Tue, 20 Sep 2022 18:05:31 +0800
Subject: [PATCH] 代码优化

---
 src/const/taskinfo/taskinfo.js |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/const/taskinfo/taskinfo.js b/src/const/taskinfo/taskinfo.js
index 7a028de..eab9e21 100644
--- a/src/const/taskinfo/taskinfo.js
+++ b/src/const/taskinfo/taskinfo.js
@@ -76,18 +76,22 @@
       type: "select",
       span: 24,
       dicUrl: "/api/blade-user/user-list",
-      dataType: "number",
       props: {
         label: "name",
         value: "id"
       },
+      rules:[{
+        required: true,
+        message: "请输入巡检人员",
+        trigger: "blur"
+      }]
     },
     {
       label: "任务状态",
       prop: "state",
       type: "select",
       dicUrl: "/api/blade-system/dict-biz/dictionary?code=TACK_STATE",
-      dataType: "number",
+      disabled: true,
       props: {
         label: "dictValue",
         value: "dictKey"
@@ -97,7 +101,8 @@
       label: "任务来源",
       prop: "source",
       type: "select",
-      dicData: [{id:'WEB',name:'WEB'},{id:'APP',name:'APP'}],
+      dicData: [{id:'SYSTEMNEW',name:'系统创建'},{id:'SYSTEMAUTO',name:'计划任务新增'}],
+      disabled: true,
       props: {
         label: "name",
         value: "id"
@@ -108,6 +113,9 @@
       prop: "routeRange",
       type: "input",
       hide: true,
+      span: 24,
+      display: true,
+      addDisplay: true
     },
     {
       label: "创建人",

--
Gitblit v1.9.3