|
@@ -79,7 +79,9 @@
|
|
|
</el-row>
|
|
|
|
|
|
<div slot="footer">
|
|
|
- <el-button type="primary" @click="submit">确认</el-button>
|
|
|
+ <el-button type="primary" :disabled="loading" @click="submit"
|
|
|
+ >确认</el-button
|
|
|
+ >
|
|
|
<el-button @click="cancel">取消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -137,6 +139,7 @@ export default {
|
|
|
userTree: [],
|
|
|
selectedUsers: [],
|
|
|
filterLabel: "",
|
|
|
+ loading: false,
|
|
|
defaultProps: {
|
|
|
children: "children",
|
|
|
label: "label",
|
|
@@ -337,6 +340,9 @@ export default {
|
|
|
this.$message.error("请选择考试对象");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ if (this.loading) return;
|
|
|
+ this.loading = true;
|
|
|
this.selectedExamObjectType = this.examObjectType;
|
|
|
const selectedUsers = this.showStudent
|
|
|
? this.selectedUsers
|
|
@@ -346,6 +352,9 @@ export default {
|
|
|
selectedStudents: selectedUsers,
|
|
|
isSelectStudent: this.showStudent,
|
|
|
});
|
|
|
+ setTimeout(() => {
|
|
|
+ this.loading = false;
|
|
|
+ }, 500);
|
|
|
this.cancel();
|
|
|
},
|
|
|
},
|