|
@@ -54,6 +54,7 @@
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
import { getAuthList, setAuthType, delAuth } from '/@/api/operate';
|
|
import { getAuthList, setAuthType, delAuth } from '/@/api/operate';
|
|
import { BasicTable, useTable, TableAction, BasicColumn } from '/@/components/Table';
|
|
import { BasicTable, useTable, TableAction, BasicColumn } from '/@/components/Table';
|
|
|
|
+ import dayjs from 'dayjs';
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
components: { BasicModal, BasicForm, BasicTable, TableAction, detailModal },
|
|
components: { BasicModal, BasicForm, BasicTable, TableAction, detailModal },
|
|
@@ -83,23 +84,23 @@
|
|
title: '查看权限',
|
|
title: '查看权限',
|
|
dataIndex: 'lookAuth',
|
|
dataIndex: 'lookAuth',
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- return record.lookAuth == 1 ? '不限时间' : record.lookAuth == 0 ? '无权' : `${record.lookEndTime} 截止`;
|
|
|
|
|
|
+ return record.lookAuth == 1 ? '不限时间' : record.lookAuth == 0 ? '无权' : `${dayjs(record.lookEndTime).format('YYYY-MM-DD HH:mm')} 截止`;
|
|
},
|
|
},
|
|
- width: 120,
|
|
|
|
|
|
+ width: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '编辑权限',
|
|
title: '编辑权限',
|
|
dataIndex: 'editAuth',
|
|
dataIndex: 'editAuth',
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- return record.editAuth == 1 ? '不限时间' : record.editAuth == 0 ? '无权' : `${record.editEndTime} 截止`;
|
|
|
|
|
|
+ return record.editAuth == 1 ? '不限时间' : record.editAuth == 0 ? '无权' : `${dayjs(record.editEndTime).format('YYYY-MM-DD HH:mm')} 截止`;
|
|
},
|
|
},
|
|
- width: 120,
|
|
|
|
|
|
+ width: 150,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '可授权他人',
|
|
title: '可授权他人',
|
|
dataIndex: 'canLook',
|
|
dataIndex: 'canLook',
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- return record.canEditLook == 1 ? '编辑' : record.canAuthLook == 1 ? '查看' : `无权`;
|
|
|
|
|
|
+ return record.canEditLook == 1 ? '编辑和查看' : record.canAuthLook == 1 ? '查看' : `无权`;
|
|
},
|
|
},
|
|
width: 120,
|
|
width: 120,
|
|
},
|
|
},
|
|
@@ -110,7 +111,7 @@
|
|
ifShow: true,
|
|
ifShow: true,
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
flag: 'ACTION',
|
|
flag: 'ACTION',
|
|
- width: 120,
|
|
|
|
|
|
+ width: 80,
|
|
},
|
|
},
|
|
];
|
|
];
|
|
const permissionStore = usePermissionStore();
|
|
const permissionStore = usePermissionStore();
|
|
@@ -199,7 +200,7 @@
|
|
console.log('res', res);
|
|
console.log('res', res);
|
|
closeModal();
|
|
closeModal();
|
|
resetFields();
|
|
resetFields();
|
|
- createMessage.success('场景迁移成功。');
|
|
|
|
|
|
+ createMessage.success('操作成功');
|
|
emit('update');
|
|
emit('update');
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.log('not passing', error);
|
|
console.log('not passing', error);
|