|
@@ -18,6 +18,7 @@
|
|
{
|
|
{
|
|
label: '删除',
|
|
label: '删除',
|
|
color: 'error',
|
|
color: 'error',
|
|
|
|
+ ifShow:getCheckPerm('account-productDelete'),
|
|
popConfirm: {
|
|
popConfirm: {
|
|
title: '是否删除?',
|
|
title: '是否删除?',
|
|
confirm: handleDelete.bind(null, record),
|
|
confirm: handleDelete.bind(null, record),
|
|
@@ -35,6 +36,7 @@
|
|
:actions="[
|
|
:actions="[
|
|
{
|
|
{
|
|
label: '迁移',
|
|
label: '迁移',
|
|
|
|
+ ifShow:getCheckPerm('account-productTransfer'),
|
|
onClick: handleMove.bind(null, record),
|
|
onClick: handleMove.bind(null, record),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -42,11 +44,13 @@
|
|
disabled:
|
|
disabled:
|
|
(record.payStatus - 0 != 1 && record.status - 0 == 0) ||
|
|
(record.payStatus - 0 != 1 && record.status - 0 == 0) ||
|
|
(record.payStatus - 0 != 1 && record.status - 0 == -1),
|
|
(record.payStatus - 0 != 1 && record.status - 0 == -1),
|
|
|
|
+ ifShow:getCheckPerm('account-productDownload'),
|
|
onClick: handleDownload.bind(null, record),
|
|
onClick: handleDownload.bind(null, record),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '重算',
|
|
label: '重算',
|
|
disabled: record.payStatus != 1 && record.status - 0 == 0,
|
|
disabled: record.payStatus != 1 && record.status - 0 == 0,
|
|
|
|
+ ifShow:getCheckPerm('account-productRerun'),
|
|
popConfirm: {
|
|
popConfirm: {
|
|
title: '是否重算?',
|
|
title: '是否重算?',
|
|
confirm: handleReset.bind(null, record),
|
|
confirm: handleReset.bind(null, record),
|
|
@@ -57,6 +61,7 @@
|
|
disabled:
|
|
disabled:
|
|
(record.payStatus != 1 && record.status - 0 == 0) ||
|
|
(record.payStatus != 1 && record.status - 0 == 0) ||
|
|
(record.payStatus != 1 && record.status - 0 == -1),
|
|
(record.payStatus != 1 && record.status - 0 == -1),
|
|
|
|
+ ifShow:getCheckPerm('account-productCopy'),
|
|
popConfirm: {
|
|
popConfirm: {
|
|
title: '是否复制?',
|
|
title: '是否复制?',
|
|
confirm: handleCopy.bind(null, record),
|
|
confirm: handleCopy.bind(null, record),
|
|
@@ -65,6 +70,7 @@
|
|
{
|
|
{
|
|
label: '删除',
|
|
label: '删除',
|
|
color: 'error',
|
|
color: 'error',
|
|
|
|
+ ifShow:getCheckPerm('account-productDelete'),
|
|
popConfirm: {
|
|
popConfirm: {
|
|
title: '是否删除?',
|
|
title: '是否删除?',
|
|
confirm: handleDelete.bind(null, record),
|
|
confirm: handleDelete.bind(null, record),
|
|
@@ -105,6 +111,7 @@
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { columns,searchForm,cameraScene,cameraSearchForm} from './data'
|
|
import { columns,searchForm,cameraScene,cameraSearchForm} from './data'
|
|
import { useModal } from '/@/components/Modal';
|
|
import { useModal } from '/@/components/Modal';
|
|
|
|
+ import { usePermissionStore } from '/@/store/modules/permission';
|
|
import {
|
|
import {
|
|
operateSceneList,
|
|
operateSceneList,
|
|
sceneMove,
|
|
sceneMove,
|
|
@@ -135,10 +142,11 @@
|
|
const { createMessage, createConfirm } = useMessage();
|
|
const { createMessage, createConfirm } = useMessage();
|
|
const timer = ref<NodeJS.Timeout | number | undefined | null>(null);
|
|
const timer = ref<NodeJS.Timeout | number | undefined | null>(null);
|
|
const tableType = ref<number>(0); //0看看 、1看见、2深时
|
|
const tableType = ref<number>(0); //0看看 、1看见、2深时
|
|
- const tabList = ref<string[]>(['四维看看', '四维看见', '四维双目深时', '四维双目Lite']);
|
|
|
|
function cancelDownload() {
|
|
function cancelDownload() {
|
|
downloadOption.value = {};
|
|
downloadOption.value = {};
|
|
}
|
|
}
|
|
|
|
+ const permissionStore = usePermissionStore();
|
|
|
|
+ const { getCheckPerm } = permissionStore;
|
|
const [registerDownModal, { openModal: openDownModal }] = useModal();
|
|
const [registerDownModal, { openModal: openDownModal }] = useModal();
|
|
const [registerMoveModal, { openModal: openMoveModal }] = useModal();
|
|
const [registerMoveModal, { openModal: openMoveModal }] = useModal();
|
|
const [registerTableViewKankan, { reload:ViewReload }] = useTable({
|
|
const [registerTableViewKankan, { reload:ViewReload }] = useTable({
|
|
@@ -221,24 +229,11 @@
|
|
content: '删除失败',
|
|
content: '删除失败',
|
|
});
|
|
});
|
|
});
|
|
});
|
|
- // },
|
|
|
|
- // });
|
|
|
|
}
|
|
}
|
|
async function handleMove(record: Recordable) {
|
|
async function handleMove(record: Recordable) {
|
|
openMoveModal(true, {
|
|
openMoveModal(true, {
|
|
...record,
|
|
...record,
|
|
});
|
|
});
|
|
- // sceneMove({ snCode: record.snCode, num: record.num })
|
|
|
|
- // .then(() => {
|
|
|
|
- // message.success({
|
|
|
|
- // content: '迁移成功',
|
|
|
|
- // });
|
|
|
|
- // })
|
|
|
|
- // .catch(() => {
|
|
|
|
- // message.success({
|
|
|
|
- // content: '迁移失败',
|
|
|
|
- // });
|
|
|
|
- // });
|
|
|
|
}
|
|
}
|
|
// const timer = ref<NodeJS.Timeout | null = null>(null); //0看看 、1看见、2深时
|
|
// const timer = ref<NodeJS.Timeout | null = null>(null); //0看看 、1看见、2深时
|
|
const downloadOption = ref<Object>({});
|
|
const downloadOption = ref<Object>({});
|
|
@@ -312,27 +307,12 @@
|
|
downloadOption,
|
|
downloadOption,
|
|
cancelDownload,
|
|
cancelDownload,
|
|
ViewReload,
|
|
ViewReload,
|
|
|
|
+ getCheckPerm,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
- // .tableHeader {
|
|
|
|
- // height: 50px;
|
|
|
|
- // display: flex;
|
|
|
|
- // align-items: center;
|
|
|
|
-
|
|
|
|
- // .item {
|
|
|
|
- // font-size: 14px;
|
|
|
|
- // color: #666;
|
|
|
|
- // margin-right: 10px;
|
|
|
|
- // cursor: pointer;
|
|
|
|
- // &.active {
|
|
|
|
- // font-weight: bold;
|
|
|
|
- // color: #222;
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
.desc-wrap-BasicTable {
|
|
.desc-wrap-BasicTable {
|
|
background-color: #f0f2f5;
|
|
background-color: #f0f2f5;
|
|
.vben-basic-table-form-container {
|
|
.vben-basic-table-form-container {
|