| | |
| | | </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 |
| | |
| | | |
| | | function submit() { |
| | | formObj.value.cid = props.clueId; |
| | | formObj.value.ccInternal = isInternal; |
| | | return uploadConclusion(); |
| | | } |
| | | function cancel() { |
| | |
| | | * 获取线索结论 |
| | | */ |
| | | function getConclusion() { |
| | | clueConclusionApi.getConclusion(props.clueId).then((res) => { |
| | | conclusion.value = res; |
| | | formObj.value = res == null ? {} : res; |
| | | // formObj.value = useCloned(res, { manual: true }); |
| | | }); |
| | | clueConclusionApi |
| | | .getConclusion(props.clueId, isInternal) |
| | | .then((res) => { |
| | | conclusion.value = res; |
| | | formObj.value = res == null ? {} : res; |
| | | // formObj.value = useCloned(res, { manual: true }); |
| | | }); |
| | | } |
| | | </script> |
| | | <style scoped></style> |