|
|
@ -4,11 +4,7 @@
|
|
|
|
<!-- <a-tab-pane v-for="pane in panes" :key="pane.key" :tab="pane.title" :closable="pane.key == 0 ? false : true"> -->
|
|
|
|
<!-- <a-tab-pane v-for="pane in panes" :key="pane.key" :tab="pane.title" :closable="pane.key == 0 ? false : true"> -->
|
|
|
|
<!-- <div v-if="pane.title == '客户信息'"> -->
|
|
|
|
<!-- <div v-if="pane.title == '客户信息'"> -->
|
|
|
|
<a-card :bordered="false" :bodyStyle="tstyle">
|
|
|
|
<a-card :bordered="false" :bodyStyle="tstyle">
|
|
|
|
<div
|
|
|
|
<div class="table-page-search-wrapper" :class="advanced ? 'Open' : 'Close'">
|
|
|
|
class="table-page-search-wrapper"
|
|
|
|
|
|
|
|
v-if="hasPerm('BookingTemplate:page')"
|
|
|
|
|
|
|
|
:class="advanced ? 'Open' : 'Close'"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-form layout="inline">
|
|
|
|
<a-form layout="inline">
|
|
|
|
<a-row :gutter="48">
|
|
|
|
<a-row :gutter="48">
|
|
|
|
<a-col :md="18">
|
|
|
|
<a-col :md="18">
|
|
|
@ -448,34 +444,37 @@ export default {
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.$forceUpdate()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
DjyCustomerGet({ type: 'customer_cond_cfg' }).then(res => {
|
|
|
|
DjyCustomerGet({ type: 'customer_cond_cfg' }).then(res => {
|
|
|
|
this.ColumnsQueryL = JSON.parse(res.data.configJson).length
|
|
|
|
if (res.data) {
|
|
|
|
if (JSON.parse(res.data.configJson).length) {
|
|
|
|
this.ColumnsQueryL = JSON.parse(res.data.configJson).length
|
|
|
|
this.ColumnsQuery = []
|
|
|
|
if (JSON.parse(res.data.configJson).length) {
|
|
|
|
columns.forEach(item => {
|
|
|
|
this.ColumnsQuery = []
|
|
|
|
this.ColumnsQuery.push({ ...item, checked: false })
|
|
|
|
columns.forEach(item => {
|
|
|
|
})
|
|
|
|
this.ColumnsQuery.push({ ...item, checked: false })
|
|
|
|
let Arr = []
|
|
|
|
|
|
|
|
JSON.parse(res.data.configJson).forEach(item => {
|
|
|
|
|
|
|
|
this.ColumnsQuery.forEach(item2 => {
|
|
|
|
|
|
|
|
if (item == item2.dataIndex) {
|
|
|
|
|
|
|
|
item2.checked = true
|
|
|
|
|
|
|
|
Arr.push(item2)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
let Arr = []
|
|
|
|
this.ColumnsQuery.forEach(item => {
|
|
|
|
JSON.parse(res.data.configJson).forEach(item => {
|
|
|
|
let type = true
|
|
|
|
this.ColumnsQuery.forEach(item2 => {
|
|
|
|
Arr.forEach(item2 => {
|
|
|
|
if (item == item2.dataIndex) {
|
|
|
|
if (item.dataIndex == item2.dataIndex) {
|
|
|
|
item2.checked = true
|
|
|
|
type = false
|
|
|
|
Arr.push(item2)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.ColumnsQuery.forEach(item => {
|
|
|
|
|
|
|
|
let type = true
|
|
|
|
|
|
|
|
Arr.forEach(item2 => {
|
|
|
|
|
|
|
|
if (item.dataIndex == item2.dataIndex) {
|
|
|
|
|
|
|
|
type = false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (type) {
|
|
|
|
|
|
|
|
Arr.push(item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if (type) {
|
|
|
|
this.ColumnsQuery = Arr
|
|
|
|
Arr.push(item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.ColumnsQuery = Arr
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.$forceUpdate()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|