备份
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
<el-table-column prop="invitationType" :label="$t('hostList.invitationType')" width="80">
|
||||
<template #default="scope">
|
||||
|
||||
<el-tag :type="scope.row.invitationType == 1 ? 'success' : 'warning'">
|
||||
<el-tag :type="scope.row.invitationType == 1 ? 'success' : 'warning'" @click="getliveHost">
|
||||
{{ scope.row.invitationType == 1 ? $t('hostList.invitationType1') : $t('hostList.invitationType2') }}
|
||||
</el-tag>
|
||||
</template>
|
||||
@@ -146,7 +146,7 @@
|
||||
|
||||
<script setup>
|
||||
// import { getToken, setToken, removeToken } from '@/utils/storage'
|
||||
import { tkhostdata, dicts, tkhostdetail, downList, getStaffList, managerhosts, upholdinfo, getCountryinfo, accountName } from '@/api/account';
|
||||
import { tkhostdata, dicts, tkhostdetail, downList, getStaffList, managerhosts, upholdinfo, getCountryinfo, accountName, liveHostDetail } from '@/api/account';
|
||||
import { usePythonBridge, } from '@/utils/pythonBridge'
|
||||
import { getUser, setSerch, getSerch } from '@/utils/storage'
|
||||
import { ref, reactive, onMounted } from 'vue';
|
||||
@@ -155,6 +155,7 @@ import { ref, reactive, onMounted } from 'vue';
|
||||
// import { color } from 'echarts';
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
|
||||
const { t } = useI18n()
|
||||
const loading = ref(false)
|
||||
//py方法
|
||||
@@ -358,6 +359,17 @@ function handleClose(done) {
|
||||
}
|
||||
|
||||
|
||||
function getliveHost() {
|
||||
liveHostDetail(
|
||||
{
|
||||
"hostsId": "1296peahh",
|
||||
"tenantId": userInfo.value.tenantId
|
||||
}
|
||||
).then(res => {
|
||||
console.log("直播间信息列表", JSON.stringify(res))
|
||||
})
|
||||
}
|
||||
|
||||
//修改主播维护状态
|
||||
// function handleSelectChange(event, data) {
|
||||
|
||||
@@ -396,14 +408,14 @@ function filterTag(value, row) {
|
||||
//获取国家
|
||||
function getCountry() {
|
||||
getCountryinfo({}).then(res => {
|
||||
console.log(res)
|
||||
// console.log(res)
|
||||
res.forEach(item => {
|
||||
if (item.countryGroupName) {
|
||||
options.value.push({ value: item.countryGroupName, label: item.countryGroupName })
|
||||
|
||||
}
|
||||
})
|
||||
console.log(options.value)
|
||||
// console.log(options.value)
|
||||
}).catch(err => {
|
||||
console.log('getCountry', err)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user