|
@@ -334,12 +334,24 @@ export default {
|
|
|
category_id:item.category_id,
|
|
|
website_id:item.website_id,
|
|
|
}
|
|
|
- this.$store.dispatch('pool/delWebsiteCategory',data).then(res=> {
|
|
|
- this.$message.success("删除成功!");
|
|
|
- this.getData();
|
|
|
+ this.$confirm('删除后,该条信息及其绑定关系全部删除,确定吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$store.dispatch('pool/delWebsiteCategory',data).then(res=> {
|
|
|
+ this.$message.success("删除成功!");
|
|
|
+ this.getData();
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message.info("网络错误,请重试!");
|
|
|
+ })
|
|
|
}).catch(() => {
|
|
|
- this.$message.info("网络错误,请重试!");
|
|
|
- })
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
//提交编辑的数据
|
|
|
addToServe(){
|