|
@@ -1122,17 +1122,28 @@ export default {
|
|
|
},
|
|
|
// 注销
|
|
|
delDetails(id){
|
|
|
- this.$http({
|
|
|
- url: "/market/mkOnlineChannel/delDetailsById",
|
|
|
- method: "post",
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json",
|
|
|
- },
|
|
|
- data: {
|
|
|
- data: id,
|
|
|
- },
|
|
|
- }).then((res) => {
|
|
|
- console.log(res)
|
|
|
+ this.$confirm('确认删除?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$http({
|
|
|
+ url: "/market/mkOnlineChannel/delDetailsById",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ data: id,
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ });
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '取消删除'
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
// 查看详情接口封装
|
|
@@ -1386,7 +1397,6 @@ export default {
|
|
|
} else if (type === 4) {
|
|
|
this.titname = "注销";
|
|
|
this.visionsts = "2";
|
|
|
- this.queryDetails(data.woNo);
|
|
|
this.delDetails(data.woNo);
|
|
|
}
|
|
|
// this.$http({
|