Ver código fonte

feat: 导入数据接口字段调整

chenhao 2 anos atrás
pai
commit
12b104ef3d

+ 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?.sampPath }}
+        {{ filePath?.rfPath }}
       </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">
-        {{ filePath?.sampPath }}
+        {{ model.paperType === 'SAMPLE_B' ? filePath?.sampleBPath : filePath?.sampleAPath }}
       </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?.sampPath }}
+        {{ filePath?.markStandardPath }}
       </span>
     </template>
     <template #form-item-upload>

+ 4 - 1
types/api.d.ts

@@ -266,7 +266,10 @@ declare module 'api-type' {
     type ImportMarkingData = BaseDefine<MarkingDataImport>
 
     /** 获取导入文件路径 */
-    type GetImportFilePath = BaseDefine<null, { rfPath: string; sampPath: string; standardPath: string }>
+    type GetImportFilePath = BaseDefine<
+      null,
+      { rfPath: string; sampleAPath: string; sampleBPath: string; markStandardPath: string }
+    >
 
     interface SamplePaperImport {
       file?: File