From 9d783ea9b57d19b21f0d2ec9e827fb7e8fe6d8fe Mon Sep 17 00:00:00 2001 From: huangchengfa <171504222@qq.com> Date: Wed, 10 Dec 2025 23:09:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=86=8D=E6=AC=A1=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/huiShangyp/judgmentCommand.js | 55 +++ .../JudgmentHome/dataReduction/addForm.vue | 33 +- .../JudgmentHome/judgmentCommand/addForm.vue | 348 ++++++------------ .../JudgmentHome/judgmentCommand/index.vue | 21 +- .../JudgmentHome/strategicResearch/index.vue | 2 +- .../JudgmentHome/tacticalResearch/addForm.vue | 4 +- .../JudgmentHome/tacticalResearch/index.vue | 2 +- 7 files changed, 200 insertions(+), 265 deletions(-) diff --git a/src/api/huiShangyp/judgmentCommand.js b/src/api/huiShangyp/judgmentCommand.js index d4b632e..ff4b6ad 100644 --- a/src/api/huiShangyp/judgmentCommand.js +++ b/src/api/huiShangyp/judgmentCommand.js @@ -3,6 +3,45 @@ const api = "/mosty-api/mosty-gsxt"; // =================== 指令 ==================== +/** + * 新增研判报告-指令信息 + * @param {Object} data 新增参数 + * @param {string} data.zlbt 指令标题 + * @param {string} data.zlnr 指令内容 + * @param {string[]} data.zpbmList 指派部门编码集合 + */ +export const addJudgmentCommandList = (data) => { + return request({ + url: api + `/ypbg/zlxx/addEntity`, + method: "post", + data + }) +} + +/** + * 修改研判指令 + * @param {Object} data 修改参数 + * @returns {Promise} 请求Promise对象 + */ +export const editJudgmentCommand = (data) => { + return request({ + url: api + `/ypbg/zlxx/editEntity`, + method: "put", + data + }) +} +/** + * 研判指令详情 + * @param {string|number} id 指令ID + * @returns {Promise} 请求Promise对象 + */ +export const getJudgmentCommandDetail = (id) => { + return request({ + url: api + `/ypbg/zlxx/${id}`, + method: "get" + }) +} + /** * 研判指令列表 * @param {Object} params 查询参数 @@ -52,3 +91,19 @@ export const feedbackCommand = (data) => { data }) } + + + +/** + * 删除研判指令 + * @param {Object} data 删除参数 + * @param {string[]} data.ids ID集合 + * @returns {Promise} 请求Promise对象 + */ +export const deleteJudgmentCommand = (data) => { + return request({ + url: api + `/ypbg/zlxx/deleteEntity`, + method: "delete", + data + }) +} diff --git a/src/views/backOfficeSystem/JudgmentHome/dataReduction/addForm.vue b/src/views/backOfficeSystem/JudgmentHome/dataReduction/addForm.vue index 38571e0..345e76b 100644 --- a/src/views/backOfficeSystem/JudgmentHome/dataReduction/addForm.vue +++ b/src/views/backOfficeSystem/JudgmentHome/dataReduction/addForm.vue @@ -1,4 +1,5 @@ diff --git a/src/views/backOfficeSystem/JudgmentHome/judgmentCommand/index.vue b/src/views/backOfficeSystem/JudgmentHome/judgmentCommand/index.vue index 034beb1..796517c 100644 --- a/src/views/backOfficeSystem/JudgmentHome/judgmentCommand/index.vue +++ b/src/views/backOfficeSystem/JudgmentHome/judgmentCommand/index.vue @@ -47,8 +47,8 @@ import MyTable from "@/components/aboutTable/MyTable.vue"; import Pages from "@/components/aboutTable/Pages.vue"; import Search from "@/components/aboutTable/Search.vue"; import { useRoute } from 'vue-router' -import { getJudgmentCommandList, signCommand, feedbackCommand } from "@/api/huiShangyp/judgmentCommand.js"; -import { reactive, ref, onMounted, getCurrentInstance, watch,computed } from "vue"; +import { getJudgmentCommandList, deleteJudgmentCommand } from "@/api/huiShangyp/judgmentCommand.js"; +import { reactive, ref, onMounted, getCurrentInstance, watch, computed } from "vue"; import AddForm from "./addForm.vue"; const { proxy } = getCurrentInstance(); const { D_BZ_YPFS, D_BZ_YPLX } = proxy.$dict("D_BZ_YPFS", "D_BZ_YPLX") @@ -67,7 +67,7 @@ onMounted(() => { const searchConfiger = ref([ - { label: "研判议题", prop: 'ypyt', placeholder: "请输入研判议题", showType: "input" }, + { label: "指令标题", prop: 'zlbt', placeholder: "请输入研判议题", showType: "input" }, // { label: "研判方式", prop: 'ypfs', placeholder: "请输入研判方式", showType: "radio",options:D_BZ_YPFS }, ]); @@ -86,12 +86,9 @@ const pageData = reactive({ }, controlsWidth: 240, tableColumn: [ - { label: "研判议题", prop: "ypyt" }, - { label: "研判方式", prop: "ypfs", showSolt: true }, - { label: "报告类型", prop: "bglx", showSolt: true }, - { label: "研判时间", prop: "ypsj" }, - { label: "研判要求", prop: "ypyq" }, - { label: "发起部门", prop: "ssbm" }, + { label: "指令标题", prop: "zlbt" }, + { label: "指令内容", prop: "zlnr", }, + { label: "部门", prop: "xfbmMc" }, ] }); const queryFrom = ref({}); @@ -119,7 +116,7 @@ const changeSize = (val) => { // 获取列表 const getList = () => { pageData.tableConfiger.loading = true; - let data = { ...pageData.pageConfiger, ...queryFrom.value, wjlb: '01' }; + let data = { ...pageData.pageConfiger, ...queryFrom.value }; getJudgmentCommandList(data).then(res => { pageData.tableData = res.records || []; pageData.total = res.total; @@ -131,7 +128,7 @@ const getList = () => { // 表格高度计算 const tabHeightFn = () => { pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250; - window.onresize = function () { + window.onresize = function() { tabHeightFn(); }; }; @@ -148,7 +145,7 @@ const deleteFile = (row) => { cancelButtonText: '取消', type: 'warning' }).then(() => { - sjzldeleteEntity({ ids: [row.id] }).then(res => { + deleteJudgmentCommand({ ids: [row.id] }).then(res => { proxy.$message.success('删除成功'); getList(); }).catch(() => { diff --git a/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue b/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue index 851dd9d..374b2d9 100644 --- a/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue +++ b/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue @@ -6,7 +6,7 @@ - 新增 + diff --git a/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/addForm.vue b/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/addForm.vue index e34b2e6..4baaac8 100644 --- a/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/addForm.vue +++ b/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/addForm.vue @@ -13,9 +13,9 @@
- + diff --git a/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue b/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue index dac0bb7..f86060a 100644 --- a/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue +++ b/src/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue @@ -6,7 +6,7 @@ - 新增 +