diff --git a/src/components/NameFilterSelect/index.vue b/src/components/NameFilterSelect/index.vue
new file mode 100644
index 00000000..bbc5f735
--- /dev/null
+++ b/src/components/NameFilterSelect/index.vue
@@ -0,0 +1,137 @@
+
+
+
+
+ {{ item.name }}
+ ({{ item.code }})
+
+
+
+
+
+
+
+
diff --git a/src/views/course/CourseManage.vue b/src/views/course/CourseManage.vue
index 3bd3e2e4..9ea1b149 100644
--- a/src/views/course/CourseManage.vue
+++ b/src/views/course/CourseManage.vue
@@ -18,14 +18,15 @@
- signup.aid = aids" @handleClose="signup.aid = []" />
+
@@ -86,14 +87,16 @@
- learningRecords.aid = aids"
+ @handleClose="learningRecords.aid = []" />
+
@@ -272,14 +275,17 @@
- commonResourceStudyPeopleQuery.aid = aids"
+ @handleClose="commonResourceStudyPeopleQuery.aid = []" />
+
+
@@ -347,6 +353,9 @@
+ examResourceStudyPeopleQuery.aid = aids"
+ @handleClose="examResourceStudyPeopleQuery.aid = []" />
+
+
@@ -438,8 +447,11 @@ import apiUser from "@/api/system/user.js";
import apiStudy from "@/api/modules/courseStudy.js";
import { getToken } from "@/utils/token";
import axios from "axios";
+import NameFilterSelect from "@/components/NameFilterSelect/index.vue";
+NameFilterSelect;
export default {
+ components: { NameFilterSelect },
computed: {
...mapGetters(["resOwnerMap", "sysTypeMap"]),
},
@@ -601,8 +613,6 @@ export default {
status: "",
aid: [],
},
- nameList: [],
- nameListLoading: false,
};
},
mounted() {
@@ -622,39 +632,6 @@ export default {
loadSysTypes: "sysType/loadSysTypes",
}),
- async initNameList(keyword) {
- console.log("initNameList", keyword);
- if (!keyword) {
- return;
- }
- this.nameListLoading = true;
- try {
- const res = await apiUserbasic.selectUser(keyword);
- this.nameListLoading = false;
-
- if (res && res.status === 200) {
- const resultList = res.result || [];
- this.nameList = resultList
- .map((item) => this.formatCreatorItem(item))
- .filter((item) => item.userId);
- } else {
- this.creatorOptions = [];
- }
- } catch (error) {
- this.nameList = [];
- this.nameListLoading = false;
- } finally {
- this.nameListLoading = false;
- }
- },
-
- formatCreatorItem(item = {}) {
- return {
- userId: item.id,
- name: item.realName,
- code: item.userNo,
- };
- },
resetCommonResourceQuery() {
this.commonResourceStudyPeopleQuery = {
@@ -714,7 +691,7 @@ export default {
contentId: this.rousourceRow.contentId,
pageIndex: this.examResourceStudyPeopleQuery.pageIndex,
pageSize: this.examResourceStudyPeopleQuery.pageSize,
- name: '',
+ name: "",
status: this.examResourceStudyPeopleQuery.status,
aid: this.examResourceStudyPeopleQuery.aid.join(","),
})
@@ -1137,7 +1114,6 @@ export default {
},
handleTabClick(tab) {
this.tabName = tab.name;
- this.nameList = [];
if (tab.name === "second") {
this.getSignupList();
} else if (tab.name === "third") {