riku
2025-04-25 4a836815f12e8ba717702cc8ed431e1b4f96134c
src/views/overlay-clue/report/components/ClueReportQuestion.vue
@@ -6,10 +6,10 @@
        <template #extra>
          <div>
            <el-button
              v-if="!clueData.cuploaded"
              type="danger"
              size="small"
              icon="Delete"
              :disabled="clueData.cuploaded"
              @click="deleteQuestion(item)"
            ></el-button>
            <el-button
@@ -55,6 +55,7 @@
  </div>
  <QuestionDetail
    :clueData="clueData"
    :uploaded="clueData.cuploaded"
    v-model:show="dialogShow"
    :question="selectedQuestion"
    @on-submit="getQuestion"
@@ -62,13 +63,16 @@
</template>
<script setup>
import { ref, watch, computed } from 'vue';
import { ref, watch, computed, inject } from 'vue';
import clueQuestionApi from '@/api/clue/clueQuestionApi';
import QuestionDetail from './QuestionDetail.vue';
import {
  useMessageBoxTip,
  useMessageBox
} from '@/composables/messageBox';
// 决定当前是否是内部线索相关操作
const isInternal = inject('isInternal', false);
const props = defineProps({
  // clueId: Number,
@@ -129,7 +133,9 @@
 * 获取线索结论
 */
function getQuestion() {
  clueQuestionApi.getQuestion(props.clueData.cid).then((res) => {
  clueQuestionApi
    .getQuestion(props.clueData.cid, isInternal)
    .then((res) => {
    questionList.value = res;
  });
}