Browse Source

fix: change textbook textbookSubscription

DESKTOP-USV654P\pc 2 months ago
parent
commit
35dcf50211

+ 1 - 1
Makefile

@@ -12,7 +12,7 @@ build:
 
 commit:
 	git add . && \
-	git commit --no-verify -m "fix: change examineManager quantizationExamine"
+	git commit --no-verify -m "fix: change textbook textbookSubscription"
 
 checkPre:
 	git checkout pre

+ 5 - 4
src/views/educational/textbookSubscription/components/edit.vue

@@ -198,8 +198,9 @@
   };
   const handleClear = (id) => {
     const data = getDataSource();
-    if (id) {
-      setTableData(data.filter((item: any) => item.id !== id));
+    if (id !== null) {
+      data.splice(id, 1);
+      setTableData(data); //.filter((item: any) => item.id !== id)
     } else {
       setTableData(data.filter((item: any) => !selectRow.value.includes(item.id)));
     }
@@ -322,8 +323,8 @@
               @change="handleChangePrice(record)"
             />
           </template>
-          <template #action="{ record }">
-            <a-button type="link" @click="handleClear(record.id)">移出</a-button>
+          <template #action="{ record, index }">
+            <a-button type="link" @click="handleClear(index)">移出</a-button>
             <a-button type="link" @click="handleViewHistory(record.textbookId)">
               历史征订
             </a-button>

+ 1 - 1
src/views/examineManager/classExamine/components/data.config.ts

@@ -103,7 +103,7 @@ export const enum showConfig {
   createUserName = '登记人',
   scoreTypeCn = '考核类型',
   totalScore = '加扣总分',
-  reason = '考核原因',
+  assessmentProjectName = '考核项目',
 }
 
 export const searchFormSchema: FormSchema[] = [