diff --git a/components/form.vue b/components/form.vue index 274ae7d..44c88ec 100644 --- a/components/form.vue +++ b/components/form.vue @@ -122,6 +122,9 @@ font-size:20rpx; color:#FBA83C; } + &/deep/>.u-form-item__body__right__message{ + margin-left:0!important; + } } } diff --git a/pages/massif/index.vue b/pages/massif/index.vue index 1074cc0..31ce817 100644 --- a/pages/massif/index.vue +++ b/pages/massif/index.vue @@ -94,7 +94,7 @@ 修改 - 删除 + 删除 地块管理 @@ -144,6 +144,28 @@ import request from '@/common/request' } } }, + async del(index){ + if((await uni.showModal({ title:"提示", content:"确定删除?" }))[1].confirm){ + var res=await request("/api/plantPlot/deletePlantPlotInfo",{ + method:"DELETE", + params:{id:this.list[index].id} + }) + if(res.statu){ + if(this.list.length>6){ + this.list.splice(index,1) + this.total-- + }else{ + this.search() + } + }else{ + uni.showModal({ + title:"提示", + content:res.msg||"删除失败!", + showCancel:false, + }) + } + } + }, }, } diff --git a/pages/massif/info.vue b/pages/massif/info.vue index c5ae92e..c701c86 100644 --- a/pages/massif/info.vue +++ b/pages/massif/info.vue @@ -3,15 +3,11 @@ background:#F6F6F6; padding:14px 0; min-height:100%; - &>.u-button{ - margin:38px auto 0px; - width:80%; - } }