|
@@ -1317,6 +1317,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
/** 解绑按钮操作 */
|
|
/** 解绑按钮操作 */
|
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
|
|
|
+ console.log("解绑1")
|
|
|
const launchScrId = row.launchScrId || this.ids;
|
|
const launchScrId = row.launchScrId || this.ids;
|
|
|
if (row.launchCompanyId == this.loginId) {
|
|
if (row.launchCompanyId == this.loginId) {
|
|
|
const scyName = row.receiveScyName;
|
|
const scyName = row.receiveScyName;
|
|
@@ -1327,21 +1328,15 @@ export default {
|
|
|
})
|
|
})
|
|
|
.then(function () {
|
|
.then(function () {
|
|
|
return delRel(launchScrId);
|
|
return delRel(launchScrId);
|
|
|
- })
|
|
|
|
|
- .then(() => {
|
|
|
|
|
|
|
+ }).then(() => {
|
|
|
this.msgSuccess("解绑成功");
|
|
this.msgSuccess("解绑成功");
|
|
|
this.getUser();
|
|
this.getUser();
|
|
|
this.getSpare();
|
|
this.getSpare();
|
|
|
this.getCompanyList();
|
|
this.getCompanyList();
|
|
|
- })
|
|
|
|
|
- .catch(() => {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- type: "warning",
|
|
|
|
|
- message: "已取消解绑"
|
|
|
|
|
- });
|
|
|
|
|
});
|
|
});
|
|
|
} else if (row.launchReceiveScrCompanyId == this.loginId) {
|
|
} else if (row.launchReceiveScrCompanyId == this.loginId) {
|
|
|
const scyName = row.launchScyName;
|
|
const scyName = row.launchScyName;
|
|
|
|
|
+ console.log("解绑4")
|
|
|
this.$confirm('是否确认解绑与"' + scyName + '"的链属关系?', "警告", {
|
|
this.$confirm('是否确认解绑与"' + scyName + '"的链属关系?', "警告", {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
@@ -1355,17 +1350,12 @@ export default {
|
|
|
this.getUser();
|
|
this.getUser();
|
|
|
this.getSpare();
|
|
this.getSpare();
|
|
|
this.getCompanyList();
|
|
this.getCompanyList();
|
|
|
- })
|
|
|
|
|
- .catch(() => {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- type: "warning",
|
|
|
|
|
- message: "已取消解绑"
|
|
|
|
|
- });
|
|
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
/* 解绑链属企业信息数据 */
|
|
/* 解绑链属企业信息数据 */
|
|
|
handleSpareDelete(row) {
|
|
handleSpareDelete(row) {
|
|
|
|
|
+ console.log("解绑6")
|
|
|
const scpId = row.scpId || this.ids;
|
|
const scpId = row.scpId || this.ids;
|
|
|
const scpName = row.scpName;
|
|
const scpName = row.scpName;
|
|
|
this.$confirm('是否确认解绑"' + scpName + '"的信息?', "警告", {
|
|
this.$confirm('是否确认解绑"' + scpName + '"的信息?', "警告", {
|
|
@@ -1377,16 +1367,11 @@ export default {
|
|
|
return removeSpare(scpId);
|
|
return removeSpare(scpId);
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
|
|
+ console.log("解绑7")
|
|
|
this.msgSuccess("解绑成功");
|
|
this.msgSuccess("解绑成功");
|
|
|
this.getUser();
|
|
this.getUser();
|
|
|
this.getSpare();
|
|
this.getSpare();
|
|
|
this.getCompanyList();
|
|
this.getCompanyList();
|
|
|
- })
|
|
|
|
|
- .catch(() => {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- type: "warning",
|
|
|
|
|
- message: "已取消解绑"
|
|
|
|
|
- });
|
|
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|