From 1166ce8320f4c7e63af393a955fcea05f7d3419f Mon Sep 17 00:00:00 2001 From: huangchengfa <171504222@qq.com> Date: Wed, 10 Dec 2025 19:08:59 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E6=88=98=E6=9C=AF=E7=A0=94=E5=88=A4?= =?UTF-8?q?,=E6=88=98=E7=95=A5=E7=A0=94=E5=88=A4=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=A4=87=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/strategicApi.js | 46 ++++ src/api/tacticalApi.js | 62 ++++++ src/router/index.js | 18 ++ .../strategicResearch/components/addForm.vue | 208 ++++++++++++++++++ .../JudgmentHome/strategicResearch/index.vue | 170 ++++++++++++++ .../tacticalResearch/components/addForm.vue | 208 ++++++++++++++++++ .../JudgmentHome/tacticalResearch/index.vue | 170 ++++++++++++++ 7 files changed, 882 insertions(+) create mode 100644 src/api/strategicApi.js create mode 100644 src/api/tacticalApi.js create mode 100644 src/views/backOfficeSystem/JudgmentHome/strategicResearch/components/addForm.vue create mode 100644 src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue create mode 100644 src/views/backOfficeSystem/JudgmentHome/tacticalResearch/components/addForm.vue create mode 100644 src/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue diff --git a/src/api/strategicApi.js b/src/api/strategicApi.js new file mode 100644 index 0000000..4605ce5 --- /dev/null +++ b/src/api/strategicApi.js @@ -0,0 +1,46 @@ +import request from "@/utils/request"; +const api = "/mosty-api/mosty-gsxt"; + +// 战略研判-分页查询 +export const strategicGet = (data, url) => { + return request({ + url: url + `/ypbg/sjzl/getPageYpList`, + method: "post", + data + }) +} + +// 战略研判-新增 +export const strategicPost = (data, url) => { + return request({ + url: url, + method: "post", + data + }) +} + +// 战略研判-删除 +export const strategicDelete = (data, url) => { + return request({ + url: url, + method: "delete", + data + }) +} + +// 战略研判-根据ID查询详情 +export const strategicGetInfo = (id) => { + return request({ + url: api + `/strategic/${id}`, + method: "get" + }) +} + +// 战略研判-编辑 +export const strategicPut = (data, url) => { + return request({ + url: url, + method: "put", + data + }) +} diff --git a/src/api/tacticalApi.js b/src/api/tacticalApi.js new file mode 100644 index 0000000..0378a11 --- /dev/null +++ b/src/api/tacticalApi.js @@ -0,0 +1,62 @@ +import request from "@/utils/request"; +const api = "/mosty-api/mosty-gsxt"; + +/** + * 战术研判-分页查询 + * @param {Object} params 查询参数 + * @param {number} [params.pageSize] 每页显示数量 + * @param {number} [params.pageCurrent] 页码 + * @param {string} [params.startTime] 开始时间 + * @param {string} [params.endTime] 结束时间 + * @param {string} [params.timeField] 时间范围查询字段 + * @param {string} [params.sort] 排序字段 + * @param {string} [params.order] 排序方式 + * @param {string} [params.ypyt] 研判议题 + * @param {string} [params.yppyq] 研判要求 + * @param {string} [params.ypfs] 研判方式(01 线上、02 线下、03 自建) + * @param {string} [params.bglx] 报告类型(01 战术研判 02 战略研判)查询研判列表必传 + * @param {string} [params.ssbmdm] 所属部门代码 + * @returns {Promise} 请求Promise对象 + */ +export const tacticalGet = (params) => { + return request({ + url: api + `/ypbg/sjzl/getPageYpList`, + method: "get", + params + }) +} + +// 战术研判-新增 +export const tacticalPost = (data, url) => { + return request({ + url: api, + method: "post", + data + }) +} + +// 战术研判-删除 +export const tacticalDelete = (data, url) => { + return request({ + url: api, + method: "delete", + data + }) +} + +// 战术研判-根据ID查询详情 +export const tacticalGetInfo = (id) => { + return request({ + url: api + `/tactical/${id}`, + method: "get" + }) +} + +// 战术研判-编辑 +export const tacticalPut = (data, url) => { + return request({ + url: api, + method: "put", + data + }) +} diff --git a/src/router/index.js b/src/router/index.js index fed905d..b50b4c9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -667,6 +667,24 @@ export const publicRoutes = [ icon: "article" } }, + { + path: "/tacticalResearch", + name: "tacticalResearch", + component: () => import("@/views/backOfficeSystem/JudgmentHome/tacticalResearch/index"), + meta: { + title: "战术研判", + icon: "article" + } + }, + { + path: "/strategicResearch", + name: "strategicResearch", + component: () => import("@/views/backOfficeSystem/JudgmentHome/strategicResearch/index"), + meta: { + title: "战略研判", + icon: "article" + } + }, // { // path: "/analysisReport", diff --git a/src/views/backOfficeSystem/JudgmentHome/strategicResearch/components/addForm.vue b/src/views/backOfficeSystem/JudgmentHome/strategicResearch/components/addForm.vue new file mode 100644 index 0000000..5ff9076 --- /dev/null +++ b/src/views/backOfficeSystem/JudgmentHome/strategicResearch/components/addForm.vue @@ -0,0 +1,208 @@ + + + + + \ No newline at end of file diff --git a/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue b/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue new file mode 100644 index 0000000..c6dd75f --- /dev/null +++ b/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue @@ -0,0 +1,170 @@ + + + + + \ No newline at end of file diff --git a/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/components/addForm.vue b/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/components/addForm.vue new file mode 100644 index 0000000..db87acc --- /dev/null +++ b/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/components/addForm.vue @@ -0,0 +1,208 @@ + + + + + \ No newline at end of file diff --git a/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue b/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue new file mode 100644 index 0000000..26fce51 --- /dev/null +++ b/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue @@ -0,0 +1,170 @@ + + + + + \ No newline at end of file