|
@@ -20,7 +20,7 @@
|
|
:rowSelection="tableType == 3 ? false : rowSelection"
|
|
:rowSelection="tableType == 3 ? false : rowSelection"
|
|
>
|
|
>
|
|
<template #toolbar>
|
|
<template #toolbar>
|
|
- <a-button type="primary" @click="handleMoveAll" v-if="tableType != 3 && getCheckPerm('scenes-move-batch')"> 批量迁移</a-button>
|
|
|
|
|
|
+ <a-button type="primary" @click="handleMoveAll" v-if="tableType != 3 && tableType != 57 && tableType != 58 && getCheckPerm('scenes-move-batch')"> 批量迁移</a-button>
|
|
</template>
|
|
</template>
|
|
<template #status="{ record }">
|
|
<template #status="{ record }">
|
|
<span v-if="record.status != '-1'">{{ record.statusString }}</span>
|
|
<span v-if="record.status != '-1'">{{ record.statusString }}</span>
|
|
@@ -54,7 +54,7 @@
|
|
{
|
|
{
|
|
label: '迁移',
|
|
label: '迁移',
|
|
disabled: !(record.status == 1 || record.status == -2),
|
|
disabled: !(record.status == 1 || record.status == -2),
|
|
- ifShow: getTypeCheckPerm('scenes-move') && tableType != 3,
|
|
|
|
|
|
+ ifShow: getTypeCheckPerm('scenes-move') && tableType != 3 && tableType != 57 && tableType != 58,
|
|
onClick: handleMove.bind(null, record),
|
|
onClick: handleMove.bind(null, record),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -65,7 +65,7 @@
|
|
{
|
|
{
|
|
label: '解冻',
|
|
label: '解冻',
|
|
disabled: !record.isColdStorage || !(record.status == 1 || record.status == -2),
|
|
disabled: !record.isColdStorage || !(record.status == 1 || record.status == -2),
|
|
- ifShow: getTypeCheckPerm('scenes-thaw'),
|
|
|
|
|
|
+ ifShow: getTypeCheckPerm('scenes-thaw') && tableType != 57 && tableType != 58,
|
|
onClick: handleColdStorage.bind(null, record),
|
|
onClick: handleColdStorage.bind(null, record),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -88,7 +88,7 @@
|
|
{
|
|
{
|
|
label: '复制',
|
|
label: '复制',
|
|
disabled: !(record.status == 1 || (record.status == -2 && record.payStatus == 1)),
|
|
disabled: !(record.status == 1 || (record.status == -2 && record.payStatus == 1)),
|
|
- ifShow: getTypeCheckPerm('scenes-copy') && tableType != 3,
|
|
|
|
|
|
+ ifShow: getTypeCheckPerm('scenes-copy') && tableType != 3 && tableType != 57 && tableType != 58,
|
|
onClick: handleCopy.bind(null, record),
|
|
onClick: handleCopy.bind(null, record),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -180,7 +180,10 @@
|
|
[Tabs.name]: Tabs,
|
|
[Tabs.name]: Tabs,
|
|
[Tabs.TabPane.name]: Tabs.TabPane,
|
|
[Tabs.TabPane.name]: Tabs.TabPane,
|
|
},
|
|
},
|
|
- setup() {
|
|
|
|
|
|
+ props: {
|
|
|
|
+ userName: String,
|
|
|
|
+ },
|
|
|
|
+ setup(props) {
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
const { createMessage, createConfirm } = useMessage();
|
|
const { createMessage, createConfirm } = useMessage();
|
|
const permissionStore = usePermissionStore();
|
|
const permissionStore = usePermissionStore();
|
|
@@ -198,7 +201,7 @@
|
|
actionColOptions: {
|
|
actionColOptions: {
|
|
span: 24,
|
|
span: 24,
|
|
},
|
|
},
|
|
- schemas: getSchemas(),
|
|
|
|
|
|
+ schemas: getSchemas('', props.userName),
|
|
};
|
|
};
|
|
function cancelDownload() {
|
|
function cancelDownload() {
|
|
downloadOption.value = {
|
|
downloadOption.value = {
|
|
@@ -218,7 +221,7 @@
|
|
title: `场景列表`,
|
|
title: `场景列表`,
|
|
columns: getColumns(false),
|
|
columns: getColumns(false),
|
|
// rowSelection: { type: 'checkbox' },
|
|
// rowSelection: { type: 'checkbox' },
|
|
- searchInfo: { type: tableType },
|
|
|
|
|
|
+ searchInfo: { type: tableType, userName: props.userName },
|
|
useSearchForm: true,
|
|
useSearchForm: true,
|
|
formConfig: searchFormSs,
|
|
formConfig: searchFormSs,
|
|
showTableSetting: true,
|
|
showTableSetting: true,
|
|
@@ -259,9 +262,9 @@
|
|
let sgetForm = getForm();
|
|
let sgetForm = getForm();
|
|
if(sgetForm){
|
|
if(sgetForm){
|
|
sgetForm.resetFields()
|
|
sgetForm.resetFields()
|
|
- sgetForm.updateSchema(getSchemas(val))
|
|
|
|
|
|
+ sgetForm.updateSchema(getSchemas(val, props.userName))
|
|
}
|
|
}
|
|
- console.log('sgetForm', sgetForm);
|
|
|
|
|
|
+ console.log('sgetForm', sgetForm, val);
|
|
setColumns(getColumns(val));
|
|
setColumns(getColumns(val));
|
|
clearSelectedRowKeys();
|
|
clearSelectedRowKeys();
|
|
reload();
|
|
reload();
|
|
@@ -281,7 +284,7 @@
|
|
async function handleCopy(record: Recordable) {
|
|
async function handleCopy(record: Recordable) {
|
|
createConfirm({
|
|
createConfirm({
|
|
title: '复制场景',
|
|
title: '复制场景',
|
|
- content: '复制场景,场景归属在原相机下。<br/>确定要复制场景吗?',
|
|
|
|
|
|
+ content: '确定要复制场景吗?',
|
|
onOk: async () => {
|
|
onOk: async () => {
|
|
sceneCopy({ num: record.num }).then(() => {
|
|
sceneCopy({ num: record.num }).then(() => {
|
|
message.success({
|
|
message.success({
|
|
@@ -426,6 +429,7 @@
|
|
rowSelection,
|
|
rowSelection,
|
|
clearSelectedRowKeys,
|
|
clearSelectedRowKeys,
|
|
getCheckPerm,
|
|
getCheckPerm,
|
|
|
|
+ userName: props.userName,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
});
|
|
});
|