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