修改自定义表单

dev
lilu 2 years ago
parent 2257dca824
commit 4ce6877033

@ -34,12 +34,8 @@
> >
<a-button type="primary" @click="tableRefresh"></a-button> <a-button type="primary" @click="tableRefresh"></a-button>
<a-button class="reset" @click="tableReset"></a-button> <a-button class="reset" @click="tableReset"></a-button>
<a-button class="more-search" @click="tableMoreRefresh" <a-button class="more-search" @click="tableMoreRefresh"><a-icon type="search"/></a-button>
>多提单号查询<a-icon type="search" <span class="tab-btn" @click="formSetting"><a-icon type="setting" :style="{ marginLeft: '0px' }"/></span>
/></a-button>
<span class="tab-btn" @click="formSetting"
><a-icon type="setting" :style="{ marginLeft: '0px' }"
/></span>
<a class="senior-search" @click="toggleAdvanced"> <a class="senior-search" @click="toggleAdvanced">
{{ advanced ? '收起查询' : '更多查询' }} {{ advanced ? '收起查询' : '更多查询' }}
<!-- <a-icon :type="advanced ? 'up' : 'down'" /> --> <!-- <a-icon :type="advanced ? 'up' : 'down'" /> -->
@ -260,7 +256,7 @@ export default {
} }
this.gridOptions.data = [] this.gridOptions.data = []
this.getList(queryParam) this.getList(queryParam)
if (queryParam == {}) { if (Object.keys(queryParam).length === 0) {
this.getFormData() this.getFormData()
} }
this.getTableList() this.getTableList()
@ -299,8 +295,9 @@ export default {
this.formMoreData = moreData this.formMoreData = moreData
} }
this.formData.map((item, index) => { this.formData.map((item, index) => {
this.$set(this.formRes, item.label, '') this.$set(this.formRes, item.label, this.formRes[item.label] || '')
}) })
this.getList(this.formRes)
console.log('=== 当前数据 ===', this.formRes, this.formData, this.formMoreData) console.log('=== 当前数据 ===', this.formRes, this.formData, this.formMoreData)
const len = this.formData.length % 4 const len = this.formData.length % 4
if (len > 2) { if (len > 2) {

Loading…
Cancel
Save