|
@@ -409,15 +409,15 @@ export default {
|
|
this.$refs.addExamDialog.openDialog();
|
|
this.$refs.addExamDialog.openDialog();
|
|
},
|
|
},
|
|
async deleteBatch(type) {
|
|
async deleteBatch(type) {
|
|
- const ids = this.$refs["table" + type].selection.map(v => v.id).join();
|
|
|
|
|
|
+ const refIds = this.$refs["table" + type].selection.map(v => v.refId);
|
|
|
|
+
|
|
try {
|
|
try {
|
|
- await this.$httpWithMsg.post(
|
|
|
|
- CORE_API +
|
|
|
|
- "/user/data/rule/delete?" +
|
|
|
|
- object2QueryString({
|
|
|
|
- ids
|
|
|
|
- })
|
|
|
|
- );
|
|
|
|
|
|
+ await this.$httpWithMsg.post(CORE_API + "/user/data/rule/delete", {
|
|
|
|
+ refIds,
|
|
|
|
+ type: type.toUpperCase(),
|
|
|
|
+ userId: this.userId
|
|
|
|
+ });
|
|
|
|
+
|
|
this.$notify({
|
|
this.$notify({
|
|
type: "success",
|
|
type: "success",
|
|
message: "删除成功"
|
|
message: "删除成功"
|