From fccd93a5a4fe73a2081f2d8188efcb65d1d91c5b Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 15 Sep 2021 09:23:11 +0800
Subject: [PATCH] +

---
 src/views/securityUnit/data.js |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/views/securityUnit/data.js b/src/views/securityUnit/data.js
index 2f8ed71..ead3319 100644
--- a/src/views/securityUnit/data.js
+++ b/src/views/securityUnit/data.js
@@ -71,6 +71,7 @@
   labelWidth: 160,
   prop: "znum",
   width: 69,
+  editDisplay: false,
   // search: true,
   searchSpan: 4,
   searchLabelWidth: 100
@@ -81,6 +82,7 @@
   prop: "pnum",
   width: 69,
   // search: true,
+  editDisplay: false,
   searchSpan: 4,
   searchLabelWidth: 100
 },
@@ -89,6 +91,8 @@
   labelWidth: 160,
   prop: "cnum",
   width: 69,
+
+  editDisplay: false,
   // search: true,
   searchSpan: 4,
   searchLabelWidth: 100
@@ -101,7 +105,7 @@
   overHidden: true,
   type: "date",
   format: "yyyy-MM-dd",
-  valueFormat: "timestamp",
+  valueFormat: "yyyy-MM-dd",
 
 },
 {
@@ -142,10 +146,27 @@
 },
 {
   label: "所属辖区",
-  prop: "region",
+  // prop: "region",
   labelWidth: 160,
   // width: 110,
   // search: true,
+  label: "所属辖区",
+  prop: "jurisdiction",
+  // type: "tree",
+  // disabled: true,
+  type: "tree",
+  dicUrl: "/api/jurisdiction/lazy-trees",
+  props: {
+    label: "title",
+    value: "id"
+  },
+  // labelWidth: w,
+  // span: s,
+  rules: [{
+    required: true,
+    message: "请选择所属辖区",
+    trigger: "click",
+  },],
   overHidden: true
 },
 {
@@ -192,12 +213,12 @@
   }]
 },
 {
-  label: "辖区",
+  label: "所属辖区",
   prop: "jurisdiction",
   // type: "tree",
   // disabled: true,
   type: "tree",
-  dicUrl: "/api//jurisdiction/lazy-trees",
+  dicUrl: "/api/jurisdiction/lazy-trees",
   props: {
     label: "title",
     value: "id"
@@ -393,13 +414,13 @@
   }]
 },
 {
-  label: "所属地区",
+  label: "所属辖区",
   prop: "region",
   labelWidth: w,
   span: s,
   rules: [{
     required: true,
-    message: "请输入所属地区",
+    message: "请输入所属辖区",
     trigger: "blur"
   }]
 },

--
Gitblit v1.9.3