|
@@ -7,13 +7,13 @@
|
|
|
<SearchBlock :searchList="blockSearchList"></SearchBlock>
|
|
<SearchBlock :searchList="blockSearchList"></SearchBlock>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="content_right">
|
|
<div class="content_right">
|
|
|
- <el-button class="button_refresh">批量导入</el-button>
|
|
|
|
|
|
|
+ <el-button class="button_refresh" @click="OpenBatchImportDialog">批量导入</el-button>
|
|
|
<el-button class="button_background" @click="OpenSchoolFormDialog()">新增学校</el-button>
|
|
<el-button class="button_background" @click="OpenSchoolFormDialog()">新增学校</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<FormSearchGroup :searchList="formSearchList"></FormSearchGroup>
|
|
<FormSearchGroup :searchList="formSearchList"></FormSearchGroup>
|
|
|
- <Table :tableColumns="tableColumns" :tableData="tableData">
|
|
|
|
|
|
|
+ <Table :tableColumns="publicSeasTableColumns" :tableData="tableData">
|
|
|
<template #operation="{row}">
|
|
<template #operation="{row}">
|
|
|
<div class="table_row_option">
|
|
<div class="table_row_option">
|
|
|
<span class="button_editor">认领</span>
|
|
<span class="button_editor">认领</span>
|
|
@@ -30,6 +30,24 @@
|
|
|
v-model:visible="schoolVisible"
|
|
v-model:visible="schoolVisible"
|
|
|
:defaultFormData="schoolDefaultFormData">
|
|
:defaultFormData="schoolDefaultFormData">
|
|
|
</SchoolFormDialog>
|
|
</SchoolFormDialog>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 批量导入 弹窗 -->
|
|
|
|
|
+ <FormDialog class="batch_import_form" width="548px" title="批量导入" :visible="batchImportVisible"
|
|
|
|
|
+ :submitLoading="batchImportSubmitLoading"
|
|
|
|
|
+ :defaultFormData="{}" :formItemList="batchImportFormItemList"
|
|
|
|
|
+ @close="CloseBatchImportDialog"
|
|
|
|
|
+ @confirm="HandleBatchImportComfirm">
|
|
|
|
|
+ <template #templateFile>
|
|
|
|
|
+ <el-button class="button_refresh">下载模板</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #tableTemplate>
|
|
|
|
|
+ <Table :hidePagination="true" :tableColumns="templateTableColumns" :tableData="[{},{}]" />
|
|
|
|
|
+ <div style="font-size: 12px;">用于分析同一份试卷内不同试卷类型的得分、排名等情况。可下载模块进行填写后导入。</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </FormDialog>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -41,9 +59,12 @@ import {formSearchList} from './formSearchGroup';
|
|
|
import SearchBlock from '@/baseComponents/SearchBlock.vue';
|
|
import SearchBlock from '@/baseComponents/SearchBlock.vue';
|
|
|
import { blockSearchList } from './searchBlock';
|
|
import { blockSearchList } from './searchBlock';
|
|
|
import Table from '@/baseComponents/Table.vue';
|
|
import Table from '@/baseComponents/Table.vue';
|
|
|
-import {tableColumns} from './table'
|
|
|
|
|
|
|
+import {publicSeasTableColumns,templateTableColumns} from './table'
|
|
|
|
|
|
|
|
import SchoolFormDialog from '@/components/SchoolFormDialog/index.vue'
|
|
import SchoolFormDialog from '@/components/SchoolFormDialog/index.vue'
|
|
|
|
|
+import FormDialog from '@/baseComponents/FormDialog.vue';
|
|
|
|
|
+
|
|
|
|
|
+import {batchImportFormItemList} from './formDialog'
|
|
|
|
|
|
|
|
|
|
|
|
|
// 表格数据
|
|
// 表格数据
|
|
@@ -106,6 +127,23 @@ const OpenSchoolFormDialog = (row?:any)=>{
|
|
|
schoolVisible.value = true
|
|
schoolVisible.value = true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 批量导入弹窗有关数据
|
|
|
|
|
+
|
|
|
|
|
+const batchImportVisible = ref(false)
|
|
|
|
|
+const batchImportSubmitLoading = ref(false)
|
|
|
|
|
+
|
|
|
|
|
+const OpenBatchImportDialog = ()=>{
|
|
|
|
|
+ batchImportVisible.value = true
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const CloseBatchImportDialog = ()=>{
|
|
|
|
|
+ batchImportVisible.value = false
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const HandleBatchImportComfirm = ()=>{
|
|
|
|
|
+ CloseBatchImportDialog()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
@@ -118,4 +156,10 @@ const OpenSchoolFormDialog = (row?:any)=>{
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+.batch_import_form{
|
|
|
|
|
+ :deep(.el-dialog__body){
|
|
|
|
|
+ min-height: 345px !important;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
</style>
|
|
</style>
|