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 @@