|
@@ -39,7 +39,7 @@ var favorite = new Vue({
|
|
|
userBindInfo: null,
|
|
|
wxDialogShow: false,
|
|
|
timer: null,
|
|
|
- currentSwitchKey: null
|
|
|
+ currentSwitchKey: null,
|
|
|
}
|
|
|
},
|
|
|
computed: {},
|
|
@@ -151,6 +151,22 @@ var favorite = new Vue({
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ checkShowPosition: function () {
|
|
|
+ if (this.selectInfo.position) {
|
|
|
+ var position = this.selectInfo.position.join('')
|
|
|
+ var show = position.indexOf('总裁') === -1 && position.indexOf('总经理')=== -1
|
|
|
+ return show
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ checkShowLine: function (iitem) {
|
|
|
+ if (iitem.key === 'department') {
|
|
|
+ return this.checkShowPosition()
|
|
|
+ } else {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ },
|
|
|
setCompanyBlur () {
|
|
|
setTimeout(() => {
|
|
|
this.showSearchResult=false
|
|
@@ -239,6 +255,12 @@ var favorite = new Vue({
|
|
|
params[key] = codesArr[key]
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ var showPosition = this.checkShowPosition()
|
|
|
+ if (!showPosition) {
|
|
|
+ delete params.department
|
|
|
+ }
|
|
|
+
|
|
|
// var platform = 'pc'
|
|
|
// 已关注公众号&跳过设置时,将默认开始所有微信提醒
|
|
|
// if(!type && this.userBindInfo.state === 3) {
|