|
|
@@ -1,9 +1,9 @@
|
|
|
-import { Col, Form, Input, message, Modal, Row, Select } from 'antd';
|
|
|
+import { Col, Form, Input, message, Row, Select } from 'antd';
|
|
|
import { service } from '@/pages/device/Instance';
|
|
|
import type { DeviceInstance } from '../typings';
|
|
|
import { useEffect, useState } from 'react';
|
|
|
import { useIntl } from '@@/plugin-locale/localeExports';
|
|
|
-import { UploadImage } from '@/components';
|
|
|
+import { UploadImage, Modal } from '@/components';
|
|
|
import { debounce } from 'lodash';
|
|
|
|
|
|
interface Props {
|
|
|
@@ -119,6 +119,8 @@ const Save = (props: Props) => {
|
|
|
})}
|
|
|
confirmLoading={loading}
|
|
|
onOk={handleSave}
|
|
|
+ permissionCode={'device/Instance'}
|
|
|
+ permission={'add'}
|
|
|
>
|
|
|
<Form
|
|
|
form={form}
|