Merge branch 'dev' of github.com:jetlinks/jetlinks-ui-vue into dev
This commit is contained in:
commit
cc879c1731
|
|
@ -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); //
|
||||
|
|
|
|||
Loading…
Reference in New Issue