feat: 战术研判-增加创建报告

This commit is contained in:
2025-12-19 10:33:26 +08:00
parent 05524353f4
commit 7e61b43e5c
3 changed files with 277 additions and 16 deletions

View File

@ -29,6 +29,7 @@
<template #controls="{ row }">
<!-- <el-link size="small" type="primary" @click="getDataById('edit', row)">修改</el-link> -->
<el-link size="small" type="primary" @click="getDataById('detail', row)">详情</el-link>
<el-link size="small" type="primary" @click="createReport(row)">创建报告</el-link>
<el-link size="small" type="danger" @click="deleteFile(row)">删除</el-link>
</template>
</MyTable>
@ -39,6 +40,9 @@
</div>
</div>
<AddForm ref="addForm" :bglx="bglx" @getList="getList" :dict="{ D_BZ_YPFS, D_BZ_YPLX }" />
<!-- 创建报告 -->
<addReport ref="reportTc" :row="currRow" :dic="{ D_GS_BQ_LX }" @ok="getList" />
</template>
<script setup>
@ -49,10 +53,13 @@ import Search from "@/components/aboutTable/Search.vue";
import { useRoute, useRouter } from 'vue-router'
import { tacticalGet, strategicDelete } from "@/api/huiShangyp/tacticalApi.js";
import { reactive, ref, onMounted, getCurrentInstance, watch, computed, nextTick } from "vue";
import addReport from "./addReport.vue";
import AddForm from "./addForm.vue";
const { proxy } = getCurrentInstance();
const { D_BZ_YPFS, D_BZ_YPLX } = proxy.$dict("D_BZ_YPFS", "D_BZ_YPLX")
const detailDiloag = ref();
const { D_BZ_YPFS, D_BZ_YPLX, D_GS_BQ_LX } = proxy.$dict("D_BZ_YPFS", "D_BZ_YPLX", "D_GS_BQ_LX")
/** 报告弹框 */
const reportTc = ref();
const searchBox = ref(); //搜索框
const router = useRouter();
const route = useRoute();
@ -103,6 +110,9 @@ const pageData = reactive({
{ label: "发起部门", prop: "ssbm" },
]
});
const isShowReport = ref(false)
const currRow = ref({})
const queryFrom = ref({});
/** 报告类型 01 战术研判 02 战略研判*/
const bglx = ref('01')
@ -170,10 +180,15 @@ const deleteFile = (row) => {
});
}
const selfCreateResearch = (type='add') => {
const selfCreateResearch = (type = 'add') => {
addForm.value.init(type, null, '01');
}
const createReport = (row) => {
reportTc.value.init('add',row)
// currRow.value = { ...row }
// isShowReport.value = true
}
</script>