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

This commit is contained in:
JiangQiming 2023-03-29 14:43:15 +08:00
commit 0e5ba309fc
3 changed files with 16 additions and 9 deletions

View File

@ -27,7 +27,11 @@
terms: [
{
terms: [
{ column: 'parentId$isnull', value: '1' },
{
column: 'parentId$isnull',
value: '',
type: 'or',
},
{
column: 'parentId$not',
value: detail.id,
@ -43,6 +47,7 @@
type: 'and',
},
],
type: 'and',
},
{
terms: [

View File

@ -85,6 +85,7 @@
:value="form.deviceType"
:options="deviceList"
@change="changeDeviceType"
:disabled="disabled"
>
<template #title="item">
<span>{{ item.title }}</span>
@ -265,13 +266,6 @@ const dealProductTree = (arr: any) => {
return element
});
};
watch(
() => props.isAdd,
() => {
// queryProductTree();
},
{ immediate: true, deep: true },
);
/**
* 显示弹窗
*/
@ -318,7 +312,6 @@ const submitData = () => {
formRef.value
.validate()
.then(async () => {
console.log(form);
//
if (props.isAdd === 1) {
if (form.id === '') {

View File

@ -42,6 +42,15 @@
enabled: 'processing',
disabled: 'error',
}"
@click="
() => {
menuStory.jumpPage(
'rule-engine/Alarm/Configuration/Save',
{},
{ id: slotProps.id },
);
}
"
>
<template #img>
<slot name="img">