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