system-clients 3.2.6-1 → 3.2.6-aodeToV4
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/.eslintrc.js +16 -16
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.1/fileChanges/last-build.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/checksums/checksums.lock +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/SystemClient.iml +11 -8
- package/build/webpack.base.conf.js +10 -17
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +185 -0
- package/gradlew.bat +89 -0
- package/package.json +102 -104
- package/src/App.vue +1 -1
- package/src/components/Main.vue +430 -686
- package/src/components/Util.js +343 -343
- package/src/components/equipment/EquipmentManage.vue +4 -4
- package/src/components/equipment/PcAdd.vue +6 -6
- package/src/components/equipment/PcList.vue +9 -8
- package/src/components/equipment/PhoneAdd.vue +14 -27
- package/src/components/equipment/PhoneList.vue +23 -33
- package/src/components/equipment/PosAdd.vue +65 -232
- package/src/components/equipment/PosList.vue +71 -201
- package/src/components/equipment/PosManage.vue +10 -80
- package/src/components/materialManage/materialList.vue +1 -1
- package/src/components/parammanage/ParamManage.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +14 -36
- package/src/components/parammanage/ParamPages.vue +5 -5
- package/src/components/parammanage/SinglePage.vue +7 -7
- package/src/components/parammanage/SinglePages.vue +3 -3
- package/src/components/server/AddChangeMsg.vue +1 -1
- package/src/components/server/ChangeDeclare.vue +1 -1
- package/src/components/server/LoadData.vue +2 -21
- package/src/components/server/Login.vue +132 -295
- package/src/components/server/Menu.vue +188 -188
- package/src/components/server/ModifyPw.vue +17 -16
- package/src/components/server/NewResSelectGroup.vue +211 -0
- package/src/components/server/ResSelect.vue +3 -5
- package/src/components/server/ResSelectGroup.vue +118 -157
- package/src/components/server/RightTree.vue +257 -262
- package/src/components/server/RoleSelector.vue +4 -3
- package/src/components/server/TestResSelectGroup.vue +2 -2
- package/src/plugins/GetLoginInfoService.js +52 -74
- package/src/plugins/validation.js +0 -8
- package/src/project/State.js +1 -1
- package/src/stores/AppData.js +1 -1
- package/src/styles/less/aofeng/standard.less +60 -446
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +13 -13
- package/src/styles/less/aofeng/themeOne/systemStyle.less +18 -18
- package/src/styles/less/fonts-list.less +4 -4
- package/src/styles/less/stand.less +1 -1
- package/src/styles/less/tables.less +0 -50
- package/src/styles/less/type.less +3 -16
- package/src/styles/less/variables.less +3 -6
- package/src/system.js +3 -27
- package/static/aodelogo.png +0 -0
- package/static/aodenewlogo.png +0 -0
- package/static/ewmlogo.png +0 -0
- package/.npmignore +0 -10
- package/build/.npmignore +0 -1
- package/package-lock.json +0 -23125
- package/src/.npmignore +0 -1
- package/src/components/TabButton.vue +0 -201
- package/src/components/Tabs.vue +0 -67
- package/src/components/addressManage/AddressCascadingMenu.vue +0 -145
- package/src/components/equipment/PosManageBoth.vue +0 -125
- package/src/components/equipment/PosParamAdd.vue +0 -236
- package/src/components/equipment/PosParamList.vue +0 -121
- package/src/components/equipment/PosParamManage.vue +0 -51
- package/src/components/server/ImageVieweTest.vue +0 -56
- package/src/components/server/ImageViewer.vue +0 -350
- package/src/components/server/PcdBuildingSelect.vue +0 -241
- package/src/filiale/dongguan/Login.vue +0 -889
- package/src/filiale/dongguan/Main.vue +0 -715
- package/src/filiale/dongguan/system.js +0 -6
- package/src/filiale/konggang/Login.vue +0 -840
- package/src/filiale/konggang/system.js +0 -7
- package/src/filiale/qianneng/ModifyPw.vue +0 -107
- package/src/filiale/qianneng/system.js +0 -7
- package/src/filiale/rizhao/LeftTree.vue +0 -111
- package/src/filiale/rizhao/Login.vue +0 -791
- package/src/filiale/rizhao/Main.vue +0 -606
- package/src/filiale/rizhao/system.js +0 -14
- package/src/filiale/yuchuan/Login.vue +0 -889
- package/src/filiale/yuchuan/Main.vue +0 -773
- package/src/filiale/yuchuan/system.js +0 -10
- 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/util/Daiban.json +0 -12
- package/static/images/lefticon//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
- package/static/logo.png +0 -0
- package/static/newStyle/about-us.png +0 -0
- package/static/rizhao.png +0 -0
- package/yarn-error.log +0 -6896
@@ -1,36 +1,29 @@
|
|
1
1
|
import Vue from 'vue'
|
2
2
|
import {HttpResetClass} from 'vue-client'
|
3
|
-
import cryptJS from './EncryptUtil'
|
4
|
-
let loginGen = async function (name, password, cue) {
|
5
|
-
let data = {name: name, password: password}
|
6
|
-
data = '$'+cryptJS.RSAEncrypt(JSON.stringify(data))
|
7
|
-
let getLogin = await Vue.resetpost('/rs/logic/getLogin', data, {resolveMsg: null, rejectMsg: null})
|
8
|
-
if (getLogin.data.states === '登录成功') {
|
9
|
-
// 调用远程登录服务,获取所有有权访问的功能
|
10
|
-
data = {username: name, password: password}
|
11
|
-
data = cryptJS.RSAEncrypt(JSON.stringify(data))
|
12
|
-
let resource = await Vue.resetpost(`/rs/user/userLogin/客服系统`, data, {
|
13
|
-
resolveMsg: null,
|
14
|
-
rejectMsg: null
|
15
|
-
})
|
16
|
-
console.log('登陆获取Util', JSON.stringify(resource.data))
|
17
|
-
Vue.$login.f = resource.data
|
18
|
-
//获取jwt
|
19
|
-
Vue.$login.jwt = getLogin.data.jwt
|
20
|
-
// 把登录用户添加到cookie里
|
21
|
-
Vue.cookie.set('loginId', Vue.$login.f.id)
|
22
3
|
|
23
|
-
|
24
|
-
|
25
|
-
|
4
|
+
let loginGen = async function (username, password, cue) {
|
5
|
+
let data = {username, password,resourceName:'客服系统'}
|
6
|
+
const getLogin = await Vue.resetpost('/api/af-auth/login', data,
|
7
|
+
{resolveMsg: null, rejectMsg: null,headerConfig:{'Content-type': "application/json"}
|
8
|
+
})
|
9
|
+
if (getLogin.data) {
|
10
|
+
//获取jwt
|
11
|
+
if (getLogin.data.resources.data && getLogin.data.resources.data.id){
|
12
|
+
Vue.$login.jwt = getLogin.data.resources.data.id
|
13
|
+
Vue.$login.f = getLogin.data.resources.data
|
14
|
+
}else {
|
15
|
+
Vue.$login.jwt = getLogin.data.resources.id
|
16
|
+
Vue.$login.f = getLogin.data.resources
|
17
|
+
}
|
18
|
+
Vue.$login.jwtNew = getLogin.data.access_token
|
19
|
+
// 把登录用户添加到cookie里
|
20
|
+
Vue.cookie.set('loginId', Vue.$login.f.id)
|
21
|
+
try {
|
22
|
+
//获取有权限的功能树
|
23
|
+
let hasRight = await Vue.resetpost(`/rs/search`, {
|
26
24
|
source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))",
|
27
25
|
userid: Vue.$login.f.id
|
28
|
-
},
|
29
|
-
{
|
30
|
-
resolveMsg: null,
|
31
|
-
rejectMsg: null
|
32
|
-
})
|
33
|
-
console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
|
26
|
+
}, { resolveMsg: null, rejectMsg: null })
|
34
27
|
//准备替换功能树
|
35
28
|
var fun=[]
|
36
29
|
hasRight.data[0].children[0].children.forEach((item) => {
|
@@ -40,8 +33,6 @@ let loginGen = async function (name, password, cue) {
|
|
40
33
|
})
|
41
34
|
}
|
42
35
|
})
|
43
|
-
// console.log('替换前', JSON.stringify(Vue.$login.f.functions))
|
44
|
-
// console.log('替换后', JSON.stringify(fun))
|
45
36
|
Vue.$login.f.functions=fun
|
46
37
|
}catch (error) {
|
47
38
|
}
|
@@ -76,22 +67,22 @@ let loginGen = async function (name, password, cue) {
|
|
76
67
|
Vue.$login.f.f_gasman = []
|
77
68
|
console.log('抄表员模块',error)
|
78
69
|
}
|
79
|
-
// 获取安装人
|
80
|
-
try {
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
}catch (error) {
|
92
|
-
|
93
|
-
|
94
|
-
}
|
70
|
+
// // 获取安装人
|
71
|
+
// try {
|
72
|
+
// let getInstallman = await Vue.resetpost('/rs/search', {
|
73
|
+
// source: 'this.getParentByType($organization$).getChildByName($安装员$).getUsers()',
|
74
|
+
// userid: Vue.$login.f.id
|
75
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
76
|
+
// console.log('获取安装员', getInstallman)
|
77
|
+
// let installman = []
|
78
|
+
// for (let i = 0; i < getInstallman.data.length; i++) {
|
79
|
+
// installman.push(getInstallman.data[i])
|
80
|
+
// }
|
81
|
+
// Vue.$login.f.f_installman = installman
|
82
|
+
// }catch (error) {
|
83
|
+
// Vue.$login.f.f_installman =[]
|
84
|
+
// console.log('安装人模块',error)
|
85
|
+
// }
|
95
86
|
// 获取换表员
|
96
87
|
// try {
|
97
88
|
// let getChangeMeterman = await Vue.resetpost('/rs/search', {
|
@@ -171,25 +162,19 @@ let loginGen = async function (name, password, cue) {
|
|
171
162
|
await proc(Vue.$login.f)
|
172
163
|
}
|
173
164
|
// 定时发送心跳
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
}
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
}
|
188
|
-
})
|
189
|
-
}
|
190
|
-
})
|
191
|
-
}, 2 * 60 * 1000)
|
192
|
-
}
|
165
|
+
setInterval(()=> {
|
166
|
+
let http = new HttpResetClass()
|
167
|
+
//暂时不出现不出现异地登录校验
|
168
|
+
http.load('POST', `rs/user/access/${Vue.$login.f.id}`, {}, {resolveMsg: null, rejectMsg: null}).then((req) => {
|
169
|
+
if(req.data.status==710){
|
170
|
+
// Vue.showMessage(req.data.msg+",您将被强制退出系统", ['confirm']).then((res) => {
|
171
|
+
// if (res === 'confirm') {
|
172
|
+
// location.reload()
|
173
|
+
// }
|
174
|
+
// })
|
175
|
+
}
|
176
|
+
})
|
177
|
+
}, 2 * 60 * 1000)
|
193
178
|
}
|
194
179
|
|
195
180
|
} else {
|
@@ -204,8 +189,6 @@ let GetLoginInfoService = {
|
|
204
189
|
afterLogin: [],
|
205
190
|
//验证码开关
|
206
191
|
Verification: true,
|
207
|
-
//登录信息展示开关
|
208
|
-
depPrompt: true,
|
209
192
|
install (Vue, options) {
|
210
193
|
// 给vue增添对话框显示方法
|
211
194
|
Vue.$login = Vue.prototype.$login = GetLoginInfoService
|
@@ -219,13 +202,9 @@ let GetLoginInfoService = {
|
|
219
202
|
* 登录
|
220
203
|
* @param name
|
221
204
|
* @param password
|
222
|
-
* @param cue true/false 是/否显示异地登录
|
223
205
|
*/
|
224
|
-
login (name, password
|
225
|
-
|
226
|
-
cue = true
|
227
|
-
}
|
228
|
-
return loginGen(name, password, cue)
|
206
|
+
login (name, password) {
|
207
|
+
return loginGen(name, password)
|
229
208
|
},
|
230
209
|
|
231
210
|
convertToIn (val) {
|
@@ -517,5 +496,4 @@ let GetLoginInfoService = {
|
|
517
496
|
return ds[0] + '-' + (nextMonth < 10 ? '0' + nextMonth : nextMonth) + '-20 00:00:00'
|
518
497
|
}
|
519
498
|
}
|
520
|
-
|
521
499
|
export default GetLoginInfoService
|
@@ -5,11 +5,3 @@ Vue.use(Validator)
|
|
5
5
|
Vue.validator('strongpassword', function (val) {
|
6
6
|
return /^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(val)
|
7
7
|
});
|
8
|
-
Vue.validator('chinesePassword', function (val) {
|
9
|
-
var testBealoon=/.*?[\u4E00-\u9FFF]+.*$/.test(val)
|
10
|
-
return !(/.*?[\u4E00-\u9FFF]+.*$/.test(val))
|
11
|
-
});
|
12
|
-
// 潜能要求8~16位数字字母组合;
|
13
|
-
Vue.validator('numbersAndLetter8to16', function (val) {
|
14
|
-
return /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(val)
|
15
|
-
});
|
package/src/project/State.js
CHANGED
package/src/stores/AppData.js
CHANGED
@@ -9,7 +9,7 @@ let GetAppDataService = {
|
|
9
9
|
|
10
10
|
// 开启卡监听
|
11
11
|
load () {
|
12
|
-
return Vue.resetpost('
|
12
|
+
return Vue.resetpost('api/af-system/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
13
13
|
res.data.singleValues.forEach((item) => {
|
14
14
|
this.singleValues[item.name] = item.value
|
15
15
|
})
|