Kaynağa Gözat

禁用启用功能转移到详情内

liuxiaona 2 yıl önce
ebeveyn
işleme
88d0e9d859

+ 0 - 4
.idea/workspace.xml

@@ -4,11 +4,7 @@
4 4
     <list default="true" id="326b77ef-a0bc-4d8a-bd1c-34c4541ee400" name="Changes" comment="">
5 5
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6 6
       <change beforePath="$PROJECT_DIR$/project/src/components/customOperate/createFriendsCircle.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/customOperate/createFriendsCircle.vue" afterDir="false" />
7
-      <change beforePath="$PROJECT_DIR$/project/src/components/customOperate/friendsCircle/QWdetial.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/customOperate/friendsCircle/QWdetial.vue" afterDir="false" />
8 7
       <change beforePath="$PROJECT_DIR$/project/src/components/customOperate/friendsCircle/QWfc.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/customOperate/friendsCircle/QWfc.vue" afterDir="false" />
9
-      <change beforePath="$PROJECT_DIR$/project/src/components/customOperate/friendsCircle/fcList.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/customOperate/friendsCircle/fcList.vue" afterDir="false" />
10
-      <change beforePath="$PROJECT_DIR$/project/src/components/customOperate/friendsCircle/fcListdetial.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/customOperate/friendsCircle/fcListdetial.vue" afterDir="false" />
11
-      <change beforePath="$PROJECT_DIR$/project/src/style/self.scss" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/style/self.scss" afterDir="false" />
12 8
     </list>
13 9
     <option name="SHOW_DIALOG" value="false" />
14 10
     <option name="HIGHLIGHT_CONFLICTS" value="true" />

+ 5 - 4
project/src/components/customOperate/createFriendsCircle.vue

@@ -135,8 +135,8 @@
135 135
       </div>
136 136
       <div class="flex-align-center lMar100 tMar20">
137 137
         <button class="button" @click="getAttachments">通知成员发送</button>
138
-        <button class="button lMar10" style="width: 60px;" :style="{background:queryEnable == 1 ? '#FF604D' : queryEnable == 0 ? '#007AFF':''}" v-if="queryEnable==0 || queryEnable==1" @click="enableForbidden">
139
-          {{queryEnable == 1 ? '禁用' : queryEnable == 0 ? '启用':''}}
138
+        <button class="button lMar10"  :style="{background:queryEnable == 1 ? '#FF604D' : queryEnable == 0 ? '#007AFF':''}" v-if="(queryEnable==0 || queryEnable==1)&&$route.query.rule_id" @click="enableForbidden">
139
+          {{queryEnable == 1 ? '禁用' : queryEnable == 0 ? '启用':''}}此朋友圈
140 140
         </button>
141 141
       </div>
142 142
 
@@ -222,7 +222,7 @@ export default {
222 222
         },
223 223
         coverFileList:[]
224 224
       },
225
-      queryEnable:this.$route.query.enable
225
+      queryEnable:''
226 226
     }
227 227
   },
228 228
   created () {
@@ -256,7 +256,7 @@ export default {
256 256
               message: '操作成功!',
257 257
               type: 'success'
258 258
             })
259
-            this.$route.query.enable = this.queryEnable == 1 ? 0 : 1
259
+            this.queryEnable = this.queryEnable == 1 ? 0 : 1
260 260
           } else {
261 261
             this.$message({
262 262
               message: res.err,
@@ -284,6 +284,7 @@ export default {
284 284
           this.sendStatus = rebackInfo.status
285 285
           this.fc_type = rebackInfo.filter_type
286 286
           this.themeName = rebackInfo.name
287
+          this.queryEnable = rebackInfo.enable
287 288
           this.customer_filter = rebackInfo.customer_filter
288 289
           this.content1 = rebackInfo.content
289 290
           this.send_type = 2

+ 3 - 3
project/src/components/customOperate/friendsCircle/QWfc.vue

@@ -136,7 +136,7 @@
136 136
       <el-table-column label="操作" align="center">
137 137
         <template slot-scope="scope">
138 138
           <div class="flex" style="justify-content:center">
139
-            <div class="c-00B38A pointer table_button lMar5" @click="scope.row.status == 1 ? createFriCircle('edit',scope.row.rule_id,scope.row.enable) : goDetail(scope.row.rule_id)">详情</div>
139
+            <div class="c-00B38A pointer table_button lMar5" @click="scope.row.status == 1 ? createFriCircle('edit',scope.row.rule_id) : goDetail(scope.row.rule_id)">详情</div>
140 140
             <el-popconfirm @confirm="remindClick(scope.row.rule_id)" :title="'企微助手将提醒未发送朋友圈的'+scope.row.unpublished_count+'名员工发朋友圈,是否确认提醒 ?'">
141 141
               <div slot="reference" class="c-00B38A pointer table_button lMar5">提醒</div>
142 142
             </el-popconfirm>
@@ -214,9 +214,9 @@ export default {
214 214
         this.loading = false
215 215
       });
216 216
     },
217
-    createFriCircle (type, rule_id, enable) {
217
+    createFriCircle (type, rule_id) {
218 218
       if (type == 'edit') {
219
-        this.$router.push({ path: '/createFriendsCircle', query: { rule_id: rule_id , enable: enable } })
219
+        this.$router.push({ path: '/createFriendsCircle', query: { rule_id: rule_id } })
220 220
       } else {
221 221
         this.$router.push({ path: '/createFriendsCircle' })
222 222
       }