|
|
@ -48,28 +48,47 @@ |
|
|
|
<view class="card"> |
|
|
|
<view class="_title">所有应用</view> |
|
|
|
<view class="content"> |
|
|
|
<view @click="$u.route({url:'pages/stock/mana'})"> |
|
|
|
<image src="/static/patrolGarden/inventory.svg"/> |
|
|
|
<text class="name">库存</text> |
|
|
|
<view v-for="(v,k) in list" :key="k" @click="$u.route({url:v.url})"> |
|
|
|
<image :src="`${host}/${v.icon}`"/> |
|
|
|
<text class="name">{{v.name}}</text> |
|
|
|
</view> |
|
|
|
<view @click="$u.route({url:'pages/purchase/apply'})"> |
|
|
|
<!-- <view @click="$u.route({url:'pages/purchase/apply'})"> |
|
|
|
<image src="/static/patrolGarden/procure.svg"/> |
|
|
|
<text class="name">采购</text> |
|
|
|
</view> |
|
|
|
<view @click="$u.route({url:'/pages/patrolGarden/record'})"> |
|
|
|
<image src="/static/patrolGarden/tour.svg"/> |
|
|
|
<text class="name">巡园</text> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import request,{host} from '@/common/request' |
|
|
|
export default { |
|
|
|
data(){ |
|
|
|
return{ |
|
|
|
|
|
|
|
list:[], |
|
|
|
host:host('imgUrl'), |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(){ |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
async search(){ |
|
|
|
var res=await request("/api/application/queryRoleApplication") |
|
|
|
if(res.statu){ |
|
|
|
this.list=res.data |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
|
title:"提示", |
|
|
|
content:res.msg||"保存失败!", |
|
|
|
showCancel:false, |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |