|
@@ -2,8 +2,7 @@
|
|
<div>
|
|
<div>
|
|
<el-card class="mb10">
|
|
<el-card class="mb10">
|
|
<slot name="prefix"></slot>
|
|
<slot name="prefix"></slot>
|
|
- <mx-condition ref="condition" :query-params="queryParams" :require-fields="requireFields" @query="handleQuery"
|
|
|
|
- @invalid="handleInvalidQuery"></mx-condition>
|
|
|
|
|
|
+ <mx-condition :query-params="queryParams" :require-fields="requireFields" use-alias-mapping @query="handleQuery" />
|
|
<mx-search-group justify="end" placeholder="请输入内容" v-model="form.paperName" class="mt8" @search="clickSuffix">
|
|
<mx-search-group justify="end" placeholder="请输入内容" v-model="form.paperName" class="mt8" @search="clickSuffix">
|
|
<el-col v-if="isFrontTeacher" :span="16" style="margin-bottom: 0"><span class="f-warning">*收藏后方可发布作业</span>
|
|
<el-col v-if="isFrontTeacher" :span="16" style="margin-bottom: 0"><span class="f-warning">*收藏后方可发布作业</span>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -76,8 +75,9 @@ export default {
|
|
paperArea: ''
|
|
paperArea: ''
|
|
},
|
|
},
|
|
requireFields: ['paperSubject', 'paperGrade', 'paperType', 'paperArea'],
|
|
requireFields: ['paperSubject', 'paperGrade', 'paperType', 'paperArea'],
|
|
|
|
+ firedParams: null,
|
|
form: {
|
|
form: {
|
|
- paperName: ''
|
|
|
|
|
|
+ papername: ''
|
|
},
|
|
},
|
|
pageForm: {
|
|
pageForm: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
@@ -104,12 +104,8 @@ export default {
|
|
// 获取试卷列表
|
|
// 获取试卷列表
|
|
getPaperList() {
|
|
getPaperList() {
|
|
papersList({
|
|
papersList({
|
|
- subjectName: this.queryParams.paperSubject,
|
|
|
|
- gradeName: this.queryParams.paperGrade,
|
|
|
|
- paperType: this.queryParams.paperType,
|
|
|
|
- area: this.queryParams.paperArea,
|
|
|
|
- year: this.queryParams.paperYear,
|
|
|
|
- papername: this.form.paperName,
|
|
|
|
|
|
+ ...this.firedParams,
|
|
|
|
+ ...this.form,
|
|
...this.pageForm
|
|
...this.pageForm
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
this.total = res.total
|
|
this.total = res.total
|
|
@@ -140,7 +136,8 @@ export default {
|
|
handleInvalidQuery() {
|
|
handleInvalidQuery() {
|
|
// todo
|
|
// todo
|
|
},
|
|
},
|
|
- handleQuery() {
|
|
|
|
|
|
+ handleQuery(model) {
|
|
|
|
+ this.firedParams = model
|
|
this.getPaperList()
|
|
this.getPaperList()
|
|
}
|
|
}
|
|
}
|
|
}
|