From 0d48bf645c6cff743596c68fe4353936ff58b2cb Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Wed, 24 Dec 2025 15:11:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=8A=A0=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/project/index.vue | 94 ++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/src/views/system/project/index.vue b/src/views/system/project/index.vue index 64c5d4c..4d08104 100644 --- a/src/views/system/project/index.vue +++ b/src/views/system/project/index.vue @@ -10,6 +10,12 @@ + + + + + + 保存 @@ -63,6 +69,36 @@
+ +
+ + 隐私协议 + + + 保存 + 预览 + + + +
+ +
+
+ +
+ + 首页弹窗 + + + 保存 + 预览 + + + +
+ +
+
@@ -91,6 +127,9 @@ function preview(type){ }else if(type == 4){ previewForm.contentHtml = privacyRef.value.getHtml(); previewForm.title = "隐私协议" + }else if(type == 5){ + previewForm.contentHtml = dialogRef.value.getHtml(); + previewForm.title = "首页弹窗" } previewRef.value.show(previewForm) } @@ -103,6 +142,7 @@ const formState = reactive({ const rubricRef = ref(); const dealRef = ref(); const privacyRef = ref(); +const dialogRef = ref(); const rubricToolbarConfig = { toolbarKeys : ['bold', 'underline', 'italic', 'through', 'code', 'sub', 'sup', 'clearStyle', 'color', 'bgColor', 'fontSize', 'fontFamily', 'indent', 'delIndent', 'justifyLeft', 'justifyRight', 'justifyCenter', 'justifyJustify', 'lineHeight', 'insertImage', 'deleteImage', 'editImage', 'divider', 'insertLink', 'editLink', 'unLink', 'viewLink', 'codeBlock', 'blockquote', 'headerSelect', 'redo', 'undo', 'fullScreen', 'enter', 'bulletedList', 'numberedList','uploadImage' ] @@ -115,6 +155,9 @@ const dealToolbarConfig = { const privacyToolbarConfig = { toolbarKeys : ['bold', 'underline', 'italic', 'through', 'code', 'sub', 'sup', 'clearStyle', 'color', 'bgColor', 'fontSize', 'fontFamily', 'indent', 'delIndent', 'justifyLeft', 'justifyRight', 'justifyCenter', 'justifyJustify', 'lineHeight', 'insertImage', 'deleteImage', 'editImage', 'divider', 'insertLink', 'editLink', 'unLink', 'viewLink', 'codeBlock', 'blockquote', 'headerSelect', 'redo', 'undo', 'fullScreen', 'enter', 'bulletedList', 'numberedList'] } +const dialogToolbarConfig = { + toolbarKeys : ['bold', 'underline', 'italic', 'through', 'code', 'sub', 'sup', 'clearStyle', 'color', 'bgColor', 'fontSize', 'fontFamily', 'indent', 'delIndent', 'justifyLeft', 'justifyRight', 'justifyCenter', 'justifyJustify', 'lineHeight', 'insertImage', 'deleteImage', 'editImage', 'divider', 'insertLink', 'editLink', 'unLink', 'viewLink', 'codeBlock', 'blockquote', 'headerSelect', 'redo', 'undo', 'fullScreen', 'enter', 'bulletedList', 'numberedList','uploadImage'] +} const rubricForm = reactive({ configId: undefined, @@ -123,6 +166,13 @@ const rubricForm = reactive({ configValue: '', remark: '', }); +const dialogForm = reactive({ + configId: undefined, + configKey: '', + configName: '', + configValue: '', + remark: '', + }); const dealForm = reactive({ configId: undefined, @@ -155,11 +205,27 @@ const caseSwitchForm = reactive({ configValue: '', remark: '', }); + const caseNewSwitchForm = reactive({ + configId: undefined, + configKey: '', + configName: '', + configValue: '', + remark: '', + }); + const caseUpdateSwitchForm = reactive({ + configId: undefined, + configKey: '', + configName: '', + configValue: '', + remark: '', + }); function save(type){ if(type == 1){ onSubmit(caseNumForm) onSubmit(caseSwitchForm) + onSubmit(caseNewSwitchForm) + onSubmit(caseUpdateSwitchForm) }else if(type == 2){ rubricForm.configValue = rubricRef.value.getHtml(); onSubmit(rubricForm) @@ -169,6 +235,9 @@ function save(type){ }else if(type == 4){ privacyForm.configValue = privacyRef.value.getHtml(); onSubmit(privacyForm) + }else if(type == 5){ + dialogForm.configValue = dialogRef.value.getHtml(); + onSubmit(dialogForm) } } @@ -207,6 +276,10 @@ async function getCaseNum(){ let response = await configApi.queryByKey("CaseNum") Object.assign(caseNumForm, response.data); } +async function getDialog(){ + let response = await configApi.queryByKey("IndexNotice") + Object.assign(dialogForm, response.data); +} async function getCaseSwitch(){ let response = await configApi.queryByKey("CaseSwitch") if(response.data.configValue == "true"){ @@ -216,6 +289,24 @@ async function getCaseSwitch(){ } Object.assign(caseSwitchForm, response.data); } +async function getCaseNewSwitch(){ + let response = await configApi.queryByKey("CaseNewSwitch") + if(response.data.configValue == "true"){ + response.data.configValue = true + }else{ + response.data.configValue = false + } + Object.assign(caseNewSwitchForm, response.data); +} +async function getCaseUpdateSwitch(){ + let response = await configApi.queryByKey("CaseUpdateSwitch") + if(response.data.configValue == "true"){ + response.data.configValue = true + }else{ + response.data.configValue = false + } + Object.assign(caseUpdateSwitchForm, response.data); +} onMounted(()=>{ getRubric() @@ -223,6 +314,9 @@ onMounted(()=>{ getPrivacy() getCaseNum() getCaseSwitch() + getCaseNewSwitch() + getCaseUpdateSwitch() + getDialog() });