mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
feat:优化应用
This commit is contained in:
parent
b3c79be4e7
commit
10960eec59
@ -252,15 +252,29 @@ export default {
|
|||||||
appPushShow: false,
|
appPushShow: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
|
||||||
},
|
|
||||||
|
|
||||||
mounted() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
activated() {
|
activated() {
|
||||||
|
this.initList()
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState([
|
||||||
|
'userIsAdmin',
|
||||||
|
|
||||||
|
'reportUnreadNumber',
|
||||||
|
'approveUnreadNumber',
|
||||||
|
|
||||||
|
'cacheDialogs',
|
||||||
|
|
||||||
|
'windowOrientation',
|
||||||
|
]),
|
||||||
|
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
windowOrientation(){
|
||||||
|
this.initList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initList(){
|
||||||
this.applyList = [
|
this.applyList = [
|
||||||
{ value: "approve", label: "审批中心", src: $A.apiUrl('../images/apply/approve.svg') },
|
{ value: "approve", label: "审批中心", src: $A.apiUrl('../images/apply/approve.svg') },
|
||||||
{ value: "report", label: "工作报告", src: $A.apiUrl('../images/apply/report.svg') },
|
{ value: "report", label: "工作报告", src: $A.apiUrl('../images/apply/report.svg') },
|
||||||
@ -283,27 +297,7 @@ export default {
|
|||||||
this.applyList.push({ value: "setting", label: "设置", src: $A.apiUrl('../images/apply/setting.svg') })
|
this.applyList.push({ value: "setting", label: "设置", src: $A.apiUrl('../images/apply/setting.svg') })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 点击应用
|
||||||
computed: {
|
|
||||||
...mapState([
|
|
||||||
'userInfo',
|
|
||||||
'userIsAdmin',
|
|
||||||
|
|
||||||
'reportUnreadNumber',
|
|
||||||
'approveUnreadNumber',
|
|
||||||
|
|
||||||
'cacheDialogs',
|
|
||||||
|
|
||||||
'windowOrientation',
|
|
||||||
]),
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
watch: {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
applyClick(item) {
|
applyClick(item) {
|
||||||
this.$emit("on-click", item.value)
|
this.$emit("on-click", item.value)
|
||||||
switch (item.value) {
|
switch (item.value) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user