张同海 2 years ago
parent 05d7977822
commit 15553283b4

@ -79,8 +79,8 @@
:align="item.align" :align="item.align"
v-if="item.title != '租户'" v-if="item.title != '租户'"
> >
<template #default="{ row }" v-if="item.title == '类型'"> <template #default="{ row }" v-if="item.title == '租户参数类别'">
<span>{{ FnTurnD(row.typeCode) }}</span> <span>{{ FnTurnD(row.paraCode) }}</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">
@ -119,6 +119,7 @@
import { import {
DJYTenantParamGetParamValue, DJYTenantParamGetParamValue,
SysTenantPage, SysTenantPage,
DJYTenantParamGet,
DJYTenantParamDeleteParamValue DJYTenantParamDeleteParamValue
} from '@/api/modular/main/DJYTenantParam' } from '@/api/modular/main/DJYTenantParam'
import { sysDictDataPage } from '@/api/modular/system/dictDataManage' import { sysDictDataPage } from '@/api/modular/system/dictDataManage'
@ -159,10 +160,10 @@ export default {
dataIndex: 'paraCode' dataIndex: 'paraCode'
}, },
{ {
title: '租户参数名称', title: '租户参数代码',
align: 'center', align: 'center',
width: '80', width: '80',
dataIndex: 'itemName' dataIndex: 'itemCode'
}, },
// itemCode // itemCode
{ {
@ -181,8 +182,8 @@ export default {
created() {}, created() {},
mounted() { mounted() {
this.init() this.init()
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '349716496130117' }).then(res => { DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
this.TypeData = res.data.rows this.TypeData = res.data
console.log(this.TypeData) console.log(this.TypeData)
}) })
}, },
@ -195,10 +196,11 @@ export default {
} }
}, },
FnTurnD(data) { FnTurnD(data) {
console.log(data)
let Rdata = '' let Rdata = ''
this.TypeData.forEach(item => { this.TypeData.forEach(item => {
if (item.code == data) { if (item.paraCode == data) {
Rdata = item.value Rdata = item.paraName
} }
}) })
return Rdata return Rdata

Loading…
Cancel
Save