szh_zidingyibiaoti
张同海 2 years ago
parent c04dd14bbf
commit c1f94f3013

@ -10,7 +10,21 @@
<a-row :gutter="48"> <a-row :gutter="48">
<a-col :md="18"> <a-col :md="18">
<a-row :gutter="48"> <a-row :gutter="48">
<a-col :md="8" :sm="24" v-for="item in ColumnsQuery" :key="`${item.dataIndex}1`"> <a-col :md="8" :sm="24">
<a-form-item label="关键字:">
<a-input v-model="queryParam.KeyWord" allow-clear placeholder="请输入关键字" />
</a-form-item>
</a-col>
<a-col :md="8" :sm="24">
<a-form-item label="模块">
<a-select allow-clear placeholder="请选择模块" v-model="queryParam.module">
<a-select-option v-for="item in ModulesData" :key="item.code" :value="item.code">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<!-- <a-col :md="8" :sm="24" v-for="item in ColumnsQuery" :key="`${item.dataIndex}1`">
<a-form-item <a-form-item
:label="item.title" :label="item.title"
v-if=" v-if="
@ -23,14 +37,15 @@
" "
> >
<a-input v-model="queryParam[item.dataIndex]" allow-clear :placeholder="`请输入${item.title}`" /> <a-input v-model="queryParam[item.dataIndex]" allow-clear :placeholder="`请输入${item.title}`" />
</a-form-item> </a-form-item> -->
<a-form-item :label="item.title" v-if="item.title == '模块'">
<!-- <a-form-item :label="item.title" v-if="item.title == '模块'">
<a-select allow-clear placeholder="请选择模块" v-model="queryParam[item.dataIndex]"> <a-select allow-clear placeholder="请选择模块" v-model="queryParam[item.dataIndex]">
<a-select-option v-for="item in ModulesData" :key="item.code" :value="item.code"> <a-select-option v-for="item in ModulesData" :key="item.code" :value="item.code">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item> -->
<!-- <a-form-item :label="item.title" v-if="item.title == '船名'"> <!-- <a-form-item :label="item.title" v-if="item.title == '船名'">
<a-select <a-select
allow-clear allow-clear
@ -48,7 +63,7 @@
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> --> </a-form-item> -->
</a-col> <!-- </a-col> -->
</a-row> </a-row>
</a-col> </a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">

@ -18,7 +18,7 @@
show-search show-search
:default-active-first-option="false" :default-active-first-option="false"
:show-arrow="false" :show-arrow="false"
:filter-option="false" :filter-option="filterOption"
:not-found-content="null" :not-found-content="null"
v-decorator="['userIdList', { rules: [{ required: true, message: '请选择用户!' }] }]" v-decorator="['userIdList', { rules: [{ required: true, message: '请选择用户!' }] }]"
> >
@ -104,6 +104,9 @@ export default {
}) })
}, },
methods: { methods: {
filterOption(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
handleSearch(value) { handleSearch(value) {
console.log(value) console.log(value)
let Rdata = [] let Rdata = []

@ -13,7 +13,20 @@
</a-col> </a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-form-item label="用户:"> <a-form-item label="用户:">
<a-select placeholder="请选择用户" v-model="queryParam.userId"> <!-- <a-select placeholder="请选择用户" v-model="queryParam.userId">
<a-select-option v-for="item in UserList" :key="item.id" :value="item.id">
{{ item.name }}
</a-select-option>
</a-select> -->
<a-select
show-search
placeholder="请选择用户"
v-model="queryParam.userId"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="filterOption"
:not-found-content="null"
>
<a-select-option v-for="item in UserList" :key="item.id" :value="item.id"> <a-select-option v-for="item in UserList" :key="item.id" :value="item.id">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
@ -171,6 +184,9 @@ export default {
this.init() this.init()
}, },
methods: { methods: {
filterOption(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
RMain(data) { RMain(data) {
let Text = '' let Text = ''
if (data.type == 'FastReport') { if (data.type == 'FastReport') {

Loading…
Cancel
Save