张同海 2 years ago
parent c8c822db6b
commit a08eb48056

@ -129,9 +129,11 @@ export default {
setTimeout(() => { setTimeout(() => {
this.form.setFieldsValue({ this.form.setFieldsValue({
cateCode: record.cateCode cateCode: record.cateCode
.split('[')[1] ? record.cateCode
.split(']')[0] .split('[')[1]
.split(','), .split(']')[0]
.split(',')
: null,
cateName: record.cateName, cateName: record.cateName,
displayName: record.displayName, displayName: record.displayName,
tenantId: record.tenantId, tenantId: record.tenantId,

@ -17,14 +17,8 @@
</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 <a-select v-model="queryParam.cateCode" style="width: 100%" placeholder="请选择分类" allow-clear>
v-model="queryParam.cateCode" <a-select-option v-for="item in CateData" :key="item.id" :value="`[${item.code}]`">
style="width: 100%"
placeholder="请选择分类"
mode="multiple"
allow-clear
>
<a-select-option v-for="item in CateData" :key="item.id" :value="item.code">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
</a-select> </a-select>
@ -46,7 +40,7 @@
</a-col> </a-col>
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
<span class="table-page-search-submitButtons"> <span class="table-page-search-submitButtons">
<a-button type="primary" @click="FnGetData"></a-button> <a-button type="primary" @click="FnQueryData"></a-button>
<a-button style="margin-left: 8px" @click="init"></a-button> <a-button style="margin-left: 8px" @click="init"></a-button>
<!-- <a @click="toggleAdvanced" style="margin-left: 8px"> <!-- <a @click="toggleAdvanced" style="margin-left: 8px">
{{ advanced ? '收起' : '展开' }} {{ advanced ? '收起' : '展开' }}
@ -419,6 +413,11 @@ export default {
this.queryParam.totalResult = res.data.totalRows this.queryParam.totalResult = res.data.totalRows
}) })
}, },
FnQueryData() {
this.queryParam.pageNo = 1
this.queryParam.pageSize = 10
this.FnGetData()
},
/** /**
* 查询参数组装 * 查询参数组装
*/ */

Loading…
Cancel
Save