更新
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user