system-clients 3.2.64 → 3.2.65-wuhai

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,141 +1,152 @@
1
- <template>
2
- <div class='over'>
3
- <tree :model='functions' :flagres="false" :is-click="false" v-ref:tree @toggle="toggled" >
4
- <span partial class="row" :class="{ 'tree-img': isFolder(row), 'tree-span': !isFolder(row) }">
5
- <div class="col-sm-2" >
6
- <img v-if="isFolder(row)" :src="row.data.icon" alt="">
7
- </div>
8
- <div class="col-sm-8" style="padding-left:6%;text-align: left" title="{{row.data.name}}">{{row.data.name}}
9
- <span class="unreadResumeWarning11" v-show="row.data.name === '微信管理' && $parent.$parent.wechatnub"></span>
10
- <span class="unreadResumeWarning" v-show="row.data.name === '投诉咨询' && $parent.$parent.wechatnub">{{$parent.$parent.wechatnub}}</span>
11
- </div>
12
- </span>
13
- </tree>
14
- </div>
15
- </template>
16
- <script>
17
- import Vue from 'vue'
18
-
19
- export default {
20
- props: ['functions', 'userid','tabs'],
21
- title: '左侧树菜单',
22
- data () {
23
- return {
24
- index: -1,
25
- wechatnub: 0,
26
- name: null,
27
- tbcg:[]
28
- }
29
- },
30
- methods: {
31
- setNum(val){
32
- console.log("=====",val)
33
- this.wechatnub = val
34
- },
35
- open (row) {
36
- if (row.data.name === '资源管理') {
37
- this.$parent.changeMain(row.data.id)
38
- return
39
- }
40
- console.log(row.data.navigate)
41
- if (row.data.navigate) {
42
-
43
- let isExist = false
44
- this.tbcg.forEach((tab) => {
45
- if(tab.comp.name == row.data.link) {
46
- isExist = true
47
- }
48
- })
49
- if (!isExist){
50
- this.$goto('embbed-page', {domainName: row.data.navigate, title: row.data.name, compName: row.data.link, login: Vue.$login, param: Vue.$appdata}, 'main')
51
- }else {
52
- console.log(isExist,'aa')
53
- this.$emit('isnodo',row.data.link)
54
- }
55
- } else if (row.data.link) {
56
- let isExist = false
57
- this.tbcg.forEach((tab) => {
58
- if(tab.comp.name == row.data.link) {
59
- isExist = true
60
- }
61
- })
62
- if (!isExist){
63
- this.$goto(row.data.link, {f: this.functions}, 'main')
64
- }else {
65
- console.log(isExist,'saaa')
66
- this.$emit('isnodo',row.data.link)
67
- }
68
- }
69
- },
70
- changeSelect(name) {
71
- if (!name) {
72
- this.$refs.tree.selectStore.select(null)
73
- return
74
- }
75
- this.name = name
76
- let index = this.selfFindIndex(name)
77
- this.index = index
78
- // 当前激活页签有,index为-1,说明菜单收缩
79
- this.changeSelected(index)
80
- },
81
- selfFindIndex (name) {
82
-
83
- return this.$refs.tree.toNode.findIndex((item) => {
84
- return item.data.link === name
85
- })
86
- },
87
- changeSelected (index) {
88
-
89
- if (index === -1) {
90
- this.$refs.tree.selectStore.select(null)
91
- }else {
92
- this.$refs.tree.selectStore.select(this.$refs.tree.toNode[index])
93
- }
94
-
95
- },
96
- toggled () {
97
-
98
- if (this.name && this.index === -1) {
99
- let index = this.selfFindIndex(this.name)
100
- if (index !== -1) {
101
- this.changeSelected(index)
102
- }
103
- }
104
- }
105
- },
106
- events: {
107
- 'select-changed': function (data) {
108
-
109
- // 事件回调内的 `this` 自动绑定到注册它的实例上
110
- this.open(data.val)
111
- }
112
- },
113
- watch:{
114
- 'tabs'(val){
115
- this.tbcg = val
116
- }
117
- }
118
- }
119
- </script>
120
-
121
- <style>
122
-
123
- .unreadResumeWarning11 {
124
- width: 10px;
125
- height: 10px;
126
- border-radius: 7px;
127
- background-color: #FF3B30;
128
- position: absolute;
129
- left: 70px;
130
- top: 0px;
131
- }
132
- .unreadResumeWarning {
133
- width: 20px;
134
- height: 20px;
135
- border-radius: 7px;
136
- background-color: #FF3B30;
137
- position: absolute;
138
- left: 60px;
139
- top: 0px;
140
- }
141
- </style>
1
+ <template>
2
+ <div class='over'>
3
+ <tree :model='functions' :flagres="false" :is-click="false" v-ref:tree @toggle="toggled" >
4
+ <span partial class="row" :class="{ 'tree-img': isFolder(row), 'tree-span': !isFolder(row) }">
5
+ <div class="col-sm-2" >
6
+ <img v-if="isFolder(row)" :src="row.data.icon" alt="">
7
+ </div>
8
+ <div class="col-sm-10" style="padding-left:6%;text-align: left" title="{{row.data.name}}">{{row.data.name}}
9
+ <span class="unreadResumeWarning11" v-show="row.data.name === '微信管理' && $parent.$parent.todo"></span>
10
+ <span class="unreadResumeWarning" v-show="row.data.name === '投诉咨询' && $parent.$parent.wechatnub">{{$parent.$parent.wechatnub}}</span>
11
+ <span class="unreadResumeWarning" v-show="row.data.name === '预约中心' && $parent.$parent.ordernum">{{$parent.$parent.ordernum}}</span>
12
+ </div>
13
+ </span>
14
+ </tree>
15
+ </div>
16
+ </template>
17
+ <script>
18
+ import Vue from 'vue'
19
+
20
+ export default {
21
+ props: ['functions', 'userid','tabs'],
22
+ title: '左侧树菜单',
23
+ data () {
24
+ return {
25
+ todo: false,
26
+ index: -1,
27
+ wechatnub: 0,
28
+ ordernum: 0,
29
+ name: null,
30
+ tbcg:[]
31
+ }
32
+ },
33
+ methods: {
34
+ setNum(type,val){
35
+ this.todo = true
36
+ console.log("=====",val)
37
+ if (type === '投诉咨询') {
38
+ this.wechatnub = val
39
+ } else if (type === '预约中心') {
40
+ this.ordernum = val
41
+ }
42
+ },
43
+ open (row) {
44
+ if (row.data.name === '资源管理') {
45
+ this.$parent.changeMain(row.data.id)
46
+ return
47
+ }
48
+ console.log(row.data.navigate)
49
+ if (row.data.navigate) {
50
+
51
+ let isExist = false
52
+ this.tbcg.forEach((tab) => {
53
+ if(tab.comp.name == row.data.link) {
54
+ isExist = true
55
+ }
56
+ })
57
+ if (!isExist){
58
+ this.$goto('embbed-page', {domainName: row.data.navigate, title: row.data.name, compName: row.data.link, login: Vue.$login, param: Vue.$appdata}, 'main')
59
+ }else {
60
+ console.log(isExist,'aa')
61
+ this.$emit('isnodo',row.data.link)
62
+ }
63
+ } else if (row.data.link) {
64
+ let isExist = false
65
+ this.tbcg.forEach((tab) => {
66
+ if(tab.comp.name == row.data.link) {
67
+ isExist = true
68
+ }
69
+ })
70
+ if (!isExist){
71
+ this.$goto(row.data.link, {f: this.functions}, 'main')
72
+ }else {
73
+ console.log(isExist,'saaa')
74
+ this.$emit('isnodo',row.data.link)
75
+ }
76
+ }
77
+ },
78
+ changeSelect(name) {
79
+ if (!name) {
80
+ this.$refs.tree.selectStore.select(null)
81
+ return
82
+ }
83
+ this.name = name
84
+ let index = this.selfFindIndex(name)
85
+ this.index = index
86
+ // 当前激活页签有,index为-1,说明菜单收缩
87
+ this.changeSelected(index)
88
+ },
89
+ selfFindIndex (name) {
90
+
91
+ return this.$refs.tree.toNode.findIndex((item) => {
92
+ return item.data.link === name
93
+ })
94
+ },
95
+ changeSelected (index) {
96
+
97
+ if (index === -1) {
98
+ this.$refs.tree.selectStore.select(null)
99
+ }else {
100
+ this.$refs.tree.selectStore.select(this.$refs.tree.toNode[index])
101
+ }
102
+
103
+ },
104
+ toggled () {
105
+
106
+ if (this.name && this.index === -1) {
107
+ let index = this.selfFindIndex(this.name)
108
+ if (index !== -1) {
109
+ this.changeSelected(index)
110
+ }
111
+ }
112
+ }
113
+ },
114
+ events: {
115
+ 'select-changed': function (data) {
116
+
117
+ // 事件回调内的 `this` 自动绑定到注册它的实例上
118
+ this.open(data.val)
119
+ }
120
+ },
121
+ watch:{
122
+ 'tabs'(val){
123
+ this.tbcg = val
124
+ }
125
+ }
126
+ }
127
+ </script>
128
+
129
+ <style>
130
+
131
+ .unreadResumeWarning11 {
132
+ width: 10px;
133
+ height: 10px;
134
+ border-radius: 7px;
135
+ background-color: #FF3B30;
136
+ position: absolute;
137
+ left: 70px;
138
+ top: 0px;
139
+ margin-left: 10px;
140
+ }
141
+ .unreadResumeWarning {
142
+ text-align: center;
143
+ min-width: 20px;
144
+ height: 20px;
145
+ border-radius: 10px;
146
+ background-color: #FF3B30;
147
+ position: absolute;
148
+ left: 60px;
149
+ top: 0px;
150
+ margin-left: 10px;
151
+ }
152
+ </style>