From 1778ea9fb45ac6f91b6c462f7cb2f330e2ee0470 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Tue, 10 Dec 2024 15:21:20 +0800 Subject: [PATCH] sc --- src/components/Editor/src/Editor.vue | 40 ++-- src/router/modules/remaining.ts | 42 ++-- .../Appraise/Components/DialogAppraise.vue | 183 ++++++++++++++++ src/views/Kpi/Appraise/index.vue | 69 ++++-- src/views/Kpi/Score/index.vue | 202 +++++++++++++++++- 5 files changed, 478 insertions(+), 58 deletions(-) create mode 100644 src/views/Kpi/Appraise/Components/DialogAppraise.vue diff --git a/src/components/Editor/src/Editor.vue b/src/components/Editor/src/Editor.vue index a75ef4a..33affc4 100644 --- a/src/components/Editor/src/Editor.vue +++ b/src/components/Editor/src/Editor.vue @@ -24,7 +24,27 @@ const props = defineProps({ default: () => undefined }, readonly: propTypes.bool.def(false), - modelValue: propTypes.string.def('') + modelValue: propTypes.string.def(''), + toolbarConfig: { + type: Object, + default: () => ({ + excludeKeys: [ + 'insertVideo', // 网络视频 + 'insertImage', // 网络图片 + 'insertLink', // 链接 + 'codeBlock', // 代码块 + 'headerSelect', // 标题 + 'blockquote', // 引用 + 'fontFamily', // 字体 + 'todo', // 代办 + 'group-indent', // 缩进 + 'emotion', // 表情 + 'undo', // 撤销 + 'redo', // 重做 + 'fullScreen' + ] + }) + } }) const emit = defineEmits(['change', 'update:modelValue']) @@ -212,24 +232,6 @@ const editorStyle = computed(() => { } }) -const toolbarConfig = ref({ - excludeKeys: [ - 'insertVideo', // 网络视频 - 'insertImage', // 网络图片 - 'insertLink', // 链接 - 'codeBlock', // 代码块 - 'headerSelect', // 标题 - 'blockquote', // 引用 - 'fontFamily', // 字体 - 'todo', // 代办 - 'group-indent', // 缩进 - 'emotion', // 表情 - 'undo', // 撤销 - 'redo', // 重做 - 'fullScreen' - ] -}) - // 回调函数 const handleChange = (editor: IDomEditor) => { emit('change', editor) diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index fdd7af5..348d8ae 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -129,27 +129,27 @@ const remainingRouter: AppRouteRecordRaw[] = [ // } // ] // }, - // { - // path: '/Basic', - // component: Layout, - // name: 'Basic', - // meta: { title: '菜单管理' }, - // redirect: '/Basic/menu', - // children: [ - // { - // path: 'menu', - // component: () => import('@/views/Basic/Menu/index.vue'), - // name: 'Menu', - // meta: { - // canTo: true, - // hidden: true, - // noTagsView: false, - // icon: 'ep:user', - // title: '菜单管理' - // } - // } - // ] - // }, + { + path: '/Basic', + component: Layout, + name: 'Basic', + meta: { title: '菜单管理' }, + redirect: '/Basic/menu', + children: [ + { + path: 'menu', + component: () => import('@/views/Basic/Menu/index.vue'), + name: 'Menu', + meta: { + canTo: true, + hidden: true, + noTagsView: false, + icon: 'ep:user', + title: '菜单管理' + } + } + ] + }, { path: '/login', component: () => import('@/views/Login/Login.vue'), diff --git a/src/views/Kpi/Appraise/Components/DialogAppraise.vue b/src/views/Kpi/Appraise/Components/DialogAppraise.vue new file mode 100644 index 0000000..1534e43 --- /dev/null +++ b/src/views/Kpi/Appraise/Components/DialogAppraise.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/src/views/Kpi/Appraise/index.vue b/src/views/Kpi/Appraise/index.vue index 846eeb2..9e0f417 100644 --- a/src/views/Kpi/Appraise/index.vue +++ b/src/views/Kpi/Appraise/index.vue @@ -1,9 +1,9 @@ +