system-clients 3.1.89-9 → 3.1.89-xianyang

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.
Files changed (132) hide show
  1. package/package.json +2 -2
  2. package/src/components/Main.vue +547 -589
  3. package/src/components/equipment/EquipmentManage.vue +3 -0
  4. package/src/components/equipment/QCAdd.vue +333 -0
  5. package/src/components/equipment/QCList.vue +230 -0
  6. package/src/components/equipment/QCManage.vue +150 -0
  7. package/src/components/parammanage/ParamManage.vue +2 -2
  8. package/src/components/parammanage/ParamPage.vue +4 -4
  9. package/src/components/parammanage/SinglePage.vue +2 -2
  10. package/src/components/server/Login.vue +56 -103
  11. package/src/components/server/ModifyPw.vue +4 -5
  12. package/src/components/server/ResSelect.vue +5 -1
  13. package/src/components/server/ResSelectGroup.vue +159 -174
  14. package/src/components/server/RightTree.vue +207 -236
  15. package/src/plugins/EncryptUtil.js +53 -0
  16. package/src/plugins/GetLoginInfoService.js +3 -0
  17. package/src/plugins/validation.js +1 -1
  18. package/src/system.js +7 -5
  19. package/.gradle/3.5/file-changes/last-build.bin +0 -0
  20. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  21. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  22. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  23. package/.gradle/5.2.1/gc.properties +0 -0
  24. package/.gradle/buildOutputCleanup/built.bin +0 -0
  25. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  26. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
  27. package/.gradle/vcs-1/gc.properties +0 -0
  28. package/src/components/server/ImageVieweTest.vue +0 -56
  29. package/src/components/server/ImageViewer.vue +0 -350
  30. package/src/styles/fonts/PINGFANG LIGHT.TTF +0 -0
  31. package/src/styles/fonts/PingFangSC-Regular.ttf +0 -0
  32. package/src/styles/fonts/glyphicons-halflings-regular.eot +0 -0
  33. package/src/styles/fonts/glyphicons-halflings-regular.svg +0 -288
  34. package/src/styles/fonts/glyphicons-halflings-regular.ttf +0 -0
  35. package/src/styles/fonts/glyphicons-halflings-regular.woff +0 -0
  36. package/src/styles/fonts/glyphicons-halflings-regular.woff2 +0 -0
  37. package/src/styles/fonts/pingfang-bold.ttf +0 -0
  38. package/src/styles/fonts/pingfang-medium.ttf +0 -0
  39. package/src/styles/fonts/pingfang-regular.ttf +0 -0
  40. package/src/styles/fonts/trendstrends.ttf +0 -0
  41. package/src/styles/fonts//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
  42. package/src/styles/less/.csscomb.json +0 -304
  43. package/src/styles/less/.csslintrc +0 -19
  44. package/src/styles/less/alerts.less +0 -73
  45. package/src/styles/less/aofeng/animate.min.css +0 -11
  46. package/src/styles/less/aofeng/expandcss.less +0 -569
  47. package/src/styles/less/aofeng/standard.less +0 -2121
  48. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +0 -686
  49. package/src/styles/less/aofeng/themeOne/loginStyle.less +0 -1586
  50. package/src/styles/less/aofeng/themeOne/systemStyle.less +0 -2650
  51. package/src/styles/less/aofeng/themeOne.less +0 -17
  52. package/src/styles/less/aofeng/themeTwo/newStyle1.less +0 -415
  53. package/src/styles/less/aofeng/themeTwo.less +0 -3
  54. package/src/styles/less/badges.less +0 -66
  55. package/src/styles/less/bootstrap.less +0 -66
  56. package/src/styles/less/breadcrumbs.less +0 -26
  57. package/src/styles/less/button-groups.less +0 -247
  58. package/src/styles/less/buttons.less +0 -172
  59. package/src/styles/less/carousel.less +0 -269
  60. package/src/styles/less/close.less +0 -34
  61. package/src/styles/less/code.less +0 -69
  62. package/src/styles/less/component-animations.less +0 -33
  63. package/src/styles/less/dropdowns.less +0 -216
  64. package/src/styles/less/fonts-list.less +0 -25
  65. package/src/styles/less/forms.less +0 -626
  66. package/src/styles/less/glyphicons.less +0 -305
  67. package/src/styles/less/grid.less +0 -84
  68. package/src/styles/less/input-groups.less +0 -167
  69. package/src/styles/less/jumbotron.less +0 -52
  70. package/src/styles/less/labels.less +0 -64
  71. package/src/styles/less/list-group.less +0 -141
  72. package/src/styles/less/manageStyle/manageChile.less +0 -180
  73. package/src/styles/less/manageStyle/manageStyle/manageChile.less +0 -180
  74. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +0 -1102
  75. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +0 -498
  76. package/src/styles/less/manageStyle/manageStyle.less +0 -1102
  77. package/src/styles/less/manageStyle/safeStyle.less +0 -498
  78. package/src/styles/less/media.less +0 -66
  79. package/src/styles/less/mixins/alerts.less +0 -14
  80. package/src/styles/less/mixins/background-variant.less +0 -9
  81. package/src/styles/less/mixins/border-radius.less +0 -18
  82. package/src/styles/less/mixins/buttons.less +0 -69
  83. package/src/styles/less/mixins/center-block.less +0 -7
  84. package/src/styles/less/mixins/clearfix.less +0 -22
  85. package/src/styles/less/mixins/forms.less +0 -90
  86. package/src/styles/less/mixins/gradients.less +0 -59
  87. package/src/styles/less/mixins/grid-framework.less +0 -92
  88. package/src/styles/less/mixins/grid.less +0 -122
  89. package/src/styles/less/mixins/hide-text.less +0 -21
  90. package/src/styles/less/mixins/image.less +0 -33
  91. package/src/styles/less/mixins/labels.less +0 -12
  92. package/src/styles/less/mixins/list-group.less +0 -30
  93. package/src/styles/less/mixins/nav-divider.less +0 -10
  94. package/src/styles/less/mixins/nav-vertical-align.less +0 -9
  95. package/src/styles/less/mixins/opacity.less +0 -8
  96. package/src/styles/less/mixins/pagination.less +0 -24
  97. package/src/styles/less/mixins/panels.less +0 -24
  98. package/src/styles/less/mixins/progress-bar.less +0 -10
  99. package/src/styles/less/mixins/reset-filter.less +0 -8
  100. package/src/styles/less/mixins/reset-text.less +0 -18
  101. package/src/styles/less/mixins/resize.less +0 -6
  102. package/src/styles/less/mixins/responsive-visibility.less +0 -15
  103. package/src/styles/less/mixins/size.less +0 -10
  104. package/src/styles/less/mixins/tab-focus.less +0 -9
  105. package/src/styles/less/mixins/table-row.less +0 -44
  106. package/src/styles/less/mixins/text-emphasis.less +0 -9
  107. package/src/styles/less/mixins/text-overflow.less +0 -8
  108. package/src/styles/less/mixins/vendor-prefixes.less +0 -227
  109. package/src/styles/less/mixins.less +0 -40
  110. package/src/styles/less/modals.less +0 -151
  111. package/src/styles/less/navbar.less +0 -660
  112. package/src/styles/less/navs.less +0 -285
  113. package/src/styles/less/normalize.less +0 -424
  114. package/src/styles/less/pager.less +0 -76
  115. package/src/styles/less/pagination.less +0 -89
  116. package/src/styles/less/panels.less +0 -275
  117. package/src/styles/less/popovers.less +0 -131
  118. package/src/styles/less/print.less +0 -101
  119. package/src/styles/less/progress-bars.less +0 -87
  120. package/src/styles/less/responsive-embed.less +0 -35
  121. package/src/styles/less/responsive-utilities.less +0 -194
  122. package/src/styles/less/scaffolding.less +0 -161
  123. package/src/styles/less/stand.less +0 -207
  124. package/src/styles/less/tables.less +0 -262
  125. package/src/styles/less/theme.less +0 -291
  126. package/src/styles/less/thumbnails.less +0 -36
  127. package/src/styles/less/tooltip.less +0 -102
  128. package/src/styles/less/type.less +0 -303
  129. package/src/styles/less/utilities.less +0 -55
  130. package/src/styles/less/variables.less +0 -896
  131. package/src/styles/less/wells.less +0 -29
  132. package/static/logo.png +0 -0
