|
|
@ -77,7 +77,7 @@ |
|
|
|
<template> |
|
|
|
<view class="container flex"> |
|
|
|
<cu-navbar style="--bg:#10C176;--c:#fff;" text="地块管理"> |
|
|
|
<text class="plant-xinjian" slot="right" @click="$u.route({url:'pages/massif/info'})"/> |
|
|
|
<text class="plant-xinjian" slot="right" @click="toInfo"/> |
|
|
|
</cu-navbar> |
|
|
|
|
|
|
|
<d-search v-model="searchVal.search" @search="clean();search()"/> |
|
|
@ -93,7 +93,7 @@ |
|
|
|
<text>{{v.usedArea}}</text> <text>(在用面积)</text> |
|
|
|
</view> |
|
|
|
<view class="btns"> |
|
|
|
<text class="plant-xiugai">修改</text> |
|
|
|
<text class="plant-xiugai" @click.stop="$u.route({url:'/pages/massif/info',params:{id:v.id}})">修改</text> |
|
|
|
<text class="plant-shanchu" @click.stop="del(k)">删除</text> |
|
|
|
<text class="plant-xinzeng" @click.stop="$u.route({url:'pages/massif/mana/index'})">地块管理</text> |
|
|
|
</view> |
|
|
@ -122,6 +122,17 @@ import request from '@/common/request' |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
toInfo(){ |
|
|
|
uni.navigateTo({ |
|
|
|
url:"/pages/massif/info", |
|
|
|
events:{ |
|
|
|
update:()=>{ |
|
|
|
this.clean() |
|
|
|
this.search() |
|
|
|
} |
|
|
|
}, |
|
|
|
}) |
|
|
|
}, |
|
|
|
clean(){ |
|
|
|
this.searchVal.pageNo=1 |
|
|
|
this.total=0 |
|
|
@ -133,7 +144,7 @@ import request from '@/common/request' |
|
|
|
params: this.searchVal |
|
|
|
}) |
|
|
|
if(res.statu){ |
|
|
|
this.list=res.data.records |
|
|
|
this.list=this.list.concat(res.data.records) |
|
|
|
this.total=res.data.total |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
@ -155,6 +166,7 @@ import request from '@/common/request' |
|
|
|
this.list.splice(index,1) |
|
|
|
this.total-- |
|
|
|
}else{ |
|
|
|
this.clean() |
|
|
|
this.search() |
|
|
|
} |
|
|
|
}else{ |
|
|
|