From d584aa2889976d3c97baf28e6e2edf459575e458 Mon Sep 17 00:00:00 2001 From: quantulr <35954003+quantulr@users.noreply.github.com> Date: Thu, 14 Sep 2023 16:44:13 +0800 Subject: [PATCH] bugfix --- src/api/admin/laboratory/paper.js | 2 +- src/views/admin/components/enterpriseItem.vue | 2 +- .../admin/enterprise/demand/serviceDemand.vue | 27 +++++++-------- .../admin/enterprise/demand/technology.vue | 33 ++++++++++--------- .../admin/expert/demand/serviceDemand.vue | 15 +++++---- .../laboratory/research/expert/index.vue | 1 + .../admin/research/research/expert/index.vue | 22 ++++++------- 7 files changed, 54 insertions(+), 48 deletions(-) diff --git a/src/api/admin/laboratory/paper.js b/src/api/admin/laboratory/paper.js index e50e4e2..6eaae4e 100644 --- a/src/api/admin/laboratory/paper.js +++ b/src/api/admin/laboratory/paper.js @@ -33,7 +33,7 @@ export const updateLabPatent = (data) => { export const deletePaper = (ids) => { return request({ - url: `/app/laboratory/deletePaper/{ids}`, + url: `/app/laboratory/deletePaper/${ids}`, method: "DELETE", }); }; diff --git a/src/views/admin/components/enterpriseItem.vue b/src/views/admin/components/enterpriseItem.vue index c90c96d..96ea84e 100644 --- a/src/views/admin/components/enterpriseItem.vue +++ b/src/views/admin/components/enterpriseItem.vue @@ -8,7 +8,7 @@
{{ data.name }}
- {{ "webSearch.companySize" }}: + {{ t("webSearch.companySize") }}: {{ data.kind_title || t("webSearch.noDataFromBackground") }} diff --git a/src/views/admin/enterprise/demand/serviceDemand.vue b/src/views/admin/enterprise/demand/serviceDemand.vue index 4ae2cb8..34da007 100644 --- a/src/views/admin/enterprise/demand/serviceDemand.vue +++ b/src/views/admin/enterprise/demand/serviceDemand.vue @@ -27,7 +27,7 @@ > {{ t("dict.accepted") }} - {{ t("dict.rejected") }} + {{ t("dict.rejected") }} {{ t("dict.finished") }} @@ -191,19 +191,20 @@ function handleEdit(id) { // 修改为完成状态 const complete = (id) => { - modal.confirm( - t("admin.common.confirmAction", { - action: t("common.finish"), - type: t("admin.common.item"), - number: id, - }) - .then(async () => { - await updateDemand({ id, status: 4 }); - getList(); - ElMessage.success(t("admin.common.deleteSuccess")); + modal + .confirm( + t("admin.common.confirmAction", { + action: t("common.finish"), + type: t("admin.common.item"), + number: id, }) - .catch(() => {}) - ); + ) + .then(async () => { + await updateDemand({ id, status: 4 }); + getList(); + ElMessage.success(t("admin.common.deleteSuccess")); + }) + .catch(() => {}); }; getList(); diff --git a/src/views/admin/enterprise/demand/technology.vue b/src/views/admin/enterprise/demand/technology.vue index 55bb5fa..a60fa4d 100644 --- a/src/views/admin/enterprise/demand/technology.vue +++ b/src/views/admin/enterprise/demand/technology.vue @@ -240,23 +240,24 @@ function handleResults(row) { // 修改为完成状态 const complete = (id) => { - modal.confirm( - t("admin.common.confirmAction", { - action: t("common.finish"), - type: t("admin.common.item"), - number: id, - }) - .then(async () => { - await updateTechnologyDemand({ id, status: 4 }); - getList(); - ElMessage.success( - t("admin.common.success", { - action: t("common.finish"), - }) - ); + modal + .confirm( + t("admin.common.confirmAction", { + action: t("common.finish"), + type: t("admin.common.item"), + number: id, }) - .catch(() => {}) - ); + ) + .then(async () => { + await updateTechnologyDemand({ id, status: 4 }); + getList(); + ElMessage.success( + t("admin.common.success", { + action: t("common.finish"), + }) + ); + }) + .catch(() => {}); }; const cancelPub = (id) => { modal diff --git a/src/views/admin/expert/demand/serviceDemand.vue b/src/views/admin/expert/demand/serviceDemand.vue index d592790..1028fd5 100644 --- a/src/views/admin/expert/demand/serviceDemand.vue +++ b/src/views/admin/expert/demand/serviceDemand.vue @@ -69,8 +69,9 @@ :label="t('admin.common.operation')" >