|
@@ -26,7 +26,6 @@
|
|
|
<el-select
|
|
|
v-model="formSearch.orgId"
|
|
|
placeholder="请选择"
|
|
|
- filterable
|
|
|
clearable
|
|
|
@change="searchExamList(formSearch.orgId);"
|
|
|
>
|
|
@@ -40,7 +39,12 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="考试">
|
|
|
- <el-select v-model="formSearch.examId" placeholder="请选择">
|
|
|
+ <el-select
|
|
|
+ v-model="formSearch.examId"
|
|
|
+ @change="searchRecords"
|
|
|
+ placeholder="请选择"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="item in examList"
|
|
|
:label="item.examName"
|
|
@@ -64,6 +68,7 @@
|
|
|
type="primary"
|
|
|
icon="el-icon-plus"
|
|
|
:disabled="!hasPermit"
|
|
|
+ v-show="formSearch.examId != ''"
|
|
|
@click="addStructure"
|
|
|
>新增
|
|
|
</el-button>
|
|
@@ -166,15 +171,6 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- let examId = this.formSearch.examId;
|
|
|
- if (this.isEmptyNumber(examId)) {
|
|
|
- this.$notify({
|
|
|
- message: "请选择考试!",
|
|
|
- type: "warning"
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
this.loading = true;
|
|
|
let url = PRINT_API + "/examStructure/list";
|
|
|
this.$http.post(url, this.formSearch).then(
|
|
@@ -193,6 +189,7 @@ export default {
|
|
|
/* 查询考试列表 */
|
|
|
this.formSearch.examId = "";
|
|
|
this.examList = [];
|
|
|
+ this.tableData = [];
|
|
|
|
|
|
if (!this.isEmptyNumber(orgId)) {
|
|
|
let url = PRINT_API + "/printing/project/exam/list?orgId=" + orgId;
|