feat: 网络组件详情 新增/编辑功能
This commit is contained in:
parent
9fee5864c5
commit
235b620c9e
|
@ -30,3 +30,9 @@ export const allResources = () => server.get(`/network/resources/alive/_all`);
|
|||
|
||||
export const certificates = () =>
|
||||
server.get(`/network/certificate/_query/no-paging?paging=false`);
|
||||
|
||||
export const save = (data: Object) => server.post(`/network/config`, data);
|
||||
|
||||
export const update = (data: Object) => server.patch(`/network/config`, data);
|
||||
|
||||
export const detail = (id: string) => server.get(`/network/config/${id}`);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -10,7 +10,7 @@ export const Configuration = {
|
|||
username: '',
|
||||
password: '',
|
||||
topicPrefix: '',
|
||||
maxMessageSize: '',
|
||||
maxMessageSize: 8192,
|
||||
certId: undefined,
|
||||
privateKeyAlias: '',
|
||||
clientId: '',
|
||||
|
@ -76,7 +76,6 @@ export const VisibleData = {
|
|||
length: ['LENGTH_FIELD'],
|
||||
offset: ['LENGTH_FIELD'],
|
||||
little: ['LENGTH_FIELD'],
|
||||
secureSpan12: ['MQTT_CLIENT', 'MQTT_SERVER'],
|
||||
};
|
||||
|
||||
export const ParserTypeOptions = [
|
||||
|
@ -226,8 +225,8 @@ export const Rules = {
|
|||
],
|
||||
maxMessageSize: [
|
||||
{
|
||||
max: 64,
|
||||
message: '最大可输入64个字符',
|
||||
required: true,
|
||||
message: '请输入最大消息长度',
|
||||
},
|
||||
],
|
||||
secure: [
|
||||
|
|
|
@ -10,7 +10,7 @@ export interface ConfigurationType {
|
|||
username: string;
|
||||
password: string;
|
||||
topicPrefix: string;
|
||||
maxMessageSize: string;
|
||||
maxMessageSize: string | number;
|
||||
certId: string | undefined;
|
||||
privateKeyAlias: string;
|
||||
clientId: string;
|
||||
|
@ -21,7 +21,7 @@ export interface ConfigurationType {
|
|||
size: string;
|
||||
length: string;
|
||||
offset: string;
|
||||
little: string | boolean;
|
||||
little: string | boolean | undefined;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue