|
|
@@ -55,6 +55,10 @@
|
|
|
confirm: handleDownloadScene.bind(null, record),
|
|
|
},
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '复制',
|
|
|
+ onClick: handleCopy.bind(null, record),
|
|
|
+ },
|
|
|
//{
|
|
|
// label: t('routes.scenes.jointVisit'),
|
|
|
// ifShow: record.isUpgrade != 1,
|
|
|
@@ -113,6 +117,7 @@
|
|
|
checkDownloadApi,
|
|
|
DeleteApi,
|
|
|
UpgradeToV4,
|
|
|
+ sceneCopy,
|
|
|
} from '/@/api/scene/list';
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
import {
|
|
|
@@ -286,6 +291,18 @@
|
|
|
url = url.replace(page, 'rtc-live');
|
|
|
window.open(url.replace('http://', 'https://') + (isJA.value ? '&lang=ja' : ''), '_blank');
|
|
|
}
|
|
|
+ function handleCopy(item) {
|
|
|
+ createConfirm({
|
|
|
+ iconType: 'warning',
|
|
|
+ title: () => h('span', t('routes.scenes.copyInfi.title')),
|
|
|
+ content: () => h('span', t('routes.scenes.copyInfi.content')),
|
|
|
+ onOk: async () => {
|
|
|
+ await sceneCopy(item.num);
|
|
|
+ createMessage.success(t('common.optSuccess'));
|
|
|
+ reload();
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
function handleUpgrade(item) {
|
|
|
createConfirm({
|
|
|
iconType: 'warning',
|
|
|
@@ -322,6 +339,7 @@
|
|
|
createMessage.success(t('common.optSuccess'));
|
|
|
reload();
|
|
|
}
|
|
|
+
|
|
|
async function handleDownloadScene(record: Recordable) {
|
|
|
let param = {
|
|
|
num: record.num,
|
|
|
@@ -360,6 +378,7 @@
|
|
|
handleUpgrade,
|
|
|
registerDownloadModal,
|
|
|
changeTable,
|
|
|
+ handleCopy,
|
|
|
tableType,
|
|
|
loading,
|
|
|
};
|