system-clients 3.0.14-akyh-3 → 3.0.14-akyh-4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.0.14-akyh-3",
3
+ "version": "3.0.14-akyh-4",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -8,8 +8,8 @@
8
8
  <div v-if="userpane" class="auto system-logo-prompt" style="float: right">
9
9
  <span>{{orgpathnames}}</span>
10
10
  </div>
11
- <!--<div class="system-logo-chi-img1" style="float: right" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"></div>-->
12
11
  <a class="system-logo-chi-span-1" style=" cursor: pointer;float: right; padding-top: 2px" @click="openUrl()"> 售后服务</a>
12
+ <!--<div class="system-logo-chi-img1" style="float: right" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"></div>-->
13
13
  <span style="float: right; padding-top: 2px" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()" class="system-logo-chi-span-1">{{$login.f.name}}</span>
14
14
  <span style="border-left: 1px solid;float: right;padding-top: 2px" class="system-logo-chi-span-1"> <img src="../../static/newStyle/login-f.png" height="20" width="20"> </span>
15
15
  <a href="index.html" onclick="return confirm('您确定要退出系统吗?');" style="float: right;padding-top: 2px">
@@ -22,7 +22,7 @@
22
22
  <img :src="srcsetting" alt=""><span>系统设置</span>
23
23
  </span>
24
24
  <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up dropstyle-chi" >
25
- <!-- <li>系统信息及设置</li>-->
25
+ <!-- <li>系统信息及设置</li>-->
26
26
  <li style="color: #ffffff;white-space: nowrap" @click="show=true">修改密码</li>
27
27
  <li style="color: #ffffff;white-space: nowrap" @click="AddChangeMsgShow=true">系统版本</li>
28
28
  </ul>
@@ -35,7 +35,7 @@
35
35
  <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >
36
36
  <div class="span system-left-tree" >
37
37
  <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" :treeOrIcon="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>
38
- <!-- <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>-->
38
+ <!-- <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>-->
39
39
  </div>
40
40
  </div>
41
41
  <div class="system-foot-stretch" >
@@ -50,68 +50,68 @@
50
50
  <dynamic :comps='[]' :showup="true" :showhide="false" name='main' :selecttab="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>
51
51
  </div>
52
52
  </div>
53
- <!-- <div class="system-foot" v-el:bottom>-->
54
- <!-- -->
55
- <!-- <div class="system-foot-box">-->
53
+ <!-- <div class="system-foot" v-el:bottom>-->
54
+ <!-- -->
55
+ <!-- <div class="system-foot-box">-->
56
56
 
57
- <!-- </div>-->
58
- <!-- </div>-->
57
+ <!-- </div>-->
58
+ <!-- </div>-->
59
59
  </div>
60
60
 
61
- <!-- <div class='flex-row aaa' id="box" v-el:box v-if="!isManger">-->
62
- <!-- <div class="auto" style="position: fixed;right: 30px;top: 20px;color: #333">-->
63
- <!-- <span>-->
64
- <!-- <img-->
65
- <!-- src="../assets/people.png" height="15" width="15">-->
66
- <!-- 登录人:</span>-->
67
- <!-- <label>{{$login.f.name}}</label>-->
68
- <!-- <img-->
69
- <!-- src="../assets/arrow.png" height="6" width="10"-->
70
- <!-- @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"-->
71
- <!-- >-->
72
- <!-- </div>-->
73
- <!-- <div v-if="userpane" class="auto userpanel">-->
74
- <!-- <span>{{orgpathnames}}</span>-->
75
- <!-- </div>-->
76
- <!-- <div class="flex tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >-->
77
- <!-- <h3>{{systemname}}</h3>-->
78
- <!-- <div class="span" style="margin-bottom:10px;padding-bottom:5px;padding-top:5px;flex: 1;border-top: 1px solid #e5e5e5;border-bottom: 1px solid #e5e5e5;">-->
79
- <!-- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>-->
80
- <!-- <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>-->
81
- <!-- </div>-->
61
+ <!-- <div class='flex-row aaa' id="box" v-el:box v-if="!isManger">-->
62
+ <!-- <div class="auto" style="position: fixed;right: 30px;top: 20px;color: #333">-->
63
+ <!-- <span>-->
64
+ <!-- <img-->
65
+ <!-- src="../assets/people.png" height="15" width="15">-->
66
+ <!-- 登录人:</span>-->
67
+ <!-- <label>{{$login.f.name}}</label>-->
68
+ <!-- <img-->
69
+ <!-- src="../assets/arrow.png" height="6" width="10"-->
70
+ <!-- @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"-->
71
+ <!-- >-->
72
+ <!-- </div>-->
73
+ <!-- <div v-if="userpane" class="auto userpanel">-->
74
+ <!-- <span>{{orgpathnames}}</span>-->
75
+ <!-- </div>-->
76
+ <!-- <div class="flex tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >-->
77
+ <!-- <h3>{{systemname}}</h3>-->
78
+ <!-- <div class="span" style="margin-bottom:10px;padding-bottom:5px;padding-top:5px;flex: 1;border-top: 1px solid #e5e5e5;border-bottom: 1px solid #e5e5e5;">-->
79
+ <!-- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>-->
80
+ <!-- <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>-->
81
+ <!-- </div>-->
82
82
 
