system-clients 3.2.65-wuhai → 3.2.66-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.
- package/package.json +105 -105
- package/src/components/server/Login.vue +5 -0
- package/src/filiale/wuhai/LeftTree.vue +152 -152
- package/src/filiale/wuhai/Main.vue +822 -823
- package/src/plugins/GetLoginInfoService.js +7 -3
package/package.json
CHANGED
@@ -1,105 +1,105 @@
|
|
1
|
-
{
|
2
|
-
"name": "system-clients",
|
3
|
-
"version": "3.2.
|
4
|
-
"description": "系统基础框架",
|
5
|
-
"main": "src/index.js",
|
6
|
-
"directories": {
|
7
|
-
"doc": "doc",
|
8
|
-
"example": "examples",
|
9
|
-
"test": "test"
|
10
|
-
},
|
11
|
-
"scripts": {
|
12
|
-
"example": "node build/example-server.js",
|
13
|
-
"dev": "node build/dev-server.js",
|
14
|
-
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
15
|
-
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
16
|
-
"e2e": "node test/e2e/runner.js",
|
17
|
-
"unit": "karma start test/unit/karma.conf.js",
|
18
|
-
"makeall": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_OPTIONS=--max_old_space_size=4096 NODE_ENV=production webpack --progress --hide-modules --config build/webpack.example.conf.js",
|
19
|
-
"release": "npm set registry http://registry.npmjs.org && npm publish && npm set registry http://registry.npm.taobao.org"
|
20
|
-
},
|
21
|
-
"dependencies": {
|
22
|
-
"base64-js": "^1.3.0",
|
23
|
-
"js-base64": "^2.4.9",
|
24
|
-
"less": "^2.7.1",
|
25
|
-
"less-loader": "^2.2.3",
|
26
|
-
"nyc": "^15.1.0",
|
27
|
-
"src": "^1.1.2",
|
28
|
-
"vue": "^1.0.17"
|
29
|
-
},
|
30
|
-
"devDependencies": {
|
31
|
-
"babel-core": "^6.0.0",
|
32
|
-
"babel-loader": "^6.0.0",
|
33
|
-
"babel-plugin-transform-runtime": "^6.0.0",
|
34
|
-
"babel-preset-es2015": "^6.0.0",
|
35
|
-
"babel-preset-stage-2": "^6.0.0",
|
36
|
-
"chai": "^3.5.0",
|
37
|
-
"connect-history-api-fallback": "^1.1.0",
|
38
|
-
"cross-env": "^1.0.7",
|
39
|
-
"cross-spawn": "^2.1.5",
|
40
|
-
"css-loader": "^0.23.0",
|
41
|
-
"eslint": "^2.0.0",
|
42
|
-
"eslint-config-standard": "^5.1.0",
|
43
|
-
"eslint-friendly-formatter": "^1.2.2",
|
44
|
-
"eslint-loader": "^1.3.0",
|
45
|
-
"eslint-plugin-html": "^1.3.0",
|
46
|
-
"eslint-plugin-promise": "^1.0.8",
|
47
|
-
"eslint-plugin-standard": "^1.3.2",
|
48
|
-
"eslint-plugin-vue": "^0.1.1",
|
49
|
-
"eventsource-polyfill": "^0.9.6",
|
50
|
-
"express": "^4.13.3",
|
51
|
-
"extract-text-webpack-plugin": "^1.0.1",
|
52
|
-
"file-loader": "^0.8.4",
|
53
|
-
"function-bind": "^1.0.2",
|
54
|
-
"html-webpack-plugin": "^2.8.1",
|
55
|
-
"http-proxy-middleware": "^0.11.0",
|
56
|
-
"inject-loader": "^2.0.1",
|
57
|
-
"isparta-loader": "^2.0.0",
|
58
|
-
"jasmine-core": "^2.4.1",
|
59
|
-
"jquery": "^3.3.1",
|
60
|
-
"jsencrypt": "^3.0.0-rc.1",
|
61
|
-
"json-loader": "^0.5.4",
|
62
|
-
"karma": "^1.4.1",
|
63
|
-
"karma-chrome-launcher": "^2.2.0",
|
64
|
-
"karma-coverage": "^1.1.1",
|
65
|
-
"karma-mocha": "^1.3.0",
|
66
|
-
"karma-sinon-chai": "^1.3.1",
|
67
|
-
"karma-sourcemap-loader": "^0.3.7",
|
68
|
-
"karma-spec-reporter": "0.0.31",
|
69
|
-
"karma-webpack": "^2.0.2",
|
70
|
-
"manage-client": "^1.4.20",
|
71
|
-
"mkdirp": "^0.5.1",
|
72
|
-
"mocha": "^3.2.0",
|
73
|
-
"ncp": "^2.0.0",
|
74
|
-
"nightwatch": "^0.8.18",
|
75
|
-
"rimraf": "^2.5.0",
|
76
|
-
"selenium-server": "2.52.0",
|
77
|
-
"sinon": "^2.1.0",
|
78
|
-
"sinon-chai": "^2.8.0",
|
79
|
-
"style": "0.0.3",
|
80
|
-
"style-loader": "^0.20.3",
|
81
|
-
"url-loader": "^0.5.7",
|
82
|
-
"vue-client": "1.24.79",
|
83
|
-
"vue-hot-reload-api": "^1.2.0",
|
84
|
-
"vue-html-loader": "^1.0.0",
|
85
|
-
"vue-loader": "^8.2.1",
|
86
|
-
"vue-resource": "^1.5.0",
|
87
|
-
"vue-router": "^0.7.13",
|
88
|
-
"vue-strap": "^1.0.9",
|
89
|
-
"vue-style-loader": "^1.0.0",
|
90
|
-
"vue-validator": "2.1.7",
|
91
|
-
"webpack": "^1.12.2",
|
92
|
-
"webpack-dev-middleware": "^1.4.0",
|
93
|
-
"webpack-hot-middleware": "^2.6.0",
|
94
|
-
"webpack-merge": "^0.8.3"
|
95
|
-
},
|
96
|
-
"repository": {
|
97
|
-
"type": "git",
|
98
|
-
"url": "https://gitee.com/aotu/System"
|
99
|
-
},
|
100
|
-
"keywords": [
|
101
|
-
"system_clients"
|
102
|
-
],
|
103
|
-
"author": "杨文宇",
|
104
|
-
"license": "ISC"
|
105
|
-
}
|
1
|
+
{
|
2
|
+
"name": "system-clients",
|
3
|
+
"version": "3.2.66-wuhai",
|
4
|
+
"description": "系统基础框架",
|
5
|
+
"main": "src/index.js",
|
6
|
+
"directories": {
|
7
|
+
"doc": "doc",
|
8
|
+
"example": "examples",
|
9
|
+
"test": "test"
|
10
|
+
},
|
11
|
+
"scripts": {
|
12
|
+
"example": "node build/example-server.js",
|
13
|
+
"dev": "node build/dev-server.js",
|
14
|
+
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
15
|
+
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
16
|
+
"e2e": "node test/e2e/runner.js",
|
17
|
+
"unit": "karma start test/unit/karma.conf.js",
|
18
|
+
"makeall": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_OPTIONS=--max_old_space_size=4096 NODE_ENV=production webpack --progress --hide-modules --config build/webpack.example.conf.js",
|
19
|
+
"release": "npm set registry http://registry.npmjs.org && npm publish && npm set registry http://registry.npm.taobao.org"
|
20
|
+
},
|
21
|
+
"dependencies": {
|
22
|
+
"base64-js": "^1.3.0",
|
23
|
+
"js-base64": "^2.4.9",
|
24
|
+
"less": "^2.7.1",
|
25
|
+
"less-loader": "^2.2.3",
|
26
|
+
"nyc": "^15.1.0",
|
27
|
+
"src": "^1.1.2",
|
28
|
+
"vue": "^1.0.17"
|
29
|
+
},
|
30
|
+
"devDependencies": {
|
31
|
+
"babel-core": "^6.0.0",
|
32
|
+
"babel-loader": "^6.0.0",
|
33
|
+
"babel-plugin-transform-runtime": "^6.0.0",
|
34
|
+
"babel-preset-es2015": "^6.0.0",
|
35
|
+
"babel-preset-stage-2": "^6.0.0",
|
36
|
+
"chai": "^3.5.0",
|
37
|
+
"connect-history-api-fallback": "^1.1.0",
|
38
|
+
"cross-env": "^1.0.7",
|
39
|
+
"cross-spawn": "^2.1.5",
|
40
|
+
"css-loader": "^0.23.0",
|
41
|
+
"eslint": "^2.0.0",
|
42
|
+
"eslint-config-standard": "^5.1.0",
|
43
|
+
"eslint-friendly-formatter": "^1.2.2",
|
44
|
+
"eslint-loader": "^1.3.0",
|
45
|
+
"eslint-plugin-html": "^1.3.0",
|
46
|
+
"eslint-plugin-promise": "^1.0.8",
|
47
|
+
"eslint-plugin-standard": "^1.3.2",
|
48
|
+
"eslint-plugin-vue": "^0.1.1",
|
49
|
+
"eventsource-polyfill": "^0.9.6",
|
50
|
+
"express": "^4.13.3",
|
51
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
52
|
+
"file-loader": "^0.8.4",
|
53
|
+
"function-bind": "^1.0.2",
|
54
|
+
"html-webpack-plugin": "^2.8.1",
|
55
|
+
"http-proxy-middleware": "^0.11.0",
|
56
|
+
"inject-loader": "^2.0.1",
|
57
|
+
"isparta-loader": "^2.0.0",
|
58
|
+
"jasmine-core": "^2.4.1",
|
59
|
+
"jquery": "^3.3.1",
|
60
|
+
"jsencrypt": "^3.0.0-rc.1",
|
61
|
+
"json-loader": "^0.5.4",
|
62
|
+
"karma": "^1.4.1",
|
63
|
+
"karma-chrome-launcher": "^2.2.0",
|
64
|
+
"karma-coverage": "^1.1.1",
|
65
|
+
"karma-mocha": "^1.3.0",
|
66
|
+
"karma-sinon-chai": "^1.3.1",
|
67
|
+
"karma-sourcemap-loader": "^0.3.7",
|
68
|
+
"karma-spec-reporter": "0.0.31",
|
69
|
+
"karma-webpack": "^2.0.2",
|
70
|
+
"manage-client": "^1.4.20",
|
71
|
+
"mkdirp": "^0.5.1",
|
72
|
+
"mocha": "^3.2.0",
|
73
|
+
"ncp": "^2.0.0",
|
74
|
+
"nightwatch": "^0.8.18",
|
75
|
+
"rimraf": "^2.5.0",
|
76
|
+
"selenium-server": "2.52.0",
|
77
|
+
"sinon": "^2.1.0",
|
78
|
+
"sinon-chai": "^2.8.0",
|
79
|
+
"style": "0.0.3",
|
80
|
+
"style-loader": "^0.20.3",
|
81
|
+
"url-loader": "^0.5.7",
|
82
|
+
"vue-client": "1.24.79",
|
83
|
+
"vue-hot-reload-api": "^1.2.0",
|
84
|
+
"vue-html-loader": "^1.0.0",
|
85
|
+
"vue-loader": "^8.2.1",
|
86
|
+
"vue-resource": "^1.5.0",
|
87
|
+
"vue-router": "^0.7.13",
|
88
|
+
"vue-strap": "^1.0.9",
|
89
|
+
"vue-style-loader": "^1.0.0",
|
90
|
+
"vue-validator": "2.1.7",
|
91
|
+
"webpack": "^1.12.2",
|
92
|
+
"webpack-dev-middleware": "^1.4.0",
|
93
|
+
"webpack-hot-middleware": "^2.6.0",
|
94
|
+
"webpack-merge": "^0.8.3"
|
95
|
+
},
|
96
|
+
"repository": {
|
97
|
+
"type": "git",
|
98
|
+
"url": "https://gitee.com/aotu/System"
|
99
|
+
},
|
100
|
+
"keywords": [
|
101
|
+
"system_clients"
|
102
|
+
],
|
103
|
+
"author": "杨文宇",
|
104
|
+
"license": "ISC"
|
105
|
+
}
|
@@ -241,6 +241,11 @@ let saveGen = function *(self) {
|
|
241
241
|
msg = ret.data
|
242
242
|
} else if (ret.status === 555) {
|
243
243
|
msg = ret.data
|
244
|
+
}else if(ret.status === 789){
|
245
|
+
yield self.$showMessage(msg=ret.data, ['confirm']).then(() => {
|
246
|
+
self.modifyPwShow = true
|
247
|
+
})
|
248
|
+
return
|
244
249
|
}
|
245
250
|
self.createCode()
|
246
251
|
self.picLyanzhengma = ''
|
@@ -1,152 +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-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>
|
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>
|