浏览代码

科目代码相关公共组件

zhangjie 1 年之前
父节点
当前提交
86abf93efb

+ 4 - 4
src/components/SecpSelect.vue

@@ -29,12 +29,12 @@
       ></print-plan-select>
     </el-form-item>
     <el-form-item
-      v-if="filterProps.includes('courseCode')"
+      v-if="filterProps.includes('courseId')"
       label="课程(代码):"
       label-width="110px"
     >
       <course-select
-        v-model.trim="filter.courseCode"
+        v-model.trim="filter.courseId"
         :semester-id="filter.semesterId"
         :exam-id="filter.examId"
         :print-plan-id="filter.printPlanId"
@@ -49,7 +49,7 @@
         :semester-id="filter.semesterId"
         :exam-id="filter.examId"
         :print-plan-id="filter.printPlanId"
-        :course-code="filter.courseCode"
+        :course-id="filter.courseId"
         placeholder="试卷编号"
         clearable
       ></paper-number-select>
@@ -62,7 +62,7 @@ const fullProps = [
   "semesterId",
   "examId",
   "printPlanId",
-  "courseCode",
+  "courseId",
   "paperNumber",
 ];
 export default {

+ 3 - 3
src/components/base/BaseCourseSelect.vue

@@ -10,8 +10,8 @@
   >
     <el-option
       v-for="item in optionList"
-      :key="item.code"
-      :value="item.code"
+      :key="item.id"
+      :value="item.id"
       :label="`${item.name}(${item.code})`"
     >
       <span>{{ `${item.name}(${item.code})` }}</span>
@@ -76,7 +76,7 @@ export default {
       this.$emit("input", this.selected);
       this.$emit(
         "change",
-        this.optionList.find((item) => item.code === this.selected)
+        this.optionList.find((item) => item.id === this.selected)
       );
     },
   },

+ 3 - 3
src/components/base/ClassSelect.vue

