|
@@ -1,34 +1,3 @@
|
|
|
-<!-- address: "浙江省,杭州市,萧山区 山阴路688号恒隆广场B座1217"
|
|
|
-adminId: null
|
|
|
-appListPicUrl: null
|
|
|
-bindShowerId: null
|
|
|
-bindShowerName: null
|
|
|
-bindShowerNameList: null
|
|
|
-city: null
|
|
|
-contractPhone: "18819272208"
|
|
|
-createTime: null
|
|
|
-createUserDeptId: 208
|
|
|
-createUserId: 367
|
|
|
-deleted: 0
|
|
|
-id: 1046543
|
|
|
-introduceVideo: null
|
|
|
-introduceVideoCover: null
|
|
|
-latitude: 30.178317
|
|
|
-liveRoomUrl: "https://test.4dkankan.com/shop.html?m=t-CUsa1i2"
|
|
|
-livestreamStatus: 0
|
|
|
-longitude: 120.262421
|
|
|
-name: "自动hdr室外"
|
|
|
-picList: null
|
|
|
-sceneName: "自动hdr室外"
|
|
|
-sceneNum: "t-CUsa1i2"
|
|
|
-sceneUrl: "https://test.4dkankan.com/smobile.html?m=t-CUsa1i2"
|
|
|
-shareWxQrCode: "https://houseoss.4dkankan.com/domain/shop/image/t-CUsa1i21637049206783_QRCode.png"
|
|
|
-simpleDesc: "自动hdr室外"
|
|
|
-sortOrder: 100
|
|
|
-token: null
|
|
|
-type: 0
|
|
|
-updateTime: null
|
|
|
-updateUserId: null -->
|
|
|
<template>
|
|
|
<div class="p-4">
|
|
|
<BasicTable @register="registerTable">
|
|
@@ -49,7 +18,7 @@ updateUserId: null -->
|
|
|
:actions="[
|
|
|
{
|
|
|
icon: 'eos-icons:role-binding',
|
|
|
- label: '绑定主播',
|
|
|
+ label: t('routes.scenes.bindAnchor'),
|
|
|
color: 'warning',
|
|
|
onClick: handleBindAnchor.bind(null, record),
|
|
|
},
|
|
@@ -107,48 +76,48 @@ updateUserId: null -->
|
|
|
width: 100,
|
|
|
},
|
|
|
{
|
|
|
- title: '直播间名称',
|
|
|
+ title: t('routes.scenes.anchorRoom'),
|
|
|
dataIndex: 'name',
|
|
|
width: 130,
|
|
|
},
|
|
|
{
|
|
|
- title: '类型',
|
|
|
+ title: t('common.type'),
|
|
|
dataIndex: 'houseType',
|
|
|
slots: { customRender: 'houseType' },
|
|
|
width: 100,
|
|
|
},
|
|
|
{
|
|
|
- title: '直播间封面',
|
|
|
+ title: t('routes.scenes.appListPicUrl'),
|
|
|
dataIndex: 'appListPicUrl',
|
|
|
slots: { customRender: 'cover' },
|
|
|
width: 150,
|
|
|
},
|
|
|
{
|
|
|
- title: '排序',
|
|
|
+ title: t('routes.scenes.sortOrder'),
|
|
|
dataIndex: 'sortOrder',
|
|
|
width: 150,
|
|
|
sorter: true,
|
|
|
},
|
|
|
{
|
|
|
- title: '场景链接',
|
|
|
+ title: t('routes.scenes.webSite'),
|
|
|
dataIndex: 'liveRoomUrl',
|
|
|
slots: { customRender: 'link' },
|
|
|
width: 180,
|
|
|
},
|
|
|
{
|
|
|
- title: '已绑定主播',
|
|
|
+ title: t('routes.scenes.bindShowerNameList'),
|
|
|
dataIndex: 'bindShowerNameList',
|
|
|
width: 180,
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- title: '是否开播',
|
|
|
+ title: t('routes.scenes.livestreamStatus'),
|
|
|
dataIndex: 'livestreamStatus',
|
|
|
width: 180,
|
|
|
customRender: ({ record }) => {
|
|
|
const enable = record.livestreamStatus === 0;
|
|
|
const color = enable ? 'green' : 'red';
|
|
|
- const text = enable ? '是' : '否';
|
|
|
+ const text = enable ? t('common.yes') : t('common.no');
|
|
|
return h(Tag, { color: color }, () => text);
|
|
|
},
|
|
|
},
|
|
@@ -176,7 +145,7 @@ updateUserId: null -->
|
|
|
// },
|
|
|
|
|
|
{
|
|
|
- title: '操作',
|
|
|
+ title: t('common.operation'),
|
|
|
dataIndex: '',
|
|
|
slots: { customRender: 'action' },
|
|
|
width: 120,
|
|
@@ -189,7 +158,7 @@ updateUserId: null -->
|
|
|
schemas: [
|
|
|
{
|
|
|
field: 'sceneName',
|
|
|
- label: '直播间名称',
|
|
|
+ label: t('routes.scenes.bindShowerNameList'),
|
|
|
component: 'Input',
|
|
|
colProps: {
|
|
|
xl: 5,
|
|
@@ -198,7 +167,7 @@ updateUserId: null -->
|
|
|
},
|
|
|
{
|
|
|
field: 'type',
|
|
|
- label: '类型',
|
|
|
+ label: t('common.type'),
|
|
|
component: 'ApiSelect',
|
|
|
colProps: {
|
|
|
xl: 5,
|
|
@@ -217,7 +186,7 @@ updateUserId: null -->
|
|
|
},
|
|
|
{
|
|
|
field: 'livestreamStatus',
|
|
|
- label: '是否开播',
|
|
|
+ label: t('routes.scenes.livestreamStatus'),
|
|
|
component: 'Select',
|
|
|
colProps: {
|
|
|
xl: 5,
|
|
@@ -226,17 +195,17 @@ updateUserId: null -->
|
|
|
componentProps: {
|
|
|
options: [
|
|
|
{
|
|
|
- label: '全部',
|
|
|
+ label: t('common.all'),
|
|
|
value: '',
|
|
|
key: '1',
|
|
|
},
|
|
|
{
|
|
|
- label: '是',
|
|
|
+ label: t('common.yes'),
|
|
|
value: '',
|
|
|
key: '2',
|
|
|
},
|
|
|
{
|
|
|
- label: '否',
|
|
|
+ label: t('common.no'),
|
|
|
value: '0',
|
|
|
key: '2',
|
|
|
},
|
|
@@ -248,20 +217,20 @@ updateUserId: null -->
|
|
|
function renderHouseType(type: number): string {
|
|
|
switch (type) {
|
|
|
case 0:
|
|
|
- return '新房';
|
|
|
+ return t(`routes.scenes.houseType.0`);
|
|
|
case 1:
|
|
|
- return '二手房';
|
|
|
+ return t(`routes.scenes.houseType.1`);
|
|
|
case 2:
|
|
|
- return '公寓';
|
|
|
+ return t(`routes.scenes.houseType.2`);
|
|
|
case 3:
|
|
|
- return '民宿';
|
|
|
+ return t(`routes.scenes.houseType.3`);
|
|
|
default:
|
|
|
- return '全部';
|
|
|
+ return t(`routes.scenes.houseType.9`);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
const [registerTable] = useTable({
|
|
|
- title: '直播列表',
|
|
|
+ title: t(`routes.scenes.liveBroadcast`),
|
|
|
api: ListApi,
|
|
|
columns: columns,
|
|
|
useSearchForm: true,
|