文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 196f3b59 by 李严凡

模板查看

parent 332525b0
......@@ -276,9 +276,10 @@
:label="i.templateName"
:value="i.templateId">
</el-option>
<!-- <el-button @click="createModle">查看</el-button>-->
</el-select>
<el-tree
:data="templateDetailList"
:data="this.pOptions[templateChoose-1].entityList"
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;
}
}
}
......
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