@@ -0,0 +1,150 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div :class="{'basic-main':!isChange,'binary-left':isChange}">
4
+ <qc-list :row="row" @dblclick="selected" style="width:auto;" :f_filialeid.sync="f_filialeids" :isshowless="isChange" v-ref:list ></qc-list>
5
+ </div>
6
+ <div class="binary-right" style="margin-left: 10px; width: 40%;" v-if="isChange">
7
+ <qc-add :data="row" :info="infoadd" :f_filialeids.sync="f_filialeids" v-ref:addbox></qc-add>
8
+ </div>
9
+
10
+ <modal v-if="batchPos" :show.sync="batchPos" backdrop="false" >
11
+ <header slot="modal-header" class="modal-header">
12
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
13
+ <h4 class="modal-title">批量操作</h4>
14
+ </header>
15
+ <article slot="modal-body" class="modal-body">
16
+ <form class="form-horizontal">
17
+ <div class="row">
18
+ <div>
19
+ <h4>注意事项</h4>
20
+ <p>1.如果需要对POS设备进行升级,批量选择的POS设备包含非正常状态,则只会对状态为正常的设备进行升级。</p>
21
+ <p>2.如果POS设备处于停用状态,则可以进行启用操作。如果设备处于启用状态,则可以进行停用和升级操作。</p>
22
+ <p>3.批量操作可能耗时较长,请刷新列表查看结果。</p>
23
+ </div>
24
+ </div>
25
+ </form>
26
+ </article>
27
+ <footer slot="modal-footer" class="modal-footer">
28
+ <button type="button" class="button_search button_spacing" @click="batchRoot('2')">批量升级</button>
29
+ <button type="button" class="button_search button_spacing" @click="batchRoot('1')">批量启用</button>
30
+ <button type="button" class="button_search button_spacing" @click="batchRoot('0')">批量停用</button>
31
+ <button type="button" class="button_clear button_spacing" @click='close'>退出</button>
32
+ </footer>
33
+ </modal>
34
+ </div>
35
+ </template>
36
+ <script>
37
+
38
+ import QcList from './QCList'
39
+ import QcAdd from './QCAdd'
40
+
41
+ export default {
42
+ title: 'POS终端管理',
43
+ components: {
44
+ QcList, QcAdd
45
+ },
46
+ data () {
47
+ return {
48
+ isChange: false,
49
+ row: null,
50
+ infoadd: true, // 判断是否显示 升级 等按钮(true/false)
51
+ batchPos: false,
52
+ f_filialeids: ''
53
+ }
54
+ },
55
+ methods: {
56
+ // 批量操作
57
+ async batchRoot(val){
58
+ let arrs = []
59
+ let alertMessage=''
60
+ let selPos = this.$refs.list.selPos
61
+ if (val==='0'){
62
+ alertMessage='停用'
63
+ for (const tmp of selPos) {
64
+ if (tmp.f_state==='正常') arrs.push(tmp)
65
+ }
66
+ } else if (val==='1'){
67
+ alertMessage='启用'
68
+ for (const tmp of selPos) {
69
+ if (tmp.f_state==='停用') arrs.push(tmp)
70
+ }
71
+ } else if(val==='2'){
72
+ alertMessage='升级'
73
+ for (const tmp of selPos) {
74
+ if (tmp.f_state==='正常') arrs.push(tmp)
75
+ }
76
+ } else {
77
+ this.showAlert('出现异常,请重新进操作')
78
+ return
79
+ }
80
+
81
+ await this.$resetpost('rs/logic/batchPos',{data: {tasks: arrs, taskState: val}}, {rejectMsg: null, resolveMsg: null})
82
+
83
+ // 需要提示
84
+ this.$showAlert(`已经开始批量${alertMessage},选择${selPos.length},其中${arrs.length}台可以正常${alertMessage},具体请留意设备情况,并刷新列表查看执行结果!`)
85
+ this.isChange = false
86
+ this.close()
87
+ },
88
+ close(){
89
+ this.batchPos = false
90
+ },
91
+ selected (obj, idx) {
92
+ console.log(obj)
93
+ if (!(obj instanceof MouseEvent)) {
94
+ if (this.$refs.list.selPos.length > 0){
95
+ this.$showMessage(`系统检测到您进行了多选,是否进行批量操作?`, ['confirm', 'cancel']).then((res) => {
96
+ if (res==='confirm'){
97
+ this.batchPos = true
98
+ } else {
99
+ this.isChange = true
100
+ this.infoadd = true
101
+ this.row = obj
102
+ }
103
+ })
104
+
105
+ }else {
106
+ this.isChange = true
107
+ this.infoadd = true
108
+ this.row = obj
109
+ }
110
+ } else {
111
+ this.$showAlert('如需新增,请点击增加按钮!', 'info', 1000)
112
+ }
113
+ }
114
+ },
115
+ events: {
116
+ 'search' () {
117
+ this.infoadd=true
118
+ this.isChange = false
119
+ this.row = null
120
+ this.$refs.list.$refs.paged.$refs.cri.search()
121
+ },
122
+ 'research' () {
123
+ console.log('重新查询')
124
+ this.isChange = false
125
+ this.row = null
126
+ },
127
+ 'refresh' () {
128
+ this.isChange = false
129
+ this.row = null
130
+ this.$refs.list.search()
131
+ },
132
+ 'error' (name, row, res) {
133
+ this.isChange = false
134
+ this.row = null
135
+ },
136
+ 'close' () {
137
+ this.isChange = false
138
+ this.row = null
139
+ // this.$refs.list.search()
140
+ },
141
+ 'add' (val) {
142
+ this.f_filialeids = val
143
+ this.infoadd=false
144
+ this.row = null
145
+ this.isChange = true
146
+ this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
147
+ }
148
+ }
149
+ }
150
+ </script>
@@ -1,9 +1,9 @@
1
1
  <template>
