Merge branch 'dev' of github.com:jetlinks/jetlinks-ui-vue into dev

This commit is contained in:
JiangQiming 2023-03-21 16:07:59 +08:00
commit cc879c1731
1 changed files with 12 additions and 1 deletions

View File

@ -398,6 +398,7 @@ import 'driver.js/dist/driver.min.css';
import { marked } from 'marked';
import type { TableColumnType } from 'ant-design-vue';
import { useMenuStore } from '@/store/menu';
import _ from 'lodash';
const formRef = ref();
const menuStore = useMenuStore();
const permissionStore = usePermissionStore();
@ -912,7 +913,6 @@ const submitData = async () => {
visible.value = false;
queryParams.value = {};
});
}
} else {
message.error('请选择接入方式');
@ -955,6 +955,17 @@ const getData = async (accessId?: string) => {
metadata.value = (resp?.result[0] as ConfigMetadata) || {
properties: [],
};
// udp
if (metadata.value?.properties) {
metadata.value?.properties.forEach((item) => {
if (
item.name === '流传输模式' && (!productStore.current?.configuration || !productStore.current?.configuration.hasOwnProperty(item.name))
) {
formData.data[item.name] =
item.type.expands?.defaultValue;
}
});
}
if (accessId) {
//
getGuide(resp?.result.length); //