|
|
|
@ -101,8 +101,10 @@
|
|
|
|
|
:align="item.align"
|
|
|
|
|
v-if="item.title != '租户'"
|
|
|
|
|
>
|
|
|
|
|
<template #default="{ row }" v-if="item.title == '租户参数类别'">
|
|
|
|
|
<span>{{ FnTurnD(row.paraCode) }}</span>
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<span v-if="item.title == '租户参数类别'">{{ FnTurnD(row.paraCode) }}</span>
|
|
|
|
|
<span v-if="item.title == '租户参数名称'">{{ FnRTypeCode(row) }}</span>
|
|
|
|
|
<span v-else>{{ row[item.dataIndex] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-column>
|
|
|
|
|
<vxe-column title="操作" fixed="right" width="200" align="center">
|
|
|
|
@ -142,7 +144,8 @@ import {
|
|
|
|
|
DJYTenantParamGetParamValue,
|
|
|
|
|
SysTenantPage,
|
|
|
|
|
DJYTenantParamGet,
|
|
|
|
|
DJYTenantParamDeleteParamValue
|
|
|
|
|
DJYTenantParamDeleteParamValue,
|
|
|
|
|
DJYTenantParamGetParamItem
|
|
|
|
|
} from '@/api/modular/main/DJYTenantParam'
|
|
|
|
|
import addForm from './addItemForm.vue'
|
|
|
|
|
import editForm from './editItemForm.vue'
|
|
|
|
@ -182,7 +185,7 @@ export default {
|
|
|
|
|
dataIndex: 'paraCode'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '租户参数代码',
|
|
|
|
|
title: '租户参数名称',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: '80',
|
|
|
|
|
dataIndex: 'itemCode'
|
|
|
|
@ -212,6 +215,24 @@ export default {
|
|
|
|
|
this.init()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
FnRTypeCode(e) {
|
|
|
|
|
let RData = ''
|
|
|
|
|
this.TypeData.forEach(item => {
|
|
|
|
|
if (item.paraCode == e.paraCode) {
|
|
|
|
|
if (item.itemCodeData.length) {
|
|
|
|
|
item.itemCodeData.forEach(item2 => {
|
|
|
|
|
if (item2.itemCode == e.itemCode) {
|
|
|
|
|
console.log(item2, 'item2')
|
|
|
|
|
RData = item2.itemName
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
RData = e.itemCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
return RData
|
|
|
|
|
},
|
|
|
|
|
tenantIdSearch(value) {
|
|
|
|
|
if (value) {
|
|
|
|
|
SysTenantPage({ pageNo: 1, pageSize: 9999, name: value }).then(res => {
|
|
|
|
@ -265,6 +286,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.WTypeData = data
|
|
|
|
|
this.TypeData.forEach(item => {
|
|
|
|
|
DJYTenantParamGetParamItem({ paraCode: item.paraCode }).then(res => {
|
|
|
|
|
item.itemCodeData = res.data
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => {
|
|
|
|
|
this.TenantData = res.data.rows
|
|
|
|
|