From 8b3494c95bc8883f4a0a97c69184f667aad2847a Mon Sep 17 00:00:00 2001
From: Esacpe <1113279529@qq.com>
Date: Sun, 25 Jan 2026 20:25:52 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../strategicResearch/addReport.vue | 36 ++++++++-----------
.../JudgmentHome/strategicResearch/index.vue | 3 +-
2 files changed, 16 insertions(+), 23 deletions(-)
diff --git a/src/views/backOfficeSystem/JudgmentHome/strategicResearch/addReport.vue b/src/views/backOfficeSystem/JudgmentHome/strategicResearch/addReport.vue
index 62e58df..c69443f 100644
--- a/src/views/backOfficeSystem/JudgmentHome/strategicResearch/addReport.vue
+++ b/src/views/backOfficeSystem/JudgmentHome/strategicResearch/addReport.vue
@@ -25,7 +25,6 @@
-
@@ -51,6 +50,8 @@ import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
import { ref, defineExpose, reactive, defineEmits, getCurrentInstance, shallowRef, onBeforeUnmount, watch } from "vue";
import { gsxtYpbgAddEntity, gsxtYpbgEditEntity, gsxtYpbgId } from "@/api/huiShangyp/strategicApi.js"
const emit = defineEmits(["updateDate", 'ok']);
+const { proxy } = getCurrentInstance();
+const { D_BZ_YPLX } = proxy.$dict("D_BZ_YPLX")
const props = defineProps({
dic: Object,
});
@@ -59,7 +60,6 @@ const props = defineProps({
const ConsultationShow = ref(false)
const showText = ref(false);
const textContent = ref()
-const { proxy } = getCurrentInstance();
const editorRef = shallowRef();
const dialogForm = ref(false); //弹窗
const mode = "default";
@@ -107,18 +107,13 @@ const rules = reactive({
{ required: true, message: "请输入经验内容", trigger: "blur" }
]
});
-const formData = ref();
-watch(() =>props.dic.D_BZ_YPLX, (newVal) => {
-if(newVal){
-formData.value=[
+const formData = ref([
{ label: "报告名称", prop: "bgmc", type: "input", width: "100%", blur: setEditorTextContent },
{
- label: "报告类型", prop: "bglx", type: "select", width: "100%", options: props.dic.D_BZ_YPLX
+ label: "报告类型", prop: "bglx", type: "select", width: "100%", options: D_BZ_YPLX
},
{ label: "报告内容", prop: "bgnr", type: "slot", width: "100%", blur: setEditorTextContent },
-]
-}
-})
+]);
const listQuery = ref({
bgmc: "",
@@ -133,15 +128,16 @@ const outRow = ref({})
// 初始化数据
-const init = (type, reportData, row) => {
-
- listQuery.value = {
- bgmc: reportData.bgmc,
- bgnr: reportData.bgnr,
- id: reportData.id,
- bglx: reportData.bglx,
+const init = (type, row) => {
+ if(row){
+ listQuery.value = {
+ bgmc: row.bgmc,
+ bgnr: row.bgnr,
+ id: row.id,
+ bglx: row.bglx,
+ }
+ outRow.value = { ...row }
}
- outRow.value = { ...row }
dialogForm.value = true;
title.value = type == "add" ? "新增" :type == "edit"? "编辑" : "详情";
setEditorTextContent()
@@ -153,9 +149,7 @@ const getText = (val, row = {}) => {
function setEditorTextContent() {
let html = dataBt.value;
-
-
- html += `
${listQuery.value.bgmc || ''}
`
+ html += `
${listQuery.value.bgnr || ''}
`
html += `
${listQuery.value.fj || ''}
`
textContent.value = html
}
diff --git a/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue b/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue
index d7bbc37..e64c015 100644
--- a/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue
+++ b/src/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue
@@ -11,7 +11,7 @@
-
自建研判
+
创建报告
@@ -193,7 +193,6 @@ const selfCreateResearch = (type = 'add') => {
}
/** 创建报告 */
const createReport = (type,row) => {
- console.log(row);
reportTc.value.init(type, row)
// currRow.value = { ...row }
// isShowReport.value = true