src/components/dispatch/index.vue
@@ -125,9 +125,9 @@ props: ["id", "changeDialog", "refresh", "mytype", "isGetData"], created() { // 判断车辆类型 this.mytype === 1 ? this.getLawCarList() : this.getSoilCarList(); this.isGetDispatchData = this.isGetData ? this.isGetData : false; this.getDepartList(); // this.mytype === 1 ? this.getLawCarList() : this.getSoilCarList(); // this.isGetDispatchData = this.isGetData ? this.isGetData : false; // this.getDepartList(); }, data() { const checkPhone = (rule, value, callback) => { src/utils/index.js
@@ -55,4 +55,4 @@ export const SUCCESS_CODE = 200; export const FILE_ORIGINAL_URL = 'http://10.53.157.24:8001/' export const FILE_ORIGINAL_URL = 'http://111.1.140.92:28081/' src/views/intelligentPatrol/studyJudge/index.vue
@@ -233,7 +233,7 @@ </div> </div> </div> <el-dialog :visible="isShowDialog" title="调度信息"> <el-dialog :append-to-body="true" :visible.sync="isShowDialog" title="调度信息"> <MyDispatch v-if="isShowDialog" :mytype="1" src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/arrive/index.vue
@@ -2,31 +2,63 @@ <div class="arrive"> <div class="arrive-title">到达现场情况</div> <div class="arrive-form"> <el-form ref="arriveForm" label-width="160px" :model="arrive" :rules="arriveRules" autoComplete="on"> <el-form ref="arriveForm" label-width="160px" :model="arrive" :rules="arriveRules" autoComplete="on" > <!-- 到达时间 --> <el-form-item label="到达时间:" prop="arrivalTime"> <el-date-picker v-model="arrive.arrivalTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="选择到达时间"> <el-date-picker v-model="arrive.arrivalTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="选择到达时间" > </el-date-picker> </el-form-item> <!-- 到达地址 --> <el-form-item label="到达地址:" prop="arrivalAddress"> <el-input v-model="arrive.arrivalAddress" placeholder="请输入地址"></el-input> <el-input v-model="arrive.arrivalAddress" placeholder="请输入地址" ></el-input> </el-form-item> <!-- 现场情况说明 --> <el-form-item label="现场情况说明:" prop="situationExplain"> <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" show-word-limit v-model="arrive.situationExplain" placeholder="请输入情况说明,限制200字以内"></el-input> <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" show-word-limit v-model="arrive.situationExplain" placeholder="请输入情况说明,限制200字以内" ></el-input> </el-form-item> <!-- 信访回复说明 --> <el-form-item label="信访回复说明:" prop="replyExplain"> <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" show-word-limit v-model="arrive.replyExplain" placeholder="请输入回访说明,限制200字以内"></el-input> <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" show-word-limit v-model="arrive.replyExplain" placeholder="请输入回访说明,限制200字以内" ></el-input> </el-form-item> <!-- 现场情况照片 --> <el-form-item label="现场情况照片:" prop="situationPic"> <div class="upImg" > <MyUpload :picture-list="arrive.situationPic" @setPictureUrl="setPicUrl" @delPictureUrl="delPicUrl"></MyUpload> <div class="tip">{{ arrive.situationPic.length }} / 4</div> <div class="upImg"> <MyUpload :picture-list="arrive.situationPic" @setPictureUrl="setPicUrl" @delPictureUrl="delPicUrl" ></MyUpload> <div class="tip"> {{ arrive.situationPic.length }} / 4 </div> </div> </el-form-item> </el-form> @@ -36,16 +68,17 @@ <script> import MyUpload from "@/components/myUpload" import { deepClone } from "@/utils/helper"; import { FILE_ORIGINAL_URL } from "@/utils"; export default { components: { MyUpload }, props: { arriveData: { type: Object, default: () => null } }, props: { arriveData: { type: Object, default: () => null } }, data() { const checkTime = (rule, value, callback) => { if (value) { @@ -96,13 +129,13 @@ fileList: [], } }, created() { if (this.arriveData) { this.arrive = deepClone(this.arriveData); this.arrive.situationPic = this.arriveData.situationPic.split(','); } }, methods: { created() { if (this.arriveData) { this.arrive = deepClone(this.arriveData); this.arrive.situationPic = this.arriveData.situationPic.split(','); } }, methods: { handleSuccess(res, file, filelist) { const baseUrl = ''; if (this.arrive.situationPic.length < 4) { @@ -129,13 +162,13 @@ setPicUrl({ url }) { const baseUrl = ''; if (this.arrive.situationPic.length < 4) { this.arrive.situationPic.push(baseUrl + url) this.arrive.situationPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) } }, //删除图片 delPicUrl({url}){ delPicUrl({ url }) { const baseUrl = ''; this.arrive.situationPic.splice(this.arrive.situationPic.indexOf(baseUrl + url),1); this.arrive.situationPic.splice(this.arrive.situationPic.indexOf(baseUrl + url), 1); } } } src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue
@@ -83,6 +83,7 @@ <script> import {deepClone, getCodeList} from '@/utils/helper' import MyUpload from "@/components/myUpload" import { FILE_ORIGINAL_URL } from "@/utils"; export default { components: { MyUpload @@ -297,7 +298,7 @@ writPic({ url }) { const baseUrl = ''; if (this.book.originalPic.length < 4) { this.book.writPic.push(baseUrl + url) this.book.writPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) } }, //删除图片 @@ -310,7 +311,7 @@ otherPic({ url }) { const baseUrl = ''; if (this.book.otherPic.length < 4) { this.book.otherPic.push(baseUrl + url) this.book.otherPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) } }, //删除图片 @@ -323,7 +324,7 @@ rectifiedPic({ url }) { const baseUrl = ''; if (this.book.otherPic.length < 4) { this.book.rectifiedPic.push(baseUrl + url) this.book.rectifiedPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) } }, //删除图片 @@ -335,7 +336,7 @@ originalPic({ url }) { const baseUrl = ''; if (this.book.otherPic.length < 4) { this.book.originalPic.push(baseUrl + url) this.book.originalPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) } }, //删除图片 src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/evidence/index.vue
@@ -134,6 +134,7 @@ import { deepClone, getTypeList } from '@/utils/helper' import { validateName, validatePhone, validateCardId } from '@/utils/validate' import MyUpload from "@/components/myUpload" import { FILE_ORIGINAL_URL } from "@/utils"; export default { components: { MyUpload @@ -343,7 +344,7 @@ setPicUrl({ url }) { const baseUrl = ''; if (this.evidence.pic.length < 4) { this.evidence.pic.push(baseUrl + url); this.evidence.pic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) } }, //删除图片 src/views/operate/disposal/casepool/learn/updateUser/uploadResult/components/arrive/index.vue
@@ -43,6 +43,7 @@ </div> </template> <script> import { FILE_ORIGINAL_URL } from "@/utils"; export default { data() { const checkTime = (rule, value, callback) => { @@ -108,8 +109,9 @@ methods: { handleSuccess(res, file, filelist) { const baseUrl = ''; if (this.arrive.situationPic.length < 4) { this.arrive.situationPic.push(baseUrl + res.data.url1) this.arrive.situationPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${ res.data.url1}`) } }, getToken() { src/views/operate/disposal/casepool/notDeal/updateUser/uploadResult/components/arrive/index.vue
@@ -43,6 +43,7 @@ </div> </template> <script> import { FILE_ORIGINAL_URL } from "@/utils"; export default { data() { const checkTime = (rule, value, callback) => { @@ -107,9 +108,10 @@ props:['getArrive'], methods: { handleSuccess(res, file, filelist) { const baseUrl = ''; if (this.arrive.situationPic.length < 4) { this.arrive.situationPic.push(baseUrl + res.data.url1) this.arrive.situationPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${ res.data.url1}`) } }, getToken() {