|
@@ -878,6 +878,8 @@ export default {
|
|
|
return this.isOrgFormVisible = true
|
|
|
}
|
|
|
|
|
|
+ if (this.selectedSchool && !this.selectedSchool.id) return this.$message.error('请选择学校')
|
|
|
+
|
|
|
// 弹出确认框
|
|
|
this.$confirm(confirmationMessage, "确认操作", {
|
|
|
confirmButtonText: "确定",
|
|
@@ -943,10 +945,13 @@ export default {
|
|
|
// console.log(JSON.stringify(this.selectedSchool) === '{}');
|
|
|
// console.log(JSON.stringify(this.selectedSchool));
|
|
|
|
|
|
- if (!row.oid && JSON.stringify(this.selectedSchool) === '{}') {
|
|
|
+ if (!this.isOrgFormVisible) {
|
|
|
this.addBtn = 0
|
|
|
return this.isOrgFormVisible = true
|
|
|
}
|
|
|
+
|
|
|
+ if (this.selectedSchool && !this.selectedSchool.id) return this.$message.error('请选择学校')
|
|
|
+
|
|
|
string = "您确定同意此用户申请并创建吗?";
|
|
|
} else if (type == 2) {
|
|
|
string = "您确定忽略此用户申请吗?";
|