From 1c9371aa76d3ad9503cee0bd68985d9ab7437334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DRain=E2=80=9C?= <904416525@qq.com> Date: Mon, 27 May 2024 21:20:49 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=91=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=8F=B0=E7=82=B9=E5=87=BB=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/videoManage/playVideo.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/videoManage/playVideo.vue b/pages/videoManage/playVideo.vue index 7b5460bd..d0870676 100644 --- a/pages/videoManage/playVideo.vue +++ b/pages/videoManage/playVideo.vue @@ -13,7 +13,7 @@ - + @@ -170,7 +170,7 @@ }) }, complete() { - this.videoFlag = false; + that.videoFlag = false; } }) }, @@ -203,7 +203,7 @@ }) }, complete() { - this.videoFlag = false; + that.videoFlag = false; } }) } @@ -327,19 +327,19 @@ margin-top: -16px; } - .videoOperateBox .left:hover { + .videoOperateBox2 .left:hover { background: url("../../static/videoControlIcon/left-active.png"); } - .videoOperateBox .right:hover { + .videoOperateBox2 .right:hover { background: url("../../static/videoControlIcon/right-active.png"); } - .videoOperateBox .top:hover { + .videoOperateBox2 .top:hover { background: url("../../static/videoControlIcon/top-active.png"); } - .videoOperateBox .bottom:hover { + .videoOperateBox2 .bottom:hover { background: url("../../static/videoControlIcon/bottom-active.png"); } From d9ada299de1d88f2540dbf90af5dfd14e650f53a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DRain=E2=80=9C?= <904416525@qq.com> Date: Mon, 27 May 2024 21:45:49 +0800 Subject: [PATCH 2/3] 1 --- pages/videoManage/playVideo.vue | 426 +++++++++++++++----------------- 1 file changed, 202 insertions(+), 224 deletions(-) diff --git a/pages/videoManage/playVideo.vue b/pages/videoManage/playVideo.vue index d0870676..50b4df8c 100644 --- a/pages/videoManage/playVideo.vue +++ b/pages/videoManage/playVideo.vue @@ -10,10 +10,9 @@ {{videoInfo.videoName}} - + - + @@ -36,124 +35,111 @@ \ No newline at end of file +.videoOperateBox .top { + width: 33px; + height: 28px; + background: url("../../static/videoControlIcon/top.png"); + top: 25px; + left: 50%; + margin-left: -16px; +} + +.videoOperateBox .bottom { + width: 33px; + height: 28px; + background: url("../../static/videoControlIcon/bottom.png"); + bottom: 25px; + left: 50%; + margin-left: -16px; +} + +// .videoOperateBox .center { +// width: 44px; +// height: 40px; +// background: url("../../static/videoControlIcon/center.png"); +// left: 50%; +// top: 50%; +// margin-top: -20px; +// margin-left: -22px; +// } + From 0f8af409147fc9ad18c9a7083f5a5686ac7e1f86 Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Mon, 27 May 2024 21:51:47 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/projectEnd/carManage/addCar.vue | 170 ++++++++++++-------------- pages/projectEnd/carManage/index.vue | 2 +- pages/videoManage/playVideo.vue | 18 +-- 3 files changed, 91 insertions(+), 99 deletions(-) diff --git a/pages/projectEnd/carManage/addCar.vue b/pages/projectEnd/carManage/addCar.vue index 73ff2653..210dff92 100644 --- a/pages/projectEnd/carManage/addCar.vue +++ b/pages/projectEnd/carManage/addCar.vue @@ -100,10 +100,10 @@ 车牌照片 - - - - + + + + @@ -114,10 +114,10 @@ 驾驶证 - - - - + + + + @@ -128,10 +128,10 @@ 行驶证 - - - - + + + + @@ -142,10 +142,10 @@ 交强险 - - - - + + + + @@ -156,10 +156,10 @@ 其他证明 - - - - + + + + @@ -203,7 +203,7 @@ - + * 司机姓名 @@ -330,18 +330,19 @@ carModuleType: 1, carColor: "", carNumber: "", - carPhotosUrl: "", - jsz: "", - xsz: "", - jqx: "", - otherProve: "", + carPhotosUrl: [], + jsz: [], + xsz: [], + jqx: [], + otherProve: [], carType: "", driverName: "", driverTelephone: "", driverWorkerName: "", outsideDriverIdCard: "", isBlack: '', - projectSn: '' + projectSn: '', + entryAndExitPermit: 0 }, personList: [], projectDetail: {}, @@ -467,37 +468,35 @@ success: (uploadFileRes) => { console.log(uploadFileRes.data); if (type == 1) { - that.form.carPhotosUrl = JSON.parse(uploadFileRes.data).data[0] - .imageUrl + that.form.carPhotosUrl.push({name: "",url: JSON.parse(uploadFileRes.data).data[0].imageUrl}) + // that.form.carPhotosUrl = JSON.parse(uploadFileRes.data).data[0] + // .imageUrl } else if (type == 2) { - that.form.jsz = JSON.parse(uploadFileRes.data).data[0] - .imageUrl + that.form.jsz.push({name: "",url: JSON.parse(uploadFileRes.data).data[0].imageUrl}) } else if (type == 3) { - that.form.xsz = JSON.parse(uploadFileRes.data).data[0] - .imageUrl + that.form.xsz.push({name: "",url: JSON.parse(uploadFileRes.data).data[0].imageUrl}) } else if (type == 4) { - that.form.jqx = JSON.parse(uploadFileRes.data).data[0] - .imageUrl + that.form.jqx.push({name: "",url: JSON.parse(uploadFileRes.data).data[0].imageUrl}) } else if (type == 5) { - that.form.otherProve = JSON.parse(uploadFileRes.data).data[0] - .imageUrl + that.form.otherProve.push({name: "",url: JSON.parse(uploadFileRes.data).data[0].imageUrl}) } } }); } }) }, - deleteImg(type) { + deleteImg(type,index) { if (type == 1) { - this.form.carPhotosUrl = '' + this.form.carPhotosUrl.splice(index,1) + // this.form.carPhotosUrl = '' } else if (type == 2) { - this.form.jsz = '' + this.form.jsz.splice(index,1) } else if (type == 3) { - this.form.xsz = '' + this.form.xsz.splice(index,1) } else if (type == 4) { - this.form.jqx = '' + this.form.jqx.splice(index,1) } else if (type == 5) { - this.form.otherProve = '' + this.form.otherProve.splice(index,1) } }, radioChange(e) { @@ -588,53 +587,53 @@ if (that.form.carPhotosUrl) { var arr = JSON.parse(that.form.carPhotosUrl) if (arr.length > 0) { - that.form.carPhotosUrl = arr[0].url + that.form.carPhotosUrl = arr } else { - that.form.carPhotosUrl = '' + that.form.carPhotosUrl = [] } } else { - that.form.carPhotosUrl = '' + that.form.carPhotosUrl = [] } if (that.form.jsz) { var arr = JSON.parse(that.form.jsz) if (arr.length > 0) { - that.form.jsz = arr[0].url + that.form.jsz = arr + } else { + that.form.jsz = [] + } } else { - that.form.jsz = '' + that.form.jsz = [] } - } else { - that.form.jsz = '' - } if (that.form.xsz) { var arr = JSON.parse(that.form.xsz) if (arr.length > 0) { - that.form.xsz = arr[0].url + that.form.xsz = arr + } else { + that.form.xsz = [] + } } else { - that.form.xsz = '' + that.form.xsz = [] } - } else { - that.form.xsz = '' - } if (that.form.jqx) { var arr = JSON.parse(that.form.jqx) if (arr.length > 0) { - that.form.jqx = arr[0].url + that.form.jqx = arr + } else { + that.form.jqx = [] + } } else { - that.form.jqx = '' + that.form.jqx = [] } - } else { - that.form.jqx = '' - } if (that.form.otherProve) { var arr = JSON.parse(that.form.otherProve) if (arr.length > 0) { - that.form.otherProve = arr[0].url + that.form.otherProve = arr + } else { + that.form.otherProve = [] + } } else { - that.form.otherProve = '' + that.form.otherProve = [] } - } else { - that.form.otherProve = '' - } } }) }, @@ -710,6 +709,7 @@ return false; } if([1,2].includes(this.form.carModuleType)){ + delete params.driverWorkerName; if (this.driverNameIndex == null) { uni.showToast({ title: '请选择司机姓名', @@ -729,13 +729,15 @@ } let idCardReg = /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i if([3].includes(this.form.carModuleType)){ - if (!reg.test(params.outsideDriverIdCard)) { + if (!idCardReg.test(params.outsideDriverIdCard)) { uni.showToast({ title: '请输入正确的身份证格式', icon: 'none' }) return false; } + } else { + delete params.outsideDriverIdCard; } if (params.carNumber == '') { uni.showToast({ @@ -766,34 +768,23 @@ return false; } if (this.form.carPhotosUrl) { - params.carPhotosUrl = JSON.stringify([{ - name: '', - url: this.form.carPhotosUrl - }]) + params.carPhotosUrl = JSON.stringify(this.form.carPhotosUrl) } if (this.form.jsz) { - params.jsz = JSON.stringify([{ - name: '', - url: this.form.jsz - }]) + params.jsz = JSON.stringify(this.form.jsz) } if (this.form.xsz) { - params.xsz = JSON.stringify([{ - name: '', - url: this.form.xsz - }]) + params.xsz = JSON.stringify(this.form.xsz) + // params.xsz = JSON.stringify([{ + // name: '', + // url: this.form.xsz + // }]) } if (this.form.jqx) { - params.jqx = JSON.stringify([{ - name: '', - url: this.form.jqx - }]) + params.jqx = JSON.stringify(this.form.jqx) } if (this.form.otherProve) { - params.otherProve = JSON.stringify([{ - name: '', - url: this.form.otherProve - }]) + params.otherProve = JSON.stringify(this.form.otherProve) } params.carColor = this.colorList[this.selectIndex] if (this.driverNameList[this.driverNameIndex]) { @@ -839,7 +830,6 @@ } console.log(params, "params"); - this.sendRequest({ url: url, data: params, @@ -852,7 +842,7 @@ // }) uni.navigateTo({ - url: './index' + url: './index?listType=1' }); } @@ -897,7 +887,7 @@ display: inline-flex; position: relative; margin-right: 15px; - + margin-bottom: 15rpx; .img { width: 100%; height: 100%; diff --git a/pages/projectEnd/carManage/index.vue b/pages/projectEnd/carManage/index.vue index 31b21c8d..e4ca6d30 100644 --- a/pages/projectEnd/carManage/index.vue +++ b/pages/projectEnd/carManage/index.vue @@ -50,7 +50,7 @@ {{ item.location }} - 车牌颜色: + 车辆颜色: {{ item.carColor }} diff --git a/pages/videoManage/playVideo.vue b/pages/videoManage/playVideo.vue index 7b5460bd..cf638193 100644 --- a/pages/videoManage/playVideo.vue +++ b/pages/videoManage/playVideo.vue @@ -16,15 +16,15 @@ - - - - + + + + - - + + @@ -49,6 +49,7 @@ streamType: 1, //1是子码流 2是主码流 videoResponseInfo: {}, videoFlag: false, + typeName: "" }; }, onLoad(options) { @@ -119,6 +120,7 @@ }) }, controlVideoFn(pan, tilt, zoom, opType) { + this.typeName = opType if (this.videoFlag) { uni.showToast({ title: '不要重复点击', @@ -170,7 +172,7 @@ }) }, complete() { - this.videoFlag = false; + that.videoFlag = false; } }) }, @@ -203,7 +205,7 @@ }) }, complete() { - this.videoFlag = false; + that.videoFlag = false; } }) }