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: [
{ {
terms: [ terms: [
{ column: 'parentId$isnull', value: '1' }, {
column: 'parentId$isnull',
value: '',
type: 'or',
},
{ {
column: 'parentId$not', column: 'parentId$not',
value: detail.id, value: detail.id,
@ -43,6 +47,7 @@
type: 'and', type: 'and',
}, },
], ],
type: 'and',
}, },
{ {
terms: [ terms: [

View File

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

View File

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