Browse Source

feat: 大题编辑成绩表字段初始属性&数据导入路径字段调整

chenhao 2 years ago
parent
commit
b02b83ef92

+ 1 - 1
src/modules/admin-data/paper/components/rf.vue

@@ -8,7 +8,7 @@
     </template>
     <template #form-item-address>
       <span class="flex items-center">
-        {{ filePath?.rfPath }}
+        {{ filePath }}
       </span>
     </template>
     <template #form-item-upload>

+ 1 - 1
src/modules/admin-data/paper/components/sample.vue

@@ -8,7 +8,7 @@
     </template>
     <template #form-item-address>
       <span class="flex items-center">
-        {{ model.paperType === 'SAMPLE_B' ? filePath?.sampleBPath : filePath?.sampleAPath }}
+        {{ filePath }}
       </span>
     </template>
     <template #form-item-upload>

+ 1 - 1
src/modules/admin-data/paper/components/standard.vue

@@ -2,7 +2,7 @@
   <base-form ref="formRef" :label-width="useVW(88)" :groups="groups" :items="items" :model="model" :disabled="loading">
     <template #form-item-address>
       <span class="flex items-center">
-        {{ filePath?.markStandardPath }}
+        {{ filePath }}
       </span>
     </template>
     <template #form-item-upload>

+ 2 - 1
src/modules/admin-subject/edit-main-question/index.vue

@@ -51,7 +51,7 @@ const { fetch: editMainQuestion, loading: editing } = useFetch('editMainQuestion
 const model = reactive<ExtractApiParams<'addMainQuestion'>>({
   subjectCode: props.subjectCode,
   groupNumber: void 0,
-  category: 'WRITING',
+  category: void 0,
   intervalScore: void 0,
   mainNumber: void 0,
   mainTitle: '',
@@ -128,6 +128,7 @@ const items = computed<EpFormItem[]>(() => [
       prop: 'category',
       slot: {
         placeholder: '成绩表对应字段',
+        clearable: true,
         options: [
           { label: '作文分', value: 'WRITING' },
           { label: '翻译分', value: 'TRANSLATE' },

+ 1 - 1
types/api.d.ts

@@ -843,7 +843,7 @@ declare module 'api-type' {
       /** 科目代码 */
       subjectCode: string
       /** 成绩表对应题目类型,可用值:WRITING,TRANSLATE */
-      category: QuestionCategory
+      category?: QuestionCategory
     }
 
     /** 新增大题 */