|
|
|
@ -125,13 +125,59 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
FnQuery() {
|
|
|
|
|
let Rdata = []
|
|
|
|
|
this.loadData.forEach(item => {
|
|
|
|
|
if (item.fieldName.indexOf(this.queryParam.fieldName) > -1) {
|
|
|
|
|
Rdata.push(item)
|
|
|
|
|
this.loading = true
|
|
|
|
|
getDjyTenantConfig({ type: 'booking_default_value' }).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.loadData = JSON.parse(res.data.configJson)
|
|
|
|
|
this.DisplayLoadData = this.loadData
|
|
|
|
|
} else {
|
|
|
|
|
this.loadData = []
|
|
|
|
|
this.$message.warning(res.message)
|
|
|
|
|
}
|
|
|
|
|
this.loading = false
|
|
|
|
|
if (this.queryParam.fieldName) {
|
|
|
|
|
let Rdata = []
|
|
|
|
|
let UpperType = false
|
|
|
|
|
let LowerType = false
|
|
|
|
|
let Upper = this.queryParam.fieldName.toUpperCase()
|
|
|
|
|
let Lower = this.queryParam.fieldName.toLowerCase()
|
|
|
|
|
this.loadData.forEach(item => {
|
|
|
|
|
if (item.fieldName.indexOf(this.queryParam.fieldName) > -1) {
|
|
|
|
|
Rdata.push(item)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.loadData.forEach(item => {
|
|
|
|
|
if (item.fieldName.indexOf(Upper) > -1) {
|
|
|
|
|
UpperType = false
|
|
|
|
|
console.log(item)
|
|
|
|
|
Rdata.forEach(e => {
|
|
|
|
|
console.log(e, item)
|
|
|
|
|
if (e.field == item.field) {
|
|
|
|
|
UpperType = true
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if (!UpperType) {
|
|
|
|
|
Rdata.push(item)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.loadData.forEach(item => {
|
|
|
|
|
if (item.fieldName.indexOf(Lower) > -1) {
|
|
|
|
|
LowerType = false
|
|
|
|
|
Rdata.forEach(e => {
|
|
|
|
|
if (e.field == item.field) {
|
|
|
|
|
LowerType = true
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if (!LowerType) {
|
|
|
|
|
Rdata.push(item)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.DisplayLoadData = Rdata
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.DisplayLoadData = Rdata
|
|
|
|
|
|
|
|
|
|
// this.init()
|
|
|
|
|
},
|
|
|
|
|
FnReset() {
|
|
|
|
@ -172,7 +218,6 @@ export default {
|
|
|
|
|
this.loading = true
|
|
|
|
|
getDjyTenantConfig({ type: 'booking_default_value' }).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
console.log(this.userInfo)
|
|
|
|
|
this.loadData = JSON.parse(res.data.configJson)
|
|
|
|
|
this.DisplayLoadData = this.loadData
|
|
|
|
|
} else {
|
|
|
|
|