From 4ce12642fa041aaa799b3db23bdf925d2939b90b Mon Sep 17 00:00:00 2001 From: ks3356143 <314298729@qq.com> Date: Thu, 17 Aug 2023 20:15:03 +0800 Subject: [PATCH] 3211 --- cdTMP/src/api/system/contact.js | 48 ++++++++++++++++ cdTMP/src/router/routes/modules/datamanage.js | 11 ++++ .../src/views/datamanage/dictmanage/index.vue | 2 +- .../views/datamanage/projContact/index.vue | 52 +++++++++++++++++ cdTMP/src/views/project/round/index.vue | 9 ++- .../src/views/testmanage/projmanage/index.vue | 57 +++++++------------ 6 files changed, 139 insertions(+), 40 deletions(-) create mode 100644 cdTMP/src/api/system/contact.js create mode 100644 cdTMP/src/views/datamanage/projContact/index.vue diff --git a/cdTMP/src/api/system/contact.js b/cdTMP/src/api/system/contact.js new file mode 100644 index 0000000..6a15135 --- /dev/null +++ b/cdTMP/src/api/system/contact.js @@ -0,0 +1,48 @@ +import { request } from "@/api/request" + +export default { + /** + * 请求委托方、研制方、测试方全部数据 + * @returns 请求委托方、研制方、测试方全部数据 + */ + getlist(params = {}) { + return request({ + url: `system/contact/getlist`, + method: "get", + params + }) + }, + /** + * 添加委托方、研制方、测试方数据 + * @returns 返回已添加的contact数据 + */ + save(data = {}) { + return request({ + url: "system/contact/save", + method: "post", + data + }) + }, + /** + * 更新委托方、研制方、测试方数据 + * @returns + */ + update(id, data = {}) { + return request({ + url: "system/contact/update/" + id, + method: "put", + data + }) + }, + /** + * 删除委托方、研制方、测试方数据 + * @returns + */ + delete(data) { + return request({ + url: "system/contact/delete", + method: "delete", + data + }) + } +} diff --git a/cdTMP/src/router/routes/modules/datamanage.js b/cdTMP/src/router/routes/modules/datamanage.js index d22cc20..4afd8d6 100644 --- a/cdTMP/src/router/routes/modules/datamanage.js +++ b/cdTMP/src/router/routes/modules/datamanage.js @@ -21,6 +21,17 @@ const DATAMANAGE = { locale: "字典管理", icon: "icon-book" } + }, + { + path: "projContact", + name: "ProjContact", + component: () => import("@/views/datamanage/projContact/index.vue"), + meta: { + requiresAuth: true, + roles: ["*"], + locale: "项目联系信息", + icon: "icon-phone" + } } ] } diff --git a/cdTMP/src/views/datamanage/dictmanage/index.vue b/cdTMP/src/views/datamanage/dictmanage/index.vue index 7c33143..ac03c75 100644 --- a/cdTMP/src/views/datamanage/dictmanage/index.vue +++ b/cdTMP/src/views/datamanage/dictmanage/index.vue @@ -1,5 +1,5 @@