From c644d7ef6dd3f75311da3905c2c1874c67773b23 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Thu, 10 Oct 2024 18:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E7=B1=BB=E5=9E=8B=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting/statisticalType/binding.vue | 99 ++++++++----------- 1 file changed, 41 insertions(+), 58 deletions(-) diff --git a/src/views/govern/setting/statisticalType/binding.vue b/src/views/govern/setting/statisticalType/binding.vue index 50a7635..986b800 100644 --- a/src/views/govern/setting/statisticalType/binding.vue +++ b/src/views/govern/setting/statisticalType/binding.vue @@ -1,45 +1,22 @@ - + 向左
- - + + @@ -110,6 +77,7 @@ import { ref, inject } from 'vue' import { CascaderValue, ElMessage } from 'element-plus' import { addStatistical, queryStatistical } from '@/api/system-boot/csstatisticalset' +import { getDictTreeById } from '@/api/system-boot/dictTree' import PopupAdd from './add.vue' import { dicDelete } from '@/api/system-boot/dic' import List from '@/views/pms/comptroller/list.vue' @@ -368,6 +336,8 @@ const dicDeleteGroup = (data: any) => { } const newGroup = () => { + console.log("🚀 ~ newGroup ~ toData.value.length:", toData.value[toData.value.length - 1].sort + 1) + addRef.value.open('新增菜单', { sort: toData.value.length ? toData.value[toData.value.length - 1].sort + 1 : 1, code: '', @@ -377,6 +347,19 @@ const newGroup = () => { name: '' }) } +const editGroup = (data: any) => { + getDictTreeById(data.id).then(res => { + addRef.value.open('修改菜单', { + sort: res.data.sort || 100, + code: res.data.code || '', + pid: res.data.pid || '', + id: res.data.id || '', + remark: res.data.remark || '', + name: res.data.name || '' + }) + }) + +} const open = (id: string) => { dialogVisible.value = true