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