| | |
| | | <template> |
| | | <div class="vio"> |
| | | <!-- 到达现场情况 --> |
| | | <MyArrive ref="arrive"></MyArrive> |
| | | <MyArrive ref="arrive" :arriveData="arriveData"></MyArrive> |
| | | <!-- 调查取证 --> |
| | | <MyEvidence ref="evidence" :mytype="1" :mycode="mycode"></MyEvidence> |
| | | <MyEvidence ref="evidence" :evienceData="evienceData" :mytype="1" :mycode="mycode"></MyEvidence> |
| | | <!-- 底部按钮 --> |
| | | <div class="footer"> |
| | | <el-button @click="handleSubmit" type="primary">确定</el-button> |
| | |
| | | <script> |
| | | import MyArrive from '../components/arrive' |
| | | import MyEvidence from "../components/evidence" |
| | | import {parseTime} from '@/utils/index' |
| | | import { parseTime } from '@/utils/index' |
| | | |
| | | export default { |
| | | components: { |
| | | MyArrive, MyEvidence |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | arriveData: null, |
| | | evienceData: null |
| | | } |
| | | }, |
| | | props: ['caseId', 'closeDialog','mycode'], |
| | | props: ['caseId', 'closeDialog','mycode', 'vioData'], |
| | | created() { |
| | | console.log(this.caseId); |
| | | this.arriveData = this.vioData.arrivalSituation; |
| | | this.evienceData = this.vioData.investigation; |
| | | }, |
| | | methods: { |
| | | handleSubmit() { |
| | | const { arrive, evidence } = this.$refs; |
| | | const { arriveForm } = arrive.$refs; |
| | | const { evidenceForm } = evidence.$refs; |
| | | // console.log(evidence.$refs); |
| | | arriveForm.validate((valid) => { |
| | | // console.log(valid); |
| | | if (valid) { |
| | | evidenceForm.validate((flag) => { |
| | | if (flag) { |
| | | // arrive.arrive;evidence.user;evidence.evidence; |
| | | this.$axios({ |
| | | method: 'post', |
| | | url: `sccg/dispatch_handle/addition_dispose_result?caseId=`+this.caseId+'&type=1', |
| | |
| | | description: evidence.evidence.description, |
| | | pic: `${evidence.evidence.pic}`, |
| | | // |
| | | // illegalType: evidence.user.illegalType, |
| | | name: evidence.user.name, |
| | | phoneCode: evidence.user.phoneCode, |
| | | certificateType: evidence.user.certificateType, |