Commit 01960592 by zhangquan

bug修复

1 parent 69fc68ab
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
</template> </template>
<div class="empty-wrap" v-else> <div class="empty-wrap" v-else>
<img class="empty-img" src="@/images/empty-file.png" alt="" @click="previewFile(item)"> <img class="empty-img" src="@/images/empty-file.png" alt="">
<p>暂无碰撞视频、暂无碰撞图片</p> <p>暂无碰撞视频、暂无碰撞图片</p>
</div> </div>
</div> </div>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<span class="title">事故地点</span> <span class="title">事故地点</span>
<div v-if="showMap" id="mapContainer"></div> <div v-if="showMap" id="mapContainer"></div>
<div class="empty-wrap" v-else> <div class="empty-wrap" v-else>
<img class="empty-img" style="height: 60px;" src="@/images/empty-addr.png" alt="" @click="previewFile(item)"> <img class="empty-img" style="height: 60px;" src="@/images/empty-addr.png" alt="">
<p>未获取到设备定位</p> <p>未获取到设备定位</p>
</div> </div>
</div> </div>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<span class="title">行车速度趋势(Km/h)</span> <span class="title">行车速度趋势(Km/h)</span>
<div v-if="showMap" class="eChart-box" id="echarts"></div> <div v-if="showMap" class="eChart-box" id="echarts"></div>
<div class="empty-wrap" v-else> <div class="empty-wrap" v-else>
<img class="empty-img" style="height: 142px;width: 338px;" src="@/images/empty-speed.png" alt="" @click="previewFile(item)"> <img class="empty-img" style="height: 142px;width: 338px;" src="@/images/empty-speed.png" alt="">
<p>未获取到行车速度趋势</p> <p>未获取到行车速度趋势</p>
</div> </div>
</div> </div>
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<i v-if="basicForm.pushPhonesList.length>1" @click="delPhoneFn(index)" class="el-icon-delete del"></i> <i v-if="basicForm.pushPhonesList.length>1" @click="delPhoneFn(index)" class="el-icon-delete del"></i>
</div> </div>
<div v-if="basicForm.pushPhonesList.length<5" class="add-btn" @click="addPhoneInputFn"> <div v-if="basicForm.pushPhonesList.length<5" class="add-btn" @click="addPhoneInputFn">
<img src="@/assets/add.png" />新增标签 <img src="@/assets/add.png" />新增手机号
</div> </div>
</div> </div>
</glsx-combi-form> </glsx-combi-form>
...@@ -112,10 +112,13 @@ export default { ...@@ -112,10 +112,13 @@ export default {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
const list = this.basicForm.pushPhonesList || [] const list = this.basicForm.pushPhonesList || []
const emptyValIdx= this.basicForm.pushPhonesList?.findIndex(item => !item) const emptyValIdx= this.basicForm.pushPhonesList?.findIndex(item => !item)
const copylist = [...new Set(JSON.parse(JSON.stringify(list)))]
if (list?.length<1 || emptyValIdx>-1) { if (list?.length<1 || emptyValIdx>-1) {
callback(new Error('请填写手机号')) callback(new Error('请填写手机号'))
} else if (list?.length>5) { } else if (list?.length>5) {
callback(new Error('手机号最多填写5个')) callback(new Error('手机号最多填写5个'))
}else if(copylist.length!==list.length){
callback(new Error('手机号不能重复'))
}else{ }else{
callback() callback()
} }
...@@ -331,8 +334,7 @@ export default { ...@@ -331,8 +334,7 @@ export default {
{ {
label: '车架号', label: '车架号',
prop: 'standNo', prop: 'standNo',
width: 200, width: 230
line: 1
}, },
{ {
label: '车型', label: '车型',
......
...@@ -332,8 +332,7 @@ export default { ...@@ -332,8 +332,7 @@ export default {
{ {
label: '车架号', label: '车架号',
prop: 'standNo', prop: 'standNo',
width: 220, width: 230
line: 1
}, },
{ {
label: '车型', label: '车型',
...@@ -403,6 +402,7 @@ export default { ...@@ -403,6 +402,7 @@ export default {
methods: { methods: {
openImportDialog(){ openImportDialog(){
this.leadIntoDialogVisible = !this.leadIntoDialogVisible this.leadIntoDialogVisible = !this.leadIntoDialogVisible
this.searchTable()
}, },
handleOk() { handleOk() {
this.$refs.deviceRef.$refs.formRef.validate(valid => { this.$refs.deviceRef.$refs.formRef.validate(valid => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!