83
- <!-- <div class="tree-flex-footer">-->
84
- <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
85
- <!-- &lt;!&ndash; <a><img src="../../../static/treeset.png" alt="">系统设置</a> &ndash;&gt;-->
86
- <!-- <dropdown class="auto">-->
87
- <!-- <button type="button" data-toggle="dropdown">-->
88
- <!-- <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>-->
89
- <!-- </button>-->
90
- <!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">-->
91
- <!-- <li>系统信息及设置</li>-->
92
- <!-- &lt;!&ndash; <li>{{name}}</li> &ndash;&gt;-->
93
- <!-- <li>{{date}}</li>-->
94
- <!-- <li @click="show=true">修改密码</li>-->
95
- <!-- <li @click="AddChangeMsgShow=true">系统版本:1.0.0</li>-->
96
- <!-- </ul>-->
83
+ <!-- <div class="tree-flex-footer">-->
84
+ <!-- <a @click="changeShow()"><img :src="imgs.open" alt=""><span v-if="treeOrIcon">菜单伸缩</span></a>-->
85
+ <!-- &lt;!&ndash; <a><img src="../../../static/treeset.png" alt="">系统设置</a> &ndash;&gt;-->
86
+ <!-- <dropdown class="auto">-->
87
+ <!-- <button type="button" data-toggle="dropdown">-->
88
+ <!-- <img :src="imgs.set" alt=""><span v-if="treeOrIcon">系统设置</span>-->
89
+ <!-- </button>-->
90
+ <!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up">-->
91
+ <!-- <li>系统信息及设置</li>-->
92
+ <!-- &lt;!&ndash; <li>{{name}}</li> &ndash;&gt;-->
93
+ <!-- <li>{{date}}</li>-->
94
+ <!-- <li @click="show=true">修改密码</li>-->
95
+ <!-- <li @click="AddChangeMsgShow=true">系统版本:1.0.0</li>-->
96
+ <!-- </ul>-->
97
97
 
98
- <!-- </dropdown>-->
99
- <!-- <a href="index.html" onclick="return confirm('您确定要退出系统吗?');">-->
100
- <!-- <img :src="imgs.out" alt="" ><span v-if="treeOrIcon">退出系统</span>-->
101
- <!-- </a>-->
102
- <!-- </div>-->
103
- <!-- </div>-->
98
+ <!-- </dropdown>-->
99
+ <!-- <a href="index.html" onclick="return confirm('您确定要退出系统吗?');">-->
100
+ <!-- <img :src="imgs.out" alt="" ><span v-if="treeOrIcon">退出系统</span>-->
101
+ <!-- </a>-->
102
+ <!-- </div>-->
103
+ <!-- </div>-->
104
104
 
105
- <!-- &lt;!&ndash; <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> &ndash;&gt;-->
105
+ <!-- &lt;!&ndash; <div class="line" id="line" v-show="treeOrIcon" v-el:line></div> &ndash;&gt;-->
106
106
 
107
- <!-- <div class="flex right-bg" id="bottom" v-el:bottom>-->
108
- <!-- &lt;!&ndash; <operator-badge></operator-badge> &ndash;&gt;-->
109
- <!-- <div class="span">-->
110
- <!-- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>-->
111
- <!-- <dynamic :comps='[]' name='main' :selecttab="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>-->
112
- <!-- </div>-->
113
- <!-- </div>-->
114
- <!-- </div>-->
107
+ <!-- <div class="flex right-bg" id="bottom" v-el:bottom>-->
108
+ <!-- &lt;!&ndash; <operator-badge></operator-badge> &ndash;&gt;-->
109
+ <!-- <div class="span">-->
110
+ <!-- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>-->
111
+ <!-- <dynamic :comps='[]' name='main' :selecttab="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>-->
112
+ <!-- </div>-->
113
+ <!-- </div>-->
114
+ <!-- </div>-->
115
115
  <div v-show="isManger">
116
116
  <route v-ref:route></route>
117
117
  </div>
@@ -120,457 +120,457 @@
120
120
  <add-changemsg :show="AddChangeMsgShow" v-on:toggle = "AddChangeMsgShow = false"></add-changemsg>
121
121
  <!-- 修改密码组件 -->
122
122
  <modify-pw :show.sync="show" v-if="show"></modify-pw>
123
- <!-- 修改密码模态框 -->
123
+ <!-- 修改密码模态框 -->
124
124
  </div>
125
125
  </template>
126
126
 
127
127
  <script>
