|
@@ -67,7 +67,7 @@
|
|
|
v-if="permission('/serviceRenew')"
|
|
|
name="1"
|
|
|
>
|
|
|
- <service-renew v-if="activeIndex == 1" @getList="__init" />
|
|
|
+ <service-renew v-if="activeIndex == 1 && tenantInfo" @getList="__init" :tenant="tenantInfo" />
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane
|
|
|
label="云教室充值"
|
|
@@ -75,7 +75,7 @@
|
|
|
v-if="permission('/cloudRecharge')"
|
|
|
name="2"
|
|
|
>
|
|
|
- <cloud-recharge v-if="activeIndex == 2" @getList="__init" />
|
|
|
+ <cloud-recharge v-if="activeIndex == 2 && tenantInfo" @getList="__init" :tenant="tenantInfo" />
|
|
|
</el-tab-pane>
|
|
|
</tab-router>
|
|
|
</div>
|
|
@@ -84,6 +84,7 @@
|
|
|
<script>
|
|
|
import cloudRecharge from '@/views/productService/components/cloudRecharge'
|
|
|
import serviceRenew from '@/views/productService/components/serviceRenew'
|
|
|
+import { tenantInfoInfo } from '@/views/organManager/api'
|
|
|
import { permission } from "@/utils/directivePage";
|
|
|
import { queryTenantInfoSumm } from "./api";
|
|
|
import dayjs from 'dayjs'
|
|
@@ -107,7 +108,8 @@ export default {
|
|
|
balance: 0,
|
|
|
frozenAmount: 0,
|
|
|
balance: 0
|
|
|
- }
|
|
|
+ },
|
|
|
+ tenantInfo: null, // 机构信息
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -122,6 +124,9 @@ export default {
|
|
|
// this.dataInfo.expiryDate = res.data.expiryDate ? dayjs(res.data.expiryDate).format('YYYY-MM-DD') : null
|
|
|
this.dataInfo.expiryDateEnd = res.data.expiryDateEnd ? dayjs(res.data.expiryDateEnd).format('YYYY-MM-DD') : null
|
|
|
this.dataInfo.validRemaining = res.data.validRemaining || 0
|
|
|
+
|
|
|
+ const tenantInfo = await tenantInfoInfo({ id: this.$helpers.tenantId })
|
|
|
+ this.tenantInfo = tenantInfo.data
|
|
|
} catch(e) { }
|
|
|
},
|
|
|
onDetail() {
|