|
@@ -371,6 +371,16 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ formatDataNull () {
|
|
|
+ for (const key in this.tableForm) {
|
|
|
+ if (Object.hasOwnProperty.call(this.tableForm, key)) {
|
|
|
+ const element = this.tableForm[key]
|
|
|
+ if (!element) {
|
|
|
+ this.tableForm[key] = null
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
// 新增/编辑-确认
|
|
|
submitClickHandler () {
|
|
|
let flag = false
|
|
@@ -380,6 +390,7 @@ export default {
|
|
|
if (nload?.length) this.addTypeUpload(nload)
|
|
|
if (ndata?.length) this.addTypePassWord(ndata)
|
|
|
if (npass) { this.formatPass(npass) }
|
|
|
+ this.formatDataNull()
|
|
|
this.$refs["ruleForm"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
flag = true
|