|
@@ -34,6 +34,10 @@
|
|
label: t('routes.scenes.editor'),
|
|
label: t('routes.scenes.editor'),
|
|
onClick: openSceneEditor.bind(null, record),
|
|
onClick: openSceneEditor.bind(null, record),
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ label: t('routes.scenes.jointVisit'),
|
|
|
|
+ onClick: handleLivestream.bind(null, record),
|
|
|
|
+ },
|
|
// {
|
|
// {
|
|
// // icon: 'dashicons:editor-kitchensink',
|
|
// // icon: 'dashicons:editor-kitchensink',
|
|
// color: 'error',
|
|
// color: 'error',
|
|
@@ -137,12 +141,12 @@
|
|
{
|
|
{
|
|
title: t('routes.scenes.viewCount'),
|
|
title: t('routes.scenes.viewCount'),
|
|
dataIndex: 'viewCount',
|
|
dataIndex: 'viewCount',
|
|
- width: 180,
|
|
|
|
|
|
+ width: 100,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: t('routes.scenes.createTime'),
|
|
title: t('routes.scenes.createTime'),
|
|
dataIndex: 'createTime',
|
|
dataIndex: 'createTime',
|
|
- width: 180,
|
|
|
|
|
|
+ width: 140,
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
@@ -163,7 +167,7 @@
|
|
title: t('common.operation'),
|
|
title: t('common.operation'),
|
|
dataIndex: '',
|
|
dataIndex: '',
|
|
slots: { customRender: 'action' },
|
|
slots: { customRender: 'action' },
|
|
- width: isJA.value ? 300 : 180,
|
|
|
|
|
|
+ width: isJA.value ? 350 : 220,
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
},
|
|
},
|
|
];
|
|
];
|
|
@@ -229,6 +233,12 @@
|
|
totalField: 'total',
|
|
totalField: 'total',
|
|
},
|
|
},
|
|
});
|
|
});
|
|
|
|
+ function handleLivestream(item) {
|
|
|
|
+ let url = item.webSite;
|
|
|
|
+ let page = url.substring(url.lastIndexOf('/') + 1, url.lastIndexOf('.html'));
|
|
|
|
+ url = url.replace(page, 'rtc-live');
|
|
|
|
+ window.open(url.replace('http://', 'https://') + (isJA.value ? '&lang=ja' : ''), '_blank');
|
|
|
|
+ }
|
|
async function openSceneEditor(record: Recordable) {
|
|
async function openSceneEditor(record: Recordable) {
|
|
try {
|
|
try {
|
|
const token = userStore.getToken;
|
|
const token = userStore.getToken;
|
|
@@ -278,6 +288,7 @@
|
|
t,
|
|
t,
|
|
openSceneEditor,
|
|
openSceneEditor,
|
|
handleDownloadScene,
|
|
handleDownloadScene,
|
|
|
|
+ handleLivestream,
|
|
registerDownloadModal,
|
|
registerDownloadModal,
|
|
};
|
|
};
|
|
},
|
|
},
|