更新
This commit is contained in:
@@ -248,6 +248,7 @@ export default {
|
||||
ass_task: [
|
||||
{
|
||||
ass_task_index: 1,
|
||||
task_size: 0,
|
||||
path_file: []
|
||||
}
|
||||
],
|
||||
@@ -542,9 +543,12 @@ export default {
|
||||
workSubmit() {
|
||||
let that = this
|
||||
const files = this.$refs.files.getLists()
|
||||
let task_size = 0
|
||||
for (let key in files) {
|
||||
that.form.ass_task[0].path_file.push(files[key].path)
|
||||
task_size+=files[key].size
|
||||
}
|
||||
that.form.ass_task[0].task_size = task_size
|
||||
if (that.form.json_file === ''&& that.form.ass_task[0].path_file.length === 0) {
|
||||
this.$message({
|
||||
message: '请上传作业文件',
|
||||
@@ -696,6 +700,7 @@ export default {
|
||||
csvLoad() {
|
||||
let that = this
|
||||
let selectedFile = this.$refs.refFile2.files[0]
|
||||
that.form.udf_file = selectedFile.path
|
||||
let reader = new FileReader()
|
||||
reader.readAsText(selectedFile)
|
||||
reader.onload = function () {
|
||||
|
||||
Reference in New Issue
Block a user