From 4a836815f12e8ba717702cc8ed431e1b4f96134c Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 25 四月 2025 13:55:34 +0800
Subject: [PATCH] 新增内部线索相关管理逻辑

---
 src/views/overlay-clue/report/components/ClueReportConclusion.vue |   51 ++++++++++++++++++++-------------------------------
 1 files changed, 20 insertions(+), 31 deletions(-)

diff --git a/src/views/overlay-clue/report/components/ClueReportConclusion.vue b/src/views/overlay-clue/report/components/ClueReportConclusion.vue
index 31634b2..2e21ce5 100644
--- a/src/views/overlay-clue/report/components/ClueReportConclusion.vue
+++ b/src/views/overlay-clue/report/components/ClueReportConclusion.vue
@@ -1,18 +1,15 @@
 <template>
-  <div class="fy-h2">绾跨储缁撹</div>
-  <DescriptionsList v-if="conclusion">
-    <!-- <template #extra>
+  <!-- <div class="fy-h2">绾跨储缁撹</div> -->
+  <DescriptionsList v-if="conclusion" title="绾跨储缁撹">
+    <template #extra>
       <el-button
-        v-if="conclusion"
-        type="warning"
+        type="primary"
         size="small"
-        plain
-        icon="Upload"
-        @click="pushConclusion"
-        :disabled="pushing ? true : conclusion.ccUploaded"
-        >{{ pushing ? '鎺ㄩ�佷腑' : pushText }}</el-button
+        :disabled="conclusion.ccUploaded"
+        @click="openDialog"
+        >淇敼缁撹</el-button
       >
-    </template> -->
+    </template>
     <DescriptionsListItem
       label="闂绫诲瀷"
       :content="conclusion.ccQuestionType"
@@ -77,9 +74,13 @@
 </template>
 
 <script setup>
-import { reactive, ref, watch, computed } from 'vue';
+import { reactive, ref, watch, computed, inject } from 'vue';
+import { useCloned } from '@vueuse/core';
 import { useFormConfirm } from '@/composables/formConfirm';
 import clueConclusionApi from '@/api/clue/clueConclusionApi';
+
+// 鍐冲畾褰撳墠鏄惁鏄唴閮ㄧ嚎绱㈢浉鍏虫搷浣�
+const isInternal = inject('isInternal', false);
 
 const props = defineProps({
   clueId: Number
@@ -91,9 +92,6 @@
     getConclusion();
   }
 );
-
-// 鎺ㄩ�佺姸鎬�
-const pushing = ref(false);
 
 // 绾跨储缁撹
 const conclusion = ref({});
@@ -142,6 +140,7 @@
 
 function submit() {
   formObj.value.cid = props.clueId;
+  formObj.value.ccInternal = isInternal;
   return uploadConclusion();
 }
 function cancel() {
@@ -169,23 +168,13 @@
  * 鑾峰彇绾跨储缁撹
  */
 function getConclusion() {
-  clueConclusionApi.getConclusion(props.clueId).then((res) => {
-    conclusion.value = res;
-  });
-}
-
-function pushConclusion() {
   clueConclusionApi
-    .pushConclusion([conclusion.value.ccId])
-    .then(() => {
-      pushing.value = true;
+    .getConclusion(props.clueId, isInternal)
+    .then((res) => {
+      conclusion.value = res;
+      formObj.value = res == null ? {} : res;
+      // formObj.value = useCloned(res, { manual: true });
     });
 }
-
-const pushText = computed(() => {
-  return conclusion.value.ccUploaded ? '宸叉帹閫�' : '鎺ㄩ�侀棶棰�';
-});
 </script>
-<style scoped>
-
-</style>
+<style scoped></style>

--
Gitblit v1.9.3