From a2d1305482d984fafce0b6e31f6bc8dfa0ed9a70 Mon Sep 17 00:00:00 2001 From: glj Date: Mon, 8 May 2023 19:32:29 +0800 Subject: [PATCH] =?UTF-8?q?glj-=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/websites/websites.js | 50 +++++ .../component/editPicture.vue | 174 +++--------------- .../disasterPartners/component/upload.vue | 98 ++-------- .../dataService/disasterPartners/index.vue | 44 ++--- 4 files changed, 100 insertions(+), 266 deletions(-) create mode 100644 src/api/websites/websites.js diff --git a/src/api/websites/websites.js b/src/api/websites/websites.js new file mode 100644 index 0000000..531d5ff --- /dev/null +++ b/src/api/websites/websites.js @@ -0,0 +1,50 @@ +import request from '/@/utils/request'; +import { moduleName } from '/@/utils/request'; + +export function websitesPage(current, size, params) { + return request({ + url: '/api/' + moduleName + '/ui/websites/websitesPage', + method: 'get', + params: { + current, + size, + ...params + }, + }); +}; + +export function saveWebsites(data) { + return request({ + url: '/api/' + moduleName + '/ui/websites/saveWebsites', + method: 'post', + data: data + }); +}; + +export function updateWebsites(data) { + return request({ + url: '/api/' + moduleName + '/ui/websites/updateWebsites', + method: 'post', + data: data + }); +}; + +export const delWebsites = (id) => { + return request({ + url: '/api/' + moduleName + '/ui/websites/remove', + method: 'delete', + params: { + id + } + }); +}; + +export const getWebsitesById = (id) => { + return request({ + url: '/api/' + moduleName + '/ui/websites/getWebsitesById', + method: 'get', + params: { + id + } + }); +}; \ No newline at end of file diff --git a/src/views/dataService/disasterPartners/component/editPicture.vue b/src/views/dataService/disasterPartners/component/editPicture.vue index a58963a..9140af7 100644 --- a/src/views/dataService/disasterPartners/component/editPicture.vue +++ b/src/views/dataService/disasterPartners/component/editPicture.vue @@ -1,29 +1,13 @@