riku
2023-10-31 2d3d56ff801b73afdb779267004d740f9beafe57
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<template>
  <!-- 清单详情 -->
  <CloseButton v-show="show" @close="closeEdit">
    <el-button
      class="push-btn"
      :type="clueData.cuploaded ? 'success' : 'danger'"
      @click="pushCheck"
      :disabled="clueData.cuploaded"
      ><div class="flex-col">
        <template v-if="clueData.cuploaded">
          <el-icon><Check /></el-icon>
          <div>已</div>
          <div>推</div>
          <div>送</div>
        </template>
        <template v-else>
          <el-icon><Upload /></el-icon>
          <div>推</div>
          <div>送</div>
          <div>反</div>
          <div>馈</div>
        </template>
      </div></el-button
    >
    <div class="fy-card">
      <div class="fy-h1">线索反馈</div>
      <el-scrollbar height="80vh" class="p-h-1">
        <ClueReportClue :clue="clueData"></ClueReportClue>
        <ClueReportConclusion
          :clueId="clueData.cid"
        ></ClueReportConclusion>
        <ClueReportQuestion
          :clueId="clueData.cid"
        ></ClueReportQuestion>
      </el-scrollbar>
    </div>
  </CloseButton>
</template>
 
<script>
import ClueReportClue from './components/ClueReportClue.vue';
import ClueReportConclusion from './components/ClueReportConclusion.vue';
import ClueReportQuestion from './components/ClueReportQuestion.vue';
import { useMessageBoxTip } from '@/composables/messageBox';
import clueApi from "@/api/clue/clueApi";
 
export default {
  components: {
    ClueReportClue,
    ClueReportConclusion,
    ClueReportQuestion
  },
  props: {
    clueData: {
      type: Object,
      default: () => {
        return {};
      }
    },
    show: Boolean
  },
  emits: ['update:show'],
  data() {
    return {};
  },
  methods: {
    closeEdit() {
      this.$emit('update:show', false);
    },
    pushCheck() {
      useMessageBoxTip({
        confirmMsg: '线索推送后无法再修改结论与问题,确认推送?',
        confirmTitle: '线索推送',
        onConfirm: () => {
          return this.pushClue();
        }
      });
    },
    pushClue() {
      return clueApi.pushClue(this.clueData.cid)
    }
  }
};
</script>
 
<style scoped>
.push-btn {
  position: absolute;
  z-index: 1;
  top: 2rem;
  left: -2.5rem;
  width: 2.5rem;
  height: initial;
  margin: initial;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* background-color: white; */
  /* border-color: white; */
  /* border-top: 1px solid;
  border-left: 1px solid;
  border-bottom: 1px solid; */
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  /* box-shadow: var(--el-box-shadow-light); */
}
</style>