|
@@ -31,21 +31,7 @@
|
|
|
download-btn-title="违纪导入模版"
|
|
|
:download-handle="downloadHandle"
|
|
|
@upload-success="uploadSuccessHandle"
|
|
|
- >
|
|
|
- <a-form-item
|
|
|
- label="科目"
|
|
|
- :label-col="{ style: { width: '80px' } }"
|
|
|
- label-align="left"
|
|
|
- >
|
|
|
- <SelectSubject
|
|
|
- v-model="uploadData.subjectCode"
|
|
|
- :exam-id="userStore.curExam?.id"
|
|
|
- ></SelectSubject>
|
|
|
- <template #help v-if="showTip">
|
|
|
- <p class="tips-info tips-error">请选择科目</p>
|
|
|
- </template>
|
|
|
- </a-form-item>
|
|
|
- </ImportDialog>
|
|
|
+ />
|
|
|
|
|
|
<!-- TaskProgressDialog -->
|
|
|
<TaskProgressDialog ref="taskProgressDialogRef" :task="curExportTask" />
|
|
@@ -56,7 +42,6 @@ import { ref, onMounted } from "vue";
|
|
|
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
|
|
import type { TableProps } from "ant-design-vue";
|
|
|
import { message } from "ant-design-vue";
|
|
|
-import SelectSubject from "@/components/SelectSubject/index.vue";
|
|
|
|
|
|
import { BreachListItem } from "@/ap/types/resultExport";
|
|
|
import { breachList, breachTemplateDownload } from "@/ap/resultExport";
|
|
@@ -69,7 +54,7 @@ defineOptions({
|
|
|
name: "BreachImport",
|
|
|
});
|
|
|
const userStore = useUserStore();
|
|
|
-const showTip = ref(false);
|
|
|
+
|
|
|
const loading = ref(false);
|
|
|
const dataList = ref<BreachListItem[]>([]);
|
|
|
|
|
@@ -110,7 +95,7 @@ async function onImport(index: number) {
|
|
|
const record = dataList.value[index];
|
|
|
uploadData.value = {
|
|
|
examId: userStore.curExam.id,
|
|
|
- subjectCode: "",
|
|
|
+ subjectCode: record.subjectCode,
|
|
|
};
|
|
|
importDialogRef.value?.open();
|
|
|
}
|