2
- <div id="unit" class="flex-row" :style="{width: messlist==='mess' ? '50%' : '100%'}">
2
+ <div id="unit" class="flex-row">
3
3
  <div class="binary-left">
4
4
  <param-page></param-page>
5
5
  </div>
6
- <div class="binary-right" :style="{width: messlist==='mess' ? '50%' : '60%'}">
6
+ <div class="binary-right">
7
7
  <single-page></single-page>
8
8
  </div>
9
9
  </div>
@@ -39,9 +39,9 @@
39
39
  <td style="text-align:center">{{row.name}}</td>
40
40
  <td style="text-align:center">{{row.orgname ? row.orgname + '专用' : '全局'}}</td>
41
41
  <td class="flex-around">
42
- <button type="button" name="button" class="button_search button_spacing width-60"
42
+ <button type="button" name="button" class="btn btn-link"
43
43
  @click.stop="$parent.$parent.modifyParam(row, 't_parameter')">修改</button>
44
- <button type="button" name="button" class="btn btn-danger"
44
+ <button type="button" name="button" class="btn btn-link"
45
45
  @click.stop="$parent.$parent.deleteParam(row, 't_parameter')">删除</button>
46
46
  </td>
47
47
  </template>
@@ -65,8 +65,8 @@
65
65
  <td style="text-align:center">{{$index+1}}</td>