@@ -30,7 +30,7 @@ export default {
     clearable: { type: Boolean, default: true },
     semesterId: { type: String, default: "" },
     examId: { type: String, default: "" },
-    courseCode: { type: String, default: "" },
+    courseId: { type: String, default: "" },
   },
   data() {
     return {
@@ -59,7 +59,7 @@ export default {
         this.$emit("change", {});
       }
     },
-    courseCode(val, oldval) {
+    courseId(val, oldval) {
       if (val !== oldval) {
         this.search();
         this.$emit("input", "");
@@ -75,7 +75,7 @@ export default {
       let data = {
         semesterId: this.semesterId,
         examId: this.examId,
-        courseCode: this.courseCode,
+        courseId: this.courseId,
       };
       const res = await conditionListClazz(data);
       this.optionList = res;

+ 2 - 2
src/components/base/CourseCommonSelect.vue

@@ -11,7 +11,7 @@
     <el-option
       v-for="(item, index) in optionList"
       :key="index"
-      :value="item.code"
+      :value="item.id"
       :label="`${item.name}(${item.code})`"
     >
       <span>{{ `${item.name}(${item.code})` }}</span>
@@ -56,7 +56,7 @@ export default {
       this.$emit("input", this.selected);
       this.$emit(
         "change",
-        this.optionList.find((item) => item.code === this.selected)
+        this.optionList.find((item) => item.id === this.selected)
       );
     },
   },

+ 2 - 2
src/components/base/CourseSelect.vue

@@ -11,7 +11,7 @@
     <el-option
       v-for="(item, index) in optionList"
       :key="index"
-      :value="item.code"
+      :value="item.id"
       :label="`${item.name}(${item.code})`"
     >
       <span>{{ `${item.name}(${item.code})` }}</span>
@@ -88,7 +88,7 @@ export default {
       this.$emit("input", this.selected);
       this.$emit(
         "change",
-        this.optionList.find((item) => item.code === this.selected)
+        this.optionList.find((item) => item.id === this.selected)
       );
     },
   },

+ 3 - 3
src/components/base/PaperNumberSelect.vue

@@ -27,7 +27,7 @@ export default {
     clearable: { type: Boolean, default: true },
     semesterId: { type: String, default: "" },
     examId: { type: String, default: "" },
-    courseCode: { type: String, default: "" },
+    courseId: { type: String, default: "" },
     printPlanId: { type: [String, Array], default: "" },
   },
   data() {
@@ -64,7 +64,7 @@ export default {
         this.$emit("change", {});
       }
     },
-    courseCode(val, oldval) {
+    courseId(val, oldval) {
       if (val !== oldval) {
         this.search();
         this.$emit("input", "");
@@ -81,7 +81,7 @@ export default {
         semesterId: this.semesterId,
         examId: this.examId,
         printPlanId: this.printPlanId,
-        courseCode: this.courseCode,
+        courseId: this.courseId,
       };
       const res = await conditionListPaperNumber(objFilterNull(data));
       this.optionList = res;

+ 3 - 3
src/components/base/QuestionTeacherSelect.vue

@@ -27,7 +27,7 @@ export default {
     placeholder: { type: String, default: "请选择" },
     value: { type: [Number, String], default: "" },
     clearable: { type: Boolean, default: true },
-    courseCode: { type: String, default: "" },
+    courseId: { type: String, default: "" },
     schoolId: { type: String, default: "" },
   },
   data() {
@@ -43,7 +43,7 @@ export default {
         this.selected = val;
       },
     },
-    courseCode(val, oldval) {
+    courseId(val, oldval) {
       if (val !== oldval) {
         this.search("");
         this.$emit("input", "");
@@ -65,7 +65,7 @@ export default {
     async search(query) {
       const res = await questionTeatherQuery({
         param: query,
-        courseCode: this.courseCode,
+        courseId: this.courseId,
         schoolId: this.schoolId,
       });
       this.optionList = res;

+ 4 - 4
src/components/base/QuestionTeacherUserSelect.vue

@@ -34,7 +34,7 @@ export default {
     placeholder: { type: String, default: "请选择" },
     value: { type: [Number, String], default: "" },
     clearable: { type: Boolean, default: true },
-    courseCode: { type: String, default: "" },
+    courseId: { type: String, default: "" },
   },
   data() {
     return {
@@ -49,7 +49,7 @@ export default {
         this.selected = val;
       },
     },
-    courseCode(val, oldval) {
+    courseId(val, oldval) {
       if (val !== oldval) {
         this.search("");
         this.$emit("input", "");
@@ -62,10 +62,10 @@ export default {
   },
   methods: {
     async search(query) {
-      if (!this.courseCode) return;
+      if (!this.courseId) return;
       const res = await questionTeatherUserQuery({
         param: query,
-        courseCode: this.courseCode,
+        courseId: this.courseId,
       });
       this.groups = [
         {

+ 4 - 4
src/modules/exam/components/SelectQuestionTeacher.vue

@@ -117,7 +117,7 @@ export default {
         return [];
       },
     },
-    courseCode: {
+    courseId: {
       type: String,
       default: "",
     },
@@ -157,7 +157,7 @@ export default {
     };
   },
   watch: {
-    courseCode(val, oldval) {
+    courseId(val, oldval) {
       if (val !== oldval) {
         this.getUserData();
       }
@@ -192,9 +192,9 @@ export default {
       this.$refs.UserTree.setCheckedKeys(this.selectedUserIds);
     },
     async getUserData() {
-      if (!this.courseCode) return;
+      if (!this.courseId) return;
       let params = {
-        courseCode: this.courseCode,
+        courseId: this.courseId,
       };
       const data = await questionTeatherUserQuery(params);
       this.parseUserData(data);

+ 3 - 3
src/modules/mark/components/markDetail/ModifyMarkerBind.vue

@@ -118,7 +118,7 @@ export default {
         return {};
       },
     },
-    courseCode: {
+    courseId: {
       type: String,
       default: "",
     },
@@ -198,7 +198,7 @@ export default {
       let params = {
         specialPrivilege: "MARKER",
       };
-      if (this.courseCode) params.courseCode = this.courseCode;
+      if (this.courseId) params.courseId = this.courseId;
       const data = await organizationList(params);
       this.parseUserData(data);
       this.getUserList();
@@ -256,7 +256,7 @@ export default {
       };
       this.orgUsers = parseUser(data);
       this.userTree = deepCopy(this.orgUsers);
-      if (this.courseCode && this.orgUsers[0].courseUserList) {
+      if (this.courseId && this.orgUsers[0].courseUserList) {
         this.courseUsers = deepCopy(this.orgUsers[0].courseUserList);
       }
       this.getUserList();

+ 3 - 3
src/modules/mark/components/markParam/ModifyMarkGroup.vue

@@ -235,7 +235,7 @@ export default {
         return [];
       },
     },
-    courseCode: {
+    courseId: {
       type: String,
       default: "",
     },
@@ -380,7 +380,7 @@ export default {
       let params = {
         specialPrivilege: "MARKER",
       };
-      if (this.courseCode) params.courseCode = this.courseCode;
+      if (this.courseId) params.courseId = this.courseId;
       const data = await organizationList(params);
       this.parseUserData(data);
       this.getUserList();
@@ -438,7 +438,7 @@ export default {
       };
       this.orgUsers = parseUser(data);
       this.userTree = deepCopy(this.orgUsers);
-      if (this.courseCode && this.orgUsers[0].courseUserList) {
+      if (this.courseId && this.orgUsers[0].courseUserList) {
         this.courseUsers = deepCopy(this.orgUsers[0].courseUserList);
       }
       this.getUserList();

+ 3 - 3
src/modules/stmms/components/markParam/ModifyMarkerQuestion.vue

@@ -180,7 +180,7 @@ export default {
         return [];
       },
     },
-    courseCode: {
+    courseId: {
       type: String,
       default: "",
     },
@@ -275,7 +275,7 @@ export default {
       let params = {
         specialPrivilege: "MARKER",
       };
-      if (this.courseCode) params.courseCode = this.courseCode;
+      if (this.courseId) params.courseId = this.courseId;
       const data = await organizationList(params);
       this.parseUserData(data);
       this.getUserList();
@@ -333,7 +333,7 @@ export default {
       };
       this.orgUsers = parseUser(data);
       this.userTree = deepCopy(this.orgUsers);
-      if (this.courseCode && this.orgUsers[0].courseUserList) {
+      if (this.courseId && this.orgUsers[0].courseUserList) {
         this.courseUsers = deepCopy(this.orgUsers[0].courseUserList);
       }
       this.getUserList();