Commit b497d9b6 by 杨明

fixed

1 parent 34c4551c
......@@ -5,7 +5,7 @@
<template v-if="i.name">
<div class="item flex" :key="index">
<div class="label text-hide">
<span>*</span>
<span v-if="i.key != 'plateNo'">*</span>
{{ i.name }}
</div>
<div class="value">
......@@ -113,10 +113,11 @@ export default {
platNumberRex = /^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([A-Z]([A-HJ-NP-Z0-9]){5})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/
console.log(params)
const onInput = ["plateNo"];
try {
items.map(e => {
Object.keys(params).map(key => {
if (!params[key] && key == e.key && e.name) throw e.name
if (!params[key] && key == e.key && e.name && !onInput.includes(key)) throw e.name
})
})
} catch (error) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!