| | |
| | | <el-dialog |
| | | title="高级查询" |
| | | append-to-body |
| | | width="55vw" |
| | | style="height: 115vh; margin-top: -10vh; overflow: hidden" |
| | | width="46vw" |
| | | style="height: 100vh;overflow: hidden" |
| | | v-dialogDrag |
| | | :visible.sync="isShowDialog" |
| | | lock-scroll |
| | | class="avue-dialog avue-dialog--top" |
| | | top="-3%" |
| | | :close-on-click-modal="false" |
| | | @close="recoverPage"> |
| | | <div class="search-total"> |
| | |
| | | v-for="(item,index) in initOptions" |
| | | :key="item.queryField" |
| | | :span="24"> |
| | | <el-col :span="5"> |
| | | <el-col :span="6"> |
| | | <div class="grid-content"> |
| | | <el-select disabled placeholder="请选择" v-model="searchFormArrays[index].queryField"> |
| | | <el-option |
| | |
| | | <el-select v-else-if="item.fieldType==='combox'" v-model="searchFormArrays[index].fieldValue" placeholder="请选择"> |
| | | <el-option |
| | | v-for="option in item.data" |
| | | :key="option.itemValue" |
| | | :label="option.itemName" |
| | | :value="option.itemValue"> |
| | | :key="option.itemValue || option.value" |
| | | :label="option.itemName || option.label" |
| | | :value="option.itemValue || option.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-switch v-else-if="item.fieldType==='truefalse'" v-model="searchFormArrays[index].fieldValue"></el-switch> |
| | |
| | | </vci-web-refer> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <el-col :span="1"> |
| | | <div class="grid-content"> |
| | | <i class="el-icon-close" @click="removeInput(index)"></i> |
| | | </div> |
| | |
| | | let array = []; |
| | | this.initOptions.forEach((item,index) => { |
| | | if(item.fieldType==='combox') { |
| | | let enumCach = JSON.parse(localStorage.getItem(item.comboxKey)); |
| | | let enumCach = item.data || JSON.parse(localStorage.getItem(item.comboxKey)); |
| | | if(enumCach != null) { |
| | | item.data = enumCach; |
| | | }else { |
| | |
| | | let conditions = []; |
| | | if(item.fieldType==='text'){ |
| | | conditions = this.searchConditions; |
| | | }else if (item.fieldType==='combox'){ |
| | | conditions = this.dateConditions; |
| | | }else if (item.fieldType==='datetime') { |
| | | }else if (item.fieldType==='combox'|| item.fieldType==='truefalse'){ |
| | | conditions = this.switchSearchConditions; |
| | | }else if (item.fieldType==='datetime') { |
| | | conditions = this.dateConditions; |
| | | }else { |
| | | conditions = this.referSearchConditions; |
| | | } |
| | |
| | | |
| | | /** 为参照类型时值选择之后的处理 */ |
| | | setReferValue(data,index){ |
| | | // console.log(index); |
| | | if(data.field) { |
| | | this.searchFormArrays[index][data.fieldValue] = data.value || ''; |
| | | this.initOptions[index][data.showField] = data.text || ''; |
| | | } |
| | | // console.log(this.initOptions[index][data.showField]); |
| | | // console.log(data); |
| | | }, |
| | | |
| | | // 属性切换时查询条件和查询值也需要对输入框进行切换 |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | .search-total { |
| | | border-radius: 4px; |
| | | min-height: 70vh; |
| | | // margin-left: 35px; |
| | | margin-top: -8px; |
| | | overflow-y: auto; |
| | | height: 70vh; |
| | | margin-top: -10px; |
| | | } |
| | | .dialog-search-button { |
| | | border-top: 1px solid #E9E7E7; |
| | | border-bottom: 1px solid #E9E7E7; |
| | | padding: 10px 10px 10px; |
| | | position: fixed; |
| | | display: block; |
| | | background-color: #fff; |
| | | // top: 10%; |
| | | margin-top: -30px; |
| | | width: 50%; |
| | | z-index: 1000; |
| | | margin-bottom: 15px; |
| | | } |
| | | // .search-total > .search-content > .el-row{ |
| | | // margin-bottom: 5px; |
| | |
| | | // } |
| | | // } |
| | | .search-total > .search-content { |
| | | margin-top: 40px; |
| | | } |
| | | .search-total > .search-content > .el-row > .el-col { |
| | | border-radius: 4px; |
| | |
| | | } |
| | | } |
| | | .grid-content > .el-icon-close { |
| | | font-size: 35px; |
| | | font-size: 30px; |
| | | line-height: 40px; |
| | | cursor: pointer; |
| | | color: rgb(222, 130, 105); |
| | | } |
| | | .grid-content > .el-icon-close:hover{ |
| | | font-size: 38px; |
| | | font-size: 30px; |
| | | color: rgb(219, 52, 6); |
| | | } |
| | | .grid-content > .el-select { |