From c5ca09b9610a24edf047c43f11733f452a8c174b Mon Sep 17 00:00:00 2001 From: yyhouc <792163605@qq.com> Date: Fri, 14 Apr 2023 18:06:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90contact=E3=80=81tools?= =?UTF-8?q?=E9=83=A8=E5=88=86=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/api/contact/index.js | 34 +- src/api/tool/index.js | 4 +- src/utils/request.js | 2 +- .../responseManagement/contact/index.vue | 309 +++++++++++------- src/views/responseManagement/tool/index.vue | 2 +- 6 files changed, 225 insertions(+), 127 deletions(-) diff --git a/package.json b/package.json index 37ea273..d890010 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dependencies": { "@element-plus/icons-vue": "^2.1.0", "@mapbox/leaflet-omnivore": "^0.3.4", + "@vueup/vue-quill": "^1.0.0-alpha.40", "axios": "^1.3.4", "echarts": "^5.4.2", "element-plus": "^2.3.1", diff --git a/src/api/contact/index.js b/src/api/contact/index.js index 19751fd..016daf1 100644 --- a/src/api/contact/index.js +++ b/src/api/contact/index.js @@ -1,14 +1,17 @@ import request from '/@/utils/request'; import {moduleName} from '/@/utils/request'; export const getList = (current, size, param) => { + let params = { + current, + size, + }; + if(param){ + params = Object.assign(params, param); + } return request({ url: '/api/'+moduleName+'/ui/contact/list', method: 'get', - params: { - current, - size, - param, - }, + params: params, }); } export const submit = (row) => { @@ -22,8 +25,8 @@ export const remove = (ids) => { return request({ url: '/api/'+moduleName+'/ui/contact/remove', method: 'post', - data: { - ids, + params: { + ids:ids, } }) } @@ -37,3 +40,20 @@ export const detail = (id) => { } }) } + +export const emailSend = (email) => { + return request({ + url: '/api/'+moduleName+'/ui/contact/sendEmail', + method: 'post', + data: email + }) +} +export const Observed = (id) => { + return request({ + url: '/api/'+moduleName+'/ui/contact/observed', + method: 'get', + params: { + id + } + }) +} \ No newline at end of file diff --git a/src/api/tool/index.js b/src/api/tool/index.js index 9b8dd2d..19a84e8 100644 --- a/src/api/tool/index.js +++ b/src/api/tool/index.js @@ -25,8 +25,8 @@ export const remove = (ids) => { return request({ url: '/api/'+moduleName+'/ui/tool/remove', method: 'post', - data: { - ids, + params: { + ids:ids, } }) } diff --git a/src/utils/request.js b/src/utils/request.js index 7bec6b1..5529266 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -4,7 +4,7 @@ import qs from 'qs'; import { Session } from '/@/utils/storage'; // export const moduleName = 'zqq-biz-vordm'; -export const moduleName = 'biz-vordm'; +export const moduleName = 'yyhouc-biz-vordm'; // 配置新建一个 axios 实例 const service = axios.create({ diff --git a/src/views/responseManagement/contact/index.vue b/src/views/responseManagement/contact/index.vue index c01d29a..0a4fc5b 100644 --- a/src/views/responseManagement/contact/index.vue +++ b/src/views/responseManagement/contact/index.vue @@ -1,140 +1,217 @@ diff --git a/src/views/responseManagement/tool/index.vue b/src/views/responseManagement/tool/index.vue index 79ebda1..cab9478 100644 --- a/src/views/responseManagement/tool/index.vue +++ b/src/views/responseManagement/tool/index.vue @@ -54,7 +54,7 @@