|
@@ -15,7 +15,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<van-popover v-model="showPopover" trigger="click" placement="bottom-end" @select="selectChange"> |
|
|
<van-popover v-model="showPopover" trigger="click" placement="bottom-end" @select="selectChange"> |
|
|
<div style="width: 4rem;"> |
|
|
<div style="width: 4rem;"> |
|
|
<van-cell :title="item.text" @click="selectChange({index:index})" :border="false" :icon="item.icon" v-for="(item,index) in actions" :key="index" /> |
|
|
|
|
|
|
|
|
<van-cell :title="item.text" @click="selectChange(item)" :border="false" :icon="item.icon" v-for="(item,index) in actions" :key="index" /> |
|
|
</div> |
|
|
</div> |
|
|
<template #reference> |
|
|
<template #reference> |
|
|
<div class="exit_btn"> |
|
|
<div class="exit_btn"> |
|
@@ -112,7 +112,7 @@ |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
/*getConfigKey("system.app.yinnongExclusive").then(response => { |
|
|
|
|
|
|
|
|
getConfigKey("system.app.yinnongExclusive").then(response => { |
|
|
if(response.msg == "Y"){ |
|
|
if(response.msg == "Y"){ |
|
|
this.actions=[ |
|
|
this.actions=[ |
|
|
{ text: '个人信息', icon: 'manager-o' , index: 0 }, |
|
|
{ text: '个人信息', icon: 'manager-o' , index: 0 }, |
|
@@ -121,7 +121,7 @@ |
|
|
{ text: '退出登录', icon: 'revoke' , index: 8 }, |
|
|
{ text: '退出登录', icon: 'revoke' , index: 8 }, |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
});*/ |
|
|
|
|
|
|
|
|
}); |
|
|
getInfo().then(response => { |
|
|
getInfo().then(response => { |
|
|
this.bookName = response.user.bookName |
|
|
this.bookName = response.user.bookName |
|
|
this.deptName = response.user.deptName |
|
|
this.deptName = response.user.deptName |
|
@@ -220,15 +220,15 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
selectChange(val){ |
|
|
selectChange(val){ |
|
|
val.index == 0 ? this.$router.push({path:"/sunVillage_info/user"}) : |
|
|
|
|
|
val.index == 1 ? this.$router.push({path:"/sunVillage_info/passWord"}) : |
|
|
|
|
|
val.index == 2 ? this.$router.push({path:"../yinnong/my"}) : |
|
|
|
|
|
val.index == 3 ? this.$router.push({path:"../homesteadSurvey/index"}) : |
|
|
|
|
|
val.index == 4 ? this.$router.push({path:"../contracted/index"}) : |
|
|
|
|
|
val.index == 5 ? this.$router.push({path:"../lawEnforcement/index_new"}) : |
|
|
|
|
|
val.index == 6 ? this.$router.push({path:"../agriculturalTrusteeship/index"}) : |
|
|
|
|
|
val.index == 7 ? this.$router.push({path:"../index"}) : |
|
|
|
|
|
val.index == 8 ? this.logout() : ''; |
|
|
|
|
|
|
|
|
val.icon === 'manager-o' ? this.$router.push({path:"/sunVillage_info/user"}) : |
|
|
|
|
|
val.icon === 'edit' ? this.$router.push({path:"/sunVillage_info/passWord"}) : |
|
|
|
|
|
val.icon === 'todo-list-o' ? this.$router.push({path:"../yinnong/my"}) : |
|
|
|
|
|
val.icon === 'newspaper-o' ? this.$router.push({path:"../homesteadSurvey/index"}) : |
|
|
|
|
|
val.icon === 'orders-o' ? this.$router.push({path:"../contracted/index"}) : |
|
|
|
|
|
val.icon === 'label-o' ? this.$router.push({path:"../lawEnforcement/index_new"}) : |
|
|
|
|
|
val.icon === 'notes-o' ? this.$router.push({path:"../agriculturalTrusteeship/index"}) : |
|
|
|
|
|
val.icon === 'home-o' ? this.$router.push({path:"../index"}) : |
|
|
|
|
|
val.icon === 'revoke' ? this.logout() : ''; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|