|
|
|
@ -17,22 +17,24 @@
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
|
<a-col :md="4" :sm="24">
|
|
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
|
|
<a-popover placement="bottom" v-model="setVisible" trigger="click">
|
|
|
|
|
<template #content>
|
|
|
|
|
<columnSetting :columns="ColumnsQuery" @columnChange="columnChange"></columnSetting>
|
|
|
|
|
</template>
|
|
|
|
|
<span class="tab-btn"> <a-icon type="setting" :style="{ fontSize: '16px' }" /> 设置 </span>
|
|
|
|
|
</a-popover>
|
|
|
|
|
<a-button type="primary" @click="FnGetData">查询</a-button>
|
|
|
|
|
<a-button style="margin-left: 8px" @click="init">重置</a-button>
|
|
|
|
|
<a @click="toggleAdvanced" style="margin-left: 8px">
|
|
|
|
|
<a v-if="ColumnsQueryL > 3" @click="toggleAdvanced" style="margin-left: 8px">
|
|
|
|
|
{{ advanced ? '收起' : '展开' }}
|
|
|
|
|
<a-icon :type="advanced ? 'up' : 'down'" />
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :md="2" :sm="24" class="SetFlex">
|
|
|
|
|
<a-popover placement="bottom" v-model="setVisible" trigger="click">
|
|
|
|
|
<template #content>
|
|
|
|
|
<columnSetting :columns="ColumnsQuery" @columnChange="columnChange"></columnSetting>
|
|
|
|
|
</template>
|
|
|
|
|
<span class="tab-btn"> <a-icon type="setting" :style="{ fontSize: '16px' }" /> 设置 </span>
|
|
|
|
|
</a-popover>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
</a-form>
|
|
|
|
|
</div>
|
|
|
|
@ -61,7 +63,7 @@
|
|
|
|
|
v-for="item in TableColumns"
|
|
|
|
|
:key="`${item.dataIndex}3`"
|
|
|
|
|
:field="item.dataIndex"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:min-width="item.width"
|
|
|
|
|
:title="item.title"
|
|
|
|
|
:align="item.align"
|
|
|
|
|
v-if="item.checked"
|
|
|
|
@ -236,7 +238,8 @@ export default {
|
|
|
|
|
TableColumns: [],
|
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
|
|
loadData: {}
|
|
|
|
|
loadData: {},
|
|
|
|
|
ColumnsQueryL: 0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
@ -252,6 +255,7 @@ export default {
|
|
|
|
|
Data.push(item.dataIndex)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.ColumnsQueryL = Data.length
|
|
|
|
|
DjyUserConfigAdd({
|
|
|
|
|
type: 'customer_cond_cfg',
|
|
|
|
|
configJson: JSON.stringify(Data)
|
|
|
|
@ -322,6 +326,7 @@ export default {
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
})
|
|
|
|
|
DjyCustomerGet({ type: 'customer_cond_cfg' }).then(res => {
|
|
|
|
|
this.ColumnsQueryL = JSON.parse(res.data.configJson).length
|
|
|
|
|
if (JSON.parse(res.data.configJson).length) {
|
|
|
|
|
this.ColumnsQuery = []
|
|
|
|
|
columns.forEach(item => {
|
|
|
|
@ -404,4 +409,8 @@ button {
|
|
|
|
|
height: 45px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.SetFlex {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|