Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
文档服务地址:
http://47.92.0.57:3000/
周报索引地址:
http://47.92.0.57:3000/s/NruNXRYmV
Open sidebar
Berlin
DA-Platform
Commits
72b14cf7
Commit
72b14cf7
authored
Aug 27, 2020
by
李严凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口文档,我的任务部分功能添加
parent
d61c23b5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
ReleaseTask.vue
DAPlatform-front/src/components/ReleaseTask.vue
+4
-4
ongoingtask.vue
DAPlatform-front/src/components/ongoingtask.vue
+24
-0
通用功能组_接口文档.docx
文档/通用功能组_接口文档.docx
+0
-0
No files found.
DAPlatform-front/src/components/ReleaseTask.vue
View file @
72b14cf7
...
@@ -632,7 +632,7 @@
...
@@ -632,7 +632,7 @@
}
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
if
(
res
.
code
==
0
)
alert
(
"文件上传失败,请重新上传"
);
alert
(
"文件上传失败,请
按规定格式
重新上传"
);
else
{
else
{
this
.
url
=
res
.
data
;
this
.
url
=
res
.
data
;
this
.
dynamicValidateForm
.
domains
[
this
.
Index
].
fileList
.
push
({
name
:
file
[
0
].
name
,
url
:
this
.
url
,
size
:
file
[
0
].
size
});
this
.
dynamicValidateForm
.
domains
[
this
.
Index
].
fileList
.
push
({
name
:
file
[
0
].
name
,
url
:
this
.
url
,
size
:
file
[
0
].
size
});
...
@@ -650,7 +650,7 @@
...
@@ -650,7 +650,7 @@
}
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
if
(
res
.
code
==
0
)
alert
(
"文件上传失败,请重新上传"
);
alert
(
"文件上传失败,请
按规定格式
重新上传"
);
else
{
else
{
this
.
url
=
res
.
data
;
this
.
url
=
res
.
data
;
this
.
dynamicValidateForm
.
tableDomains
[
this
.
Index
].
fileList
.
push
({
name
:
file
[
0
].
name
,
url
:
this
.
url
,
size
:
file
[
0
].
size
});
this
.
dynamicValidateForm
.
tableDomains
[
this
.
Index
].
fileList
.
push
({
name
:
file
[
0
].
name
,
url
:
this
.
url
,
size
:
file
[
0
].
size
});
...
@@ -668,7 +668,7 @@
...
@@ -668,7 +668,7 @@
}
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
if
(
res
.
code
==
0
)
alert
(
"文件上传失败,请重新上传"
);
alert
(
"文件上传失败,请
按规定格式
重新上传"
);
else
{
else
{
this
.
url
=
res
.
data
;
this
.
url
=
res
.
data
;
this
.
dynamicValidateForm
.
pictureDomains
[
this
.
Index
].
fileList
.
push
({
name
:
file
[
0
].
name
,
url
:
this
.
url
,
size
:
file
[
0
].
size
});
this
.
dynamicValidateForm
.
pictureDomains
[
this
.
Index
].
fileList
.
push
({
name
:
file
[
0
].
name
,
url
:
this
.
url
,
size
:
file
[
0
].
size
});
...
@@ -685,7 +685,7 @@
...
@@ -685,7 +685,7 @@
}
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
if
(
res
.
code
==
0
)
alert
(
"文件上传失败,请重新上传"
);
alert
(
"文件上传失败,请
规定格式
重新上传"
);
else
{
else
{
this
.
url
=
res
.
data
;
this
.
url
=
res
.
data
;
this
.
dynamicValidateForm
.
layerDomains
[
this
.
Index
].
fileList
.
push
({
name
:
file
[
0
].
name
,
url
:
this
.
url
,
size
:
file
[
0
].
size
});
this
.
dynamicValidateForm
.
layerDomains
[
this
.
Index
].
fileList
.
push
({
name
:
file
[
0
].
name
,
url
:
this
.
url
,
size
:
file
[
0
].
size
});
...
...
DAPlatform-front/src/components/ongoingtask.vue
View file @
72b14cf7
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<div>
{{
item
.
name
}}
</div>
<div>
{{
item
.
name
}}
</div>
<div>
发布者:
{{
item
.
creator
}}
  
发布时间:
{{
item
.
date
|
formatDate
}}
<div>
发布者:
{{
item
.
creator
}}
  
发布时间:
{{
item
.
date
|
formatDate
}}
</div>
</div>
<!--
<el-button
v-if=
"item.state == "
class=
"task-enter-btn1"
@
click=
"del(item.id)"
type=
"info"
plain
>
删除任务
</el-button>
-->
<el-button
class=
"task-enter-btn1"
@
click=
"detail(item)"
type=
"primary"
plain
>
查看任务详情
</el-button>
<el-button
class=
"task-enter-btn1"
@
click=
"detail(item)"
type=
"primary"
plain
>
查看任务详情
</el-button>
</div>
</div>
</div>
</div>
...
@@ -38,6 +39,29 @@ export default {
...
@@ -38,6 +39,29 @@ export default {
name
:
'ongoingtaskdetail'
,
name
:
'ongoingtaskdetail'
,
params
:
{
task
:
encodeURIComponent
(
JSON
.
stringify
(
task
))
}
params
:
{
task
:
encodeURIComponent
(
JSON
.
stringify
(
task
))
}
})
})
},
del
(
id
){
this
.
axios
({
method
:
"post"
,
url
:
"task/delTask"
,
params
:{
userId
:
this
.
$store
.
state
.
userInfo
.
userId
,
taskId
:
id
}
}).
then
(
res
=>
{
if
(
res
.
code
==
1
){
this
.
$message
({
type
:
'info'
,
message
:
"任务删除成功"
})
}
else
{
this
.
$message
({
type
:
'info'
,
message
:
"任务删除成功"
})
}
})
}
}
}
}
}
}
...
...
文档/通用功能组_接口文档.docx
View file @
72b14cf7
No preview for this file type
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