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

Commit 56c23aa1 by 李严凡

创建任务局部修改

parent ef550cbd
......@@ -132,15 +132,15 @@
<el-row :gutter="20">
<el-form-item>
<!-- 采用手风琴实现折叠-->
<el-collapse v-model="activeName" accordion>
<el-collapse v-model="activeName" >
<el-form-item v-for="(domain, index) in dynamicValidateForm.pictureDomains"
:key="domain.key"
:prop="'pictureDomains.' + index + '.value'">
<el-collapse-item
:title="'图片任务分片'+(1+index)"
:name="index" style="border-bottom: 1px solid;border-bottom-color:white;font-size: 14px">
:name="index" style="border-bottom: 1px solid;border-bottom-color:white;font-size: 14px; ">
<!-- 上传图片-->
<el-row :gutter="20" >
<el-row :gutter="20" style="min-height: 75px">
<el-col span="6">
<el-upload
class="upload-demo"
......@@ -159,7 +159,7 @@
</el-col>
<el-col span="10">
<el-input type="textarea" :row="6" placeholder="请输入分片描述" @input="change($event)" v-model="domain.description" style="margin-bottom: 10px;height:40px" maxlength="150" show-word-limit="150">
<el-input type="textarea" :autosize="{minRows: 2, maxRows: 4}" placeholder="请输入分片描述" @input="change($event)" v-model="domain.description" style="resize:none;overflow:hidden ;margin-bottom: 10px;min-height:65px" maxlength="150" show-word-limit="150">
</el-input>
</el-col>
<el-col span="2" offset="2">
......@@ -206,7 +206,7 @@
</el-upload>
</el-col>
<el-col span="10">
<el-input type="textarea" :row="6" placeholder="请输入分片描述" @input="change($event)" v-model="domain.description" style="margin-bottom: 10px;height:40px" maxlength="150" show-word-limit="150">
<el-input type="textarea" :autosize="{minRows: 2, maxRows: 4}" placeholder="请输入分片描述" @input="change($event)" v-model="domain.description" style="resize: none;overflow:hidden ;margin-bottom: 10px;min-height:65px" maxlength="150" show-word-limit="150">
</el-input>
</el-col>
<el-col span="2" offset="2">
......@@ -253,14 +253,14 @@
</el-tab-pane>
</el-tabs>
<el-row :gutter="20">
<el-col offset="15" span="9">
<el-form-item style="margin-top: 20px">
<el-input v-model="taskName" @input="change($event)" placeholder="输入任务名称" style="width: 200px"></el-input>
<el-button type="primary" @click="submitForm(taskName)" style="margin-left: 15px">创建任务</el-button>
</el-form-item>
</el-col>
</el-row>
<el-form-item style="margin-top: 20px">
<el-row type="flex" class="row-bg" justify="end" >
<el-col offset="16" span="8">
<el-input v-model="taskName" @input="change($event)" placeholder="输入任务名称" style="width: 63%"></el-input>
<el-button type="primary" @click="submitForm(taskName)" style="width:35%">创建任务</el-button>
</el-col>
</el-row>
</el-form-item>
</el-form>
<el-dialog title="自定义模板" :visible.sync="dialogFormVisible">
......@@ -372,8 +372,8 @@
}
.el-collapse-item,.el-collapse{
border-bottom:1px solid;
border-bottom-color: black;
/*border-bottom:1px solid;*/
/*border-bottom-color: black;*/
}
.taskhall{
width: 90vw;
......@@ -493,6 +493,7 @@
})
this.$router.push({path: '/'});
}
this.ins = this.$route.params.ins;
// console.log("1111212");
//console.log(this.$store.state.userInfo)
......@@ -503,6 +504,7 @@
creatorId:this.$store.state.userInfo.userId
}
}).then(res=>{
// alert("III")
console.log(res);
if(res.code == 1){
if(res.message.length == 0){
......@@ -919,6 +921,16 @@
console.log(this.pOptions);
},
append(data,mm) {
// console.log("MM")
// console.log(mm)
if(mm == undefined){
this.$message({
type: 'info',
message: '请输入模板名称或者实体名称'
})
return
}
//type = 0 ,最下面的子节点,对应描述value;type=1,根节点,对应子类children
const newChild = { id: id++, label: mm, type:0 ,children: [] , value:'' };
if (!data.children) {
......@@ -946,7 +958,16 @@
if(this.pOptions[i].templateId > max)
max = this.pOptions[i].templateId;
};
if(ins == 0)
this.dialogFormVisible = false;
if(ins == 1){
if(this.form.name == ''){
this.$message({
type: 'info',
message: '请输入模板名称'
})
return
}
this.axios({
method:'POST',
url:'/textAnnotation/createTemplated',
......@@ -974,7 +995,13 @@
},
delTemplate(index){
console.log(this.pOptions);
//
if(this.pOptions[index].templateType == 0){
this.$message({
type: 'info',
message: '系统模板,无删除权限'
})
return
}
this.$confirm('此操作将永久删除改模板', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......
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