|
@@ -7,12 +7,13 @@
|
|
|
</h2>
|
|
|
<div class="m-core">
|
|
|
<save-form
|
|
|
+ ref="searchForm"
|
|
|
:inline="true"
|
|
|
:model="searchForm"
|
|
|
@submit="search"
|
|
|
@reset="onReSet"
|
|
|
>
|
|
|
- <el-form-item>
|
|
|
+ <el-form-item prop="search">
|
|
|
<el-input
|
|
|
v-model.trim="searchForm.search"
|
|
|
clearable
|
|
@@ -20,7 +21,7 @@
|
|
|
placeholder="请输入乐团编号"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item>
|
|
|
+ <el-form-item prop="organIdList">
|
|
|
<el-select
|
|
|
class="multiple"
|
|
|
filterable
|
|
@@ -39,7 +40,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- musicClassTypeList -->
|
|
|
- <el-form-item>
|
|
|
+ <el-form-item prop="type">
|
|
|
<el-select v-model.trim="searchForm.type" clearable filterable>
|
|
|
<el-option
|
|
|
v-for="(item, index) in musicClassTypeList"
|
|
@@ -216,8 +217,8 @@ export default {
|
|
|
},
|
|
|
async getList() {
|
|
|
try {
|
|
|
- let { organIdList, result } = this.searchForm;
|
|
|
-
|
|
|
+ let { organIdList, ...result } = this.searchForm;
|
|
|
+ console.log(result)
|
|
|
let obj = {
|
|
|
...result,
|
|
|
organIdList: this.searchForm.organIdList.join(","),
|
|
@@ -235,7 +236,10 @@ export default {
|
|
|
this.rules.page = 1;
|
|
|
this.getList();
|
|
|
},
|
|
|
- onReSet() {},
|
|
|
+ onReSet() {
|
|
|
+ this.$refs.searchForm.resetFields()
|
|
|
+ this.search()
|
|
|
+ },
|
|
|
addCompound (row) {
|
|
|
this.compoundList.push(row)
|
|
|
this.compoundList = [...new Set(this.compoundList)]
|