diff --git a/View/Admin/Notebook/lists.blade.php b/View/Admin/Notebook/lists.blade.php
index c3f5aa3..4c95aae 100644
--- a/View/Admin/Notebook/lists.blade.php
+++ b/View/Admin/Notebook/lists.blade.php
@@ -113,7 +113,7 @@
left: 0;
width: 100%;
height: 100%;
- z-index: 9999;
+ z-index: 99;
background-color: #f8e3c535;
}
.content-shade .logo{
@@ -151,8 +151,7 @@
创建时间:@{{item.create_time}}
创建人:@{{ item.create_name }}
最后更新: @{{ item.latest_name }}
@@ -242,8 +241,26 @@
this.getLatest();
}
- VueInit.methods.deleteaa = function (){
- console.log(111);
+ VueInit.methods.deleteaa = function (item, index){
+ this.$confirm("确认删除笔记吗?").then(() =>{
+ this.notebook.splice(index, 1);
+ if (index === this.active) {
+ this.currentNotebook = this.notebook[index] ? this.notebook[index] : {title: ''};
+ }
+ axios({
+ url:"destroy",
+ method:'post',
+ data:{
+ ids:[item.id]
+ }
+ }).then(({data:res}) => {
+ if(res.code === 200){
+ this.$message.success("删除成功");
+ }else{
+ this.$message.error(res.msg);
+ }
+ });
+ })
}
VueInit.methods.create = function (){