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/cGovernance/taskECallTwo/index.vue |   34 ++++++++++++++++++++--------------
 1 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/src/views/cGovernance/taskECallTwo/index.vue b/src/views/cGovernance/taskECallTwo/index.vue
index e0cbf0f..63571ff 100644
--- a/src/views/cGovernance/taskECallTwo/index.vue
+++ b/src/views/cGovernance/taskECallTwo/index.vue
@@ -14,10 +14,10 @@
         </el-button>
       </template>
 
-      <!-- <template slot="menu" slot-scope="{row, size, index}">
+      <template slot="menu" slot-scope="{row, size, index}">
         <el-button size="small" type="text" icon="el-icon-share" plain @click="share(row)">分享
         </el-button>
-      </template> -->
+      </template>
 
       <template slot-scope="{row, size}" slot="phone">
         <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneflag')"
@@ -77,7 +77,8 @@
     remove,
     update,
     add,
-    getDetail
+    getDetail,
+    synchronizeData
   } from "@/api/task/eCallEventTwo"
   import {
     add as circleAdd,
@@ -130,7 +131,7 @@
           // searchLabelWidth: 96,
           searchShow: true,
           searchMenuSpan: 3,
-          menuWidth: 310,
+          menuWidth: 160,
           delBtn: false,
           editBtn: false,
 
@@ -193,7 +194,7 @@
               slot: true
             },
             {
-              width: 100,
+              width: 120,
               label: "诉求人联系电话",
               prop: "applicantPhone",
               rules: [{
@@ -304,10 +305,10 @@
               // value: [117.966460, 28.431002, ""]
             },
             {
+              width: 100,
               label: "事发地点-经度",
               prop: "sceneGeoLng",
               disabled: true,
-              width: 100,
               rules: [{
                 required: true,
                 message: "请输入事发地点-经度",
@@ -315,6 +316,7 @@
               }, ],
             },
             {
+              width: 100,
               label: "事发地点-纬度",
               prop: "sceneGeoLat",
               disabled: true,
@@ -484,13 +486,13 @@
               value: "2",
               dicData: [{
                 label: "受理",
-                value: "0"
-              }, {
-                label: "处理中",
                 value: "1"
               }, {
-                label: "已归档",
+                label: "处理中",
                 value: "2"
+              }, {
+                label: "已归档",
+                value: "3"
               }],
             },
 
@@ -671,7 +673,7 @@
             type: "warning",
           })
           .then(() => {
-            return remove(row.orderId)
+            return remove(row.id)
           })
           .then(() => {
             this.onLoad(this.page)
@@ -712,8 +714,8 @@
         param.houseCode = this.shareCircleRow.addressCode
         param.circleImages = this.shareCircleRow.imageUrls
         param.communityCode = this.shareCircleRow.communityCode
-        param.circleText = this.shareCircleRow.remark
-        param.evenType = 2
+        param.circleText = "标题:" + this.shareCircleRow.issueTitle + " 内容: " + this.shareCircleRow.issueContent
+        param.evenType = 3
         param.eventId = this.shareCircleRow.id
         circleAdd(param).then(
           () => {
@@ -796,7 +798,7 @@
           values.dateTime = null
         }
         this.loading = true
-        this.getDeptInfo();
+        // this.getDeptInfo();
 
         getList(page.currentPage, page.pageSize, values).then((res) => {
           const data = res.data.data
@@ -806,6 +808,10 @@
           this.loading = false
           this.selectionClear()
         })
+
+        // synchronizeData().then((res) => {
+
+        // })
       }
     },
   }

--
Gitblit v1.9.3