tangning 2 년 전
부모
커밋
49681370ef

+ 58 - 51
src/views/account/overview/AddModal.vue

@@ -2,7 +2,7 @@
   <BasicModal
     v-bind="$attrs"
     @register="register"
-    title="新增权益"
+    :title="title"
     @visible-change="handleVisibleChange"
     @cancel="resetFields"
     @ok="handleConfirm"
@@ -15,7 +15,7 @@
   </BasicModal>
 </template>
 <script lang="ts">
-  import { defineComponent, nextTick, onMounted, reactive, computed, h } from 'vue';
+  import { defineComponent, nextTick, onMounted, reactive, computed, h, ref } from 'vue';
   import { BasicModal, useModalInner } from '/@/components/Modal';
   import { BasicForm, FormSchema, useForm } from '/@/components/Form/index';
   import { useMessage } from '/@/hooks/web/useMessage';
@@ -39,6 +39,7 @@
       const otherInfo = otherInfoStore();
       const overviewInfo = computed(() => otherInfo.getOverviewInfo);
       // const overviewInfo = getOverviewInfo() || {}
+      const title = ref('新增权益')
       const fileFlow = reactive({
         file: null,
         id: '',
@@ -74,7 +75,7 @@
             onChange: (value) => {
               console.log('onChange', value);
               updateSchema([
-                { field: 'monthQy', ifShow: value == '3' },
+                { field: 'monthQy', ifShow: true, componentProps: { options: showOptions( value == '3' ? 12 : 5), } },
                 { field: 'incrementEndTime', componentProps: { disabled: value == '3' } },
               ]);
               setFieldsValue({
@@ -112,19 +113,6 @@
           },
         },
         {
-          field: 'counts',
-          component: 'InputNumber',
-          label: '新增权益数',
-          required: true,
-          defaultValue: 1,
-          componentProps: {
-            min: 1,
-          },
-          colProps: {
-            span: 20,
-          },
-        },
-        {
           field: 'monthQy',
           component: 'Select',
           label: '会员期限',
@@ -132,41 +120,14 @@
           required: true,
           defaultValue: 1,
           componentProps: {
-            options: [
-              {
-                label: '1个月',
-                value: 1,
-                key: '1',
-              },
-              {
-                label: '2个月',
-                value: 2,
-                key: '2',
-              },
-              {
-                label: '3个月',
-                value: 3,
-                key: '3',
-              },
-              {
-                label: '4个月',
-                value: 4,
-                key: '4',
-              },
-              {
-                label: '5个月',
-                value: 5,
-                key: '5',
-              },
-              {
-                label: '6个月',
-                value: 6,
-                key: '6',
-              },
-            ],
+            options: showOptions(5),
             onChange: (data) => {
+              let { incrementTypeId, counts = 1 } = getFieldsValue()
+              let unit = incrementTypeId == '3' ? 'month' : 'year'
+              let unitStr = incrementTypeId == '3' ? '个月' : '年';
+              updateSchema({ field: 'counts', suffix: ( counts * data ) + unitStr });
               setFieldsValue({
-                incrementEndTime: dayjs().add(data, 'month').format('YYYY-MM-DD'),
+                incrementEndTime: dayjs().add(data, unit).format('YYYY-MM-DD'),
               });
             },
           },
@@ -175,6 +136,24 @@
           },
         },
         {
+          field: 'counts',
+          component: 'InputNumber',
+          label: '新增权益数',
+          required: true,
+          defaultValue: 1,
+          componentProps: {
+            min: 1,
+            onChange: (data = 1) => {
+              let { incrementTypeId, monthQy = 1 } = getFieldsValue();
+              let unit = incrementTypeId == '3' ? '个月' : '年';
+              updateSchema({ field: 'counts', suffix: ( monthQy * data ) + unit });
+            },
+          },
+          colProps: {
+            span: 18,
+          },
+        },
+        {
           field: 'incrementEndTime',
           component: 'DatePicker',
           label: '到期日期',
@@ -184,7 +163,7 @@
             span: 16,
           },
           componentProps: {
-            disabled: false,
+            disabled: true,
             valueFormat: 'YYYY-MM-DD',
             format: 'YYYY-MM-DD',
             disabledDate: (current) => {
@@ -194,7 +173,7 @@
         },
       ];
 
-      const [registerForm, { validate, resetFields, setFieldsValue, updateSchema }] = useForm({
+      const [registerForm, { validate, getFieldsValue, resetFields, setFieldsValue, updateSchema }] = useForm({
         labelWidth: 120,
         schemas: [...Addschemas, ...schemas, ...remarkschemas],
         showActionButtonGroup: false,
@@ -206,15 +185,42 @@
       let addListFunc = () => {};
       const [register, { closeModal }] = useModalInner((data) => {
         data && onDataReceive(data);
+        updateSchema([
+          {
+            field: 'useType',
+            componentProps: {
+              onChange: (value) => {
+                updateSchema({ field: 'projectNum', ifShow: value == '4' });
+              },
+            },
+          },
+          {
+            field: 'projectNum',
+            ifShow: data.useType == '4',
+          },
+        ]);
       });
       async function onDataReceive(data) {
         const res = await dincrementList();
         console.log('onDataReceive', data, res);
+        title.value = data.id ? '续费权益' : '新增权益';
         resetFields();
         fileFlow.type = data.type;
         fileFlow.id = data.id;
         setFieldsValue(data);
       }
+      function showOptions(type = 5){
+        let uint = type == 5 ? '年' : '个月'
+        let arr = []
+        for (let index = 0; index < type; index++) {
+          arr.push({
+            label: (index+1) + uint,
+            value: index+1,
+            key: index+1,
+          });
+        }
+        return arr || []
+      }
       async function handleConfirm() {
         await validate();
         createConfirm({
@@ -262,6 +268,7 @@
         resetFields,
         handleConfirm,
         t,
+        title,
       };
     },
   });

+ 44 - 36
src/views/account/overview/interesModal.vue

@@ -1,29 +1,32 @@
 <template>
-  <BasicModal
-    v-bind="$attrs"
-    @register="register"
-    title="权益详情"
-    :width="900"
-    @visible-change="handleVisibleChange"
-    @ok="handleSubmit"
-  >
-    <div class="pt-3px pr-3px">
-      <div class="table_list">
-        <BasicTable @register="registerSubtable" >
-          <template #action="{ record }">
-            <TableAction
-              :actions="[
-                 {
-                   label: '续费',
-                   onClick: handleDelete.bind(null, record, 'edit'),
-                 },
-              ]"
-            />
-          </template>
-        </BasicTable>
+  <div>
+      <AddModal @register="registerAddModal" />
+      <BasicModal
+      v-bind="$attrs"
+      @register="register"
+      title="权益详情"
+      :width="900"
+      @visible-change="handleVisibleChange"
+      @ok="handleSubmit"
+    >
+      <div class="pt-3px pr-3px">
+        <div class="table_list">
+          <BasicTable @register="registerSubtable" >
+            <template #action="{ record }">
+              <TableAction
+                :actions="[
+                  {
+                    label: '续费',
+                    onClick: handleDelete.bind(null, record, 'edit'),
+                  },
+                ]"
+              />
+            </template>
+          </BasicTable>
+        </div>
       </div>
-    </div>
-  </BasicModal>
+    </BasicModal>
+  </div>
 </template>
 <script lang="ts">
   import { defineComponent, nextTick, onMounted, reactive, computed,h } from 'vue';
@@ -31,16 +34,18 @@
   import { BasicModal, useModalInner } from '/@/components/Modal';
   import { BasicForm } from '/@/components/Form/index';
   import { Time } from '/@/components/Time';
+  import AddModal from './AddModal.vue';
   import { useMessage } from '/@/hooks/web/useMessage';
   import { useI18n } from '/@/hooks/web/useI18n';
   import { GetCameraDetailApi,UnbindCameraApi } from '/@/api/account';
   import { otherInfoStore } from '/@/store/modules/other'
   import { DetailsApi,IncrementDelayApi } from '/@/api/account';
   import { usePermissionStore } from '/@/store/modules/permission';
+  import { useModal } from '/@/components/Modal';
 
   const { t } = useI18n();
   export default defineComponent({
-    components: { BasicModal, BasicForm, BasicTable,TableAction },
+    components: { BasicModal, BasicForm, BasicTable,TableAction, AddModal },
     props: {
       userData: { type: Object },
     },
@@ -49,6 +54,7 @@
       const otherInfo = otherInfoStore();
       const overviewInfo = computed(() => otherInfo.getOverviewInfo);
       const { createMessage, createConfirm } = useMessage();
+      const [registerAddModal, { openModal: openAddModal }] = useModal();
       const permissionStore = usePermissionStore();
       const { getCheckPerm } = permissionStore;
       console.log('overviewInfo',overviewInfo)
@@ -169,17 +175,18 @@
         fileFlow.id = data.id
       }
       async function handleDelete (record: Recordable) {
-        createConfirm({
-          iconType: 'warning',
-          title: () => h('span', '续费提示'),
-          content: () => h('span', `您确定给权益ID${record.id}续期${record.validTimeType == 1?'1月':'1年'}!`),
-          onOk: async () => {
-            await await IncrementDelayApi({id:record.id,year:1})
-            createMessage.success(t('common.optSuccess'));
-            otherInfo.updateOverviewInfo()
-            reload()
-          },
-        });
+        openAddModal(true, record);
+        // createConfirm({
+        //   iconType: 'warning',
+        //   title: () => h('span', '续费提示'),
+        //   content: () => h('span', `您确定给权益ID${record.id}续期${record.validTimeType == 1?'1月':'1年'}!`),
+        //   onOk: async () => {
+        //     await await IncrementDelayApi({id:record.id,year:1})
+        //     createMessage.success(t('common.optSuccess'));
+        //     otherInfo.updateOverviewInfo()
+        //     reload()
+        //   },
+        // });
       }
       const handleSubmit = async () => {
           closeModal();
@@ -196,6 +203,7 @@
         addListFunc,
         registerSubtable,
         reload,
+        registerAddModal,
         handleDelete,
         t,
       };

+ 1 - 1
src/views/empower/camera.vue

@@ -92,7 +92,7 @@
         {
           title: '使用类型',
           ellipsis: true,
-          dataIndex: 'useType',
+          dataIndex: 'useTypeStr',
           width: 120,
         },
         {

+ 1 - 1
src/views/empower/install.vue

@@ -83,7 +83,7 @@
         {
           title: '使用类型',
           ellipsis: true,
-          dataIndex: 'useType',
+          dataIndex: 'useTypeStr',
           width: 120,
         },
         {

+ 194 - 180
src/views/productOperation/cameraScene.vue

@@ -1,36 +1,42 @@
 <template>
   <PageWrapper contentBackground>
-    <template #footer >
+    <template #footer>
       <a-tabs v-model:activeKey="tableType" @change="changeTable">
-        <a-tab-pane :key="0" tab="四维看看" :disabled="loading"/>
-        <a-tab-pane :key="1" tab="四维看见" :disabled="loading"/>
-        <a-tab-pane :key="2" tab="深时点云场景" :disabled="loading"/>
-        <a-tab-pane :key="5" tab="深时Mesh场景" :disabled="loading"/>
-        <a-tab-pane :key="6" tab="深光点云场景" :disabled="loading"/>
-        <a-tab-pane :key="7" tab="深光Mesh场景" :disabled="loading"/>
-        <a-tab-pane :key="3" tab="四维双目Lite" :disabled="loading"/> 
+        <a-tab-pane :key="0" tab="四维看看" :disabled="loading" />
+        <a-tab-pane :key="1" tab="四维看见" :disabled="loading" />
+        <a-tab-pane :key="2" tab="深时点云场景" :disabled="loading" />
+        <a-tab-pane :key="5" tab="深时Mesh场景" :disabled="loading" />
+        <a-tab-pane :key="6" tab="深光点云场景" :disabled="loading" />
+        <a-tab-pane :key="7" tab="深光Mesh场景" :disabled="loading" />
+        <a-tab-pane :key="3" tab="四维双目Lite" :disabled="loading" />
       </a-tabs>
     </template>
     <div class="desc-wrap-BasicTable">
-      <BasicTable  @register="registerTable" ref="tableRef">
+      <BasicTable @register="registerTable" ref="tableRef">
         <template #toolbar>
           <!-- <a-button type="primary" @click="exportExcel"> 导出1</a-button> -->
         </template>
         <template #status="{ record }">
-          <span v-if="record.status != '-1'">{{record.statusString}}</span>
+          <span v-if="record.status != '-1'">{{ record.statusString }}</span>
           <Tooltip v-else placement="right">
             <template #title>
-              <span>失败原因:{{record.buildErrorReason}}</span>
-              <p>server-path:{{record.dataSource}}</p>
+              <span>失败原因:{{ record.buildErrorReason }}</span>
+              <p>server-path:{{ record.dataSource }}</p>
             </template>
-          <span>{{record.statusString}}
-            <Icon icon="mdi:warning-octagon-outline" />
-          </span>
-        </Tooltip>
+            <span
+              >{{ record.statusString }}
+              <Icon icon="mdi:warning-octagon-outline" />
+            </span>
+          </Tooltip>
         </template>
         <template #href="{ record }">
-          <a v-if="record.sceneName && record.thumb" target="_blank" :href="record.webSite || record.thumb">{{record.sceneName}}</a>
-          <span v-else-if="record.sceneName">{{record.sceneName}}</span>
+          <a
+            v-if="record.sceneName && record.thumb"
+            target="_blank"
+            :href="record.webSite || record.thumb"
+            >{{ record.sceneName }}</a
+          >
+          <span v-else-if="record.sceneName">{{ record.sceneName }}</span>
           <span v-else>-</span>
         </template>
         <template #action="{ record }">
@@ -39,21 +45,21 @@
             :actions="[
               {
                 label: '迁移',
-                disabled:!(record.status == 1 || record.status == -2),
-                ifShow:getTypeCheckPerm('scenes-move') && tableType != 3,
+                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)),
+                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,
+                ifShow: getTypeCheckPerm('scenes-recalculate') && tableType != 3,
                 popConfirm: {
                   title: '是否重算?',
                   confirm: handleReset.bind(null, record),
@@ -61,16 +67,16 @@
               },
               {
                 label: '复制',
-                disabled:!(record.status == 1 || (record.status == -2 && record.payStatus == 1)),
-                ifShow:getTypeCheckPerm('scenes-copy') && tableType != 3,
+                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,
+                ifShow: getTypeCheckPerm('scenes-delete'),
+                disabled: record.status == 0,
                 //onClick: handleDelete.bind(null, record),
                 popConfirm: {
                   title: '是否删除?',
@@ -155,122 +161,131 @@
       const tableType = ref<Number>(0); //0看看 、1看见、2深时
       function columns(isobj): BasicColumn[] {
         return [
-        {
-          title: '场景标题',
-          dataIndex: 'sceneName',
-          slots: { customRender: 'href' },
-          width: 150,
-        },
-        {
-          title: '场景码',
-          dataIndex: 'num',
-          ellipsis: true,
-          width: 180,
-        },
-        {
-          title: '拍摄时间',
-          dataIndex: 'createTime',
-          sorter: true,
-          width: 180,
-          customRender: ({ record }) => {
-            return (
-              record.createTime &&
-              h(Time, {
-                value: record.createTime,
-                mode: 'datetime',
-              })
-            );
+          {
+            title: '场景标题',
+            dataIndex: 'sceneName',
+            slots: { customRender: 'href' },
+            width: 150,
           },
-        },
-        {
-          title: 'obj生成状态',
-          dataIndex: 'isObj',
-          ellipsis: true,
-          ifShow:isobj,
-          width: 180,
-          customRender: ({ record }) => {
-            return record.isObj == 0 ? '未生成' : record.isObj == 1 ? '已生成' :'计算中';
+          {
+            title: '场景码',
+            dataIndex: 'num',
+            ellipsis: true,
+            width: 180,
           },
-        },
-        {
-          title: '计算完成时间',
-          dataIndex: 'amount',
-          width: 180,
-          customRender: ({ record }) => {
-            return (
-              record.algorithmTime &&
-              h(Time, {
-                value: record.algorithmTime,
-                mode: 'datetime',
-              })||'-'
-            );
+          {
+            title: '拍摄时间',
+            dataIndex: 'createTime',
+            sorter: true,
+            width: 180,
+            customRender: ({ record }) => {
+              return (
+                record.createTime &&
+                h(Time, {
+                  value: record.createTime,
+                  mode: 'datetime',
+                })
+              );
+            },
           },
-        },
-        {
-          title: 'SN码',
-          dataIndex: 'snCode',
-          width: 180,
-        },
-        {
-          title: '场景大小',
-          dataIndex: 'sceneSize',
-          width: 80,
-          customRender: ({ record }) => {
-            return (record.sceneSize && record.sceneSize != 0)?h(
-              'span',
-              { class: 'sceneSize' },
-              Math.ceil(record.sceneSize / 1024 / 1024) + 'M',
-            ):'-';
+          {
+            title: 'obj生成状态',
+            dataIndex: 'isObj',
+            ellipsis: true,
+            ifShow: isobj,
+            width: 180,
+            customRender: ({ record }) => {
+              return record.isObj == 0 ? '未生成' : record.isObj == 1 ? '已生成' : '计算中';
+            },
           },
-        },
-        {
-          title: '是否复制',
-          dataIndex: 'isCopy',
-          width: 80,
-          customRender: ({ record }) => {
-            return record.isCopy ? '是' : '否';
+          {
+            title: '计算完成时间',
+            dataIndex: 'amount',
+            width: 180,
+            customRender: ({ record }) => {
+              return (
+                (record.algorithmTime &&
+                  h(Time, {
+                    value: record.algorithmTime,
+                    mode: 'datetime',
+                  })) ||
+                '-'
+              );
+            },
           },
-        },
-        {
-          title: '复制时间',
-          dataIndex: 'copyTime',
-          width: 180,
-          customRender: ({ record }) => {
-            return record.copyTime
-              ? h(Time, {
-                  value: record.copyTime,
-                  mode: 'datetime',
-                })
-              : '-';
+          {
+            title: 'SN码',
+            dataIndex: 'snCode',
+            width: 180,
           },
-        },
-        {
-          title: '绑定账号',
-          dataIndex: 'userName',
-          width: 100,
-        },
-        {
-          title: '浏览量',
-          dataIndex: 'viewCount',
-          sorter: true,
-          width: 80,
-        },
-        {
-          title: '状态',
-          dataIndex: 'statusString',
-          width: 120,
-          slots: { customRender: 'status' },
-        },
-        {
-          title: '操作',
-          dataIndex: 'action',
-          slots: { customRender: 'action' },
-          ifShow: true,
-          fixed: 'right',
-          flag: 'ACTION',
-          width: 250,
-        },
-      ];
+          {
+            title: '点位数量',
+            dataIndex: 'snCode',
+            width: 180,
+          },
+          {
+            title: '场景大小',
+            dataIndex: 'sceneSize',
+            width: 80,
+            customRender: ({ record }) => {
+              return record.sceneSize && record.sceneSize != 0
+                ? h('span', { class: 'sceneSize' }, Math.ceil(record.sceneSize / 1024 / 1024) + 'M')
+                : '-';
+            },
+          },
+          {
+            title: '拍摄位置',
+            dataIndex: 'snCode',
+            width: 180,
+          },
+          {
+            title: '是否复制',
+            dataIndex: 'isCopy',
+            width: 80,
+            customRender: ({ record }) => {
+              return record.isCopy ? '是' : '否';
+            },
+          },
+          {
+            title: '复制时间',
+            dataIndex: 'copyTime',
+            width: 180,
+            customRender: ({ record }) => {
+              return record.copyTime
+                ? h(Time, {
+                    value: record.copyTime,
+                    mode: 'datetime',
+                  })
+                : '-';
+            },
+          },
+          {
+            title: '绑定账号',
+            dataIndex: 'userName',
+            width: 100,
+          },
+          {
+            title: '浏览量',
+            dataIndex: 'viewCount',
+            sorter: true,
+            width: 80,
+          },
+          {
+            title: '状态',
+            dataIndex: 'statusString',
+            width: 120,
+            slots: { customRender: 'status' },
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            slots: { customRender: 'action' },
+            ifShow: true,
+            fixed: 'right',
+            flag: 'ACTION',
+            width: 250,
+          },
+        ];
       }
       // const searchForm: Partial<FormProps> = {
       //   labelWidth: 100,
@@ -313,11 +328,11 @@
       //     },
       //   ],
       // };
-      
+
       const searchFormSs: Partial<FormProps> = {
         labelWidth: 100,
-        autoSubmitOnEnter:true,
-        autoAdvancedLine:1,
+        autoSubmitOnEnter: true,
+        autoAdvancedLine: 1,
         actionColOptions: {
           span: 24,
         },
@@ -333,7 +348,8 @@
               xl: 7,
               xxl: 7,
             },
-          },{
+          },
+          {
             field: 'num',
             label: '场景码',
             component: 'Input',
@@ -368,13 +384,14 @@
               xl: 7,
               xxl: 7,
             },
-          },{
+          },
+          {
             field: 'timeList',
             label: '拍摄时间段',
             component: 'RangePicker',
             componentProps: {
               maxLength: 100,
-              minWidth:'385px',
+              minWidth: '385px',
               format: 'YYYY-MM-DD',
               valueFormat: 'YYYY-MM-DD',
               showTime: true,
@@ -399,12 +416,12 @@
         useSearchForm: true,
         formConfig: searchFormSs,
         showTableSetting: true,
-        beforeFetch:(T)=>{
-          loading.value = true
-          return T
+        beforeFetch: (T) => {
+          loading.value = true;
+          return T;
         },
         afterFetch: (T) => {
-          loading.value = false
+          loading.value = false;
           return T;
         },
         rowKey: 'num',
@@ -419,7 +436,7 @@
       function getTableAction() {
         const tableAction = unref(tableRef);
         if (!tableAction) {
-          console.log('tableAction',tableAction,tableRef)
+          console.log('tableAction', tableAction, tableRef);
           throw new Error('tableAction is null');
         }
         return tableAction;
@@ -436,13 +453,12 @@
           title: '复制场景',
           content: '复制场景,场景归属在原相机下。<br/>确定要复制场景吗?',
           onOk: async () => {
-            sceneCopy({ num: record.num })
-              .then(() => {
-                message.success({
-                  content: '复制成功',
-                });
-                reload();
-              })
+            sceneCopy({ num: record.num }).then(() => {
+              message.success({
+                content: '复制成功',
+              });
+              reload();
+            });
           },
         });
       }
@@ -452,14 +468,13 @@
         //   title: '删除',
         //   content: '确定要删除场景吗?',
         //   onOk: async () => {
-        sceneDelete({ num: record.num })
-          .then(() => {
-            message.success({
-              content: '删除成功',
-            });
+        sceneDelete({ num: record.num }).then(() => {
+          message.success({
+            content: '删除成功',
+          });
 
-            reload();
-          })
+          reload();
+        });
         //   },
         // });
       }
@@ -483,11 +498,11 @@
       const downloadOption = ref<Object>({});
       const canDownload = ref<boolean>(true);
       function handleDownload(record: Recordable) {
-        console.log('handleDownload', record,tableType.value);
-        let isObj = tableType.value == 5?1:0
-        let params = {num: record.num,isObj:0,}
-        if(tableType.value == 4 || tableType.value == 5){
-          params.isObj = isObj
+        console.log('handleDownload', record, tableType.value);
+        let isObj = tableType.value == 5 ? 1 : 0;
+        let params = { num: record.num, isObj: 0 };
+        if (tableType.value == 4 || tableType.value == 5) {
+          params.isObj = isObj;
         }
         canDownload.value = true;
         checkDownLoad(params).then((res) => {
@@ -497,7 +512,7 @@
               console.log(res);
               openDownModal(true, {
                 ...record,
-                isObj:params.isObj,
+                isObj: params.isObj,
               });
               if (res.downloadStatus == 1) {
                 if (timer.value) {
@@ -505,10 +520,10 @@
                 }
                 timer.value = setInterval(() => {
                   downloadProcess(params).then((res) => {
-                    if(res.status == '1003'){
+                    if (res.status == '1003') {
                       createMessage.error('下载失败');
                       afterClose();
-                      return
+                      return;
                     }
                     if (res.percent >= 100) {
                       canDownload.value = false;
@@ -532,17 +547,16 @@
       }
       function handleReset(record: Recordable) {
         console.log('handleReset', record);
-        rebuildScene({ num: record.num })
-          .then(() => {
-            message.success({
-              content: '操作成功',
-            });
-            reload();
-          })
+        rebuildScene({ num: record.num }).then(() => {
+          message.success({
+            content: '操作成功',
+          });
+          reload();
+        });
       }
-      function getTypeCheckPerm(val){
-        let myType = tableType.value
-        return getCheckPerm(val) || getCheckPerm(`${val}-${myType}`)
+      function getTypeCheckPerm(val) {
+        let myType = tableType.value;
+        return getCheckPerm(val) || getCheckPerm(`${val}-${myType}`);
       }
       return {
         registerTable,