| | |
| | | </div> |
| | | <!-- 时间 --> |
| | | <el-form-item label="时间:" prop="investigationTime"> |
| | | <el-date-picker v-model="evidence.investigationTime" type="datetime" placeholder="选择时间"> |
| | | <el-date-picker v-model="evidence.investigationTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="选择时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <!-- 地址 --> |
| | |
| | | <div class="user-form-content"> |
| | | <el-form ref="userForm" label-width="120px" :model="user" :rules="userRules" autoComplete="on"> |
| | | <!-- 类型 --> |
| | | <el-form-item label="类型:" prop="illegalType"> |
| | | <el-input v-model="basecase"></el-input> |
| | | <el-form-item label="类型:" prop="illegalType" :disabled="true"> |
| | | <el-input v-model="user.illegalType"></el-input> |
| | | </el-form-item> |
| | | <!-- 姓名、手机号 --> |
| | | <div class="user-item"> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { getTypeList } from '@/utils/helper' |
| | | import {validateName,validatePhone,validateCardId} from '@/utils/validate' |
| | | import { deepClone, getTypeList } from '@/utils/helper' |
| | | import { validateName, validatePhone, validateCardId } from '@/utils/validate' |
| | | import MyUpload from "@/components/myUpload" |
| | | export default { |
| | | components: { |
| | |
| | | } |
| | | }, |
| | | async created() { |
| | | await this.getCardTypeList(); |
| | | await this.getSchoolList(); |
| | | await this.getNationList(); |
| | | this.user.illegalType = JSON.parse(JSON.stringify(this.mytype)); |
| | | if (this.evienceData) { |
| | | this.evidence = this.evienceData; |
| | | this.evidence.pic = this.evidence.pic.split(','); |
| | | await this.getCardTypeList(); |
| | | await this.getSchoolList(); |
| | | await this.getNationList(); |
| | | this.$set(this.user, 'illegalType', this.illegalType); |
| | | if (this.evidenceData) { |
| | | this.evidence = deepClone(this.evidenceData); |
| | | this.evidence.pic = this.evidenceData.pic.split(','); |
| | | this.user = this.evidence.partyInfo; |
| | | this.evidence.investigationTime = this.evidence.createTime; |
| | | this.evidence.userInfo = this.evidence.partyInfo.name; |
| | | } |
| | | }, |
| | |
| | | openDialog(e) { |
| | | this.userFlag = true; |
| | | this.userInfo = true; |
| | | this.$set(this.user, 'illegalType', this.illegalType); |
| | | }, |
| | | // 检验user |
| | | checkUser() { |
| | | this.$refs.userForm.validate((valid) => { |
| | | if (valid) { |
| | | this.userFlag = false; |
| | | this.evidence.userInfo = this.user.name + '...'; |
| | | this.userFlag = false; |
| | | } else { |
| | | this.evidence.userInfo = false; |
| | | return false; |
| | | this.evidence.userInfo = null; |
| | | this.$message.warning('请检查必填项'); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | setPicUrl({ url }) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | if (this.evidence.pic.length < 4) { |
| | | this.evidence.pic.push(baseUrl + url) |
| | | this.evidence.pic.push(baseUrl + url); |
| | | } |
| | | }, |
| | | //删除图片 |
| | |
| | | this.evidence.pic.splice(this.evidence.pic.indexOf(baseUrl + url),1); |
| | | } |
| | | }, |
| | | props:['mytype','mycode', 'evienceData'] |
| | | props:['evidenceData', 'illegalType'] |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |