This commit is contained in:
24kycj
2024-11-30 13:21:02 +08:00
parent 29e24f2112
commit c2dc433d87
2 changed files with 8 additions and 13 deletions
+4 -9
View File
@@ -321,7 +321,7 @@ export default {
req_type: 1,
req_info: {
uuid: '',
file_name: 'templ.csv',
file_name: 'temp.csv',
file_text: ''
}
},
@@ -558,15 +558,10 @@ export default {
if (item.type == 1&&that.$refs[item.origin_name][0].files[0]) {
item.val = that.$refs[item.origin_name][0].files[0].path
}
if (!item.val) {
item.val = item.default
}
})
const isEmpty = that.soonList.some((item) => item.val === '')
if (isEmpty) {
that.$message({
message: '可变字段不能为空',
type: 'warning'
})
return
}
let csv1 = that.soonList.map(item => item.origin_name).join(',')
let csv2 = that.soonList.map(item => item.val).join(',')
that.csvForm.req_info.file_text = csv1 + '\n' + csv2