The problem of form validation in elementui

upload photos in a form, and the fields of this photo are configured in other modules. According to the configuration, you can verify whether the photos must be uploaded or not. Requirement: this field must be displayed, but it is verified differently when you save it.

<el-form-item label="" prop="txlj" required>
    <upload-img :uploadPic="canUpload"
        :downloadPic="canDownload"
        modeName="kszp"
        tipText="1:1"
        :maxSize="50"
        :clientName.sync="form.txkhd"
        :serverPath.sync="form.txlj"
        :serverName.sync="form.txfwd"></upload-img>
</el-form-item>

the judgment condition is this.ksxx.sfscsfz="1". The use of v-if is not in line with business logic, required inside the use of ternary operators will report an error, do not know how to solve, for the solution, thank you!

Mar.10,2021

< el-form-item label= "Photo" prop= "txlj": required= "ksxx.sfscsfz='1'" >
.
< / el-form-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-1eb13b9-233c.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-1eb13b9-233c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?