|
@@ -7,7 +7,7 @@
|
|
|
<el-button type="primary" plain v-for="(item,index) in queryData.buttonList.split('')" :key="index">{{item | btnConversion}}</el-button>
|
|
|
</div>
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" >
|
|
|
- <dynamic-form :config="queryParams" @inputs = "changeFn" :formConfig="item" v-for="(item,index) in queryData.queryList" :key='index' />
|
|
|
+ <dynamic-form :ref="item.columnName" :config="queryParams" @inputs = "changeFn" :formConfig="item" v-for="(item,index) in queryData.queryList" :key='index' />
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
@@ -94,6 +94,16 @@
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
+ for(let item of this.queryData.queryList){
|
|
|
+ if(item.htmlType == 'checkbox'){
|
|
|
+ this.queryParams[item.columnName] = this.$refs[item.columnName][0].config
|
|
|
+ }else if(item.htmlType == 'imageUpload'){
|
|
|
+ console.log(this.$refs[item.columnName][0].config,7777)
|
|
|
+ } else{
|
|
|
+ this.queryParams[item.columnName] = this.$refs[item.columnName][0].config[item.columnName]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(this.queryParams,22311)
|
|
|
this.getList();
|
|
|
},
|
|
|
getList() {
|
|
@@ -105,19 +115,13 @@
|
|
|
}).then(res => {
|
|
|
let data = res.data
|
|
|
this.queryData = data
|
|
|
- console.log( this.queryData.queryList)
|
|
|
- this.queryData.queryList.filter(route => {
|
|
|
- if(route.htmlType == 'checkbox'){
|
|
|
- route.sysDictDatatwo = []
|
|
|
- route.sysDictDatatwo.push(route.columnName)
|
|
|
- // route.sysDictData.filter(router=>{
|
|
|
- // route.sysDictDatatwo.push(router.dictLabel)
|
|
|
- // console.log( route.sysDictDatatwo)
|
|
|
- // })
|
|
|
- console.log(route.sysDictDatatwo,846)
|
|
|
- }
|
|
|
- })
|
|
|
- console.log(this.queryData.queryList)
|
|
|
+ // this.queryData.queryList.filter(route => {
|
|
|
+ // if(route.htmlType == 'checkbox'){
|
|
|
+ // route.sysDictDatatwo = []
|
|
|
+ // route.sysDictDatatwo.push(route.columnName)
|
|
|
+ // console.log(route.sysDictDatatwo,846)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
})
|
|
|
},
|
|
|
handleChange(val) {
|