128
- import vue from 'vue'
129
- import co from 'co'
130
- import {HttpResetClass} from 'vue-client'
131
-
132
- window.onunload = () => {
133
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
134
- }
135
- window.onbeforeunload = () => {
136
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
137
- }
138
- export default {
139
- title: '主界面',
140
- props: ['functions', 'userid'],
141
- data () {
142
- return {
143
- // 左侧树下部三个小图标
144
- imgs: {
145
- open: '/images/lefticon/菜单伸缩.png',
146
- set: '/images/lefticon/系统设置.png',
147
- out: '/images/lefticon/退出系统.png',
148
- img1: '/images/newStyle/login-user.png',
149
- logoimg: '/static/newStyle/fife.png'
150
- // img2: '/images/lefticon/退出系统.png',
151
- },
152
- treeOrIcon: false,
153
- userpane: false,
154
- isManger: false,
155
- show: false,
156
- orgpathnames: this.$login.f.orgpathnames,
157
- systemname: '客服系统',
158
- date: this.$login.toStandardDateString(),
159
- tabs:[], //已初始化页签数组
160
- selecttab:'',
161
- setting:true,
162
- srcsetting:'../../static/newStyle/setting.png'
128
+ import vue from 'vue'
129
+ import co from 'co'
130
+ import {HttpResetClass} from 'vue-client'
163
131
 
164
- // headerHint: true, // 右侧顶部提示信息
165
- // value: 25645.26,
166
- // AddChangeMsgShow: false,
167
- // showsum: false
168
- }
169
- },
170
- ready () {
171
- let component = this.$login.getUrlCompileParames('component')
172
- if (component) {
173
- this.isManger = true
174
- this.$refs.route.init(component, {data: this.functions.functions})
175
- }
176
- if(this.$login.f.password == '1'){
177
- this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
178
- if(res == 'confirm')
179
- this.show = true
180
- })
181
- }
182
- console.log("系统名称",this.$appdata.getSingleValue("系统名称"))
183
- this.systemname = this.$appdata.getSingleValue("系统名称")? this.$appdata.getSingleValue("系统名称"):'客服系统'
184
- this.imgs.logoimg = '/static/newStyle/' + this.systemname + '.png'
185
- // let oBox = this.getElement("box")
186
- // let oTop = this.getElement("top")
187
- // let oBottom = this.getElement("bottom")
188
- // let oLine = this.getElement("line")
189
- // let that = this
190
- // oLine.onmousedown = function(e) {
191
- // let disX = (e || event).clientX
192
- // oLine.left = oLine.offsetLeft
193
- // document.onmousemove = function(e) {
194
- // let iT = oLine.left + ((e || event).clientX - disX)
195
- // var e = e || window.event
196
- // let tarnameb = e.target || e.srcElement
197
- // let maxT = oBox.clientWight - oLine.offsetWidth
198
- // oLine.style.margin = 0
199
- // iT < 0 && (iT = 0)
200
- // iT > maxT && (iT = maxT)
201
- // oLine.style.left = oTop.style.width = iT + "px"
202
- // oBottom.style.width = oBox.clientWidth - iT + "px"
203
- // that.$set('treeWidth', iT)
204
- // return false
205
- // }
206
- // document.onmouseup = function() {
207
- // document.onmousemove = null
208
- // document.onmouseup = null
209
- // oLine.releaseCapture && oLine.releaseCapture()
210
- // }
211
- // oLine.setCapture && oLine.setCapture()
212
- // return false
213
- // }
214
- this.changeShow()
215
- this.applyinfo()
216
- },
217
- methods: {
218
- openUrl() {
219
- var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
220
- window.open(url, '_blank')
221
- },
222
- hindsetting(){
132
+ window.onunload = () => {
133
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
134
+ }
135
+ window.onbeforeunload = () => {
136
+ vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
137
+ }
138
+ export default {
139
+ title: '主界面',
140
+ props: ['functions', 'userid'],
141
+ data () {
142
+ return {
143
+ // 左侧树下部三个小图标
144
+ imgs: {
145
+ open: '/images/lefticon/菜单伸缩.png',
146
+ set: '/images/lefticon/系统设置.png',
147
+ out: '/images/lefticon/退出系统.png',
148
+ img1: '/images/newStyle/login-user.png',
149
+ logoimg: '/static/newStyle/fife.png'
150
+ // img2: '/images/lefticon/退出系统.png',
151
+ },
152
+ treeOrIcon: false,
153
+ userpane: false,
154
+ isManger: false,
155
+ show: false,
156
+ orgpathnames: this.$login.f.orgpathnames,
157
+ systemname: '客服系统',
158
+ date: this.$login.toStandardDateString(),
159
+ tabs:[], //已初始化页签数组
160
+ selecttab:'',
161
+ setting:true,
162
+ srcsetting:'../../static/newStyle/setting.png'
223
163
 
224
- this.setting=!this.setting
225
- if(this.setting){
226
- this.srcsetting='../../static/newStyle/setting.png'
227
- }else {
228
- this.srcsetting='../../static/newStyle/setting1.png'
164
+ // headerHint: true, // 右侧顶部提示信息
165
+ // value: 25645.26,
166
+ // AddChangeMsgShow: false,
167
+ // showsum: false
229
168
  }
230
-
231
169
  },
232
- hindsetting1(){
233
-
234
- if(!this.setting){
235
- this.srcsetting='../../static/newStyle/setting.png'
236
- this.setting=true
170
+ ready () {
171
+ let component = this.$login.getUrlCompileParames('component')
172
+ if (component) {
173
+ this.isManger = true
174
+ this.$refs.route.init(component, {data: this.functions.functions})
237
175
  }
238
-
239
- },
240
- isnodo(val){
241
- console.log(val,'ss')
242
- this.selecttab = val
243
- },
244
- mouseenteruser(){
245
- this.userpane=true
246
- },
247
- mouseleaveuser(){
248
- this.userpane=false
249
- },
250
- unfurl () {
251
- if(this.showsum){
252
- this.showsum = false
253
- } else {
254
- this.showsum = true
176
+ if(this.$login.f.password == '1'){
177
+ this.$showMessage('本地登录系统为此账户的初始密码,请确认修改密码!!!', ['confirm', 'cancel']).then((res) => {
178
+ if(res == 'confirm')
179
+ this.show = true
180
+ })
255
181
  }
256
- },
257
- // getElement(id) {
258
- // return document.getElementById(id)
259
- // },
260
- changeShow () {
261
- // this.treeOrIcon = !this.treeOrIcon
182
+ console.log("系统名称",this.$appdata.getSingleValue("系统名称"))
183
+ this.systemname = this.$appdata.getSingleValue("系统名称")? this.$appdata.getSingleValue("系统名称"):'客服系统'
184
+ this.imgs.logoimg = '/static/newStyle/' + this.systemname + '.png'
262
185
  // let oBox = this.getElement("box")
263
186
  // let oTop = this.getElement("top")
264
187
  // let oBottom = this.getElement("bottom")
265
188
  // let oLine = this.getElement("line")
266
- // if (this.treeOrIcon) {
267
- // // oLine.style.left = oTop.style.width = 300 + "px"
268
- // oTop.style.width = 150 + "px"
269
- // oBottom.style.width = oBox.clientWidth - 150 + "px"
270
- // }else {
271
- // oLine.style.left = oTop.style.width = 50 + "px"
272
- // oBottom.style.width = oBox.clientWidth - 50 + "px"
273
- // }
274
- // }
275
- this.treeOrIcon = !this.treeOrIcon
276
- // if (this.treeOrIcon) {
277
- // this.$els.top.style.width = 14 + "%"
278
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
279
- // }else {
280
- // this.$els.top.style.width = 8 + "%"
281
- // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
282
- // }
283
- },
284
- changeMain(userid) {
285
- this.$goto('res-main', {userid: this.userid}, 'self')
286
- },
287
- tabChange (name) {
288
- console.log(name,'tabchanage')
289
- this.$refs.tree.changeSelect(name)
189
+ // let that = this
190
+ // oLine.onmousedown = function(e) {
191
+ // let disX = (e || event).clientX
192
+ // oLine.left = oLine.offsetLeft
193
+ // document.onmousemove = function(e) {
194
+ // let iT = oLine.left + ((e || event).clientX - disX)
195
+ // var e = e || window.event
196
+ // let tarnameb = e.target || e.srcElement
197
+ // let maxT = oBox.clientWight - oLine.offsetWidth
198
+ // oLine.style.margin = 0
199
+ // iT < 0 && (iT = 0)
200
+ // iT > maxT && (iT = maxT)
201
+ // oLine.style.left = oTop.style.width = iT + "px"
202
+ // oBottom.style.width = oBox.clientWidth - iT + "px"
203
+ // that.$set('treeWidth', iT)
204
+ // return false
205
+ // }
206
+ // document.onmouseup = function() {
207
+ // document.onmousemove = null
208
+ // document.onmouseup = null
209
+ // oLine.releaseCapture && oLine.releaseCapture()
210
+ // }
211
+ // oLine.setCapture && oLine.setCapture()
212
+ // return false
213
+ // }
214
+ this.changeShow()
215
+ this.applyinfo()
290
216
  },
291
- tabcg(val){
292
- console.log(val)
293
- this.tabs = val
294
- },
295
- applyinfo() {
296
- //如果当前登陆人有报建待办业务
297
- let http = new HttpResetClass()
298
- let data = {
299
- condition: '1 = 1',
300
- data: {
301
- id: this.$login.f.id,
302
- org: this.$login.f.orgs
217
+ methods: {
218
+ openUrl() {
219
+ var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
220
+ window.open(url, '_blank')
221
+ },
222
+ hindsetting(){
223
+
224
+ this.setting=!this.setting
225
+ if(this.setting){
226
+ this.srcsetting='../../static/newStyle/setting.png'
227
+ }else {
228
+ this.srcsetting='../../static/newStyle/setting1.png'
229
+ }
230
+
231
+ },
232
+ hindsetting1(){
233
+
234
+ if(!this.setting){
235
+ this.srcsetting='../../static/newStyle/setting.png'
236
+ this.setting=true
237
+ }
238
+
239
+ },
240
+ isnodo(val){
241
+ console.log(val,'ss')
242
+ this.selecttab = val
243
+ },
244
+ mouseenteruser(){
245
+ this.userpane=true
246
+ },
247
+ mouseleaveuser(){
248
+ this.userpane=false
249
+ },
250
+ unfurl () {
251
+ if(this.showsum){
252
+ this.showsum = false
253
+ } else {
254
+ this.showsum = true
303
255
  }
304
- }
305
- http.load('POST', 'rs/sql/checkuser', {data: data}, {
306
- resolveMsg: null,
307
- rejectMsg: null
308
- }).then((res) => {
309
- // console.log("报建待办数据:" + JSON.stringify(res.data))
310
- // console.log("报建待办数据条数:" + JSON.stringify(res.data.length))
311
- if (res.data.length > 0) {
312
- this.$showMessage("您有需要处理的报建待办业务!")
256
+ },
257
+ // getElement(id) {
258
+ // return document.getElementById(id)
259
+ // },
260
+ changeShow () {
261
+ // this.treeOrIcon = !this.treeOrIcon
262
+ // let oBox = this.getElement("box")
263
+ // let oTop = this.getElement("top")
264
+ // let oBottom = this.getElement("bottom")
265
+ // let oLine = this.getElement("line")
266
+ // if (this.treeOrIcon) {
267
+ // // oLine.style.left = oTop.style.width = 300 + "px"
268
+ // oTop.style.width = 150 + "px"
269
+ // oBottom.style.width = oBox.clientWidth - 150 + "px"
270
+ // }else {
271
+ // oLine.style.left = oTop.style.width = 50 + "px"
272
+ // oBottom.style.width = oBox.clientWidth - 50 + "px"
273
+ // }
274
+ // }
275
+ this.treeOrIcon = !this.treeOrIcon
276
+ // if (this.treeOrIcon) {
277
+ // this.$els.top.style.width = 14 + "%"
278
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 14 + "%"
279
+ // }else {
280
+ // this.$els.top.style.width = 8 + "%"
281
+ // this.$els.bottom.style.width = this.$els.box.clientWidth - 8 + "%"
282
+ // }
283
+ },
284
+ changeMain(userid) {
285
+ this.$goto('res-main', {userid: this.userid}, 'self')
286
+ },
287
+ tabChange (name) {
288
+ console.log(name,'tabchanage')
289
+ this.$refs.tree.changeSelect(name)
290
+ },
291
+ tabcg(val){
292
+ console.log(val)
293
+ this.tabs = val
294
+ },
295
+ applyinfo() {
296
+ //如果当前登陆人有报建待办业务
297
+ let http = new HttpResetClass()
298
+ let data = {
299
+ condition: '1 = 1',
300
+ data: {
301
+ id: this.$login.f.id,
302
+ org: this.$login.f.orgs
303
+ }
313
304
  }
314
- })
305
+ http.load('POST', 'rs/sql/checkuser', {data: data}, {
306
+ resolveMsg: null,
307
+ rejectMsg: null
308
+ }).then((res) => {
309
+ // console.log("报建待办数据:" + JSON.stringify(res.data))
310
+ // console.log("报建待办数据条数:" + JSON.stringify(res.data.length))
311
+ if (res.data.length > 0) {
312
+ this.$showMessage("您有需要处理的报建待办业务!")
313
+ }
314
+ })
315
315
 
316
- }
317
- },
318
- computed: {
319
- nowDate () {
320
- return this.$login.getNowDate()
316
+ }
317
+ },
318
+ computed: {
319
+ nowDate () {
320
+ return this.$login.getNowDate()
321
+ }
321
322
  }
322
323
  }
323
- }
324
324
  </script>
325
325
  <style lang="less">
326
- /* 组件内通用样式 */
327
- .select-error {
328
- button {
329
- border-bottom: 1px solid #a94442!important;
330
- }
331
- }
332
- // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
333
- // -webkit-appearance:textfield;
334
- // }
335
- /* 表单输入框组 */
336
- .form-input-group {
337
- display: flex;
338
-
339
- label {
340
- width: 100px;
341
- text-align: right;
342
- + * {
343
- flex: 1;
326
+ /* 组件内通用样式 */
327
+ .select-error {
328
+ button {
329
+ border-bottom: 1px solid #a94442!important;
344
330
  }
345
331
  }
346
- }
347
- // 日期组件在表单中沾满
348
- .form-horizontal .datepicker {
349
- width: 100%;
350
- }
351
- // 下拉选择框占据剩余全部空间
352
- .select-overspread {
353
- .form-group {
354
- // margin: 0px 5px 10px 0px;
355
- .form-control {
356
- margin-right: 0px;
332
+ // input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
333
+ // -webkit-appearance:textfield;
334
+ // }
335
+ /* 表单输入框组 */
336
+ .form-input-group {
337
+ display: flex;
338
+
339
+ label {
340
+ width: 100px;
341
+ text-align: right;
342
+ + * {
343
+ flex: 1;
344
+ }
357
345
  }
358
346
  }
359
- .btn-group, .btn-group-vertical {
347
+ // 日期组件在表单中沾满
348
+ .form-horizontal .datepicker {
360
349
  width: 100%;
361
- // padding-right: 5px;
362
- button {
350
+ }
351
+ // 下拉选择框占据剩余全部空间
352
+ .select-overspread {
353
+ .form-group {
354
+ // margin: 0px 5px 10px 0px;
355
+ .form-control {
356
+ margin-right: 0px;
357
+ }
358
+ }
359
+ .btn-group, .btn-group-vertical {
363
360
  width: 100%;
364
- display: flex;
365
- justify-content: space-between;
366
- align-items: center;
361
+ // padding-right: 5px;
362
+ button {
363
+ width: 100%;
364
+ display: flex;
365
+ justify-content: space-between;
366
+ align-items: center;
367
+ }
367
368
  }
369
+ .dropdown-menu {
370
+ width: 100%
371
+ }
372
+ }
373
+ // 需要特定宽度的的样式
374
+ .width-60 {
375
+ width: 60px;
376
+ }
377
+ .userpanel {
378
+ font-weight: 300;
379
+ color: #333;
380
+ position: fixed;
381
+ right: 30px;
382
+ top: 45px;
383
+ background-color: white;
384
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
385
+ padding: 4px 10px 4px 10px;
386
+ border-radius:2px;
387
+ }
388
+ .width-80 {
389
+ width: 80px;
390
+ }
391
+ .width-100 {
392
+ width: 100px;
368
393
  }
369
- .dropdown-menu {
370
- width: 100%
371
- }
372
- }
373
- // 需要特定宽度的的样式
374
- .width-60 {
375
- width: 60px;
376
- }
377
- .userpanel {
378
- font-weight: 300;
379
- color: #333;
380
- position: fixed;
381
- right: 30px;
382
- top: 45px;
383
- background-color: white;
384
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
385
- padding: 4px 10px 4px 10px;
386
- border-radius:2px;
387
- }
388
- .width-80 {
389
- width: 80px;
390
- }
391
- .width-100 {
392
- width: 100px;
393
- }
394
394
 
395
395
 
396
396
 
397
- /*右侧区域的背景*/
398
- .right-bg {
399
- width: 100%;
400
- flex: 1;
401
- padding: 10px 25px;
402
- color: #304A66;
403
- }
404
- .tree-flex {
405
- height: 100%;
406
- // width: 150px;
407
- /*width: 60px;*/
408
- background: #4a7cae;
409
- color: #fff;
397
+ /*右侧区域的背景*/
398
+ .right-bg {
399
+ width: 100%;
400
+ flex: 1;
401
+ padding: 10px 25px;
402
+ color: #304A66;
403
+ }
404
+ .tree-flex {
405
+ height: 100%;
406
+ // width: 150px;
407
+ /*width: 60px;*/
408
+ background: #4a7cae;
409
+ color: #fff;
410
410
 
411
- }
412
- .tree-flex-icon {
413
- width: 50px;
414
- /*transition: 0.5s;*/
415
- > .span {
416
- overflow-x: visible;
417
- }
418
- }
419
- .tree-flex h3 {
420
- text-align: center;
421
- margin: 1em 0;
422
- }
411
+ }
412
+ .tree-flex-icon {
413
+ width: 50px;
414
+ /*transition: 0.5s;*/
415
+ > .span {
416
+ overflow-x: visible;
417
+ }
418
+ }
419
+ .tree-flex h3 {
420
+ text-align: center;
421
+ margin: 1em 0;
422
+ }
423
423
 
424
- .tree-flex-footer {
425
- height: 150px;
426
- display: flex;
427
- flex-direction:column;
428
- color: #fff;
429
- }
430
- .tree-flex-footer a,.tree-flex-footer button{
431
- flex: 1;
432
- padding: 8px 5px;
433
- font-size: 1.2em;
434
- // border-top: 1px solid #697D93;
435
- border-top: 1px solid #4a7cae;
436
- text-decoration: none;
437
- color: #fff;
438
- cursor: pointer;
439
- }
440
- .tree-flex-footer button {
441
- height: auto;
442
- width: 100%;
443
- border-radius: 0px;
444
- background-color: rgba(255,255,255,0);
445
- border: none;
446
- border-top: 1px solid #4a7cae;
447
- // border-top: 1px solid #697D93;
448
- text-align: left;
449
- }
450
- .tree-flex-footer button:hover{
451
- outline: none;
452
- background-color: rgba(255,255,255,0.2);
453
- }
454
- .tree-flex-footer button:focus {
455
- outline: none;
456
- background-color: rgba(255,255,255,0.5);
457
- }
458
- .tree-flex-footer a:hover {
459
- color: #FFF;
460
- background-color: rgba(255,255,255,0.2);
461
- }
462
- .tree-flex .btn-group {
463
- height: 50px!important;
464
- }
424
+ .tree-flex-footer {
425
+ height: 150px;
426
+ display: flex;
427
+ flex-direction:column;
428
+ color: #fff;
429
+ }
430
+ .tree-flex-footer a,.tree-flex-footer button{
431
+ flex: 1;
432
+ padding: 8px 5px;
433
+ font-size: 1.2em;
434
+ // border-top: 1px solid #697D93;
435
+ border-top: 1px solid #4a7cae;
436
+ text-decoration: none;
437
+ color: #fff;
438
+ cursor: pointer;
439
+ }
440
+ .tree-flex-footer button {
441
+ height: auto;
442
+ width: 100%;
443
+ border-radius: 0px;
444
+ background-color: rgba(255,255,255,0);
445
+ border: none;
446
+ border-top: 1px solid #4a7cae;
447
+ // border-top: 1px solid #697D93;
448
+ text-align: left;
449
+ }
450
+ .tree-flex-footer button:hover{
451
+ outline: none;
452
+ background-color: rgba(255,255,255,0.2);
453
+ }
454
+ .tree-flex-footer button:focus {
455
+ outline: none;
456
+ background-color: rgba(255,255,255,0.5);
457
+ }
458
+ .tree-flex-footer a:hover {
459
+ color: #FFF;
460
+ background-color: rgba(255,255,255,0.2);
461
+ }
462
+ .tree-flex .btn-group {
463
+ height: 50px!important;
464
+ }
465
465
 
466
- .tree-flex .dropdown-menu {
467
- /* 控制显示列表的样式 */
468
- background: #4C637B;
469
- border-radius: 0px;
470
- color: #fff;
471
- width: auto;
472
- margin: 0px;
473
- padding: 0px;
474
- }
475
- .tree-flex .dropdown-menu-up {
476
- /* bottom,top控制上下,left和right控制左右*/
477
- left: 100%!important;
478
- top: auto!important;
479
- bottom: 0;
480
- }
481
- .tree-flex .dropdown-menu-down {
482
- /* bottom,top控制上下,left和right控制左右*/
483
- left: 100%!important;
484
- top: 0!important;
485
- }
486
- .tree-flex .dropdown-menu li{
487
- text-align: center;
488
- line-height: 50px;
489
- border-bottom: 1px solid #697D93;
490
- font-size: 1.2em;
491
- width: auto;
492
- white-space: nowrap;
493
- cursor: default;
466
+ .tree-flex .dropdown-menu {
467
+ /* 控制显示列表的样式 */
468
+ background: #4C637B;
469
+ border-radius: 0px;
470
+ color: #fff;
471
+ width: auto;
472
+ margin: 0px;
473
+ padding: 0px;
474
+ }
475
+ .tree-flex .dropdown-menu-up {
476
+ /* bottom,top控制上下,left和right控制左右*/
477
+ left: 100%!important;
478
+ top: auto!important;
479
+ bottom: 0;
480
+ }
481
+ .tree-flex .dropdown-menu-down {
482
+ /* bottom,top控制上下,left和right控制左右*/
483
+ left: 100%!important;
484
+ top: 0!important;
485
+ }
486
+ .tree-flex .dropdown-menu li{
487
+ text-align: center;
488
+ line-height: 50px;
489
+ border-bottom: 1px solid #697D93;
490
+ font-size: 1.2em;
491
+ width: auto;
492
+ white-space: nowrap;
493
+ cursor: default;
494
494
 
495
- }
496
- .tree-flex .dropdown-menu li + li {
497
- text-align: left;
498
- border: 0;
499
- line-height: 40px;
500
- padding-left: 15px;
501
- padding-right: 15px;
502
- font-size: 1em;
503
- cursor: pointer;
504
- }
505
- .tree-flex .dropdown-menu li + li:hover {
506
- background-color: rgba(255,255,255,0.2);
507
- }
508
- .tree-flex .dropdown-menu li a {
509
- border: none;
510
- color: #fff;
511
- height: 40px;
512
- line-height: 40px;
513
- font-size: 1em;
514
- padding: 0px;
515
- }
516
- .tree-flex .dropdown-menu li a:hover {
517
- color: #fff;
518
- background-color: rgba(255,255,255,0);
519
- }
520
- .tree-flex img{
521
- height: 1.2em;
522
- width: 1.2em;
523
- margin-right: 15px;
524
- margin-left: 5px;
525
- }
526
- .line {
527
- height: 100%;
528
- width: 5px;
529
- background: #4C637B;
530
- cursor: e-resize;
531
- }
532
- /*为树(tree)组件写的样式*/
533
- .tree-img {
534
- font-size: 1.2em;
535
- }
495
+ }
496
+ .tree-flex .dropdown-menu li + li {
497
+ text-align: left;
498
+ border: 0;
499
+ line-height: 40px;
500
+ padding-left: 15px;
501
+ padding-right: 15px;
502
+ font-size: 1em;
503
+ cursor: pointer;
504
+ }
505
+ .tree-flex .dropdown-menu li + li:hover {
506
+ background-color: rgba(255,255,255,0.2);
507
+ }
508
+ .tree-flex .dropdown-menu li a {
509
+ border: none;
510
+ color: #fff;
511
+ height: 40px;
512
+ line-height: 40px;
513
+ font-size: 1em;
514
+ padding: 0px;
515
+ }
516
+ .tree-flex .dropdown-menu li a:hover {
517
+ color: #fff;
518
+ background-color: rgba(255,255,255,0);
519
+ }
520
+ .tree-flex img{
521
+ height: 1.2em;
522
+ width: 1.2em;
523
+ margin-right: 15px;
524
+ margin-left: 5px;
525
+ }
526
+ .line {
527
+ height: 100%;
528
+ width: 5px;
529
+ background: #4C637B;
530
+ cursor: e-resize;
531
+ }
532
+ /*为树(tree)组件写的样式*/
533
+ .tree-img {
534
+ font-size: 1.2em;
535
+ }
536
536
 
537
- /*将较长信息截断显示,鼠标悬停显示全部信息*/
538
- .cutout50 {
539
- max-width: 50px;
540
- overflow:hidden;
541
- text-overflow: ellipsis;
542
- white-space: nowrap;
543
- }
537
+ /*将较长信息截断显示,鼠标悬停显示全部信息*/
538
+ .cutout50 {
539
+ max-width: 50px;
540
+ overflow:hidden;
541
+ text-overflow: ellipsis;
542
+ white-space: nowrap;
543
+ }
544
544
 
545
- /* 滚动条样式 */
546
- /*---滚动条默认显示样式--*/
547
- ::-webkit-scrollbar-thumb{
548
- // display: none;
549
- background-color:rgba(0,0,0,0.4);
550
- /*background-color:red;*/
551
- height:50px;
552
- outline-offset:-2px;
553
- /*outline:2px solid #fff;*/
554
- -webkit-border-radius:4px;
555
- /*border: 2px solid #fff;*/
556
- }
545
+ /* 滚动条样式 */
546
+ /*---滚动条默认显示样式--*/
547
+ ::-webkit-scrollbar-thumb{
548
+ // display: none;
549
+ background-color:rgba(0,0,0,0.4);
550
+ /*background-color:red;*/
551
+ height:50px;
552
+ outline-offset:-2px;
553
+ /*outline:2px solid #fff;*/
554
+ -webkit-border-radius:4px;
555
+ /*border: 2px solid #fff;*/
556
+ }
557
557
 
558
- /*---鼠标点击滚动条显示样式--*/
559
- ::-webkit-scrollbar-thumb:hover{
560
- // display: inherit;
561
- background-color:rgba(0,0,0,0.4);
562
- height:50px;
563
- -webkit-border-radius:4px;
564
- }
565
- /*---滚动条大小--*/
566
- ::-webkit-scrollbar{
567
- width:8px;
568
- height:8px;
569
- }
570
- /*---滚动框背景样式--*/
571
- ::-webkit-scrollbar-track-piece{
572
- /* 全透明,不显示 */
573
- background-color:rgba(255,255,255,0);
574
- -webkit-border-radius:0;
575
- }
558
+ /*---鼠标点击滚动条显示样式--*/
559
+ ::-webkit-scrollbar-thumb:hover{
560
+ // display: inherit;
561
+ background-color:rgba(0,0,0,0.4);
562
+ height:50px;
563
+ -webkit-border-radius:4px;
564
+ }
565
+ /*---滚动条大小--*/
566
+ ::-webkit-scrollbar{
567
+ width:8px;
568
+ height:8px;
569
+ }
570
+ /*---滚动框背景样式--*/
571
+ ::-webkit-scrollbar-track-piece{
572
+ /* 全透明,不显示 */
573
+ background-color:rgba(255,255,255,0);
574
+ -webkit-border-radius:0;
575
+ }
576
576
  </style>
@@ -79,43 +79,46 @@
79
79
  </div>
80
80
  <!--输入框结束-->
81
81
  <!-- 注册模态框开始 -->
82
- <modal :show.sync="visible" v-ref:modal :backdrop="true">
82
+ <!-- <modal v-ref:modal :show.sync="registerShow" :backdrop="false" class="auto">
83
83
  <header slot="modal-header" class="modal-header">
84
- <!-- <button type="button" class="close" @click="closeReset"><span>&times;</span></button>-->
85
- <h4 class="modal-title">密码强度过低,请及时重新设置</h4>
84
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
85
+ <h4 class="modal-title">注册</h4>
86
86
  </header>
87
87
  <article slot="modal-body" class="modal-body modifystyle">
88
88
  <validator name="v">
89
89
 
90
- <div class="has-feedback">
91
- <label class="control-label">密码在8-16位字符之间,至少同时具有数字和密码</label>
92
- </div>
93
-
94
- <div class="has-feedback">
95
- <label class="control-label">用户名:</label>
96
- <span style="color: black">{{model.ename}}</span>
90
+ <div class="has-feedback"
91
+ :class="{'has-warning':$v.ename.required,'has-success': !$v.ename.required}">
92
+ <label for="user" class="control-label">登录用户:&nbsp;&nbsp;</label>
93
+ <input type="text" v-model="deliver.ename" class="form-control" id="user" v-validate:ename="{ required: true}">
94
+ <span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.ename.required"></span>
95
+ <span v-if="$v.ename.required">不能为空</span>
97
96
  </div>
98
97
 
99
- <div class="has-feedback" :class="{'has-warning':deliver.password, 'has-success': !deliver.password}">
98
+ <div class="has-feedback"
99
+ :class="{'has-warning':$v.password.required, 'has-success': !$v.password.required}">
100
100
  <label for="newpassword" class="control-label">登录密码:&nbsp;&nbsp;</label>
101
- <input type="password" v-model="deliver.password" class="form-control" id="newpassword">
102
- <span v-if="!deliver.password">不能为空</span>
101
+ <input type="password" v-model="deliver.password" class="form-control" id="newpassword" v-validate:password='{ required: true }'>
102
+ <span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.password.required"></span>
103
+ <span v-if="$v.password.required">不能为空</span>
103
104
  </div>
104
105
 
105
106
  <div class="has-feedback"
106
- :class="{'has-warning':deliver.affirmpassword,'has-success': !deliver.affirmpassword}">
107
+ :class="{'has-warning':$v.affirmpassword.required,'has-error':$v.affirmpassword.equalValid && !($v.affirmpassword.required),
108
+ 'has-success': !$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))}">
107
109
  <label for="affirmpassword" class="control-label">确认密码:&nbsp;&nbsp;</label>
108
- <input type="password" v-model="deliver.affirmpassword" class="form-control" id="affirmpassword">
109
- <span v-if="!deliver.affirmpassword">不能为空</span>
110
- <span v-if="deliver.affirmpassword !== deliver.password">两次密码不一致 !!</span>
110
+ <input type="password" v-model="deliver.affirmpassword" class="form-control" id="affirmpassword" v-validate:affirmpassword="{ required: true, equalValid: deliver.password }">
111
+ <span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))"></span>
112
+ <span v-if="$v.affirmpassword.required">不能为空</span>
113
+ <span v-if="$v.affirmpassword.equalValid && !($v.affirmpassword.required)">两次密码不一致 !!</span>
111
114
  </div>
115
+
112
116
  </validator>
113
117
  </article>
114
118
  <footer slot="modal-footer" class="footerbtn">
115
- <button type="button" class="btn btn-success" @click='resetPassword()' :disabled="!$v.valid">提交</button>
116
- <button type="button" class="btn btn-default" @click='closeReset()'>返回</button>
119
+ <button type="button" class="btn btn-success" @click='registed()' :disabled="!$v.valid">提交注册</button>
117
120
  </footer>
118
- </modal>
121
+ <modal> -->
119
122
  <!-- 注册模态框结束 -->
120
123
  <!--<load-data @ready="onReady"></load-data>-->
121
124
  <!-- </div>-->
@@ -186,22 +189,6 @@
186
189
  $('form').fadeIn(500)
187
190
  }
188
191
  }
189
- let savePassword = function * (self) {
190
- self.deliver.ename = self.model.ename
191
- self.deliver.password = self.model.password
192
- let res = yield self.$post('rs/db/modifypwd', {data: self.deliver})
193
- if (res.status === 200 || res.status === 204) {
194
- self.visible = false
195
- self.deliver.password = ''
196
- self.deliver.newpassword = ''
197
- self.deliver.affirmpassword = ''
198
- self.deliver.ename = ''
199
- self.model.ename = ''
200
- self.model.password = ''
201
- self.login = false
202
- $('form').fadeIn(500)
203
- }
204
- }
205
192
  export default {
206
193
  title: '登录',
207
194
  ready () {
@@ -235,8 +222,7 @@
235
222
  show: false,
236
223
  checkCode: '',
237
224
  login_do:true,
238
- picLyanzhengma: '',
239
- visible: false
225
+ picLyanzhengma: ''
240
226
  }
241
227
  },
242
228
  methods: {
@@ -251,11 +237,6 @@
251
237
  this.$emit('ready')
252
238
  },
253
239
  confirm (key) {
254
- if (this.checkPassword(this.model.password) <= 2) {
255
- this.visible = true
256
- $('form').fadeIn(500)
257
- return
258
- }
259
240
  this.login_do=!this.login_do
260
241
  // return
261
242
  if (key == 'key') {
@@ -301,114 +282,7 @@
301
282
  code += random[index];//根据索引取得随机数加到code上
302
283
  }
303
284
  this.checkCode = code;//把code值赋给验证码
304
- },
305
- checkPassword (str) {
306
- // 第一步先判断各分类长度
307
- let num = 0// 数字
308
- let lowerCase = 0// 小写字母
309
- let upperCase = 0// 大写字母
310
- let special = 0// 特殊字符
311
- for (let i = 0; i < str.length; i++) {
312
- const c = str.charCodeAt(i)
313
- if (c >= 48 && c <= 57) {
314
- // 数字
315
- num++
316
- } else if (c >= 65 && c <= 90) {
317
- // 大写字母
318
- upperCase++
319
- } else if (c === 97 && c <= 122) {
320
- // 小写字母
321
- lowerCase++
322
- } else {
323
- special++
324
- }
325
- }
326
- // 第二步 计算分数
327
- let wholeMark = 0
328
- let numMark = 0
329
- let caseMark = 0
330
- let specialMark = 0
331
- let reward = 0
332
- // 整长度分数
333
- if (str.length <= 4) {
334
- wholeMark = 5
335
- } else if (str.length > 4 && str.length <= 8) {
336
- wholeMark = 10
337
- } else {
338
- wholeMark = 25
339
285
  }
340
- // 奖励分数
341
- if ((lowerCase || upperCase) && num) {
342
- reward = 2
343
- if (special) {
344
- reward = 3
345
- if (lowerCase && upperCase) {
346
- reward = 5
347
- }
348
- }
349
- }
350
- // 字母分数
351
- if (lowerCase || upperCase) {
352
- caseMark = 10
353
- if (lowerCase && upperCase) {
354
- caseMark = 20
355
- }
356
- }
357
- // 数字分数
358
- if (num) {
359
- numMark = 10
360
- if (num >= 3) {
361
- numMark = 20
362
- }
363
- }
364
- // 符号分数
365
- if (special) {
366
- specialMark = 10
367
- if (special > 1) {
368
- specialMark = 25
369
- }
370
- }
371
- const totalMark = wholeMark + numMark + caseMark + specialMark + reward
372
- console.warn(totalMark)
373
- let strength
374
- if (totalMark < 25) {
375
- strength = 0
376
- } else if (totalMark >= 25 && totalMark < 50) {
377
- strength = 1
378
- } else if (totalMark >= 50 && totalMark < 60) {
379
- strength = 2
380
- } else if (totalMark >= 60 && totalMark < 70) {
381
- strength = 3
382
- } else if (totalMark >= 70 && totalMark < 80) {
383
- strength = 4
384
- } else if (totalMark >= 80 && totalMark < 90) {
385
- strength = 5
386
- } else {
387
- strength = 6
388
- }
389
- return strength
390
- },
391
- closeReset () {
392
- this.visible = false
393
- this.login = false
394
- $('form').fadeIn(500)
395
- },
396
- resetPassword () {
397
- if (!this.deliver.password || !this.deliver.affirmpassword) {
398
- this.$showMessage("密码不能为空!")
399
- return
400
- }
401
- if (this.deliver.password !== this.deliver.affirmpassword) {
402
- this.$showMessage("两次输入的密码不一致,请核对!")
403
- return
404
- }
405
- if (this.checkPassword(this.deliver.password) <= 2) {
406
- this.$showMessage("密码过于简单,请重新设置!")
407
- return
408
- }
409
- let gen = savePassword(this)
410
- co(gen)
411
- }
412
286
  }
413
287
  }
414
288
  </script>