新增关键字搜索

20240912_adapter_z^2
zane 7 months ago
parent d4df6a7d15
commit c140bdeadd

@ -327,6 +327,12 @@
margin-top: 15px
}
.right-search{
position: relative;
float: left;
margin-top: 15px
}
.dialog-one {
width: 45%;

@ -90,6 +90,26 @@
</template>
</el-row>
</el-form>
<div class="right-search" v-if="!showSearch">
<!-- 关键字搜索 按需配置 -->
<el-form v-if="queryList && queryList.length > 0" :model="filterQuery" class="query-form" size="mini" label-width="100px">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList">
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true) && item.columnName == 'keywords'"
class="query-form-item"
:label="item.columnDesc+`:`" :key="item.id">
<el-input
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable
></el-input>
</el-form-item>
</template>
</el-row>
</el-form>
</div>
<div class="top-right-btn">
<el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
@ -454,7 +474,7 @@ export default {
convertDateFun: convertDate,
//-------------end
showSearch: true,
showSearch: false,
filterQuery: {
busType: null,
billNo: null,

@ -80,6 +80,26 @@
</template>
</el-row>
</el-form>
<div class="right-search" v-if="!showSearch">
<!-- 关键字搜索 按需配置 -->
<el-form v-if="queryList && queryList.length > 0" :model="filterQuery" class="query-form" size="mini" label-width="100px">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList">
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true) && item.columnName == 'keywords'"
class="query-form-item"
:label="item.columnDesc+`:`" :key="item.id">
<el-input
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable
></el-input>
</el-form-item>
</template>
</el-row>
</el-form>
</div>
<div class="top-right-btn">
<el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
@ -447,7 +467,7 @@ export default {
convertDateFun: convertDate,
//-------------end
showSearch: true,
showSearch: false,
filterQuery: {
tagStatus: this.tagStatus, //
tagStatusList: this.tagStatusList, //

Loading…
Cancel
Save