From 5e2aafeede13d337380f736567caf74f49713be7 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:38:32 +0800
Subject: [PATCH] 代码优化

---
 src/views/article/rotation.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/views/article/rotation.vue b/src/views/article/rotation.vue
index 2bd981a..a66d748 100644
--- a/src/views/article/rotation.vue
+++ b/src/views/article/rotation.vue
@@ -129,7 +129,7 @@
               multiple: true,
               tags: true,
               hide: true,
-              dateType: "string",
+              dataType: "string",
               addDisplay: false,
               editDisplay: false,
               type: "tree",
@@ -152,7 +152,8 @@
               tags: true,
               type: "tree",
               multiple: true,
-              dateType: "string",
+              // dateType: "string",
+              dataType: "string",
               editDisplay: false,
               addDisplay: false,
               cascader: ['articleId'],
@@ -166,7 +167,6 @@
                 label: "name",
                 value: 'id'
               },
-              // hide: true,
             },
             {
               hide: true,
@@ -178,9 +178,9 @@
               editDisplay: false,
               addDisplay: false,
               type: 'select',
-              dicUrl: `/api/blade-article/article/getArticleByDistrictId?type=4&eventType=1&districtId={{rotationRange}}`,
+              dicUrl: `/api/blade-article/article/getArticleByDistrictId?type=4&publish=1&eventType=1&districtId={{rotationRange}}`,
               formslot: true,
-              cascader: ['vote'],
+              // cascader: ['vote'],
               props: {
                 label: "title",
                 value: "id"
@@ -423,9 +423,9 @@
         if (["edit", "view"].includes(type)) {
           getRotation(this.form.id).then((res) => {
             this.form = res.data.data
-            if (this.form.rotationRange) {
-              this.form.rotationRange = JSON.parse(this.form.rotationRange)
-            }
+            // if (this.form.rotationRange) {
+            //   this.form.rotationRange = JSON.parse(this.form.rotationRange)
+            // }
             // if (this.form.communityCode) {
             //   this.form.communityCode = JSON.parse(this.form.communityCode)
             // }
@@ -482,9 +482,9 @@
           this.page.total = data.total
           this.data = data.records
           this.data.forEach(item => {
-            if (item.rotationRange) {
-              item.rotationRange = JSON.parse(item.rotationRange)
-            }
+            // if (item.rotationRange) {
+            //   item.rotationRange = JSON.parse(item.rotationRange)
+            // }
             // if (item.communityCode) {
             //   item.communityCode = JSON.parse(item.communityCode)
             // }

--
Gitblit v1.9.3