Browse Source

修改暂无数据图片

master
邓宏 2 years ago
parent
commit
6b9f2e9de8
  1. 4
      common/request.js
  2. 17
      pages/home/index.vue
  3. 3
      pages/massif/index.vue
  4. 2
      pages/massif/mana/plantPlan.vue
  5. 2
      pages/massif/mana/recovery.vue
  6. 2
      pages/purchase/agrProdList.vue
  7. 2
      pages/purchase/apply.vue
  8. 2
      pages/purchase/detail.vue
  9. 4
      pages/purchase/record.vue
  10. BIN
      static/noData.png
  11. 4
      store/index.js

4
common/request.js

@ -2,8 +2,8 @@ import store from "@/store"
export function host(host='default',suffix='/plant_manage'){
var url=process.env.NODE_ENV === 'development'?{
default:`http://zrxsae.natappfree.cc` //陈
// default:`http://k3megd.natappfree.cc` //马
// default:`http://zrxsae.natappfree.cc` //陈
default:`http://uq5pak.natappfree.cc` //马
}:{
default:`http://qv6mj8.natappfree.cc`
}

17
pages/home/index.vue

@ -328,7 +328,7 @@
</view>
</view>
<u-picker v-if="isAdmin" :show="show" :columns="plantBase" keyName="baseName" closeOnClickOverlay @close="show=false" @confirm="selectBase" @cancel="show=false"/>
<u-picker v-if="isAdmin" :show="show" :columns="plantBase" keyName="baseName" closeOnClickOverlay @close="show=false" @confirm="$store.commit('setBaseId', $event.value[0].id);show=false" @cancel="show=false"/>
</view>
</template>
@ -348,15 +348,17 @@ import request from '@/common/request.js'
return this.$store.getters.userInfo.roleCode=='companyAdmin'
},
},
watch:{
"$store.state.plantBaseInfoId"(n){
this.getMassif(n)
}
},
onLoad() {
if(this.isAdmin){
this.getPlantBase()
}else{
this.getMassif(this.$store.getters['userInfo'].plantBaseInfoId)
this.$store.commit("setBaseId", this.$store.getters['userInfo'].plantBaseInfoId)
}
},
onShow(){
},
methods: {
//
@ -381,7 +383,7 @@ import request from '@/common/request.js'
})
if(res.statu){
this.plantBase=[res.data]
this.getMassif(res.data[0].id)
this.$store.commit("setBaseId", res.data[0].id)
}else{
uni.showModal({
title:"提示",
@ -390,9 +392,6 @@ import request from '@/common/request.js'
})
}
},
selectBase(e){
this.getMassif(e.value[0].id)
}
}
}
</script>

3
pages/massif/index.vue

@ -103,7 +103,7 @@
</view>
</view>
</view>
<u-empty v-if="list.length==0" icon="http://cdn.uviewui.com/uview/empty/data.png"/>
<u-empty v-if="list.length==0" width="70%" icon="/static/noData.png"/>
</scroll-view>
</view>
</template>
@ -115,6 +115,7 @@ import request,{host} from '@/common/request'
host:host('imgUrl'),
searchVal:{
companyId:this.$store.getters.userInfo.companyId,
plantBaseInfoId:this.$store.state.plantBaseInfoId,
search:"",
pageNo:1,
pageSize:5,

2
pages/massif/mana/plantPlan.vue

@ -132,7 +132,7 @@
<text v-if="v.status==2" class="over">已结束</text>
</view>
</view>
<u-empty v-if="list.length==0" icon="http://cdn.uviewui.com/uview/empty/data.png"/>
<u-empty v-if="list.length==0" width="70%" icon="/static/noData.png"/>
</scroll-view>
<button class="cu-btn round bg-green shadow submit" @click="addPlant">+新增种植计划</button>

2
pages/massif/mana/recovery.vue

@ -108,7 +108,7 @@
</view>
</view>
</view>
<u-empty v-if="list.length==0" icon="http://cdn.uviewui.com/uview/empty/data.png"/>
<u-empty v-if="list.length==0" width="70%" icon="/static/noData.png"/>
</scroll-view>
<u-datetime-picker

2
pages/purchase/agrProdList.vue

@ -67,7 +67,7 @@
<text>{{v.detailedParentName}}</text> <text class="over">{{v.supplier}}</text>
</view>
</view>
<u-empty v-if="list.length==0" icon="http://cdn.uviewui.com/uview/empty/data.png"/>
<u-empty v-if="list.length==0" width="70%" icon="/static/noData.png"/>
</scroll-view>
</view>
</template>

2
pages/purchase/apply.vue

@ -117,7 +117,7 @@
<text style="--c:#FBA83C;flex-grow:1;text-align:center;">{{v.detailedParentName}}</text>
</view>
</view>
<u-empty v-if="formData.plantPurchaseSubList.length==0" text=' ' icon="http://cdn.uviewui.com/uview/empty/data.png"/>
<u-empty v-if="formData.plantPurchaseSubList.length==0" width="70%" text=' ' icon="/static/noData.png"/>
<view class="plant-xinzeng" @click="toAddGoods">添加物品</view>
</view>

2
pages/purchase/detail.vue

@ -73,7 +73,7 @@
<text>{{v.detailedParentName}}</text> <text class="over">{{v.supplier}}</text> <text :data-total="v.heft">{{v.packing}}</text>
</view>
</view>
<u-empty v-if="list.length==0" icon="http://cdn.uviewui.com/uview/empty/data.png"/>
<u-empty v-if="list.length==0" width="70%" icon="/static/noData.png"/>
</view>
</view>
</template>

4
pages/purchase/record.vue

@ -94,8 +94,8 @@
</view>
<view class="foot">
<view class="examine">
<text v-if="false">审核人章晓华</text>
<text v-if="false" class="over">原因此处是原因此处是原因此处是处是原因此处是原因此处是</text>
<text v-if="true">审核人xxx</text>
<text v-if="true" class="over">原因此处是原因此处是原因此处是处是原因此处是原因此处是</text>
</view>
<text class="type" :style="{'--bg':({2:'#FFCB69',3:'#10C176',4:'#EE263A',5:'#2196f3'})[v.applicantStatus]}">{{({2:"审核中",3:"通过",4:"未通过",5:"农资入库"})[v.applicantStatus]}}</text>
</view>

BIN
static/noData.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

4
store/index.js

@ -6,6 +6,7 @@ export default new Vuex.Store({
state:{
userInfo:{},
token:"",
plantBaseInfoId:"",
},
getters:{
userInfo: state=>state.userInfo,
@ -29,6 +30,9 @@ export default new Vuex.Store({
setHeadImg(state,val){
state.userInfo.avatar=val
},
setBaseId(state, val){//基地id
state.plantBaseInfoId = val
},
},
actions:{

Loading…
Cancel
Save