From 028e869547192a7c4bdfcbf8b0d68fc59a4ccd9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A3=8A?= <13466513767@163.com> Date: Tue, 14 Apr 2026 13:29:50 +0800 Subject: [PATCH] =?UTF-8?q?'=E9=9A=90=E7=A7=81=E5=8D=8F=E8=AE=AE'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/privacy/index.ts | 43 +++++ src/components/WangEditor/index.vue | 77 ++++----- .../privacy/components/PrivacyDialog.vue | 104 ++++++++++++ src/views/privacy/index.vue | 157 ++++++++++++++++++ 4 files changed, 343 insertions(+), 38 deletions(-) create mode 100644 src/api/privacy/index.ts create mode 100644 src/views/privacy/components/PrivacyDialog.vue create mode 100644 src/views/privacy/index.vue diff --git a/src/api/privacy/index.ts b/src/api/privacy/index.ts new file mode 100644 index 0000000..cf697cb --- /dev/null +++ b/src/api/privacy/index.ts @@ -0,0 +1,43 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +//隐私协议列表 +export function privacyList(data): AxiosPromise { + return request({ + url: '/admin/v1/agreement/list', + method: 'post', + data + }); +} +//协议类型列表 +export function agreementTypeList(data): AxiosPromise { + return request({ + url: '/admin/v1/agreement/types', + method: 'post', + data + }); +} +//隐私协议添加 +export function addPrivacy(data): AxiosPromise { + return request({ + url: '/admin/v1/agreement/create', + method: 'post', + data + }) +} +//隐私协议修改 +export function updatePrivacy(data): AxiosPromise { + return request({ + url: '/admin/v1/agreement/update', + method: 'post', + data + }) +} + +//隐私协议删除 +export function deletePrivacy(data): AxiosPromise { + return request({ + url: '/admin/v1/agreement/delete', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/components/WangEditor/index.vue b/src/components/WangEditor/index.vue index 2e3e2eb..6f8d683 100644 --- a/src/components/WangEditor/index.vue +++ b/src/components/WangEditor/index.vue @@ -10,8 +10,7 @@ diff --git a/src/views/privacy/index.vue b/src/views/privacy/index.vue new file mode 100644 index 0000000..faa6caa --- /dev/null +++ b/src/views/privacy/index.vue @@ -0,0 +1,157 @@ + + + + +