system-clients 3.2.1-30 → 3.2.1-33

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.
@@ -62,13 +62,17 @@
62
62
  // let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
63
63
  // let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
64
64
  // Util.f.password = self.deliver.newpassword
65
- let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver })
65
+ let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver }, {resolveMsg: null,rejectMsg: null})
66
66
  self.$login.f.password = self.deliver.newpassword
67
- if (res.data) {
67
+ console.log(res.data)
68
+ if (res.data == true) {
69
+ self.$showAlert('修改成功!', 'success', 2000)
68
70
  self.deliver.password = ''
69
71
  self.deliver.newpassword = ''
70
72
  self.deliver.affirmpassword = ''
71
73
  self.show = false
74
+ } else {
75
+ self.$showMessage(res.data)
72
76
  }
73
77
  }
74
78
  export default {
@@ -1,111 +1,111 @@
1
- <template>
2
- <div class='over' style="display: inline-block; width: 100%;">
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">{{row.data.name}}</div>
9
- </span>
10
- </tree>
11
- </div>
12
- </template>
13
- <script>
14
- import Vue from 'vue'
15
-
16
- export default {
17
- props: ['functions', 'userid','tabs'],
18
- title: '左侧树菜单',
19
- data () {
20
- return {
21
- index: -1,
22
- name: null,
23
- tbcg:[]
24
- }
25
- },
26
- methods: {
27
- open (row) {
28
- if (row.data.name === '资源管理') {
29
- this.$parent.changeMain(row.data.id)
30
- return
31
- }
32
- console.log(row.data.navigate)
33
- if (row.data.navigate) {
34
-
35
- let isExist = false
36
- this.tbcg.forEach((tab) => {
37
- if(tab.comp.name == row.data.link) {
38
- isExist = true
39
- }
40
- })
41
- if (!isExist){
42
- this.$goto('embbed-page', {domainName: row.data.navigate, title: row.data.name, compName: row.data.link, login: Vue.$login, param: Vue.$appdata}, 'main')
43
- }else {
44
- console.log(isExist,'aa')
45
- this.$emit('isnodo',row.data.link)
46
- }
47
- } else if (row.data.link) {
48
- let isExist = false
49
- this.tbcg.forEach((tab) => {
50
- if(tab.comp.name == row.data.link) {
51
- isExist = true
52
- }
53
- })
54
- if (!isExist){
55
- this.$goto(row.data.link, {f: this.functions}, 'main')
56
- }else {
57
- console.log(isExist,'saaa')
58
- this.$emit('isnodo',row.data.link)
59
- }
60
- }
61
- },
62
- changeSelect(name) {
63
- if (!name) {
64
- this.$refs.tree.selectStore.select(null)
65
- return
66
- }
67
- this.name = name
68
- let index = this.selfFindIndex(name)
69
- this.index = index
70
- // 当前激活页签有,index为-1,说明菜单收缩
71
- this.changeSelected(index)
72
- },
73
- selfFindIndex (name) {
74
-
75
- return this.$refs.tree.toNode.findIndex((item) => {
76
- return item.data.link === name
77
- })
78
- },
79
- changeSelected (index) {
80
-
81
- if (index === -1) {
82
- this.$refs.tree.selectStore.select(null)
83
- }else {
84
- this.$refs.tree.selectStore.select(this.$refs.tree.toNode[index])
85
- }
86
-
87
- },
88
- toggled () {
89
-
90
- if (this.name && this.index === -1) {
91
- let index = this.selfFindIndex(this.name)
92
- if (index !== -1) {
93
- this.changeSelected(index)
94
- }
95
- }
96
- }
97
- },
98
- events: {
99
- 'select-changed': function (data) {
100
-
101
- // 事件回调内的 `this` 自动绑定到注册它的实例上
102
- this.open(data.val)
103
- }
104
- },
105
- watch:{
106
- 'tabs'(val){
107
- this.tbcg = val
108
- }
109
- }
110
- }
111
- </script>
1
+ <template>
2
+ <div class='over' style="display: inline-block; width: 100%;">
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">{{row.data.name}}</div>
9
+ </span>
10
+ </tree>
11
+ </div>
12
+ </template>
13
+ <script>
14
+ import Vue from 'vue'
15
+
16
+ export default {
17
+ props: ['functions', 'userid','tabs'],
18
+ title: '左侧树菜单',
19
+ data () {
20
+ return {
21
+ index: -1,
22
+ name: null,
23
+ tbcg:[]
24
+ }
25
+ },
26
+ methods: {
27
+ open (row) {
28
+ if (row.data.name === '资源管理') {
29
+ this.$parent.changeMain(row.data.id)
30
+ return
31
+ }
32
+ console.log(row.data.navigate)
33
+ if (row.data.navigate) {
34
+
35
+ let isExist = false
36
+ this.tbcg.forEach((tab) => {
37
+ if(tab.comp.name == row.data.link) {
38
+ isExist = true
39
+ }
40
+ })
41
+ if (!isExist){
42
+ this.$goto('embbed-page', {domainName: row.data.navigate, title: row.data.name, compName: row.data.link, login: Vue.$login, param: Vue.$appdata}, 'main')
43
+ }else {
44
+ console.log(isExist,'aa')
45
+ this.$emit('isnodo',row.data.link)
46
+ }
47
+ } else if (row.data.link) {
48
+ let isExist = false
49
+ this.tbcg.forEach((tab) => {
50
+ if(tab.comp.name == row.data.link) {
51
+ isExist = true
52
+ }
53
+ })
54
+ if (!isExist){
55
+ this.$goto(row.data.link, {f: this.functions}, 'main')
56
+ }else {
57
+ console.log(isExist,'saaa')
58
+ this.$emit('isnodo',row.data.link)
59
+ }
60
+ }
61
+ },
62
+ changeSelect(name) {
63
+ if (!name) {
64
+ this.$refs.tree.selectStore.select(null)
65
+ return
66
+ }
67
+ this.name = name
68
+ let index = this.selfFindIndex(name)
69
+ this.index = index
70
+ // 当前激活页签有,index为-1,说明菜单收缩
71
+ this.changeSelected(index)
72
+ },
73
+ selfFindIndex (name) {
74
+
75
+ return this.$refs.tree.toNode.findIndex((item) => {
76
+ return item.data.link === name
77
+ })
78
+ },
79
+ changeSelected (index) {
80
+
81
+ if (index === -1) {
82
+ this.$refs.tree.selectStore.select(null)
83
+ }else {
84
+ this.$refs.tree.selectStore.select(this.$refs.tree.toNode[index])
85
+ }
86
+
87
+ },
88
+ toggled () {
89
+
90
+ if (this.name && this.index === -1) {
91
+ let index = this.selfFindIndex(this.name)
92
+ if (index !== -1) {
93
+ this.changeSelected(index)
94
+ }
95
+ }
96
+ }
97
+ },
98
+ events: {
99
+ 'select-changed': function (data) {
100
+
101
+ // 事件回调内的 `this` 自动绑定到注册它的实例上
102
+ this.open(data.val)
103
+ }
104
+ },
105
+ watch:{
106
+ 'tabs'(val){
107
+ this.tbcg = val
108
+ }
109
+ }
110
+ }
111
+ </script>
@@ -149,7 +149,7 @@ let saveGen = function *(self) {
149
149
  }
150
150
  }
151
151
  //吴小平
152
- // yield self.$getConfig(self, 'Login')
152
+ yield self.$getConfig(self, 'Login')
153
153
  console.log('登录配置', self.config)
154
154
  if (self.config.isMac) {
155
155
  // 获取该登录人分公司下的mac配置
@@ -184,7 +184,7 @@ let saveGen = function *(self) {
184
184
  console.log(self.$login.depPrompt)
185
185
  // 弱口令验证
186
186
  //跳转过来的不进行验证
187
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(self.model.password))) {
187
+ if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
188
188
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
189
189
  self.modifyPwShow = true
190
190
  })