Skip to content

Commit

Permalink
feat:更新表格校验
Browse files Browse the repository at this point in the history
  • Loading branch information
superDragon committed Nov 16, 2020
1 parent 648b8da commit 312d0a1
Show file tree
Hide file tree
Showing 3 changed files with 10,724 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/table/table15.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:rows="20"
placeholder="请输入内容"
/>
<!-- <el-button @click="onSubmit" type="primary">提交</el-button> -->
</template>

<script>
Expand All @@ -23,6 +24,9 @@ export default {
}
},
methods: {
onSubmit(){
this.$emit('onSubmit')
}
}
}
</script>
Expand Down
9 changes: 9 additions & 0 deletions src/views/userInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ export default {
this.$formatDay(new Date(), 'YYYYMMDDHHmmss') +
this.form.idCard.slice(-8)
)
},
tableStatus() {
return this.$store.getters.getTableStatus
},
identityList() {
const arr = []
Expand Down Expand Up @@ -549,6 +552,12 @@ export default {
message: '请检查车牌号和身份证号输入是否有误',
})
}
if(Object.keys(this.tableStatus).length!==22){
return this.$message({
type: 'error',
message: '请检查是否选择有无此类情况',
})
}
this.$refs.form.validate((valid) => {
if (valid) {
const self = this
Expand Down
Loading

0 comments on commit 312d0a1

Please sign in to comment.