diff --git a/src/api/system-boot/dic.ts b/src/api/system-boot/dic.ts
index 24d5dc2..153a0ca 100644
--- a/src/api/system-boot/dic.ts
+++ b/src/api/system-boot/dic.ts
@@ -1,6 +1,6 @@
import createAxios from '@/utils/request'
-export const deleteStatistical = (id) => {
+export const dicDelete = (id: string) => {
let form = new FormData()
form.append('id', id)
return createAxios({
@@ -12,3 +12,19 @@ export const deleteStatistical = (id) => {
data: form
})
}
+
+export function dicAdd(data: any) {
+ return createAxios({
+ url: '/system-boot/dic/add',
+ method: 'post',
+ data: data
+ })
+}
+
+export function dicUpdate(data: any) {
+ return createAxios({
+ url: '/system-boot/dic/update',
+ method: 'put',
+ data: data
+ })
+}
\ No newline at end of file
diff --git a/src/views/auth/role/index.vue b/src/views/auth/role/index.vue
index 89fc496..7fb58c8 100644
--- a/src/views/auth/role/index.vue
+++ b/src/views/auth/role/index.vue
@@ -18,7 +18,7 @@
>
-
+
\ No newline at end of file
+const addMenu = () => {
+ popupFormRef.value.open('新增字典类型')
+}
+
diff --git a/src/views/setting/dictionary/tree/popupForm.vue b/src/views/setting/dictionary/tree/popupForm.vue
new file mode 100644
index 0000000..5367ec8
--- /dev/null
+++ b/src/views/setting/dictionary/tree/popupForm.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/types/table.d.ts b/types/table.d.ts
index 7430c77..f86be46 100644
--- a/types/table.d.ts
+++ b/types/table.d.ts
@@ -77,7 +77,7 @@ declare global {
interface OptButton {
// 渲染方式:tipButton=带tip的按钮,confirmButton=带确认框的按钮,moveButton=移动按钮,basicButton=普通按钮
render: 'tipButton' | 'confirmButton' | 'moveButton' | 'basicButton'
- name: string
+ name?: string
title?: string
text?: string
class?: string