|
@@ -61,11 +61,25 @@
|
|
<span v-else-if="record.sceneName">{{ record.sceneName }}</span>
|
|
<span v-else-if="record.sceneName">{{ record.sceneName }}</span>
|
|
<span v-else>-</span>
|
|
<span v-else>-</span>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
<template #status="{ record }">
|
|
<template #status="{ record }">
|
|
- <a v-if="record.status==-1" @click="hanleDowm(record.num)">计算失败</a>
|
|
|
|
- <span v-else>{{record.payStatus == -2 ? '封存' : record.statusString}}</span>
|
|
|
|
|
|
+ <span v-if="record.status != '-1'">{{ record.statusString }}</span>
|
|
|
|
+ <Tooltip v-else placement="right">
|
|
|
|
+ <template #title>
|
|
|
|
+ <span>失败原因:{{ record.buildErrorReason || record.buildFailReason }}</span>
|
|
|
|
+ <p v-if="record.dataSource">
|
|
|
|
+ <span>serverPath:{{ record.dataSource }}</span>
|
|
|
|
+ </p>
|
|
|
|
+ </template>
|
|
|
|
+ <span
|
|
|
|
+ >{{ record.statusString }}
|
|
|
|
+ <Icon icon="mdi:warning-octagon-outline" />
|
|
|
|
+ </span>
|
|
|
|
+ </Tooltip>
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- <template #status="{ record }">
|
|
|
|
+ <a v-if="record.status == -1" @click="hanleDowm(record.num)">计算失败</a>
|
|
|
|
+ <span v-else>{{ record.payStatus == -2 ? '封存' : record.statusString }}</span>
|
|
|
|
+ </template> -->
|
|
<template #action="{ record }">
|
|
<template #action="{ record }">
|
|
<TableAction
|
|
<TableAction
|
|
v-if="!record.isShare"
|
|
v-if="!record.isShare"
|
|
@@ -205,7 +219,7 @@
|
|
import PowersModal from './modal/PowersModal.vue';
|
|
import PowersModal from './modal/PowersModal.vue';
|
|
import caseListModal from './modal/caseListModal.vue';
|
|
import caseListModal from './modal/caseListModal.vue';
|
|
import { Time } from '/@/components/Time';
|
|
import { Time } from '/@/components/Time';
|
|
- import { Descriptions, Tabs, Progress } from 'ant-design-vue';
|
|
|
|
|
|
+ import { Descriptions, Tabs, Progress, Tooltip } from 'ant-design-vue';
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { useModal } from '/@/components/Modal';
|
|
import { useModal } from '/@/components/Modal';
|
|
@@ -242,6 +256,7 @@
|
|
[Descriptions.Item.name]: Descriptions.Item,
|
|
[Descriptions.Item.name]: Descriptions.Item,
|
|
QrCode,
|
|
QrCode,
|
|
Icon,
|
|
Icon,
|
|
|
|
+ Tooltip,
|
|
// Tabs,
|
|
// Tabs,
|
|
[Tabs.name]: Tabs,
|
|
[Tabs.name]: Tabs,
|
|
// [Tabs.TabPane?.name]: Tabs.TabPane,
|
|
// [Tabs.TabPane?.name]: Tabs.TabPane,
|
|
@@ -293,7 +308,7 @@
|
|
title: '状态',
|
|
title: '状态',
|
|
dataIndex: 'status',
|
|
dataIndex: 'status',
|
|
slots: { customRender: 'status' },
|
|
slots: { customRender: 'status' },
|
|
- width: 80,
|
|
|
|
|
|
+ width: 120,
|
|
// customRender: ({ record }) => {
|
|
// customRender: ({ record }) => {
|
|
// let str;
|
|
// let str;
|
|
// switch (record.status - 0) {
|
|
// switch (record.status - 0) {
|
|
@@ -314,7 +329,6 @@
|
|
// },
|
|
// },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
-
|
|
|
|
title: '相机类型',
|
|
title: '相机类型',
|
|
dataIndex: 'type',
|
|
dataIndex: 'type',
|
|
defaultHidden: true,
|
|
defaultHidden: true,
|
|
@@ -459,7 +473,8 @@
|
|
xl: 6,
|
|
xl: 6,
|
|
xxl: 6,
|
|
xxl: 6,
|
|
},
|
|
},
|
|
- },{
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
field: 'type',
|
|
field: 'type',
|
|
label: '相机类型',
|
|
label: '相机类型',
|
|
component: 'Select',
|
|
component: 'Select',
|
|
@@ -533,7 +548,6 @@
|
|
xxl: 5,
|
|
xxl: 5,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
-
|
|
|
|
],
|
|
],
|
|
};
|
|
};
|
|
function cancelDownload() {
|
|
function cancelDownload() {
|
|
@@ -548,7 +562,7 @@
|
|
title: `场景列表`,
|
|
title: `场景列表`,
|
|
// titleHelpMessage: ['已启用expandRowByClick', '已启用stopButtonPropagation'],
|
|
// titleHelpMessage: ['已启用expandRowByClick', '已启用stopButtonPropagation'],
|
|
columns: columns,
|
|
columns: columns,
|
|
- searchInfo: { sceneType: tableType, isObj: "1" },
|
|
|
|
|
|
+ searchInfo: { sceneType: tableType, isObj: '1' },
|
|
useSearchForm: true,
|
|
useSearchForm: true,
|
|
formConfig: searchForm,
|
|
formConfig: searchForm,
|
|
showTableSetting: true,
|
|
showTableSetting: true,
|
|
@@ -670,9 +684,9 @@
|
|
window.open(record.thumbEdit + '&&token=' + token.value);
|
|
window.open(record.thumbEdit + '&&token=' + token.value);
|
|
}
|
|
}
|
|
function hanleDowm(num) {
|
|
function hanleDowm(num) {
|
|
- getSceneBuildLog(num).then(res =>{
|
|
|
|
|
|
+ getSceneBuildLog(num).then((res) => {
|
|
window.open(res);
|
|
window.open(res);
|
|
- })
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
async function handleGenerate(record: Recordable) {
|
|
async function handleGenerate(record: Recordable) {
|
|
console.log('record', record);
|
|
console.log('record', record);
|
|
@@ -721,12 +735,12 @@
|
|
}
|
|
}
|
|
function getStatus(val) {
|
|
function getStatus(val) {
|
|
let obj = {
|
|
let obj = {
|
|
- 0 : '计算中',
|
|
|
|
- 1 : '计算成功',
|
|
|
|
- '-2' : '计算成功',
|
|
|
|
- '-1' : '计算失败',
|
|
|
|
- }
|
|
|
|
- return obj[val]
|
|
|
|
|
|
+ 0: '计算中',
|
|
|
|
+ 1: '计算成功',
|
|
|
|
+ '-2': '计算成功',
|
|
|
|
+ '-1': '计算失败',
|
|
|
|
+ };
|
|
|
|
+ return obj[val];
|
|
}
|
|
}
|
|
function handlegotoEdit(record: Recordable) {
|
|
function handlegotoEdit(record: Recordable) {
|
|
let url = record.webSite.replace('smg', 'epg');
|
|
let url = record.webSite.replace('smg', 'epg');
|
|
@@ -750,9 +764,9 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
- let list = await sceneCount()
|
|
|
|
|
|
+ let list = await sceneCount();
|
|
// let list1 = await operateSceneList({sceneType: 1})
|
|
// let list1 = await operateSceneList({sceneType: 1})
|
|
- if(list == 0) {
|
|
|
|
|
|
+ if (list == 0) {
|
|
qrCodeUrl.value.show = true;
|
|
qrCodeUrl.value.show = true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -796,7 +810,7 @@
|
|
userInfo,
|
|
userInfo,
|
|
qrCodeUrl,
|
|
qrCodeUrl,
|
|
getStatus,
|
|
getStatus,
|
|
- hanleDowm
|
|
|
|
|
|
+ hanleDowm,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
});
|
|
});
|