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
196f3b59
Commit
196f3b59
authored
Jul 15, 2020
by
李严凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板查看
parent
332525b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
40 deletions
+44
-40
ReleaseTask.vue
DAPlatform-front/src/components/ReleaseTask.vue
+44
-40
No files found.
DAPlatform-front/src/components/ReleaseTask.vue
View file @
196f3b59
...
...
@@ -276,9 +276,10 @@
:label=
"i.templateName"
:value=
"i.templateId"
>
</el-option>
<!--
<el-button
@
click=
"createModle"
>
查看
</el-button>
-->
</el-select>
<el-tree
:data=
"t
emplateDetail
List"
:data=
"t
his.pOptions[templateChoose-1].entity
List"
node-key=
"id"
default-expand-all
:expand-on-click-node=
"false"
>
...
...
@@ -451,7 +452,7 @@
creatorId
:
this
.
$store
.
state
.
userInfo
.
userId
}
}).
then
(
res
=>
{
//
console.log(res);
console
.
log
(
res
);
if
(
res
.
code
==
1
){
this
.
pOptions
=
res
.
message
;
}
...
...
@@ -831,8 +832,8 @@
handleClick
(
tab
,
event
)
{
// console.log(tab, event);
},
createModle
(
m
){
alert
(
'111'
);
createModle
(){
console
.
log
(
this
.
templateChoose
);
},
append
(
data
,
mm
)
{
//type = 0 ,最下面的子节点,对应描述value;type=1,根节点,对应子类children
...
...
@@ -854,49 +855,52 @@
children
.
splice
(
index
,
1
);
},
rePage
(
ins
){
console
.
log
(
this
.
entityList
);
//确定创建模板
if
(
ins
==
1
){
this
.
axios
({
method
:
'POST'
,
url
:
'/textAnnotation/createTemplated'
,
data
:{
templateId
:
this
.
pOptions
.
length
+
1
,
templateName
:
this
.
form
.
name
,
templateType
:
0
,
creatorId
:
this
.
userInfo
.
userId
,
entityList
:
this
.
entityList
,
},
}).
then
(
res
=>
{
if
(
res
.
code
==
1
){
this
.
pOptions
=
res
.
message
;
}
else
{
alert
(
"模板创建失败"
);
}
this
.
dialogFormVisible
=
false
;
})
}
//
if(ins == 1){
//
this.axios({
//
method:'POST',
//
url:'/textAnnotation/createTemplated',
//
data:{
//
templateId:this.pOptions.length+1,
//
templateName:this.form.name,
//
templateType:0,
//
creatorId:this.userInfo.userId,
//
entityList:this.entityList,
//
},
//
}).then(res=>{
//
if(res.code == 1){
//
this.pOptions = res.message;
//
}
//
else{
//
alert("模板创建失败");
//
}
//
this.dialogFormVisible = false;
//
})
//
}
// console(this.pOptions);
// // alert("111");
//location.reload();
},
checkTemplate
(){
this
.
templateVisible
=
true
;
// this.axios({
// method:"POST",
// data:{
// creatorId:this.userInfo.userId,
// },
// url:""
// }).then(res=>{
// if(res.code == 0){
// alert("模板获取失败");
// }
// else{
// this.templateList = res.message;
// }
// })
this
.
templateDetailList
=
this
.
pOptions
;
this
.
axios
({
method
:
"POST"
,
data
:{
creatorId
:
this
.
userInfo
.
userId
,
},
url
:
"/textAnnotation/getTemplated"
}).
then
(
res
=>
{
console
.
log
(
"///"
);
console
.
log
(
res
);
if
(
res
.
code
==
0
){
alert
(
"模板获取失败"
);
}
else
{
this
.
templateDetailList
=
res
.
message
;
}
})
// this.templateDetailList = this.pOptions;
}
}
}
...
...
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