|
@@ -8,66 +8,7 @@
|
|
|
<a-tab-pane :key="3" tab="四维双目Lite" :disabled="loading"/> </a-tabs
|
|
|
></template>
|
|
|
<div class="desc-wrap-BasicTable">
|
|
|
-
|
|
|
- <BasicTable v-show="tableType == 2" @register="regisSsterTable">
|
|
|
- <template #toolbar>
|
|
|
- <!-- <a-button type="primary" @click="exportExcel"> 导出1</a-button> -->
|
|
|
- </template>
|
|
|
-
|
|
|
- <template #href="{ record }">
|
|
|
- <a v-if="record.sceneName" target="_blank" :href="record.thumb">{{record.sceneName}}</a>
|
|
|
- <span v-else>-</span>
|
|
|
- </template>
|
|
|
- <template #action="{ record }">
|
|
|
- <TableAction
|
|
|
- stopButtonPropagation
|
|
|
- :actions="[
|
|
|
- {
|
|
|
- label: '迁移',
|
|
|
- disabled:!(record.status == 1 || record.status == -2),
|
|
|
- ifShow:getTypeCheckPerm('scenes-move') && tableType != 3,
|
|
|
- onClick: handleMove.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '下载',
|
|
|
- ifShow:getTypeCheckPerm('scenes-download') && tableType != 3,
|
|
|
- disabled:!(record.status == 1 || (record.status == -2 && record.payStatus == 1)),
|
|
|
- //icon: 'carbon:download',
|
|
|
- onClick: handleDownload.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '重算',
|
|
|
- disabled: record.status == 0 || (record.status == -2 && record.payStatus != 1),
|
|
|
- ifShow:getTypeCheckPerm('scenes-recalculate') && tableType != 3,
|
|
|
- popConfirm: {
|
|
|
- title: '是否重算?',
|
|
|
- confirm: handleReset.bind(null, record),
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '复制',
|
|
|
- disabled:!(record.status == 1 || (record.status == -2 && record.payStatus == 1)),
|
|
|
- ifShow:getTypeCheckPerm('scenes-copy') && tableType != 3,
|
|
|
- onClick: handleCopy.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '删除',
|
|
|
- //icon: 'ic:outline-delete-outline',
|
|
|
- color: 'error',
|
|
|
- ifShow:getTypeCheckPerm('scenes-delete'),
|
|
|
- disabled:record.status == 0,
|
|
|
- //onClick: handleDelete.bind(null, record),
|
|
|
- popConfirm: {
|
|
|
- title: '是否删除?',
|
|
|
- confirm: handleDelete.bind(null, record),
|
|
|
- placement: 'topRight',
|
|
|
- },
|
|
|
- },
|
|
|
- ]"
|
|
|
- />
|
|
|
- </template>
|
|
|
- </BasicTable>
|
|
|
- <BasicTable v-show="tableType != 2" @register="registerTable">
|
|
|
+ <BasicTable @register="registerTable">
|
|
|
<template #toolbar>
|
|
|
<!-- <a-button type="primary" @click="exportExcel"> 导出1</a-button> -->
|
|
|
</template>
|
|
@@ -313,47 +254,47 @@
|
|
|
width: 250,
|
|
|
},
|
|
|
];
|
|
|
- const searchForm: Partial<FormProps> = {
|
|
|
- labelWidth: 100,
|
|
|
- schemas: [
|
|
|
- {
|
|
|
- field: 'sceneName',
|
|
|
- label: '场景标题',
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- maxLength: 100,
|
|
|
- },
|
|
|
- colProps: {
|
|
|
- xl: 7,
|
|
|
- xxl: 7,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'snCode',
|
|
|
- label: 'SN码',
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- maxLength: 100,
|
|
|
- },
|
|
|
- colProps: {
|
|
|
- xl: 7,
|
|
|
- xxl: 7,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'userName',
|
|
|
- label: '绑定账号',
|
|
|
- component: 'Input',
|
|
|
- componentProps: {
|
|
|
- maxLength: 100,
|
|
|
- },
|
|
|
- colProps: {
|
|
|
- xl: 6,
|
|
|
- xxl: 6,
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- };
|
|
|
+ // const searchForm: Partial<FormProps> = {
|
|
|
+ // labelWidth: 100,
|
|
|
+ // schemas: [
|
|
|
+ // {
|
|
|
+ // field: 'sceneName',
|
|
|
+ // label: '场景标题',
|
|
|
+ // component: 'Input',
|
|
|
+ // componentProps: {
|
|
|
+ // maxLength: 100,
|
|
|
+ // },
|
|
|
+ // colProps: {
|
|
|
+ // xl: 7,
|
|
|
+ // xxl: 7,
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // field: 'snCode',
|
|
|
+ // label: 'SN码',
|
|
|
+ // component: 'Input',
|
|
|
+ // componentProps: {
|
|
|
+ // maxLength: 100,
|
|
|
+ // },
|
|
|
+ // colProps: {
|
|
|
+ // xl: 7,
|
|
|
+ // xxl: 7,
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // field: 'userName',
|
|
|
+ // label: '绑定账号',
|
|
|
+ // component: 'Input',
|
|
|
+ // componentProps: {
|
|
|
+ // maxLength: 100,
|
|
|
+ // },
|
|
|
+ // colProps: {
|
|
|
+ // xl: 6,
|
|
|
+ // xxl: 6,
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // };
|
|
|
|
|
|
const searchFormSs: Partial<FormProps> = {
|
|
|
labelWidth: 100,
|
|
@@ -431,32 +372,7 @@
|
|
|
}
|
|
|
const [registerDownModal, { openModal: openDownModal }] = useModal();
|
|
|
const [registerMoveModal, { openModal: openMoveModal }] = useModal();
|
|
|
- const [registerTable, { reload:listReload }] = useTable({
|
|
|
- api: operateSceneList,
|
|
|
- title: `场景列表`,
|
|
|
- columns: columns,
|
|
|
- searchInfo: { type: tableType },
|
|
|
- useSearchForm: true,
|
|
|
- formConfig: searchForm,
|
|
|
- showTableSetting: true,
|
|
|
- beforeFetch:(T)=>{
|
|
|
- loading.value = true
|
|
|
- return T
|
|
|
- },
|
|
|
- afterFetch: (T) => {
|
|
|
- loading.value = false
|
|
|
- return T;
|
|
|
- },
|
|
|
- rowKey: 'num',
|
|
|
- fetchSetting: {
|
|
|
- pageField: 'pageNum',
|
|
|
- sizeField: 'pageSize',
|
|
|
- listField: 'list',
|
|
|
- totalField: 'total',
|
|
|
- },
|
|
|
- canResize: true,
|
|
|
- });
|
|
|
- const [regisSsterTable, { reload:SsReload }] = useTable({
|
|
|
+ const [registerTable, { reload }] = useTable({
|
|
|
api: operateSceneList,
|
|
|
title: `场景列表`,
|
|
|
columns: columns,
|
|
@@ -500,13 +416,6 @@
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
- function reload(){
|
|
|
- if(tableType.value == 3){
|
|
|
- listReload()
|
|
|
- }else{
|
|
|
- SsReload()
|
|
|
- }
|
|
|
- }
|
|
|
async function handleDelete(record: Recordable) {
|
|
|
console.log('handleDelete', record);
|
|
|
// createConfirm({
|
|
@@ -609,6 +518,7 @@
|
|
|
handleReset,
|
|
|
tableType,
|
|
|
loading,
|
|
|
+ reload,
|
|
|
changeTable,
|
|
|
t,
|
|
|
openDownModal,
|
|
@@ -620,7 +530,6 @@
|
|
|
downloadOption,
|
|
|
cancelDownload,
|
|
|
getTypeCheckPerm,
|
|
|
- regisSsterTable,
|
|
|
};
|
|
|
},
|
|
|
});
|