|
@@ -7,7 +7,6 @@
|
|
|
v-model.trim="filter.printPlanId"
|
|
|
placeholder="请选择"
|
|
|
clearable
|
|
|
- @change="planChange"
|
|
|
></print-plan-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="课程(代码):" label-width="110px">
|
|
@@ -47,39 +46,30 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label-width="0px">
|
|
|
- <el-button type="primary" icon="icon icon-search" @click="search"
|
|
|
+ <el-button type="primary" icon="el-icon-search" @click="search"
|
|
|
>查询</el-button
|
|
|
>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div class="part-box-action">
|
|
|
<el-button
|
|
|
- icon="icon icon-download-act"
|
|
|
+ icon="el-icon-download"
|
|
|
:loading="loading"
|
|
|
@click="toDownloadTemplate"
|
|
|
>
|
|
|
考务数据模板下载
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
- icon="icon icon-download"
|
|
|
+ icon="el-icon-download"
|
|
|
type="primary"
|
|
|
:loading="loading"
|
|
|
@click="toExport"
|
|
|
>
|
|
|
导出查询结果
|
|
|
</el-button>
|
|
|
- <upload-button
|
|
|
- btn-icon="icon icon-share"
|
|
|
- btn-type="warning"
|
|
|
- btn-content="导入"
|
|
|
- :upload-url="uploadUrl"
|
|
|
- :upload-data="uploadData"
|
|
|
- :format="['xls', 'xlsx']"
|
|
|
- @upload-error="uplaodError"
|
|
|
- @upload-success="uploadSuccess"
|
|
|
- :disabled="!canImport"
|
|
|
- >
|
|
|
- </upload-button>
|
|
|
+ <el-button icon="el-icon-upload2" type="warning" @click="toUpload">
|
|
|
+ 导入
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -100,8 +90,7 @@
|
|
|
<el-table-column prop="examTime" label="考试时间"> </el-table-column>
|
|
|
<el-table-column prop="examPlace" label="考点"> </el-table-column>
|
|
|
<el-table-column prop="examRoom" label="考场"> </el-table-column>
|
|
|
- <el-table-column prop="packageCode" label="卷袋号" width="80">
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column prop="packageCode" label="卷袋号"> </el-table-column>
|
|
|
<el-table-column prop="courseNameCode" label="课程(代码)">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="paperNumber" label="试卷编码"></el-table-column>
|
|
@@ -154,6 +143,11 @@
|
|
|
ref="PreviewBusinessDetail"
|
|
|
:instance="curRow"
|
|
|
></preview-business-detail>
|
|
|
+ <!-- UploadBusinessDataDialog -->
|
|
|
+ <upload-business-data-dialog
|
|
|
+ ref="UploadBusinessDataDialog"
|
|
|
+ @modified="getList"
|
|
|
+ ></upload-business-data-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -164,13 +158,13 @@ import {
|
|
|
businessTemplateDownload,
|
|
|
businessDataExport
|
|
|
} from "../api";
|
|
|
-import UploadButton from "@/components/UploadButton";
|
|
|
import PreviewBusinessDetail from "../components/PreviewBusinessDetail";
|
|
|
+import UploadBusinessDataDialog from "../components/UploadBusinessDataDialog";
|
|
|
import { downloadBlob, parseTimeRangeDateAndTime } from "@/plugins/utils";
|
|
|
|
|
|
export default {
|
|
|
name: "business-data-export",
|
|
|
- components: { UploadButton, PreviewBusinessDetail },
|
|
|
+ components: { PreviewBusinessDetail, UploadBusinessDataDialog },
|
|
|
data() {
|
|
|
return {
|
|
|
filter: {
|
|
@@ -237,16 +231,8 @@ export default {
|
|
|
this.toPage(1);
|
|
|
this.getTotalData();
|
|
|
},
|
|
|
- planChange(plan) {
|
|
|
- this.curPrintPlan = plan;
|
|
|
- this.uploadData.printPlanId = plan.id;
|
|
|
- },
|
|
|
- uplaodError(errorData) {
|
|
|
- this.$notify.error({ title: "错误提示", message: errorData.message });
|
|
|
- },
|
|
|
- uploadSuccess(res) {
|
|
|
- this.$message.success("上传成功!");
|
|
|
- this.getList();
|
|
|
+ toUpload() {
|
|
|
+ this.$refs.UploadBusinessDataDialog.open();
|
|
|
},
|
|
|
async toExport() {
|
|
|
// 异步导出
|