|
@@ -8,6 +8,21 @@
|
|
|
:inline="true"
|
|
|
label-width="70px"
|
|
|
>
|
|
|
+ <el-form-item label="考试">
|
|
|
+ <el-select
|
|
|
+ v-model="formSearch.examId"
|
|
|
+ class="input"
|
|
|
+ filterable
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in examList4Search"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="学习中心">
|
|
|
<el-select
|
|
|
v-model="formSearch.orgId"
|
|
@@ -27,6 +42,31 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="课程">
|
|
|
+ <el-select
|
|
|
+ v-model="formSearch.courseId"
|
|
|
+ class="input"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in courseList4Search"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name + ' - ' + item.code"
|
|
|
+ :value="item.id"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="学生姓名">
|
|
|
+ <el-input v-model="formSearch.studentName" class="input" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="学号">
|
|
|
+ <el-input v-model="formSearch.studentCode" class="input" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="证件号">
|
|
|
+ <el-input v-model="formSearch.identityNumber" class="input" />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button
|
|
|
size="small"
|
|
@@ -34,7 +74,9 @@
|
|
|
@click="resetPageAndSearchForm"
|
|
|
>查询</el-button
|
|
|
>
|
|
|
- <el-button size="small" type="primary">导出</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="exportHandler"
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-table
|
|
@@ -71,7 +113,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { CORE_API } from "@/constants/constants.js";
|
|
|
+import { CORE_API, EXAM_WORK_API } from "@/constants/constants.js";
|
|
|
import { mapState } from "vuex";
|
|
|
export default {
|
|
|
name: "IpConfig",
|
|
@@ -80,19 +122,38 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- formSearch: {},
|
|
|
+ formSearch: {
|
|
|
+ examId: "",
|
|
|
+ orgId: "",
|
|
|
+ courseId: "",
|
|
|
+ studentName: "",
|
|
|
+ studentCode: "",
|
|
|
+ identityNumber: "",
|
|
|
+ },
|
|
|
getOrgList4SearchLoading: false,
|
|
|
orgList4Search: [],
|
|
|
tableData: [],
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
total: 10,
|
|
|
+ examList4Search: [],
|
|
|
+ courseList4Search: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getOrgList4Search("");
|
|
|
+ this.queryExams4Search("");
|
|
|
+ this.getCourses4Search("");
|
|
|
},
|
|
|
methods: {
|
|
|
+ getCourses4Search(query) {
|
|
|
+ this.courseLoading4Search = true;
|
|
|
+ this.$httpWithMsg
|
|
|
+ .get(CORE_API + "/course/query?name=" + query)
|
|
|
+ .then((response) => {
|
|
|
+ this.courseList4Search = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
getOrgList4Search(orgName) {
|
|
|
this.getOrgList4SearchLoading = true;
|
|
|
let url =
|
|
@@ -112,11 +173,40 @@ export default {
|
|
|
this.getOrgList4SearchLoading = false;
|
|
|
});
|
|
|
},
|
|
|
+ queryExams4Search() {
|
|
|
+ this.$httpWithMsg
|
|
|
+ .get(EXAM_WORK_API + "/exam/queryByNameLike?enable=true&name=" + name)
|
|
|
+ .then((response) => {
|
|
|
+ this.examList4Search = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
resetPageAndSearchForm() {
|
|
|
this.currentPage = 1;
|
|
|
this.searchForm();
|
|
|
},
|
|
|
- searchForm() {},
|
|
|
+ searchForm() {
|
|
|
+ if (!this.formSearch.examId) {
|
|
|
+ this.$notify({
|
|
|
+ type: "warning",
|
|
|
+ message: "请选择考试",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let url = "/api/ecs_oe_admin/reexamine/log/list";
|
|
|
+ this.$httpWithMsg
|
|
|
+ .post(url, null, {
|
|
|
+ params: {
|
|
|
+ ...this.formSearch,
|
|
|
+ },
|
|
|
+ headers: {
|
|
|
+ "content-type": "application/x-www-form-urlencoded",
|
|
|
+ },
|
|
|
+ })
|
|
|
+ .then((response) => {
|
|
|
+ this.tableData = response.data.content || [];
|
|
|
+ this.total = response.data.totalElements;
|
|
|
+ });
|
|
|
+ },
|
|
|
handleCurrentChange(val) {
|
|
|
this.currentPage = val;
|
|
|
this.searchForm();
|
|
@@ -129,8 +219,33 @@ export default {
|
|
|
this.curRow = item;
|
|
|
this.showEditDialog = true;
|
|
|
},
|
|
|
+ exportHandler() {
|
|
|
+ if (!this.formSearch.examId) {
|
|
|
+ this.$notify({
|
|
|
+ type: "warning",
|
|
|
+ message: "请选择考试",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var param = new URLSearchParams(this.formSearch);
|
|
|
+ window.open(
|
|
|
+ "/api/ecs_oe_admin/reexamine/log/list/export" +
|
|
|
+ "?$key=" +
|
|
|
+ this.user.key +
|
|
|
+ "&$token=" +
|
|
|
+ this.user.token +
|
|
|
+ "&" +
|
|
|
+ param
|
|
|
+ );
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style></style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.box-body {
|
|
|
+ .input {
|
|
|
+ width: 200px !important;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|