Commit 703b5139 by 李伟康

commit

1 parent be805e51
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
:key="index" :key="index"
> >
<div class="label text-hide"> <div class="label text-hide">
<span>*</span> <span v-if="i.key != 'plateNo'">*</span>
{{ i.name }} {{ i.name }}
</div> </div>
<div class="value"> <div class="value">
...@@ -155,10 +155,11 @@ export default { ...@@ -155,10 +155,11 @@ export default {
phoneRex = /^[1]([3-9])[0-9]{9}$/, phoneRex = /^[1]([3-9])[0-9]{9}$/,
userInfo = this.getUserInfo() userInfo = this.getUserInfo()
console.log(params) console.log(params)
const onInput = ["plateNo"]
try { try {
items.map(e => { items.map(e => {
Object.keys(params).map(key => { 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) { } catch (error) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!