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

Commit 72b14cf7 by 李严凡

接口文档,我的任务部分功能添加

parent d61c23b5
......@@ -632,7 +632,7 @@
}
}).then(res=>{
if(res.code == 0)
alert("文件上传失败,请重新上传");
alert("文件上传失败,请按规定格式重新上传");
else{
this.url = res.data;
this.dynamicValidateForm.domains[this.Index ].fileList.push({name:file[0].name,url:this.url,size:file[0].size});
......@@ -650,7 +650,7 @@
}
}).then(res=>{
if(res.code == 0)
alert("文件上传失败,请重新上传");
alert("文件上传失败,请按规定格式重新上传");
else{
this.url = res.data;
this.dynamicValidateForm.tableDomains[this.Index ].fileList.push({name:file[0].name,url:this.url,size:file[0].size});
......@@ -668,7 +668,7 @@
}
}).then(res=>{
if(res.code == 0)
alert("文件上传失败,请重新上传");
alert("文件上传失败,请按规定格式重新上传");
else{
this.url = res.data;
this.dynamicValidateForm.pictureDomains[this.Index ].fileList.push({name:file[0].name,url:this.url,size:file[0].size});
......@@ -685,7 +685,7 @@
}
}).then(res=>{
if(res.code == 0)
alert("文件上传失败,请重新上传");
alert("文件上传失败,请规定格式重新上传");
else{
this.url = res.data;
this.dynamicValidateForm.layerDomains[this.Index ].fileList.push({name:file[0].name,url:this.url,size:file[0].size});
......
......@@ -7,6 +7,7 @@
<div>{{item.name}}</div>
<div>发布者:{{item.creator}}&emsp;&emsp;发布时间:{{item.date|formatDate}}
</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>
</div>
</div>
......@@ -38,6 +39,29 @@ export default {
name: 'ongoingtaskdetail',
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:"任务删除成功"
})
}
})
}
}
}
......
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