|
|
|
@ -133,33 +133,35 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
|
|
|
|
|
this.TypeData = res.data
|
|
|
|
|
let data = []
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
if (data.length) {
|
|
|
|
|
let type2 = false
|
|
|
|
|
data.forEach((item2, index2) => {
|
|
|
|
|
if (item.type == item2[0].type) {
|
|
|
|
|
item2.push(item)
|
|
|
|
|
type2 = true
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if (!type2) {
|
|
|
|
|
data[data.length] = [item]
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
data[0] = [item]
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.WTypeData = data
|
|
|
|
|
})
|
|
|
|
|
this.YWData = this.$options.filters['dictData']('tenant_param_group')
|
|
|
|
|
SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => {
|
|
|
|
|
this.TenantData = res.data.rows
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
FnDJYTenantParamGet() {
|
|
|
|
|
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
|
|
|
|
|
this.TypeData = res.data
|
|
|
|
|
let data = []
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
if (data.length) {
|
|
|
|
|
let type2 = false
|
|
|
|
|
data.forEach((item2, index2) => {
|
|
|
|
|
if (item.type == item2[0].type) {
|
|
|
|
|
item2.push(item)
|
|
|
|
|
type2 = true
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if (!type2) {
|
|
|
|
|
data[data.length] = [item]
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
data[0] = [item]
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.WTypeData = data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
FnTypeD(data) {
|
|
|
|
|
let Rdata = ''
|
|
|
|
|
this.YWData.forEach(item => {
|
|
|
|
@ -189,6 +191,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 初始化方法
|
|
|
|
|
edit(record) {
|
|
|
|
|
this.FnDJYTenantParamGet()
|
|
|
|
|
console.log(record)
|
|
|
|
|
this.FnChangeTypeCode(record.paraCode)
|
|
|
|
|
this.data = record
|
|
|
|
|