66
66
  <td style="text-align:center">{{row.name}}</td>
67
67
  <td class="flex-around">
68
- <button type="button" name="button" class="button_search button_spacing width-60" @click.stop="$parent.$parent.modifyParam(row, 't_paramvalue')">修改</button>
69
- <button type="button" name="button" class="btn btn-danger" @click.stop="$parent.$parent.deleteParam(row, 't_paramvalue')">删除</button>
68
+ <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.modifyParam(row, 't_paramvalue')">修改</button>
69
+ <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.deleteParam(row, 't_paramvalue')">删除</button>
70
70
  </td>
71
71
  </template>
72
72
  </data-grid>
@@ -43,9 +43,9 @@
43
43
  <td style="text-align:center">{{row.value}}</td>
44
44
  <td style="text-align:center">{{row.orgname ? row.orgname + '专用' : '全局'}}</td>
45
45
  <td class="flex-around">
46
- <button type="button" name="button" class="button_search button_spacing width-60"
46
+ <button type="button" name="button" class="btn btn-link"
47
47
  @click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
48
- <button type="button" name="button" class="btn btn-danger"
48
+ <button type="button" name="button" class="btn btn-link"
49
49
  @click.stop="$parent.$parent.$parent.deleteItem(row)">删除</button>
50
50
  </td>
