新增关键字搜索

yanshishuju
zane 7 months ago
parent 877129f335
commit 464b40687f

@ -80,6 +80,26 @@
</template>
</el-row>
</el-form>
<div class="left-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>
@ -729,7 +749,7 @@ export default {
total: 0,
radioCheck: false,
currentRow: {},
showSearch: true,
showSearch: false,
titleMap: {
add: "新增单据",
edit: "编辑单据",

@ -80,6 +80,26 @@
</template>
</el-row>
</el-form>
<div class="left-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>
@ -511,7 +531,7 @@ export default {
convertDateFun: convertDate,
//-------------end
showSearch: true,
showSearch: false,
isLinkDisabled: false,
filterQuery: {
busType: null,

Loading…
Cancel
Save