bug
This commit is contained in:
		| @@ -75,9 +75,10 @@ | ||||
|           <template slot-scope="{ row }"> | ||||
|             <div class="table-options"> | ||||
|               <el-button type="text" @click="remindExamine(row.id)" v-if="['0'].includes(row.status)">催办</el-button> | ||||
|               <el-button type="text" @click="close(row.id)" v-if="['4'].includes(row.status) && row.sendChannel === '1'">关闭</el-button> | ||||
|               <el-button type="text" @click="cancel(row.id)" v-if="['0'].includes(row.status)">撤回</el-button> | ||||
|               <el-button type="text" @click="toDetail(row.id)">详情</el-button> | ||||
|               <el-button type="text" @click="toAdd(row.mstSendChannel, row.id)" v-if="['1', '3'].includes(row.status)">编辑</el-button> | ||||
|               <el-button type="text" @click="toAdd(row.sendChannel, row.id)" v-if="['1', '3'].includes(row.status)">编辑</el-button> | ||||
|             </div> | ||||
|           </template> | ||||
|         </el-table-column> | ||||
| @@ -202,6 +203,17 @@ | ||||
|         }) | ||||
|       }, | ||||
|  | ||||
|       close (id) { | ||||
|         this.$confirm('确认关闭该群发任务?').then(() => { | ||||
|           this.instance.post(`/app/appmasssendingtask/closeTask?id=${id}`).then(res => { | ||||
|             if (res.code == 0) { | ||||
|               this.$message.success('关闭成功!') | ||||
|               this.getList() | ||||
|             } | ||||
|           }) | ||||
|         }) | ||||
|       }, | ||||
|  | ||||
|       cancel (id) { | ||||
|         this.$confirm('确认撤回该群发任务?').then(() => { | ||||
|           this.instance.post(`/app/appmasssendingtask/cancel?id=${id}`).then(res => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user