Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UI-TW
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GoMax
UI-TW
Commits
c82cd15b
Commit
c82cd15b
authored
Apr 24, 2023
by
肖小磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
K#图片下传
parent
feffe6ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
src/components/task/createDownLoadTask.vue
+19
-0
No files found.
src/components/task/createDownLoadTask.vue
View file @
c82cd15b
...
...
@@ -122,6 +122,14 @@
<el-input
v-model=
"createUploadTaskForm.HttpFileHash"
></el-input>
</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
:span=
"11"
>
...
...
@@ -504,6 +512,7 @@ export default {
NeedNotify
:
"0"
,
BatFilePath
:
""
,
FilePath
:
""
,
KFilePath
:
""
,
HttpFilePath
:
""
,
HttpFileHash
:
0
,
Type
:
0
,
...
...
@@ -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
()
{
if
(
this
.
createUploadTaskForm
.
Type
==
-
10000
)
{
...
...
@@ -763,6 +780,7 @@ export default {
this
.
createUploadTaskForm
.
HttpFileHash
=
res
.
httpFileHash
;
this
.
createUploadTaskForm
.
FileSize
=
res
.
fileSize
;
this
.
createUploadTaskForm
.
BatFilePath
=
res
.
batFilePath
;
this
.
createUploadTaskForm
.
KFilePath
=
res
.
kFilePath
;
this
.
createUploadTaskForm
.
TaskID
=
res
.
taskID
;
this
.
createUploadTaskForm
.
TaskType
=
res
.
taskType
;
...
...
@@ -855,6 +873,7 @@ export default {
NeedNotify
:
"0"
,
BatFilePath
:
""
,
FilePath
:
""
,
KFilePath
:
""
,
Type
:
0
,
NeedRestart
:
0
,
ToPath
:
""
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment