From e3c98846068f73391eb9ea509509e70fc58cc602 Mon Sep 17 00:00:00 2001 From: xieyonghong <18010623010@163.com> Date: Thu, 30 Mar 2023 09:08:21 +0800 Subject: [PATCH 01/11] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E8=A7=84=E5=88=99-=E5=8A=9F=E8=83=BD=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E9=AA=8C=E8=AF=81=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ValueItem/index.vue | 10 +++++----- .../Save/components/FunctionCall/FunctionCall.vue | 3 --- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/ValueItem/index.vue b/src/components/ValueItem/index.vue index 09d33c26..769951c6 100644 --- a/src/components/ValueItem/index.vue +++ b/src/components/ValueItem/index.vue @@ -176,8 +176,8 @@ const objectValue = ref(''); const handleItemModalSubmit = () => { myValue.value = objectValue.value.replace(/[\r\n]\s*/g, ''); modalVis.value = false; + emit('update:modelValue', objectValue.value); emit('change', objectValue.value) - emit('update:modelValue', myValue.value); }; // 文件上传 @@ -192,23 +192,23 @@ const handleFileChange = (info: UploadChangeParam>) => { }; const selectChange = (e: string, option: any) => { - emit('change', e, option) emit('update:modelValue', myValue.value); + emit('change', e, option) } const timeChange = (e: any) => { - emit('change', e) emit('update:modelValue', myValue.value); + emit('change', e) } const inputChange = (e: any) => { - emit('change', e && e.target ? e.target.value : e) emit('update:modelValue', myValue.value); + emit('change', e && e.target ? e.target.value : e) } const dateChange = (e: any) => { - emit('change', e) emit('update:modelValue', myValue.value); + emit('change', e) } myValue.value = props.modelValue diff --git a/src/views/rule-engine/Scene/Save/components/FunctionCall/FunctionCall.vue b/src/views/rule-engine/Scene/Save/components/FunctionCall/FunctionCall.vue index accd5e7b..5436ca4e 100644 --- a/src/views/rule-engine/Scene/Save/components/FunctionCall/FunctionCall.vue +++ b/src/views/rule-engine/Scene/Save/components/FunctionCall/FunctionCall.vue @@ -99,14 +99,11 @@ const handleOptions = (record: any) => { } const valueChange = () => { - console.log('valueChange', dataSource.value) const _value = dataSource.value.map(item => { - console.log(item.value) return { name: item.id, value: item.value } }) - console.log('valueChange2', _value) emit('update:value', _value) emit('change', _value) } From a3cb28ed5be54fab868370c84db6b6e321d3bf3d Mon Sep 17 00:00:00 2001 From: xieyonghong <18010623010@163.com> Date: Thu, 30 Mar 2023 09:25:06 +0800 Subject: [PATCH 02/11] fix: bug#11192 --- src/views/rule-engine/Scene/Save/components/Timer/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/rule-engine/Scene/Save/components/Timer/util.ts b/src/views/rule-engine/Scene/Save/components/Timer/util.ts index c919aa48..23ad9b50 100644 --- a/src/views/rule-engine/Scene/Save/components/Timer/util.ts +++ b/src/views/rule-engine/Scene/Save/components/Timer/util.ts @@ -73,7 +73,7 @@ export const handleTimerOptions = (timer: OperationTimer):TimerOption => { const whenStrArr = continuousValue(timer.when! || [], timer!.trigger); const whenStrArr3 = whenStrArr.splice(0, 3); when += whenStrArr3.join('、'); - when += `等${timer.when!.length}天`; + when += `...等${timer.when!.length}天`; } if (timer.once) { From d3ea02c0f6661768b6b0886cd5aad4d3a6086f96 Mon Sep 17 00:00:00 2001 From: xieyonghong <18010623010@163.com> Date: Thu, 30 Mar 2023 11:08:26 +0800 Subject: [PATCH 03/11] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E7=AE=A1=E7=90=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/Department/components/LeftTree.vue | 117 ++++++++++-------- src/views/system/Department/index.vue | 72 ++++++----- src/views/system/Department/user/index.vue | 1 + 3 files changed, 105 insertions(+), 85 deletions(-) diff --git a/src/views/system/Department/components/LeftTree.vue b/src/views/system/Department/components/LeftTree.vue index b5565e0f..e2972961 100644 --- a/src/views/system/Department/components/LeftTree.vue +++ b/src/views/system/Department/components/LeftTree.vue @@ -23,58 +23,59 @@
- - - -
- + + + + + +
diff --git a/src/views/system/Department/index.vue b/src/views/system/Department/index.vue index 3ebef3e7..7f40433e 100644 --- a/src/views/system/Department/index.vue +++ b/src/views/system/Department/index.vue @@ -1,28 +1,30 @@ @@ -45,19 +47,25 @@ const openDeviceBind = () => { diff --git a/src/views/system/Department/user/index.vue b/src/views/system/Department/user/index.vue index a6e459c1..cb79dd88 100644 --- a/src/views/system/Department/user/index.vue +++ b/src/views/system/Department/user/index.vue @@ -155,6 +155,7 @@ const handleParams = (params: any) => { // 表格 const tableRef = ref>({}); // 表格实例 + const table = reactive({ _selectedRowKeys: [] as string[], From 9b7b78fe3334c6da2080cf80040a03aa61654b1c Mon Sep 17 00:00:00 2001 From: xieyonghong <18010623010@163.com> Date: Thu, 30 Mar 2023 11:11:41 +0800 Subject: [PATCH 04/11] fix: bug#11191 --- .../rule-engine/Scene/Save/components/Timer/index.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/views/rule-engine/Scene/Save/components/Timer/index.vue b/src/views/rule-engine/Scene/Save/components/Timer/index.vue index c0930d3e..7531a609 100644 --- a/src/views/rule-engine/Scene/Save/components/Timer/index.vue +++ b/src/views/rule-engine/Scene/Save/components/Timer/index.vue @@ -215,9 +215,20 @@ defineExpose({ resolve(data) }) }) + Object.assign(formModel, props.value) formModel.when = props.value.when || [] +watchEffect(() => { + if(props.value?.period.unit === 'hours') { + unitMax. + value = 99999 + } else { + unitMax.value = 99 + } +}) + +