From ffed04a7ede4d9a7e0199003cfd45fe650eaf41e Mon Sep 17 00:00:00 2001 From: quantulr <35954003+quantulr@users.noreply.github.com> Date: Thu, 30 May 2024 17:28:27 +0800 Subject: [PATCH] bug fix --- src/api/dataApproval/achivement.js | 58 +-- src/api/dataApproval/enterpriseProduct.js | 44 +- .../dataApproval/enterpriseServiceDemand.js | 2 +- .../enterpriseTechnologyDemand.js | 40 +- src/api/dataList/enterprise.js | 127 +++--- src/api/dataList/expert.js | 47 +- src/api/dataList/laboratory.js | 101 +++-- src/api/dataList/research.js | 102 ++--- src/api/dataList/technology-demand.js | 7 +- src/api/dataList/technology-project.js | 57 ++- src/api/website/news.js | 34 +- src/components/ImagePreview/index.vue | 22 +- src/components/ImageUpload/index.vue | 105 ++--- src/constant/dict.js | 200 ++++----- src/layout/components/Sidebar/Logo.vue | 36 +- src/layout/components/Sidebar/SidebarItem.vue | 4 +- src/store/modules/user.js | 338 +++++++------- src/utils/parameter.js | 195 ++++---- src/utils/request.js | 3 + src/utils/uri.js | 14 +- src/utils/validate.js | 70 +-- src/views/components/AgentForm/index.vue | 83 ++-- .../Businessneeds/Approvaldetails.vue | 128 +++--- src/views/components/ExpertForm/index.vue | 210 ++++----- src/views/components/FieldOptions/index.vue | 164 +++---- src/views/components/LaboratoryForm/index.vue | 157 +++---- src/views/components/ResearchForm/index.vue | 20 +- .../Enterpriseproducts/approval.vue | 171 ++++--- .../Enterpriseproducts/index.vue | 197 ++++---- .../dataAuditList/achievement/approval.vue | 136 +++--- src/views/dataAuditList/achievement/index.vue | 163 ++++--- src/views/dataAuditList/demand/approval.vue | 28 +- src/views/dataAuditList/demand/index.vue | 236 +++++----- .../dataAuditList/serviceDemand/approval.vue | 65 ++- .../dataAuditList/serviceDemand/index.vue | 181 ++++---- src/views/dataList/agent/index.vue | 215 +++++---- .../dataList/agent/serving-tech-demand.vue | 97 ++-- src/views/dataList/enterprise/index.vue | 422 +++++++++--------- src/views/dataList/expert/index.vue | 404 ++++++++--------- src/views/dataList/laboratory/index.vue | 367 +++++++-------- .../dataList/research-institutions/index.vue | 357 +++++++-------- .../dataList/technology-project/index.vue | 218 +++++---- src/views/dataList/thesis/index.vue | 135 +++--- src/views/system/user/profile/userAvatar.vue | 63 ++- src/views/userAuditList/expert/index.vue | 77 ++-- src/views/website/aboutUs/index.vue | 156 ++++--- src/views/website/activity/active/index.vue | 360 ++++++++------- src/views/website/innovate/service/index.vue | 163 ++++--- src/views/website/news/index.vue | 257 +++++++---- src/views/website/siteSet/banner/index.vue | 242 +++++----- src/views/website/solution/service/index.vue | 190 ++++---- .../website/solution/serviceCase/index.vue | 186 ++++---- 52 files changed, 3734 insertions(+), 3720 deletions(-) diff --git a/src/api/dataApproval/achivement.js b/src/api/dataApproval/achivement.js index f8f79c6..6cf8e10 100644 --- a/src/api/dataApproval/achivement.js +++ b/src/api/dataApproval/achivement.js @@ -2,26 +2,26 @@ import request from "@/utils/request"; // 获取成果审核列表 export const expertAchievementList = (params) => - request({ - url: "/business/dataReview/expertAchievementList", - method: "get", - params, - }); + request({ + url: "/business/dataReview/expertAchievementList", + method: "get", + params, + }); // 获取成果详情 export const expertAchievementInfo = (params) => - request({ - url: "/business/dataReview/expertAchievementInfo", - method: "get", - params, - }); + request({ + url: "/business/dataReview/expertAchievementInfo", + method: "get", + params, + }); // 修改成果 export const updateExpertAchievement = (data) => - request({ - url: "/business/dataReview/updateExpertAchievement", - method: "put", - data, - }); + request({ + url: "/business/dataReview/updateExpertAchievement", + method: "put", + data, + }); /** * 批量审核成果 @@ -30,20 +30,20 @@ export const updateExpertAchievement = (data) => * @returns {*} */ export const batchAchievement = (ids, status) => - request({ - url: `/business/dataReview/batchAchievement/${status}`, - method: "put", - data: { - ids, - }, - }); + request({ + url: `/business/dataReview/batchAchievement/${status}`, + method: "put", + data: { + ids, + }, + }); // 批量删除成果 export const deleteAchievementByIds = (ids) => - request({ - url: `/business/dataReview/deleteAchievementByIds`, - method: "DELETE", - data: { - ids, - }, - }); + request({ + url: `/business/dataReview/deleteAchievementByIds`, + method: "DELETE", + data: { + ids, + }, + }); diff --git a/src/api/dataApproval/enterpriseProduct.js b/src/api/dataApproval/enterpriseProduct.js index 27fb20a..38612e6 100644 --- a/src/api/dataApproval/enterpriseProduct.js +++ b/src/api/dataApproval/enterpriseProduct.js @@ -2,35 +2,35 @@ import request from "@/utils/request"; // 获取企业产品审核列表 export const enterpriseProductApprovalList = (params) => - request({ - url: "/business/dataReview/enterpriseProductList", - method: "get", - params, - }); + request({ + url: "/business/dataReview/enterpriseProductList", + method: "get", + params, + }); // 获取企业产品审核详情 export const getProductApprovalInfo = (id) => - request({ - url: `/business/dataReview/getProductInfo/${id}`, - method: "get", - }); + request({ + url: `/business/dataReview/getProductInfo/${id}`, + method: "get", + }); // 修改企业产品审核状态 export const updateEnterpriseApprovalProduct = (data) => - request({ - url: `/business/dataReview/updateEnterpriseProduct`, - method: "post", - data, - }); + request({ + url: `/business/dataReview/updateEnterpriseProduct`, + method: "post", + data, + }); // 批量审核企业产品 export const batchEnterpriseProduct = (ids, status) => - request({ - url: `/business/dataReview/batchEnterpriseProduct/${ids}/${status}`, - method: "PUT", - }); + request({ + url: `/business/dataReview/batchEnterpriseProduct/${ids}/${status}`, + method: "PUT", + }); // 批量删除企业产品 export const deleteEnterpriseProduct = (ids) => - request({ - url: `/business/dataReview/deleteEnterpriseProduct/${ids}`, - method: "DELETE", - }); + request({ + url: `/business/dataReview/deleteEnterpriseProduct/${ids}`, + method: "DELETE", + }); diff --git a/src/api/dataApproval/enterpriseServiceDemand.js b/src/api/dataApproval/enterpriseServiceDemand.js index ae43fff..faaf97c 100644 --- a/src/api/dataApproval/enterpriseServiceDemand.js +++ b/src/api/dataApproval/enterpriseServiceDemand.js @@ -30,7 +30,7 @@ export const deleteCasDemand = (ids) => }); // 批量审核企业服务需求 -export const batchCasDemand = (ids,status) => +export const batchCasDemand = (ids, status) => request({ url: `/business/dataReview/batchCasDemand/${ids}/${status}`, method: "PUT", diff --git a/src/api/dataApproval/enterpriseTechnologyDemand.js b/src/api/dataApproval/enterpriseTechnologyDemand.js index e1ddc03..34d06f7 100644 --- a/src/api/dataApproval/enterpriseTechnologyDemand.js +++ b/src/api/dataApproval/enterpriseTechnologyDemand.js @@ -2,25 +2,25 @@ import request from "@/utils/request"; // 修改企业技术需求审核 export const updateTechnologyDemand = (data) => - request({ - url: "/business/dataReview/updateTechnologyDemand", - method: "POST", - data, - }); + request({ + url: "/business/dataReview/updateTechnologyDemand", + method: "POST", + data, + }); // 批量审核企业技术需求 export const batchTechnologyDemand = (ids, status) => - request({ - url: `/business/dataReview/batchTechnologyDemand/${ids}/${status}`, - method: "PUT", - }); + request({ + url: `/business/dataReview/batchTechnologyDemand/${ids}/${status}`, + method: "PUT", + }); // 批量删除企业技术需求 export const deleteTechnologyDemand = (ids) => - request({ - url: `/business/dataReview/deleteTechnologyDemand/${ids}`, - method: "DELETE", - }); + request({ + url: `/business/dataReview/deleteTechnologyDemand/${ids}`, + method: "DELETE", + }); /** * 企业技术需求指派经纪人 @@ -30,11 +30,11 @@ export const deleteTechnologyDemand = (ids) => * @return {*} */ export const dataReviewAppointBroker = ( - demandId, // 企业技术需求id - brokerId, // 经纪人id - brokerName // 经纪人姓名 // 获取企业技术需求详情 + demandId, // 企业技术需求id + brokerId, // 经纪人id + brokerName // 经纪人姓名 // 获取企业技术需求详情 ) => - request({ - url: `/business/dataReview/appointBroker/${demandId}/${brokerId}/${brokerName}`, - method: "POST", - }); + request({ + url: `/business/dataReview/appointBroker/${demandId}/${brokerId}/${brokerName}`, + method: "POST", + }); diff --git a/src/api/dataList/enterprise.js b/src/api/dataList/enterprise.js index b4bd15d..630180d 100644 --- a/src/api/dataList/enterprise.js +++ b/src/api/dataList/enterprise.js @@ -2,113 +2,112 @@ import request from "@/utils/request"; // 公司企业列表 export function companyList(params) { - return request({ - url: "/business/enterprise/list", - method: "get", - params, - }); + return request({ + url: "/business/enterprise/list", + method: "get", + params, + }); } // 公司企业信息添加 export function companyAdd(data) { - return request({ - url: "/business/enterprise", - method: "post", - data, - }); + return request({ + url: "/business/enterprise", + method: "post", + data, + }); } // 公司企业信息删除 export function companyDelete(ids) { - return request({ - url: `/business/enterprise/${ids}`, - method: "delete", - }); + return request({ + url: `/business/enterprise/${ids}`, + method: "delete", + }); } // 公司企业详细信息 export function companyDetail(id) { - return request({ - url: `/business/enterprise/${id}`, - method: "get", - }); + return request({ + url: `/business/enterprise/${id}`, + method: "get", + }); } // 公司企业信息修改 export function companyEdit(data) { - return request({ - url: "/business/enterprise", - method: "put", - data, - headers: { - language: 'zh' - } - }); + return request({ + url: "/business/enterprise", + method: "put", + data, + headers: { + language: "zh", + }, + }); } export const companyExport = () => { - return request({ - url: "/business/enterprise/export", - method: "get", - }); + return request({ + url: "/business/enterprise/export", + method: "get", + }); }; // 公司企业分配账号 export function allocateAccount(data) { - return request({ - url: "/business/enterprise/allocateAccount", - method: "post", - data, - }); + return request({ + url: "/business/enterprise/allocateAccount", + method: "post", + data, + }); } // 公司企业获取账号 export function getAccount(id) { - return request({ - url: `/business/enterprise/getAccount/${id}`, - method: "get", - }); + return request({ + url: `/business/enterprise/getAccount/${id}`, + method: "get", + }); } // 公司企业重置密码 export function restPassword(id, password) { - return request({ - url: `/business/enterprise/restPassword/${id}/${password}`, - method: "put", - }); + return request({ + url: `/business/enterprise/restPassword/${id}/${password}`, + method: "put", + }); } // 公司企业获取会员详情 export function getCasVip(id) { - return request({ - url: `/business/casVip/${id}`, - method: "get", - }); + return request({ + url: `/business/casVip/${id}`, + method: "get", + }); } // 公司企业开通会员详情 export function openCasVip(data) { - return request({ - url: `/business/casVip`, - method: "post", - data, - }); + return request({ + url: `/business/casVip`, + method: "post", + data, + }); } // 公司企业修改会员 export function updateCasVip(data) { - return request({ - url: `/business/casVip`, - method: "put", - data, - }); + return request({ + url: `/business/casVip`, + method: "put", + data, + }); } - export const downloadEnterpriseTemplate = () => { - return request({ - url: "/business/enterprise/importTemplate", - method: "get", - responseType: "blob", - }); -} \ No newline at end of file + return request({ + url: "/business/enterprise/importTemplate", + method: "get", + responseType: "blob", + }); +}; diff --git a/src/api/dataList/expert.js b/src/api/dataList/expert.js index cb2332f..3b9a959 100644 --- a/src/api/dataList/expert.js +++ b/src/api/dataList/expert.js @@ -44,42 +44,41 @@ import request from "@/utils/request"; // 专家分配账号 export function allocateAccount(data) { - return request({ - url: "/business/casExpert/allocateAccount", - method: "post", - data, - }); + return request({ + url: "/business/casExpert/allocateAccount", + method: "post", + data, + }); } // 专家获取账号 export function getAccount(id) { - return request({ - url: `/business/casExpert/getAccount/${id}`, - method: "get", - }); + return request({ + url: `/business/casExpert/getAccount/${id}`, + method: "get", + }); } // 专家重置密码 export function restPassword(id, password) { - return request({ - url: `/business/casExpert/restPassword/${id}/${password}`, - method: "put", - }); + return request({ + url: `/business/casExpert/restPassword/${id}/${password}`, + method: "put", + }); } // 专家删除 export function expertDelete(ids) { - return request({ - url: `/business/casExpert/${ids}`, - method: "delete", - }); + return request({ + url: `/business/casExpert/${ids}`, + method: "delete", + }); } - export const downloadExpertTemplate = () => { - return request({ - url: '/business/casExpert/importTemplate', - method: 'get', - responseType: 'blob' - }) -} \ No newline at end of file + return request({ + url: "/business/casExpert/importTemplate", + method: "get", + responseType: "blob", + }); +}; diff --git a/src/api/dataList/laboratory.js b/src/api/dataList/laboratory.js index 6e0bdde..2e6acb3 100644 --- a/src/api/dataList/laboratory.js +++ b/src/api/dataList/laboratory.js @@ -2,89 +2,88 @@ import request from "@/utils/request"; // 实验室列表 export function casLaboratoryList(params) { - return request({ - url: "/business/casLaboratory/list", - method: "GET", - params, - }); + return request({ + url: "/business/casLaboratory/list", + method: "GET", + params, + }); } // 新增 export function casLaboratoryAdd(data) { - return request({ - url: "/business/casLaboratory", - method: "POST", - data, - }); + return request({ + url: "/business/casLaboratory", + method: "POST", + data, + }); } // 修改 export function casLaboratoryUpdate(data) { - return request({ - url: "/business/casLaboratory", - method: "PUT", - data, - }); + return request({ + url: "/business/casLaboratory", + method: "PUT", + data, + }); } // id详情 export function casLaboratoryDetail(id) { - return request({ - url: `/business/casLaboratory/${id}`, - method: "GET", - }); + return request({ + url: `/business/casLaboratory/${id}`, + method: "GET", + }); } // 删除 export function casLaboratoryDelete(ids) { - return request({ - url: `/business/casLaboratory`, - method: "DELETE", - data: { - ids, - }, - }); + return request({ + url: `/business/casLaboratory`, + method: "DELETE", + data: { + ids, + }, + }); } // 导入 export function casLaboratoryImportData(data) { - return request({ - url: `/business/casLaboratory/importData`, - method: "POST", - data, - }); + return request({ + url: `/business/casLaboratory/importData`, + method: "POST", + data, + }); } // 实验室获取账号 export function getAccount(id) { - return request({ - url: `/business/casLaboratory/getAccount/${id}`, - method: "GET", - }); + return request({ + url: `/business/casLaboratory/getAccount/${id}`, + method: "GET", + }); } // 实验室分配账号 export function allocateAccount(data) { - return request({ - url: "/business/casLaboratory/allocateAccount", - method: "post", - data, - }); + return request({ + url: "/business/casLaboratory/allocateAccount", + method: "post", + data, + }); } // 实验室重置密码 export function restPassword(id, password) { - return request({ - url: `/business/casLaboratory/restPassword/${id}/${password}`, - method: "put", - }); + return request({ + url: `/business/casLaboratory/restPassword/${id}/${password}`, + method: "put", + }); } - export const downloadLabTemplate = () => { - return request({ - url: "/business/casLaboratory/importData", - method: "get", - responseType: "blob", - }) -} \ No newline at end of file + return request({ + url: "/business/casLaboratory/importData", + method: "get", + responseType: "blob", + }); +}; diff --git a/src/api/dataList/research.js b/src/api/dataList/research.js index 181cdc9..78eacc4 100644 --- a/src/api/dataList/research.js +++ b/src/api/dataList/research.js @@ -2,92 +2,92 @@ import request from "@/utils/request"; // 科研机构列表 export function researchList(params) { - return request({ - url: "/business/casResearch/list", - method: "GET", - params, - }); + return request({ + url: "/business/casResearch/list", + method: "GET", + params, + }); } // 科研机构获取账号 export function getAccount(id) { - return request({ - url: `/business/casResearch/getAccount/${id}`, - method: "get", - }); + return request({ + url: `/business/casResearch/getAccount/${id}`, + method: "get", + }); } // 科研机构筛选信息 export function researchSelect(data) { - return request({ - url: "/admin/v1/manage/research/select", - method: "post", - data, - }); + return request({ + url: "/admin/v1/manage/research/select", + method: "post", + data, + }); } // 科研机构信息添加 export function researchAdd(data) { - return request({ - url: "/business/casResearch", - method: "post", - data, - }); + return request({ + url: "/business/casResearch", + method: "post", + data, + }); } // 科研机构信息修改 export function researchEdit(data) { - return request({ - url: "/business/casResearch", - method: "PUT", - data, - }); + return request({ + url: "/business/casResearch", + method: "PUT", + data, + }); } // 机构重置密码 export function resetPassword(id, password) { - return request({ - url: `/business/casResearch/restPassword/${id}/${password}`, - method: "put", - }); + return request({ + url: `/business/casResearch/restPassword/${id}/${password}`, + method: "put", + }); } // 科研机构详细信息 export function researchDetail(id) { - return request({ - url: `/business/casResearch/${id}`, - method: "GET", - }); + return request({ + url: `/business/casResearch/${id}`, + method: "GET", + }); } // 科研机构详细信息 export function researchDelete(ids) { - return request({ - url: `/business/casResearch/${ids}`, - method: "DELETE", - }); + return request({ + url: `/business/casResearch/${ids}`, + method: "DELETE", + }); } // 分配账号 export function allocateAccount(data) { - return request({ - url: "/business/casResearch/allocateAccount", - method: "post", - data, - }); + return request({ + url: "/business/casResearch/allocateAccount", + method: "post", + data, + }); } export function casResearchDelete(ids) { - return request({ - url: `/business/casResearch/${ids}`, - method: "DELETE", - }); + return request({ + url: `/business/casResearch/${ids}`, + method: "DELETE", + }); } export const casResearchImportData = () => { - return request({ - url: `/business/casResearch/importTemplate`, - method: "GET", - responseType: 'blob' - }) -} \ No newline at end of file + return request({ + url: `/business/casResearch/importTemplate`, + method: "GET", + responseType: "blob", + }); +}; diff --git a/src/api/dataList/technology-demand.js b/src/api/dataList/technology-demand.js index 591387c..f372e8e 100644 --- a/src/api/dataList/technology-demand.js +++ b/src/api/dataList/technology-demand.js @@ -1,7 +1,8 @@ import request from "@/utils/request"; -export const technologyDemandList = (params) => request({ +export const technologyDemandList = (params) => + request({ url: "/business/technologyDemand/list", method: "GET", - params -}) \ No newline at end of file + params, + }); diff --git a/src/api/dataList/technology-project.js b/src/api/dataList/technology-project.js index 6b3bffb..36dc0af 100644 --- a/src/api/dataList/technology-project.js +++ b/src/api/dataList/technology-project.js @@ -2,49 +2,44 @@ import request from "@/utils/request"; // 科研项目列表 export function technologyProjectList(params) { - return request({ - url: "/business/technologyProject/list", - method: "GET", - params, - }); + return request({ + url: "/business/technologyProject/list", + method: "GET", + params, + }); } - // 科研项目信息添加 export function technologyProjectAdd(data) { - return request({ - url: "/business/technologyProject", - method: "post", - data, - }); + return request({ + url: "/business/technologyProject", + method: "post", + data, + }); } // 科研项目信息修改 export function technologyProjectEdit(data) { - return request({ - url: "/business/technologyProject", - method: "PUT", - data, - }); + return request({ + url: "/business/technologyProject", + method: "PUT", + data, + }); } - export function technologyProjectDetail(id) { - return request({ - url: `/business/technologyProject/${id}`, - method: "GET", - }); + return request({ + url: `/business/technologyProject/${id}`, + method: "GET", + }); } - export function technologyProjectDelete(ids) { - return request({ - url: `/business/technologyProject`, - method: "DELETE", - data: { - ids - } - }); + return request({ + url: `/business/technologyProject`, + method: "DELETE", + data: { + ids, + }, + }); } - - diff --git a/src/api/website/news.js b/src/api/website/news.js index 7a01adf..025ad5f 100644 --- a/src/api/website/news.js +++ b/src/api/website/news.js @@ -1,31 +1,41 @@ import request from "@/utils/request"; // 留言列表 -export const listNews = params => request({ +export const listNews = (params) => + request({ url: "/business/news/list", method: "GET", params, -}); + }); +// 分类列表 +export const listCategory = () => + request({ + url: "/business/news/category", + method: "GET", + }); -export const addNews = data => request({ +export const addNews = (data) => + request({ url: "/business/news", method: "POST", data, -}); + }); - -export const deleteNews = (ids) => request({ +export const deleteNews = (ids) => + request({ url: `/business/news/${ids}`, method: "DELETE", -}); + }); -export const getNews = (id) => request({ +export const getNews = (id) => + request({ url: `/business/news/${id}`, method: "GET", -}); + }); -export const updateNews = (data) => request({ +export const updateNews = (data) => + request({ url: `/business/news`, method: "PUT", - data -}); \ No newline at end of file + data, + }); diff --git a/src/components/ImagePreview/index.vue b/src/components/ImagePreview/index.vue index a234edd..a7ef743 100644 --- a/src/components/ImagePreview/index.vue +++ b/src/components/ImagePreview/index.vue @@ -1,15 +1,15 @@ diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 210c82b..83f37c5 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -1,24 +1,24 @@ diff --git a/src/views/dataList/agent/serving-tech-demand.vue b/src/views/dataList/agent/serving-tech-demand.vue index dfe6016..e8b97dc 100644 --- a/src/views/dataList/agent/serving-tech-demand.vue +++ b/src/views/dataList/agent/serving-tech-demand.vue @@ -1,85 +1,88 @@ - \ No newline at end of file + diff --git a/src/views/dataList/enterprise/index.vue b/src/views/dataList/enterprise/index.vue index 90201e1..0b2f05e 100644 --- a/src/views/dataList/enterprise/index.vue +++ b/src/views/dataList/enterprise/index.vue @@ -1,20 +1,20 @@