|
@@ -3,7 +3,19 @@
|
|
|
<div class="desc-wrap-BasicTable">
|
|
|
<BasicTable @register="registerTable">
|
|
|
<template #toolbar>
|
|
|
- <a-button type="primary" v-if="hasPermission([RoleEnum.SUPER, RoleEnum.TEST, RoleEnum.LEVEL2])" @click="handleAdd"> {{t('routes.retailer.allff')}}</a-button>
|
|
|
+ <a-button
|
|
|
+ v-if="hasPermission([RoleEnum.SUPER, RoleEnum.TEST, RoleEnum.LEVEL2])"
|
|
|
+ @click="getTemplate"
|
|
|
+ >
|
|
|
+ {{ t('routes.device.export') }}</a-button
|
|
|
+ >
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ v-if="hasPermission([RoleEnum.SUPER, RoleEnum.TEST, RoleEnum.LEVEL2])"
|
|
|
+ @click="handleAdd"
|
|
|
+ >
|
|
|
+ {{ t('routes.retailer.allff') }}</a-button
|
|
|
+ >
|
|
|
</template>
|
|
|
<template #action="{ record }">
|
|
|
<TableAction
|
|
@@ -55,6 +67,7 @@
|
|
|
import { useLocaleStore } from '/@/store/modules/locale';
|
|
|
import { dincrementList } from '/@/api/equity';
|
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
|
+ import { downCameraExport } from '/@/api/customer';
|
|
|
import distributeModal from './distributeModal.vue';
|
|
|
export default defineComponent({
|
|
|
components: {
|
|
@@ -124,7 +137,7 @@
|
|
|
// ifShow: hasPermission([RoleEnum.SUPER]),
|
|
|
customRender({ record }) {
|
|
|
return record.subAgentName || '-';
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: t('routes.retailer.activatedTime'),
|
|
@@ -323,6 +336,21 @@
|
|
|
xxl: 8,
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
+ {
|
|
|
+ field: 'outTime',
|
|
|
+ label: t('routes.device.activatedTime'),
|
|
|
+ component: 'RangePicker',
|
|
|
+ componentProps: {
|
|
|
+ maxLength: 100,
|
|
|
+ valueFormat: 'YYYY-MM-DD',
|
|
|
+ format: 'YYYY-MM-DD',
|
|
|
+ },
|
|
|
+ colProps: {
|
|
|
+ xl: 7,
|
|
|
+ xxl: 7,
|
|
|
+ },
|
|
|
+ },
|
|
|
],
|
|
|
};
|
|
|
const [registerTable, { reload }] = useTable({
|
|
@@ -350,7 +378,7 @@
|
|
|
actionColumn: {
|
|
|
width: 150,
|
|
|
title: t('common.operating'),
|
|
|
- ifShow: hasPermission([RoleEnum.SUPER, RoleEnum.TEST,RoleEnum.LEVEL2]),
|
|
|
+ ifShow: hasPermission([RoleEnum.SUPER, RoleEnum.TEST, RoleEnum.LEVEL2]),
|
|
|
dataIndex: 'action',
|
|
|
slots: { customRender: 'action' },
|
|
|
},
|
|
@@ -380,6 +408,13 @@
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
+ async function getTemplate() {
|
|
|
+ try {
|
|
|
+ const res = await downCameraExport();
|
|
|
+ } catch (error) {
|
|
|
+ console.log('not passing', error);
|
|
|
+ }
|
|
|
+ }
|
|
|
function handleAdd() {
|
|
|
openModal(true, {});
|
|
|
}
|
|
@@ -387,6 +422,7 @@
|
|
|
openModal(true, record);
|
|
|
}
|
|
|
return {
|
|
|
+ getTemplate,
|
|
|
registerTable,
|
|
|
headleUnbind,
|
|
|
reload,
|