From 8e2a42e4a2da78f9cda9fa3e7732a0ef72f0c906 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 12 Nov 2021 09:29:02 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises
---
src/views/securityUnit/securityTraining.vue | 28 +++++++++++++++++++---------
1 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/src/views/securityUnit/securityTraining.vue b/src/views/securityUnit/securityTraining.vue
index b441e8b..5c5d37a 100644
--- a/src/views/securityUnit/securityTraining.vue
+++ b/src/views/securityUnit/securityTraining.vue
@@ -272,8 +272,8 @@
},
};
},
- created() {
- this.option0.column[4].value = 2;
+ created() {
+ this.option0.column[4].value = 1;
this.option0.column[4].disabled = true;
},
computed: {
@@ -360,13 +360,17 @@
});
},
handleSubmit(form, done) {
- console.log(form);
+ form["createUserId"] = this.userInfo.Id;
+ // console.log(form);
+ // done();
+ // return;
adddata(form).then((res) => {
if (res.data.success) {
this.$message({
message: "提交成功",
type: "success",
});
+ this.refreshChange();
done();
this.forms = false;
} else {
@@ -374,6 +378,7 @@
message: "提交失败",
type: "warning",
});
+ done();
}
});
},
@@ -432,14 +437,19 @@
this.$message.warning("请选择至少一条数据");
return;
}
- this.$confirm("确定批量将选择数据删除?", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
+ this.$confirm(
+ "该操作将会把保安员数据一并删除,不可恢复!确定将选择公司删除?",
+ {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ }
+ )
.then(() => {
// console.log(this.ids);
- return remove(this.ids, this.ids1);
+ return remove(this.ids, this.ids1).then((res) => {
+ this.refreshChange();
+ });
})
.then(() => {
this.onLoad(this.page);
--
Gitblit v1.9.3