riku
2025-04-23 f1f26b166b71371e0a8dfaf9b9f575d2d79feefc
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"
@@ -78,6 +75,7 @@
<script setup>
import { reactive, ref, watch, computed } from 'vue';
import { useCloned } from '@vueuse/core';
import { useFormConfirm } from '@/composables/formConfirm';
import clueConclusionApi from '@/api/clue/clueConclusionApi';
@@ -91,9 +89,6 @@
    getConclusion();
  }
);
// 推送状态
const pushing = ref(false);
// 线索结论
const conclusion = ref({});
@@ -171,21 +166,9 @@
function getConclusion() {
  clueConclusionApi.getConclusion(props.clueId).then((res) => {
    conclusion.value = res;
    formObj.value = res == null ? {} : res;
    // formObj.value = useCloned(res, { manual: true });
  });
}
function pushConclusion() {
  clueConclusionApi
    .pushConclusion([conclusion.value.ccId])
    .then(() => {
      pushing.value = true;
    });
}
const pushText = computed(() => {
  return conclusion.value.ccUploaded ? '已推送' : '推送问题';
});
</script>
<style scoped>
</style>
<style scoped></style>