Browse Source

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

liuxiaona 2 years ago
parent
commit
88d0e9d859

+ 0 - 4
.idea/workspace.xml

4
     <list default="true" id="326b77ef-a0bc-4d8a-bd1c-34c4541ee400" name="Changes" comment="">
4
     <list default="true" id="326b77ef-a0bc-4d8a-bd1c-34c4541ee400" name="Changes" comment="">
5
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
5
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
       <change beforePath="$PROJECT_DIR$/project/src/components/customOperate/createFriendsCircle.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/customOperate/createFriendsCircle.vue" afterDir="false" />
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
       <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" />
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
     </list>
8
     </list>
13
     <option name="SHOW_DIALOG" value="false" />
9
     <option name="SHOW_DIALOG" value="false" />
14
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
     <option name="HIGHLIGHT_CONFLICTS" value="true" />

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

135
       </div>
135
       </div>
136
       <div class="flex-align-center lMar100 tMar20">
136
       <div class="flex-align-center lMar100 tMar20">
137
         <button class="button" @click="getAttachments">通知成员发送</button>
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
         </button>
140
         </button>
141
       </div>
141
       </div>
142
 
142
 
222
         },
222
         },
223
         coverFileList:[]
223
         coverFileList:[]
224
       },
224
       },
225
-      queryEnable:this.$route.query.enable
225
+      queryEnable:''
226
     }
226
     }
227
   },
227
   },
228
   created () {
228
   created () {
256
               message: '操作成功!',
256
               message: '操作成功!',
257
               type: 'success'
257
               type: 'success'
258
             })
258
             })
259
-            this.$route.query.enable = this.queryEnable == 1 ? 0 : 1
259
+            this.queryEnable = this.queryEnable == 1 ? 0 : 1
260
           } else {
260
           } else {
261
             this.$message({
261
             this.$message({
262
               message: res.err,
262
               message: res.err,
284
           this.sendStatus = rebackInfo.status
284
           this.sendStatus = rebackInfo.status
285
           this.fc_type = rebackInfo.filter_type
285
           this.fc_type = rebackInfo.filter_type
286
           this.themeName = rebackInfo.name
286
           this.themeName = rebackInfo.name
287
+          this.queryEnable = rebackInfo.enable
287
           this.customer_filter = rebackInfo.customer_filter
288
           this.customer_filter = rebackInfo.customer_filter
288
           this.content1 = rebackInfo.content
289
           this.content1 = rebackInfo.content
289
           this.send_type = 2
290
           this.send_type = 2

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

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