Commit c05c5681 by yanju

动态删除添加弹框

parent 0a1a1e0e
......@@ -28,7 +28,7 @@
<yun-icon v-if="userId===$store.state.userProfile.userId" name="down_arrow" size="6px" color="#999" @click.native.stop="clickToShowDrop"></yun-icon>
<p v-if="isMy&&status===-1" class="label-box__err">被锁定</p>
<dropdown v-if="showDrop">
<li @click="dateDeleteCard(postId)" ref="deleteButton">删除</li>
<li @click="showAlert(postId)" ref="deleteButton">删除</li>
</dropdown>
</div>
</div>
......@@ -285,7 +285,20 @@
this.status = info.status;
}
},
dateDeleteCard(id){
showAlert(id){
this.$alert('确认删除?', '', {
confirmButtonText: '确定',
callback: action => {
this.dateDeleteCard(id)
}
});
},
showAlert(id){
this.$axios.$delete(config.api.delete.Post.delete+id).then((response)=>{
if(response.code===0){
// this.$emit(config.event.listenSocialCardState,1);
......
......@@ -118,6 +118,7 @@
type: 'success',
message: '已全部标记已读'
});
this.message = [];
this.restartPagination();
} else {
this.$message({
......
......@@ -251,7 +251,7 @@ export default {
zIndex: 100,
imgSrc: '',
lastSaveTime: new Date(),
List1: [{tagId:1,tag:"MPL"},{tagId:2,tag:"BSD"},{tagId:3,tag:"Com"},{tagId:4,tag:"QPL"},{tagId:5,tag:"QNCL"},{tagId:6,tag:"Jab"},{tagId:7,tag:"IBM"}],
List1: [{tagId:0,tag:"无"},{tagId:1,tag:"MPL"},{tagId:2,tag:"BSD"},{tagId:3,tag:"Com"},{tagId:4,tag:"QPL"},{tagId:5,tag:"QNCL"},{tagId:6,tag:"Jab"},{tagId:7,tag:"IBM"}],
List2: [{tagId:1,tag:"C"}, {tagId:2,tag:"Java"},{tagId:3,tag:"Javascript"},{tagId:4,tag:"python"},{tagId:5,tag:"C++"}],
license: '', // 项目协议
language: '', // 项目语言
......
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