51
51
  </template>
@@ -8,11 +8,6 @@
8
8
  <span>联系我们</span>
9
9
  </div>
10
10
  </div>
11
- <div class="logoew" v-if="logoandroid" >
12
- <div v-if="logoandroid" class="imglogo"></div>
13
- <p class="logocontent">燃气客服系统Android版</p>
14
- <p class="logofooter">(仅浏览器扫描)</p>
15
- </div>
16
11
  <!--输入框-->
17
12
  <div class="loginmain">
18
13
  <!-- <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> -->
@@ -21,7 +16,7 @@
21
16
  </div>
22
17
  <div class="loginmain-right">
23
18
 
24
- <p @click="theme()" style="white-space: nowrap">{{config.title}}</p>
19
+ <p @click="theme()" style="white-space: nowrap">咸阳天然气营收系统</p>
25
20
 
26
21
  <form v-show="!login">
27
22
  <!-- <input type="text" placeholder="用户名" v-model="model.ename" class="usericon">-->
@@ -34,16 +29,16 @@
34
29
  <input type="password" placeholder="密码" style="display: inline;background-color: darkgray;" v-model="model.password"
35
30
  @keyup.enter="confirm('key')"/>
36
31
  </div>
37
- <div class="login-input-1">
38
- <img src="../../../static/newStyle/login-check.png"/>
39
- <input v-if="$login.Verification" class="login-check" type="text" placeholder="请输入验证码"
40
- v-model="picLyanzhengma" @keyup.enter="confirm('key')"/>
41
- </div>
42
- <div class="login-input-2" >
43
- <input v-if="$login.Verification" class="login-check-1" style="display: inline;background-color:#eeeeee !important;"
44
- type="button" @click="createCode" v-model="checkCode"/>
45
- </div>
46
- <div class="login-bt">
32
+ <!-- <div class="login-input-1">-->
33
+ <!-- <img src="../../../static/newStyle/login-check.png"/>-->
34
+ <!-- <input v-if="$login.Verification" class="login-check" type="text" placeholder="请输入验证码"-->
35
+ <!-- v-model="picLyanzhengma" @keyup.enter="confirm('key')"/>-->
36
+ <!-- </div>-->
37
+ <!-- <div class="login-input-2" >-->
38
+ <!-- <input v-if="$login.Verification" class="login-check-1" style="display: inline;background-color:#eeeeee !important;"-->
39
+ <!-- type="button" @click="createCode" v-model="checkCode"/>-->
40
+ <!-- </div>-->
41
+ <div class="login-bt" style="transform: translate(0,-55px)">
47
42
  <button type="button" id="login-button" class="login-button" @click.prevent="confirm('click')">登录</button>
