| | |
| | | <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 |
| | |
| | | </div> |
| | | <QuestionDetail |
| | | :clueData="clueData" |
| | | :uploaded="clueData.cuploaded" |
| | | v-model:show="dialogShow" |
| | | :question="selectedQuestion" |
| | | @on-submit="getQuestion" |
| | |
| | | </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, |
| | |
| | | * 获取线索结论 |
| | | */ |
| | | function getQuestion() { |
| | | clueQuestionApi.getQuestion(props.clueData.cid).then((res) => { |
| | | clueQuestionApi |
| | | .getQuestion(props.clueData.cid, isInternal) |
| | | .then((res) => { |
| | | questionList.value = res; |
| | | }); |
| | | } |