张同海 2 years ago
parent c8c822db6b
commit a08eb48056

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

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

Loading…
Cancel
Save