25978
This commit is contained in:
		| @@ -107,22 +107,9 @@ | ||||
|         }) | ||||
|       }, | ||||
|  | ||||
|       changeStatus (item) { | ||||
|         let title = item.status == '1' ? '是否要取消发布?' : '是否要发布?'; | ||||
|         this.$confirm(title, {type: 'warning'}).then(() => { | ||||
|           item.status = item.status == '1' ? '0' : '1' | ||||
|           this.instance.post('/app/appcountrysidetourism/addOrUpdate', item).then(res => { | ||||
|             if (res && res.code == 0) { | ||||
|               title == '是否要发布?' ? this.$message.success('发布成功') : this.$message.success('取消发布成功') | ||||
|               this.getList() | ||||
|             } | ||||
|           }) | ||||
|         }) | ||||
|       }, | ||||
|  | ||||
|       remove(id) { | ||||
|         this.$confirm('确定删除该数据?').then(() => { | ||||
|           this.instance.post(`/app/appcountrysidetourism/delete?id=${id}`).then(res => { | ||||
|           this.instance.post(`/app/appcontentinfo/delete?ids=${id}`).then(res => { | ||||
|             if (res.code == 0) { | ||||
|               this.$message.success('删除成功!') | ||||
|               this.getList() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user