|
@@ -12,6 +12,11 @@
|
|
|
stopButtonPropagation
|
|
|
:actions="[
|
|
|
{
|
|
|
+ label: '优先级',
|
|
|
+ ifShow: getCheckPerm('device-priority'),
|
|
|
+ onClick: handlePriority.bind(null, record),
|
|
|
+ },
|
|
|
+ {
|
|
|
label: '出库',
|
|
|
ifShow: getCheckPerm('device-out'),
|
|
|
onClick: handleCheckout.bind(null, record),
|
|
@@ -93,6 +98,7 @@ import { lte } from 'lodash';
|
|
|
const { createMessage, createConfirm } = useMessage();
|
|
|
const permissionStore = usePermissionStore();
|
|
|
const { getCheckPerm } = permissionStore;
|
|
|
+ const [registerPriority, { openModal: openPriorityModal }] = useModal();
|
|
|
const [registerLinkModal, { openModal: openLinkModal }] = useModal();
|
|
|
const [registerEditModal, { openModal: openEditModal }] = useModal();
|
|
|
const [register, { openModal }] = useModal();
|
|
@@ -195,7 +201,7 @@ import { lte } from 'lodash';
|
|
|
ifShow: true,
|
|
|
fixed: 'right',
|
|
|
flag: 'ACTION',
|
|
|
- width: 180,
|
|
|
+ width: 240,
|
|
|
},
|
|
|
];
|
|
|
const searchForm: Partial<FormProps> = {
|
|
@@ -409,7 +415,9 @@ import { lte } from 'lodash';
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+ function handlePriority(record) {
|
|
|
+ openPriorityModal(true, {cameraId:record.id});
|
|
|
+ }
|
|
|
function deviceLink() {
|
|
|
openLinkModal(true);
|
|
|
}
|
|
@@ -453,6 +461,8 @@ import { lte } from 'lodash';
|
|
|
handleDelete,
|
|
|
registerPut,
|
|
|
getCheckPerm,
|
|
|
+ handlePriority,
|
|
|
+ registerPriority,
|
|
|
};
|
|
|
},
|
|
|
});
|