Commit c82cd15b by 肖小磊

K#图片下传

parent feffe6ec
...@@ -122,6 +122,14 @@ ...@@ -122,6 +122,14 @@
<el-input v-model="createUploadTaskForm.HttpFileHash"></el-input> <el-input v-model="createUploadTaskForm.HttpFileHash"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="K#图片下传" label-width="126px" style="text-align:left;" v-if="createUploadTaskForm.Type==3">
<el-upload class="upload-demo" :action="action" :show-file-list="false" :file-list="fileList " :auto-upload="true" :on-success="kfileSuccess" :before-upload="beforeFileUpload ">
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">{{createUploadTaskForm.KFilePath}}</div>
</el-upload>
</el-form-item>
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
...@@ -504,6 +512,7 @@ export default { ...@@ -504,6 +512,7 @@ export default {
NeedNotify: "0", NeedNotify: "0",
BatFilePath: "", BatFilePath: "",
FilePath: "", FilePath: "",
KFilePath: "",
HttpFilePath: "", HttpFilePath: "",
HttpFileHash: 0, HttpFileHash: 0,
Type: 0, Type: 0,
...@@ -601,6 +610,14 @@ export default { ...@@ -601,6 +610,14 @@ export default {
} }
}, },
kfileSuccess(response, file, fileList) {
if (response.statusCode == "100") {
this.$message.success("上传成功");
this.createUploadTaskForm.KFilePath = response.data;
} else {
this.$message.error(response.errorMessage);
}
},
typeChage() { typeChage() {
if (this.createUploadTaskForm.Type == -10000) { if (this.createUploadTaskForm.Type == -10000) {
...@@ -763,6 +780,7 @@ export default { ...@@ -763,6 +780,7 @@ export default {
this.createUploadTaskForm.HttpFileHash = res.httpFileHash; this.createUploadTaskForm.HttpFileHash = res.httpFileHash;
this.createUploadTaskForm.FileSize = res.fileSize; this.createUploadTaskForm.FileSize = res.fileSize;
this.createUploadTaskForm.BatFilePath = res.batFilePath; this.createUploadTaskForm.BatFilePath = res.batFilePath;
this.createUploadTaskForm.KFilePath = res.kFilePath;
this.createUploadTaskForm.TaskID = res.taskID; this.createUploadTaskForm.TaskID = res.taskID;
this.createUploadTaskForm.TaskType = res.taskType; this.createUploadTaskForm.TaskType = res.taskType;
...@@ -855,6 +873,7 @@ export default { ...@@ -855,6 +873,7 @@ export default {
NeedNotify: "0", NeedNotify: "0",
BatFilePath: "", BatFilePath: "",
FilePath: "", FilePath: "",
KFilePath: "",
Type: 0, Type: 0,
NeedRestart: 0, NeedRestart: 0,
ToPath: "", ToPath: "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment