|
|
@ -1906,7 +1906,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 处理orderRepeat里的id |
|
|
|
// 处理orderRepeat里的id |
|
|
|
handleOrderRepeat (id) { |
|
|
|
handleOrderRepeat (id) { |
|
|
|
this.orderRepeat.includes(id) && this.orderRepeat.splice(this.orderRepeat.findIndex(e => e == id), 1) |
|
|
|
const i = this.orderRepeat.findIndex(e => e == id) |
|
|
|
|
|
|
|
i !== -1 && this.orderRepeat.splice(i, 1) |
|
|
|
}, |
|
|
|
}, |
|
|
|
/* 处理0开头的期限 */ |
|
|
|
/* 处理0开头的期限 */ |
|
|
|
zero (e, row) { |
|
|
|
zero (e, row) { |
|
|
@ -1965,7 +1966,7 @@ export default { |
|
|
|
// if (this.renewDisabled && this.coursePermissions.length === 1) { |
|
|
|
// if (this.renewDisabled && this.coursePermissions.length === 1) { |
|
|
|
// return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
// return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
// } else { |
|
|
|
// } else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.coursePermissions.splice(index, 1); |
|
|
|
this.coursePermissions.splice(index, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
@ -1978,7 +1979,7 @@ export default { |
|
|
|
// if (this.renewDisabled && this.theoryCourseList.length === 1) { |
|
|
|
// if (this.renewDisabled && this.theoryCourseList.length === 1) { |
|
|
|
// return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
// return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
// } else { |
|
|
|
// } else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.theoryCourseList.splice(index, 1); |
|
|
|
this.theoryCourseList.splice(index, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
@ -1992,7 +1993,7 @@ export default { |
|
|
|
// if (this.renewDisabled && this.dataPlatformPermissions.length === 1) { |
|
|
|
// if (this.renewDisabled && this.dataPlatformPermissions.length === 1) { |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// } else { |
|
|
|
// } else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.dataPlatformPermissions.splice(index, 1); |
|
|
|
this.dataPlatformPermissions.splice(index, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
@ -2006,7 +2007,7 @@ export default { |
|
|
|
// if (this.renewDisabled && this.valuePermissions.length === 1) { |
|
|
|
// if (this.renewDisabled && this.valuePermissions.length === 1) { |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// } else { |
|
|
|
// } else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.valuePermissions.splice(index, 1); |
|
|
|
this.valuePermissions.splice(index, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
@ -2165,7 +2166,7 @@ export default { |
|
|
|
// if (this.renewDisabled && this.practicalCourses.length === 1) { |
|
|
|
// if (this.renewDisabled && this.practicalCourses.length === 1) { |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// } else { |
|
|
|
// } else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.practicalCourses.splice(index, 1); |
|
|
|
this.practicalCourses.splice(index, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
@ -2179,7 +2180,7 @@ export default { |
|
|
|
if (this.renewDisabled && this.expTools.length === 1) { |
|
|
|
if (this.renewDisabled && this.expTools.length === 1) { |
|
|
|
return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.expTools.splice(index, 1); |
|
|
|
this.expTools.splice(index, 1); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|