|
@@ -38,14 +38,7 @@
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import { Switch } from 'ant-design-vue';
|
|
|
- import {
|
|
|
- operateSceneList,
|
|
|
- sceneMove,
|
|
|
- sceneDelete,
|
|
|
- sceneReset,
|
|
|
- sceneDownload,
|
|
|
- sceneCopy,
|
|
|
- } from '/@/api/operate';
|
|
|
+ import { overallList, overallDelete } from '/@/api/operate';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
export default defineComponent({
|
|
|
components: {
|
|
@@ -63,29 +56,32 @@
|
|
|
const columns: BasicColumn[] = [
|
|
|
{
|
|
|
title: '作品标题',
|
|
|
- dataIndex: 'sceneName',
|
|
|
+ dataIndex: 'name',
|
|
|
width: 150,
|
|
|
+ customRender: ({ record }) => {
|
|
|
+ return record.name ? h('span', record.name) : '-';
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '作品码',
|
|
|
- dataIndex: 'num',
|
|
|
+ dataIndex: 'sceneCodes',
|
|
|
ellipsis: false,
|
|
|
- width: 80,
|
|
|
+ width: 180,
|
|
|
},
|
|
|
{
|
|
|
title: '用户账号',
|
|
|
- dataIndex: 'userName',
|
|
|
+ dataIndex: 'userId',
|
|
|
width: 100,
|
|
|
},
|
|
|
|
|
|
{
|
|
|
title: '创建时间',
|
|
|
- dataIndex: 'copyTime',
|
|
|
+ dataIndex: 'createTime',
|
|
|
width: 180,
|
|
|
customRender: ({ record }) => {
|
|
|
- return record.copyTime
|
|
|
+ return record.createTime
|
|
|
? h(Time, {
|
|
|
- value: record.copyTime,
|
|
|
+ value: record.createTime,
|
|
|
mode: 'datetime',
|
|
|
})
|
|
|
: '-';
|
|
@@ -93,12 +89,12 @@
|
|
|
},
|
|
|
{
|
|
|
title: '最新编辑时间',
|
|
|
- dataIndex: 'copyTime',
|
|
|
+ dataIndex: 'updateTime',
|
|
|
width: 180,
|
|
|
customRender: ({ record }) => {
|
|
|
- return record.copyTime
|
|
|
+ return record.updateTime
|
|
|
? h(Time, {
|
|
|
- value: record.copyTime,
|
|
|
+ value: record.updateTime,
|
|
|
mode: 'datetime',
|
|
|
})
|
|
|
: '-';
|
|
@@ -106,7 +102,7 @@
|
|
|
},
|
|
|
{
|
|
|
title: '是否加密',
|
|
|
- dataIndex: 'isCopy',
|
|
|
+ dataIndex: 'status',
|
|
|
width: 80,
|
|
|
customRender: ({ record }) => {
|
|
|
return record.isCopy ? '是' : '否';
|
|
@@ -114,7 +110,7 @@
|
|
|
},
|
|
|
{
|
|
|
title: '浏览量',
|
|
|
- dataIndex: 'isCopy',
|
|
|
+ dataIndex: 'visit',
|
|
|
width: 80,
|
|
|
},
|
|
|
{
|
|
@@ -157,7 +153,7 @@
|
|
|
],
|
|
|
};
|
|
|
const [registerTable, { reload }] = useTable({
|
|
|
- api: operateSceneList,
|
|
|
+ api: overallList,
|
|
|
title: '四维深时场景列表',
|
|
|
// titleHelpMessage: ['已启用expandRowByClick', '已启用stopButtonPropagation'],
|
|
|
columns: columns,
|
|
@@ -177,7 +173,7 @@
|
|
|
async function handleDelete(record: Recordable) {
|
|
|
console.log('handleDelete', record);
|
|
|
|
|
|
- sceneDelete({ num: record.num })
|
|
|
+ overallDelete({ id: record.id })
|
|
|
.then(() => {
|
|
|
message.success({
|
|
|
content: '删除成功',
|