|
|
@ -175,6 +175,8 @@ import {
|
|
|
|
authAdminDelete
|
|
|
|
authAdminDelete
|
|
|
|
} from "../../../api/auth/authAdmin";
|
|
|
|
} from "../../../api/auth/authAdmin";
|
|
|
|
import {findConfig} from "@/api/thrsys/spsSyncStatus";
|
|
|
|
import {findConfig} from "@/api/thrsys/spsSyncStatus";
|
|
|
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
const formJson = {
|
|
|
|
id: "",
|
|
|
|
id: "",
|
|
|
|
passWord: "",
|
|
|
|
passWord: "",
|
|
|
@ -338,12 +340,20 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
formSubmit() {
|
|
|
|
formSubmit() {
|
|
|
|
console.log(
|
|
|
|
if (isBlank(this.formData.userName)) {
|
|
|
|
this.formData.userName +
|
|
|
|
this.$message.error("用户账号不能为空");
|
|
|
|
"-----" +
|
|
|
|
return;
|
|
|
|
this.formData.employeeName +
|
|
|
|
} else if (isBlank(this.formData.passWord)) {
|
|
|
|
this.formData.userFlag
|
|
|
|
this.$message.error("密码不能为空")
|
|
|
|
);
|
|
|
|
return;
|
|
|
|
|
|
|
|
}else if (isBlank(this.formData.employeeName)) {
|
|
|
|
|
|
|
|
this.$message.error("用户名称不能为空");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
} else if (this.formData.roles.length === 0) {
|
|
|
|
|
|
|
|
this.$message.error("未指定角色!")
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
this.formLoading = true;
|
|
|
|
this.formLoading = true;
|
|
|
|