48
43
  </div>
49
44
  <!-- <input type="password" placeholder="密码" v-model="model.password" class="psicon"-->
@@ -92,9 +87,6 @@
92
87
  <button class="button_clear" @click="depPromptCancel">取消</button>
93
88
  </footer>
94
89
  </modal>
95
-
96
- <!-- 修改密码组件 -->
97
- <modify-pw :show.sync="modifyPwShow" v-if="modifyPwShow"></modify-pw>
98
90
  </div>
99
91
 
100
92
  </template>
@@ -102,68 +94,50 @@
102
94
  <script>
103
95
  import co from 'co'
104
96
  import $ from 'jquery'
105
- import Vue from 'vue'
106
97
 
107
98
  let saveGen = function *(self) {
108
99
  try {
109
100
  yield self.$login.login(self.model.ename, self.model.password)
110
101
  yield self.$appdata.load()
111
102
 
112
- if (Vue.$heatCompatibility) {
113
- try {
114
- yield self.$loginHeat.login(self.model.ename, self.model.password)
115
- yield self.$appdataHeat.load()
116
- } catch (e) {
117
- console.log('热力系统登陆失败!')
118
- }
119
- }
120
-
121
103
  yield self.$getConfig(self, 'Login')
122
104
  console.log('登录配置', self.config)
123
- if (self.config.isMac) {
124
- // 获取该登录人分公司下的mac配置
125
- let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
105
+ if (self.$login.r.includes('验证站点') && self.$login.f.name!='超级管理员') {
106
+ // 获取本地mac地址
107
+ let getLocalMac = yield self.$resetpost('http://127.0.0.1:8003/loadmac', {
126
108
  resolveMsg: null,
127
109
  rejectMsg: null
128
110
  }).catch(() => {
129
- throw new Error('获取mac配置失败')
111
+ throw new Error('获取本地mac配置失败')
130
112
  })
131
- console.log('MAC地址信息', getMacs)
132
- // 获取本地mac地址
133
- let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
113
+ console.log('本地MAC地址信息', getLocalMac)
114
+ // 获取该登录人分公司下的mac配置
115
+ let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_mac_number = '${getLocalMac.data}' and f_state ='正常'`}}, {
134
116
  resolveMsg: null,
135
117
  rejectMsg: null
136
118
  }).catch(() => {
137
- throw new Error('获取本地mac配置失败')
119
+ throw new Error('获取mac配置失败')
138
120
  })
139
- console.log('本地MAC地址信息', getLocalMac)
121
+ console.log('MAC地址信息', getMacs)
140
122
  // 对Mac地址进行匹配
141
123
  let macValidate = false
142
- for (let i = 0; i < getLocalMac.data.mac.length; i++) {
143
- for (let j = 0; j < getMacs.data.length; j++) {
144
- if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
145
- macValidate = true
146
- }
147
- }
124
+ // for (let i = 0; i < getLocalMac.data.mac.length; i++) {
125
+ for (let j = 0; j < getMacs.data.length; j++) {
126
+ // if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
127
+ macValidate = true
128
+ self.$login.f.depids = getMacs.data[j].f_username
129
+ self.$login.f.deps = getMacs.data[j].f_mac_outlets
130
+ // }
148
131
  }
132
+ // }
149
133
  if (!macValidate) {
150
134
  throw new Error('Mac地址验证失败, 请联系管理员!!')
151
135
  }
152
136
  }
153
- // 弱口令验证
154
- if (self.config.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(self.model.password))) {
155
- self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
156
- self.modifyPwShow = true
157
- })
158
- } else if (self.config.depPrompt) {
137
+ if (self.config.depPrompt) {
159
138
  self.depPromptShow = true
160
139
  } else {
161
140
  self.$goto('home-page', {functions: self.$login.f})
162
- if (self.$login) {
163
- console.log('登录信息', self.$login.f)
164
- global.login=self.$login.f
165
- console.log('登录信息', global.login)
166
- }
167
141
  }
168
142
 
169
143
  } catch (ret) {
@@ -191,9 +165,9 @@
191
165
  export default {
192
166
  title: '登录',
193
167
  ready () {
194
- if (this.$login && this.$login.getUrlCompileParames('name') && this.$login.getUrlCompileParames('password')) {
195
- this.model.ename = this.$login.getUrlCompileParames('name')
196
- this.model.password = this.$login.getUrlCompileParames('password')
168
+ if (this.getUrlCompileParames('name') && this.getUrlCompileParames('password')) {
169
+ this.model.ename = this.getUrlCompileParames('name')
170
+ this.model.password = this.getUrlCompileParames('password')
197
171
  this.confirm()
198
172
  }
199
173
  $('#login-button').click(function (event) {
@@ -216,8 +190,6 @@
216
190
  config: {
217
191
  isMac: false,
218
192
  depPrompt: false,
219
- weakPassword: false,
220
- title: '燃气客服系统'
221
193
  },
222
194
  login: false,
223
195
  depPromptShow: false,
@@ -225,13 +197,26 @@
225
197
  show: false,
226
198
  checkCode: '',
227
199
  login_do:true,
228
- picLyanzhengma: '',
229
- // 修改密码弹框展示
230
- modifyPwShow: false,
231
- logoandroid:false
200
+ picLyanzhengma: ''
232
201
  }
233
202
  },
234
203
  methods: {
204
+ // 从地址栏获取加密的参数
205
+ getUrlCompileParames (param) {
206
+ console.log(window.location)
207
+ let query = window.location.search
208
+ let iLen = param.length
209
+ let iStart = query.indexOf(param)
210
+ if (iStart === -1) {
211
+ return ''
212
+ }
213
+ iStart += iLen + 1
214
+ let iEnd = query.indexOf('&', iStart)
215
+ if (iEnd === -1) {
216
+ return query.substring(iStart)
217
+ }
218
+ return query.substring(iStart, iEnd)
219
+ },
235
220
  theme(){
236
221
  // var elementList = document.querySelectorAll('body');
237
222
  // console.log(elementList)
@@ -304,40 +289,31 @@
304
289
  this.login = false
305
290
  $('form').fadeIn(500)
306
291
  }
307
- },
308
- watch: {
309
- 'modifyPwShow' (val){
310
- if (!val) {
311
- window.location.reload()
312
- }
313
- }
314
292
  }
315
293
  }
316
294
  </script>
317
295
 
318
296
  <style>
319
-
320
297
  /*输入框样式*/
321
298
  /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
322
299
  * {
323
300
  box-sizing: border-box;
324
301
  margin: 0;
325
302
  padding: 0;
326
- font-weight: 400;
327
- outline: none;
303
+ font-weight: 300;
328
304
  }
329
305
 
330
306
  body {
331
307
  font-family: 'Source Sans Pro', sans-serif;
332
308
  color: white;
333
- font-weight: 400;
309
+ font-weight: 300;
334
310
  }
335
311
 
336
312
  body ::-webkit-input-placeholder {
337
313
  /* WebKit browsers */
338
314
  font-family: 'Source Sans Pro', sans-serif;
339
315
  color: white;
340
- font-weight: 400;
316
+ font-weight: 300;
341
317
  }
342
318
 
343
319
  body :-moz-placeholder {
@@ -345,7 +321,7 @@
345
321
  font-family: 'Source Sans Pro', sans-serif;
346
322
  color: white;
347
323
  opacity: 1;
348
- font-weight: 400;
324
+ font-weight: 300;
349
325
  }
350
326
 
351
327
  body ::-moz-placeholder {
@@ -353,14 +329,14 @@
353
329
  font-family: 'Source Sans Pro', sans-serif;
354
330
  color: white;
355
331
  opacity: 1;
356
- font-weight: 400;
332
+ font-weight: 300;
357
333
  }
358
334
 
359
335
  body :-ms-input-placeholder {
360
336
  /* Internet Explorer 10+ */
361
337
  font-family: 'Source Sans Pro', sans-serif;
362
338
  color: white;
363
- font-weight: 400;
339
+ font-weight: 300;
364
340
  }
365
341
 
366
342
  .wrapper {
@@ -429,7 +405,7 @@
429
405
  color: white;
430
406
  -webkit-transition-duration: 0.25s;
431
407
  transition-duration: 0.25s;
432
- font-weight: 400;
408
+ font-weight: 300;
433
409
  }
434
410
 
435
411
  .form input:hover {
@@ -641,29 +617,6 @@
641
617
  -webkit-animation-delay: 11s;
642
618
  animation-delay: 11s;
643
619
  }
644
- .logofooter{
645
- font-size: 12px;
646
- color:#fff;
647
- width:150px;
648
- margin-left: 17px;
649
- }
650
- .logocontent{
651
- font-size: 14px;
652
- color:#fff;
653
- width:150px;
654
- margin: 3px -15px;
655
- }
656
- .imglogo {
657
- background:url(../../../static/logo.png);
658
- background-size:100%;
659
- }
660
- .logoew {
661
- width:120px;
662
- height:120px;
663
- float:right;
664
- margin-right:8.5%;
665
- margin-top:10px;
666
- }
667
620
 
668
621
  @-webkit-keyframes square {
669
622
  0% {
@@ -18,14 +18,13 @@
18
18
  </div>
19
19
  </div>
20
20
  <div class="has-feedback form-group"
21
- :class="{'has-warning':$v.newpassword.required,'has-error':$v.newpassword.strongpassword && !($v.newpassword.required),
22
- 'has-success': !$v.newpassword.required && !$v.newpassword.strongpassword }">
21
+ :class="{'has-warning':$v.newpassword.required,'has-error':$v.newpassword.required,
22
+ 'has-success': !$v.newpassword.required }">
23
23
  <label for="newpassword" class="col-sm-4 col-sm-offset-1 control-label">新的密码:&nbsp;&nbsp;</label>
24
24
  <div class="col-sm-4">
25
- <input type="password" v-model="deliver.newpassword" class="form-control" id="newpassword" v-validate:newpassword='{required:true, strongpassword: true}'>
26
- <span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.newpassword.required && !($v.newpassword.strongpassword && !($v.newpassword.required))"></span>
25
+ <input type="password" v-model="deliver.newpassword" class="form-control" id="newpassword" v-validate:newpassword='{required:true}'>
26
+ <span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.newpassword.required"></span>
27
27
  <span v-if="$v.newpassword.required">不能为空</span>
28
- <span v-if="$v.newpassword.strongpassword && !($v.newpassword.required)">密码必须包含英文大小写、阿拉伯数字、字符</span>
29
28
  </div>
30
29
  </div>
31
30
  <div class="has-feedback form-group"
@@ -2,7 +2,7 @@
2
2
  <v-select :options='resoptions' placeholder='请选择'
3
3
  :value.sync="selectres"
4
4
  :multiple="isMul"
5
- search="true"
5
+ :search="search"
6
6
  :close-on-select="!isMul"
7
7
  @change="resChange"
8
8
  >
@@ -23,6 +23,10 @@
23
23
  type: Boolean,
24
24
  default: true
25
25
  },
26
+ search:{
27
+ type: Boolean,
28
+ default: true
29
+ },
26
30
  //资源初始化数据
27
31
  initresid: {
28
32
  type: Array,