|
|
|
@ -4,11 +4,7 @@
|
|
|
|
|
<!-- <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 == '客户信息'"> -->
|
|
|
|
|
<a-card :bordered="false" :bodyStyle="tstyle">
|
|
|
|
|
<div
|
|
|
|
|
class="table-page-search-wrapper"
|
|
|
|
|
v-if="hasPerm('BookingTemplate:page')"
|
|
|
|
|
:class="advanced ? 'Open' : 'Close'"
|
|
|
|
|
>
|
|
|
|
|
<div class="table-page-search-wrapper" :class="advanced ? 'Open' : 'Close'">
|
|
|
|
|
<a-form layout="inline">
|
|
|
|
|
<a-row :gutter="48">
|
|
|
|
|
<a-col :md="18">
|
|
|
|
@ -285,7 +281,7 @@ export default {
|
|
|
|
|
TableColumns: [],
|
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
|
|
loadData: {},
|
|
|
|
|
loadData: [],
|
|
|
|
|
ColumnsQueryL: 0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -311,7 +307,6 @@ export default {
|
|
|
|
|
: (propString = `${propString},${item.split('[')[1]}`)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(propString)
|
|
|
|
|
}
|
|
|
|
|
return propString
|
|
|
|
|
},
|
|
|
|
@ -319,7 +314,6 @@ export default {
|
|
|
|
|
this.TabsEdit(row)
|
|
|
|
|
},
|
|
|
|
|
onEdit(targetKey, action) {
|
|
|
|
|
console.log(targetKey, action)
|
|
|
|
|
this[action](targetKey)
|
|
|
|
|
},
|
|
|
|
|
remove(targetKey) {
|
|
|
|
@ -342,7 +336,6 @@ export default {
|
|
|
|
|
// activeKey = panes[0].key
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
console.log(panes, activeKey)
|
|
|
|
|
this.panes = panes
|
|
|
|
|
this.activeKey = activeKey
|
|
|
|
|
},
|
|
|
|
@ -448,34 +441,37 @@ 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 => {
|
|
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|
if (res.data) {
|
|
|
|
|
this.ColumnsQueryL = JSON.parse(res.data.configJson).length
|
|
|
|
|
if (JSON.parse(res.data.configJson).length) {
|
|
|
|
|
this.ColumnsQuery = []
|
|
|
|
|
columns.forEach(item => {
|
|
|
|
|
this.ColumnsQuery.push({ ...item, checked: false })
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
this.ColumnsQuery.forEach(item => {
|
|
|
|
|
let type = true
|
|
|
|
|
Arr.forEach(item2 => {
|
|
|
|
|
if (item.dataIndex == item2.dataIndex) {
|
|
|
|
|
type = false
|
|
|
|
|
let Arr = []
|
|
|
|
|
JSON.parse(res.data.configJson).forEach(item => {
|
|
|
|
|
this.ColumnsQuery.forEach(item2 => {
|
|
|
|
|
if (item == item2.dataIndex) {
|
|
|
|
|
item2.checked = true
|
|
|
|
|
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) {
|
|
|
|
|
Arr.push(item)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.ColumnsQuery = Arr
|
|
|
|
|
this.ColumnsQuery = Arr
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|