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

Commit 27b4d0d3 by 李严凡

模板显示以及模板获取接口文档的修改

parent 2131d4a8
......@@ -9,6 +9,7 @@
<el-tab-pane label="文本分片" name="first">
<el-row :gutter="20" style="margin-bottom: 15px">
<el-col span="2"><el-button @click="addDomain(1)" type="primary" plain>添加文本分片</el-button></el-col>
<el-col span="5"><el-button @click="checkTemplate" type="info" plain>查看模板</el-button></el-col>
</el-row>
<el-row :gutter="20">
<el-form-item>
......@@ -264,6 +265,48 @@
<el-button type="primary" @click="rePage(1)">确 定</el-button>
</div>
</el-dialog>
<el-dialog title="查看模板内容" :visible.sync="templateVisible">
<el-row :gutter="20">
<!-- <div class="block" v-for="(entity,index) in this.templateList">-->
<el-select v-model="templateChoose" placeholder="模板选择" >
<el-option
v-for="i in pOptions"
:key="i.templateId"
:label="i.templateName"
:value="i.templateId">
</el-option>
</el-select>
<el-tree
:data="templateDetailList"
node-key="id"
default-expand-all
:expand-on-click-node="false">
<span class="custom-tree-node" slot-scope="{ node, data }">
<span>{{ node.label }}</span>
<!-- <span>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="mini"-->
<!-- @click="() => append(data)">-->
<!-- Append-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="mini"-->
<!-- @click="() => remove(node, data)">-->
<!-- Delete-->
<!-- </el-button>-->
<!-- </span>-->
</span>
</el-tree>
<!-- <el-button>删除模板</el-button>-->
<!-- </div>-->
</el-row>
<el-row :gutter="20">
</el-row>
</el-dialog>
</el-main>
</el-container>
</div>
......@@ -335,7 +378,8 @@
// size:177332393,
// }],
Index : 0,//在分片中的位置
dialogFormVisible: false,
dialogFormVisible: false,//自定义模板
templateVisible: false,//查看模板
form: {
name: '',
region: '',
......@@ -348,13 +392,13 @@
},
formLabelWidth: '120px',
pOptions: [{
templateId: '1',
templateId: 1,
templateName: '模板1'
}, {
templateId: '2',
templateId: 2,
templateName: '模板2'
}, {
templateId: '3',
templateId: 3,
templateName: '模板3'
}],
dynamicValidateForm: {
......@@ -391,12 +435,14 @@
taskName:'',
taskId:-1,
templateName:'',
templateDetailList:[],//用来显示模板内容的模板列表
templateChoose:1,//查看模板时的模板id
};
},
mounted(){
setTimeout(()=>{
this.ins = this.$route.params.ins;
//console.log(this.$route.params.taskId);
console.log("1111212");
// console.log(this.$store.state.userInfo.userId)
this.axios({
method:"POST",
......@@ -405,7 +451,7 @@
creatorId:this.$store.state.userInfo.userId
}
}).then(res=>{
// console.log(res);
console.log(res);
if(res.code == 1){
this.pOptions = res.message;
}
......@@ -425,13 +471,14 @@
},
url:'task/getTaskDetail'
}).then(res=>{
console.log("ininininini");
console.log(res);
// console.log("ininininini");
// console.log(res);
if(res.code == 0){
alert('无法修改任务');
}
else{
this.dynamicValidateForm.domains = res.data.domains;
// this.dynamicValidateForm.domains[0].templateId=5;
// this.dynamicValidateForm.tableDomains = res.data.tableDomains;
console.log(this.dynamicValidateForm.domains);
// this.dynamicValidateForm.domains[0].pvalue = '1';
......@@ -739,7 +786,7 @@
if(ptype == 1){
this.dynamicValidateForm.domains.push({
fileList:new Array(),
templateId:'1',
templateId:'',
templateName:'',
createMode:false,
key: Date.now()
......@@ -833,6 +880,24 @@
// // 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;
}
}
}
......
2.插入token(标注) POST
url:http://127.0.0.1:9100/api/textAnnotation/addToken
http://localhost:8080/helloworld
\ No newline at end of file
xcom
\ No newline at end of file
参加过一次软院心理讲座,但是未录入
有博雅记录的一共4次
总共5次博雅
\ No newline at end of file
参加过一次软院心理讲座,但是未录入
有博雅记录的一共4次
总共5次博雅
\ No newline at end of file
参加过一次软院心理讲座,但是未录入
有博雅记录的一共4次
总共5次博雅
\ No newline at end of file
参加过一次软院心理讲座,但是未录入
有博雅记录的一共4次
总共5次博雅
\ No newline at end of file
参加过一次软院心理讲座,但是未录入
有博雅记录的一共4次
总共5次博雅
\ No newline at end of file
参加过一次软院心理讲座,但是未录入
有博雅记录的一共4次
总共5次博雅
\ No newline at end of file
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