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.
- package/package.json +2 -2
- package/src/components/Main.vue +547 -589
- package/src/components/equipment/EquipmentManage.vue +3 -0
- package/src/components/equipment/QCAdd.vue +333 -0
- package/src/components/equipment/QCList.vue +230 -0
- package/src/components/equipment/QCManage.vue +150 -0
- package/src/components/parammanage/ParamManage.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +4 -4
- package/src/components/parammanage/SinglePage.vue +2 -2
- package/src/components/server/Login.vue +56 -103
- package/src/components/server/ModifyPw.vue +4 -5
- package/src/components/server/ResSelect.vue +5 -1
- package/src/components/server/ResSelectGroup.vue +159 -174
- package/src/components/server/RightTree.vue +207 -236
- package/src/plugins/EncryptUtil.js +53 -0
- package/src/plugins/GetLoginInfoService.js +3 -0
- package/src/plugins/validation.js +1 -1
- package/src/system.js +7 -5
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
- package/.gradle/vcs-1/gc.properties +0 -0
- package/src/components/server/ImageVieweTest.vue +0 -56
- package/src/components/server/ImageViewer.vue +0 -350
- package/src/styles/fonts/PINGFANG LIGHT.TTF +0 -0
- package/src/styles/fonts/PingFangSC-Regular.ttf +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.svg +0 -288
- package/src/styles/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/styles/fonts/pingfang-bold.ttf +0 -0
- package/src/styles/fonts/pingfang-medium.ttf +0 -0
- package/src/styles/fonts/pingfang-regular.ttf +0 -0
- package/src/styles/fonts/trendstrends.ttf +0 -0
- 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
- package/src/styles/less/.csscomb.json +0 -304
- package/src/styles/less/.csslintrc +0 -19
- package/src/styles/less/alerts.less +0 -73
- package/src/styles/less/aofeng/animate.min.css +0 -11
- package/src/styles/less/aofeng/expandcss.less +0 -569
- package/src/styles/less/aofeng/standard.less +0 -2121
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +0 -686
- package/src/styles/less/aofeng/themeOne/loginStyle.less +0 -1586
- package/src/styles/less/aofeng/themeOne/systemStyle.less +0 -2650
- package/src/styles/less/aofeng/themeOne.less +0 -17
- package/src/styles/less/aofeng/themeTwo/newStyle1.less +0 -415
- package/src/styles/less/aofeng/themeTwo.less +0 -3
- package/src/styles/less/badges.less +0 -66
- package/src/styles/less/bootstrap.less +0 -66
- package/src/styles/less/breadcrumbs.less +0 -26
- package/src/styles/less/button-groups.less +0 -247
- package/src/styles/less/buttons.less +0 -172
- package/src/styles/less/carousel.less +0 -269
- package/src/styles/less/close.less +0 -34
- package/src/styles/less/code.less +0 -69
- package/src/styles/less/component-animations.less +0 -33
- package/src/styles/less/dropdowns.less +0 -216
- package/src/styles/less/fonts-list.less +0 -25
- package/src/styles/less/forms.less +0 -626
- package/src/styles/less/glyphicons.less +0 -305
- package/src/styles/less/grid.less +0 -84
- package/src/styles/less/input-groups.less +0 -167
- package/src/styles/less/jumbotron.less +0 -52
- package/src/styles/less/labels.less +0 -64
- package/src/styles/less/list-group.less +0 -141
- package/src/styles/less/manageStyle/manageChile.less +0 -180
- package/src/styles/less/manageStyle/manageStyle/manageChile.less +0 -180
- package/src/styles/less/manageStyle/manageStyle/manageStyle.less +0 -1102
- package/src/styles/less/manageStyle/manageStyle/safeStyle.less +0 -498
- package/src/styles/less/manageStyle/manageStyle.less +0 -1102
- package/src/styles/less/manageStyle/safeStyle.less +0 -498
- package/src/styles/less/media.less +0 -66
- package/src/styles/less/mixins/alerts.less +0 -14
- package/src/styles/less/mixins/background-variant.less +0 -9
- package/src/styles/less/mixins/border-radius.less +0 -18
- package/src/styles/less/mixins/buttons.less +0 -69
- package/src/styles/less/mixins/center-block.less +0 -7
- package/src/styles/less/mixins/clearfix.less +0 -22
- package/src/styles/less/mixins/forms.less +0 -90
- package/src/styles/less/mixins/gradients.less +0 -59
- package/src/styles/less/mixins/grid-framework.less +0 -92
- package/src/styles/less/mixins/grid.less +0 -122
- package/src/styles/less/mixins/hide-text.less +0 -21
- package/src/styles/less/mixins/image.less +0 -33
- package/src/styles/less/mixins/labels.less +0 -12
- package/src/styles/less/mixins/list-group.less +0 -30
- package/src/styles/less/mixins/nav-divider.less +0 -10
- package/src/styles/less/mixins/nav-vertical-align.less +0 -9
- package/src/styles/less/mixins/opacity.less +0 -8
- package/src/styles/less/mixins/pagination.less +0 -24
- package/src/styles/less/mixins/panels.less +0 -24
- package/src/styles/less/mixins/progress-bar.less +0 -10
- package/src/styles/less/mixins/reset-filter.less +0 -8
- package/src/styles/less/mixins/reset-text.less +0 -18
- package/src/styles/less/mixins/resize.less +0 -6
- package/src/styles/less/mixins/responsive-visibility.less +0 -15
- package/src/styles/less/mixins/size.less +0 -10
- package/src/styles/less/mixins/tab-focus.less +0 -9
- package/src/styles/less/mixins/table-row.less +0 -44
- package/src/styles/less/mixins/text-emphasis.less +0 -9
- package/src/styles/less/mixins/text-overflow.less +0 -8
- package/src/styles/less/mixins/vendor-prefixes.less +0 -227
- package/src/styles/less/mixins.less +0 -40
- package/src/styles/less/modals.less +0 -151
- package/src/styles/less/navbar.less +0 -660
- package/src/styles/less/navs.less +0 -285
- package/src/styles/less/normalize.less +0 -424
- package/src/styles/less/pager.less +0 -76
- package/src/styles/less/pagination.less +0 -89
- package/src/styles/less/panels.less +0 -275
- package/src/styles/less/popovers.less +0 -131
- package/src/styles/less/print.less +0 -101
- package/src/styles/less/progress-bars.less +0 -87
- package/src/styles/less/responsive-embed.less +0 -35
- package/src/styles/less/responsive-utilities.less +0 -194
- package/src/styles/less/scaffolding.less +0 -161
- package/src/styles/less/stand.less +0 -207
- package/src/styles/less/tables.less +0 -262
- package/src/styles/less/theme.less +0 -291
- package/src/styles/less/thumbnails.less +0 -36
- package/src/styles/less/tooltip.less +0 -102
- package/src/styles/less/type.less +0 -303
- package/src/styles/less/utilities.less +0 -55
- package/src/styles/less/variables.less +0 -896
- package/src/styles/less/wells.less +0 -29
- 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>×</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"
|
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"
|
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="
|
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-
|
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="
|
69
|
-
<button type="button" name="button" class="btn btn-
|
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="
|
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-
|
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"
|
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.
|
124
|
-
//
|
125
|
-
let
|
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('
|
111
|
+
throw new Error('获取本地mac配置失败')
|
130
112
|
})
|
131
|
-
console.log('MAC地址信息',
|
132
|
-
//
|
133
|
-
let
|
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('
|
119
|
+
throw new Error('获取mac配置失败')
|
138
120
|
})
|
139
|
-
console.log('
|
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
|
-
|
144
|
-
|
145
|
-
|
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
|
195
|
-
this.model.ename = this
|
196
|
-
this.model.password = this
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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.
|
22
|
-
'has-success': !$v.newpassword.required
|
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">新的密码: </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
|
26
|
-
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.newpassword.required
|
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="
|
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,
|