Vue form check

clipboard.png

clipboard.png

here is a dynamic addition and subtraction form. The ID number is checked by a common ID number here

export function identityNoValidatorByType (rule, value, callback, type) {

console.log(type)
if (type) {
    let reg = ""
    switch (type) {
    case "":
        reg = /(^\d{18}$)|(^\d{17}(\d|X|x)$)/
        break
    case "":
        // reg = /^([a-zA-z]|[0-9]){5,17}$/
        reg = /^[a-zA-z](\d{8})$/
        break
    case "":
        reg = /(^\d{18}$)|(^\d{17}(\d|X|x)$)/
        break
    case "":
        reg = /^[0-9]{9}$/
        break
    case "":
        reg = /^[0-9]{17}$/
        break
    case "":
        reg = /^[0-9]{14}$/
        break
    case "":
        reg = /((\d{8})|(\d{8})|(\d{8})|(\d{8})|(\d{8})|(\d{8})|(\d{8})|(\d{8})|(\d{8})|(\d{8})|(\d{8})|(\d{8})|(\d{8})){1}/
        break
    default:

the regularity adopted in the verification rules based on the type of certificate

so how to pass in each document number and its own document type

var identityNoValidator = (rule, value, callback) => {
            return identityNoValidatorByType(rule, value, callback, this.identityType)
        }

here I start to define the variable tag type, but at the end of the submission, I will check all the forms. At this time, the document type passed in by multiple identities is how a type adds another document type field to the verification function

.
May.06,2022

your question is not quite clear. I suggest you sort it out


props can't be set to the same value


should be what you want:

I'll send a demo, element-ui, too. Prop
https://codepen.io/luren/pen/...

mentioned in dynamic increase or decrease list item
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3aa85-2b77a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3aa85-2b77a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?