|
|
|
@ -2436,12 +2436,12 @@ export default { |
|
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
}).then(() => { |
|
|
|
|
if (this.renewDisabled && this.coursePermissions.length === 1) { |
|
|
|
|
return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
|
} else { |
|
|
|
|
// if (this.renewDisabled && this.coursePermissions.length === 1) { |
|
|
|
|
// return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
|
// } else { |
|
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
|
this.coursePermissions.splice(index, 1); |
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//删除理论课程 |
|
|
|
@ -2449,12 +2449,12 @@ export default { |
|
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
}).then(() => { |
|
|
|
|
if (this.renewDisabled && this.theoryCourseList.length === 1) { |
|
|
|
|
return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
|
} else { |
|
|
|
|
// if (this.renewDisabled && this.theoryCourseList.length === 1) { |
|
|
|
|
// return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
|
// } else { |
|
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
|
this.theoryCourseList.splice(index, 1); |
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -2463,12 +2463,12 @@ export default { |
|
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
}).then(() => { |
|
|
|
|
if (this.renewDisabled && this.dataPlatformPermissions.length === 1) { |
|
|
|
|
return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
|
} else { |
|
|
|
|
// if (this.renewDisabled && this.dataPlatformPermissions.length === 1) { |
|
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
|
// } else { |
|
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
|
this.dataPlatformPermissions.splice(index, 1); |
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -2477,12 +2477,12 @@ export default { |
|
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
}).then(() => { |
|
|
|
|
if (this.renewDisabled && this.valuePermissions.length === 1) { |
|
|
|
|
return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
|
} else { |
|
|
|
|
// if (this.renewDisabled && this.valuePermissions.length === 1) { |
|
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
|
// } else { |
|
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
|
this.valuePermissions.splice(index, 1); |
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -2631,12 +2631,12 @@ export default { |
|
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
}).then(() => { |
|
|
|
|
if (this.renewDisabled && this.practicalCourses.length === 1) { |
|
|
|
|
return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
|
} else { |
|
|
|
|
// if (this.renewDisabled && this.practicalCourses.length === 1) { |
|
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
|
// } else { |
|
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
|
this.practicalCourses.splice(index, 1); |
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|