|
@@ -39,10 +39,10 @@
|
|
clearable
|
|
clearable
|
|
></room-select>
|
|
></room-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="考生:" label-width="55px">
|
|
|
|
|
|
+ <el-form-item label="卷袋号:" label-width="70px">
|
|
<el-input
|
|
<el-input
|
|
- v-model="filter.studentParams"
|
|
|
|
- placeholder="考生/学号/姓名"
|
|
|
|
|
|
+ v-model="filter.packageCode"
|
|
|
|
+ placeholder="请输入"
|
|
clearable
|
|
clearable
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -53,10 +53,12 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div class="part-box-action">
|
|
<div class="part-box-action">
|
|
- <el-button icon="icon icon-download-act">
|
|
|
|
- <a :href="downloadUrl" download="考务数据模板.xlsx"
|
|
|
|
- >考务数据模板下载</a
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ icon="icon icon-download-act"
|
|
|
|
+ :loading="loading"
|
|
|
|
+ @click="toDownloadTemplate"
|
|
|
|
+ >
|
|
|
|
+ 考务数据模板下载
|
|
</el-button>
|
|
</el-button>
|
|
<el-button icon="icon icon-download" type="primary" @click="toExport">
|
|
<el-button icon="icon icon-download" type="primary" @click="toExport">
|
|
导出查询结果
|
|
导出查询结果
|
|
@@ -99,12 +101,13 @@
|
|
scope.row.examEndTime | timestampFilter
|
|
scope.row.examEndTime | timestampFilter
|
|
}}</span>
|
|
}}</span>
|
|
</el-table-column>
|
|
</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="courseNameCode" label="课程(代码)">
|
|
<el-table-column prop="courseNameCode" label="课程(代码)">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="paperNumber" label="试卷编码"></el-table-column>
|
|
<el-table-column prop="paperNumber" label="试卷编码"></el-table-column>
|
|
- <el-table-column prop="examPlace" label="考点"> </el-table-column>
|
|
|
|
- <el-table-column prop="packageCount" label="卷袋数" width="80">
|
|
|
|
- </el-table-column>
|
|
|
|
<el-table-column prop="totalSubjects" label="科次" width="80">
|
|
<el-table-column prop="totalSubjects" label="科次" width="80">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -148,16 +151,28 @@
|
|
>
|
|
>
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <!-- PreviewBusinessDetail -->
|
|
|
|
+ <preview-business-detail
|
|
|
|
+ ref="PreviewBusinessDetail"
|
|
|
|
+ :instance="curRow"
|
|
|
|
+ ></preview-business-detail>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { businessDataListPage, businessTotalData } from "../api";
|
|
|
|
|
|
+import {
|
|
|
|
+ businessDataListPage,
|
|
|
|
+ businessTotalData,
|
|
|
|
+ businessTemplateDownload
|
|
|
|
+} from "../api";
|
|
import UploadButton from "@/components/UploadButton";
|
|
import UploadButton from "@/components/UploadButton";
|
|
|
|
+import PreviewBusinessDetail from "../components/PreviewBusinessDetail";
|
|
|
|
+import { downloadBlob } from "@/plugins/utils";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "business-data-export",
|
|
name: "business-data-export",
|
|
- components: { UploadButton },
|
|
|
|
|
|
+ components: { UploadButton, PreviewBusinessDetail },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
filter: {
|
|
filter: {
|
|
@@ -166,7 +181,7 @@ export default {
|
|
paperNumber: "",
|
|
paperNumber: "",
|
|
examPlace: "",
|
|
examPlace: "",
|
|
examRoom: "",
|
|
examRoom: "",
|
|
- studentParams: ""
|
|
|
|
|
|
+ packageCode: ""
|
|
},
|
|
},
|
|
current: 1,
|
|
current: 1,
|
|
size: this.GLOBAL.pageSize,
|
|
size: this.GLOBAL.pageSize,
|
|
@@ -175,11 +190,12 @@ export default {
|
|
curRow: {},
|
|
curRow: {},
|
|
totalData: {},
|
|
totalData: {},
|
|
curPrintPlan: {},
|
|
curPrintPlan: {},
|
|
|
|
+ loading: false,
|
|
// import
|
|
// import
|
|
- downloadUrl: "/temps/考务数据模板.xlsx",
|
|
|
|
- uploadUrl: "/api/admin/sys/user/import",
|
|
|
|
|
|
+ uploadUrl: "/api/admin/exam/print/data_import",
|
|
uploadData: {
|
|
uploadData: {
|
|
- type: "FILE"
|
|
|
|
|
|
+ type: "FILE",
|
|
|
|
+ printPlanId: ""
|
|
}
|
|
}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -217,6 +233,7 @@ export default {
|
|
},
|
|
},
|
|
planChange(plan) {
|
|
planChange(plan) {
|
|
this.curPrintPlan = plan;
|
|
this.curPrintPlan = plan;
|
|
|
|
+ this.uploadData.printPlanId = plan.id;
|
|
},
|
|
},
|
|
uplaodError(errorData) {
|
|
uplaodError(errorData) {
|
|
this.$notify.error({ title: "错误提示", message: errorData.message });
|
|
this.$notify.error({ title: "错误提示", message: errorData.message });
|
|
@@ -226,9 +243,25 @@ export default {
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
toExport() {},
|
|
toExport() {},
|
|
|
|
+ async toDownloadTemplate() {
|
|
|
|
+ if (this.loading) return;
|
|
|
|
+
|
|
|
|
+ this.loading = true;
|
|
|
|
+ const res = await downloadBlob(() => {
|
|
|
|
+ return businessTemplateDownload();
|
|
|
|
+ }, `考务数据模板.xlsx`).catch(() => {});
|
|
|
|
+
|
|
|
|
+ this.loading = false;
|
|
|
|
+
|
|
|
|
+ if (res) {
|
|
|
|
+ this.$message.success("文件下载成功!");
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("文件下载失败,请重新尝试!");
|
|
|
|
+ }
|
|
|
|
+ },
|
|
toPreview(row) {
|
|
toPreview(row) {
|
|
- this.$ls.set("curBusiness", this.$objAssign(this.filter, row));
|
|
|
|
- this.$router.push({ name: "BusinessDataDetail" });
|
|
|
|
|
|
+ this.curRow = { ...row };
|
|
|
|
+ this.$refs.PreviewBusinessDetail.open();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|