画像编辑校验

This commit is contained in:
shidongli 2024-06-27 15:04:22 +08:00
parent daa372de7d
commit aa47280545

View File

@ -221,28 +221,15 @@ export default {
groupingValues:[] groupingValues:[]
} }
form.groupingValues=this.getParamslistData form.groupingValues=this.getParamslistData
emptyItems = form.groupingValues.flat().filter(f => f.fieldValue == "" || !f.fieldValue) // emptyItems = form.groupingValues.flat().filter(f => f.fieldValue == "" || !f.fieldValue)
console.log(form, 'this.form') // console.log(form, 'this.form')
// this.getParamslistData.forEach(e => { // console.log(emptyItems, 'emptyItems')
// e.forEach(el => {
// el.routeId = this.itemdata.routeId
// el.routeName = this.itemdata.routeName
// el.routeNodeId = this.querytParams.id
// el.routeNodeName = this.itemdata.routeNodeName
// el.taskPartitionCode = this.itemdata.taskPartitionCode
// el.taskPartitionDictId = this.itemdata.taskPartitionDictId
// el.taskPartitionDictName = this.itemdata.taskPartitionDictName
// el.taskTypeCode = this.itemdata.taskTypeCode
// el.taskTypeId = this.itemdata.taskTypeId
// el.taskTypeName = this.itemdata.taskTypeName
// })
// })
console.log(emptyItems, 'emptyItems')
// return // return
if (emptyItems && emptyItems.length > 0) { // if (emptyItems && emptyItems.length > 0) {
this.$modal.msgError("请填写完整,再进行提交"); // this.$modal.msgError(",");
} else { // } else {
this.$confirm('是否确认提交?', '提示', { this.$confirm('是否确认提交?', '提示', {
confirmButtonText: '确认', confirmButtonText: '确认',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -267,7 +254,7 @@ export default {
loading.close(); loading.close();
}); });
}) })
} // }
}, },
additem(index) { additem(index) {