|
@@ -11,7 +11,9 @@
|
|
|
<InvigilatorSelect v-model="form.userId"></InvigilatorSelect>
|
|
|
</el-form-item>
|
|
|
<el-button @click="searchForm">查询</el-button>
|
|
|
- <el-button @click="add">导入</el-button>
|
|
|
+ <el-button @click="importDialog">导入考场设置</el-button>
|
|
|
+ <el-button @click="exportInvigilate">导出考场安排</el-button>
|
|
|
+ <a :href="downloadUrl" download class="mx-2">下载导入模板</a>
|
|
|
<!-- <el-button>导入</el-button> -->
|
|
|
</el-form>
|
|
|
|
|
@@ -54,16 +56,26 @@
|
|
|
:user="selectedUser"
|
|
|
@reload="searchForm"
|
|
|
/>
|
|
|
+
|
|
|
+ <InvigilateImportDialog
|
|
|
+ ref="theDialog2"
|
|
|
+ :examId="form.examId"
|
|
|
+ @reload="searchForm"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import InvigilateManagementDialog from "./InvigilateManagementDialog";
|
|
|
import { searchInvigilators } from "@/api/examwork-invigilate";
|
|
|
+import { INVIGILATOR_IMPORT_TEMPLATE_DOWNLOAD_URL } from "@/constant/constants";
|
|
|
+import InvigilateImportDialog from "./InvigilateImportDialog";
|
|
|
+import { exportInvigilate } from "@/api/examwork-task";
|
|
|
|
|
|
export default {
|
|
|
name: "InvigilateManagement",
|
|
|
components: {
|
|
|
+ InvigilateImportDialog,
|
|
|
InvigilateManagementDialog,
|
|
|
},
|
|
|
data() {
|
|
@@ -77,6 +89,7 @@ export default {
|
|
|
pageSize: 10,
|
|
|
total: 10,
|
|
|
selectedUser: {},
|
|
|
+ downloadUrl: INVIGILATOR_IMPORT_TEMPLATE_DOWNLOAD_URL,
|
|
|
};
|
|
|
},
|
|
|
async created() {},
|
|
@@ -100,14 +113,17 @@ export default {
|
|
|
this.currentPage = 1;
|
|
|
this.searchForm();
|
|
|
},
|
|
|
- add() {
|
|
|
- this.selectedUser = {};
|
|
|
- this.$refs.theDialog.openDialog();
|
|
|
- },
|
|
|
edit(user) {
|
|
|
this.selectedUser = user;
|
|
|
this.$refs.theDialog.openDialog();
|
|
|
},
|
|
|
+ importDialog() {
|
|
|
+ this.$refs.theDialog2.openDialog();
|
|
|
+ },
|
|
|
+ exportInvigilate() {
|
|
|
+ exportInvigilate();
|
|
|
+ this.$notify({ title: "导出调用成功" });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|