system-clients 1.6.65 → 1.6.66-foric
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/build.gradle +6 -6
- package/package.json +2 -1
- package/src/components/server/Login.vue +77 -38
- package/src/components/server/ResSelectGroup.vue +86 -92
- package/.npmignore +0 -9
- package/build/.npmignore +0 -1
- package/src/.npmignore +0 -1
package/build.gradle
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
version = '1.6.
|
|
2
|
-
|
|
3
|
-
task release(type:Exec) {
|
|
4
|
-
workingDir '.'
|
|
5
|
-
commandLine 'cmd', '/c', 'release.bat ' + version
|
|
6
|
-
}
|
|
1
|
+
version = '1.6.62'
|
|
2
|
+
|
|
3
|
+
task release(type:Exec) {
|
|
4
|
+
workingDir '.'
|
|
5
|
+
commandLine 'cmd', '/c', 'release.bat ' + version
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
<div class="loginbg">
|
|
3
3
|
<span class="logotitle"></span>
|
|
4
4
|
<!-- <img src="../../../static/huangtengbiaozhi.png" alt="图片加载未完成" class="img-responsive logotitle" /> -->
|
|
5
|
-
<div class="notice-board" style="height:
|
|
6
|
-
<h1 text-align="center"
|
|
7
|
-
<div style="overflow:hidden;width:500px;margin:10px "
|
|
8
|
-
<div style="overflow-y:auto;width:520px;"
|
|
9
|
-
|
|
10
|
-
</div
|
|
11
|
-
</div
|
|
12
|
-
<p>版本号:v1.0.0</p
|
|
5
|
+
<div class="notice-board" style="height:auto;text-align: center;width: auto;">
|
|
6
|
+
<h1 text-align="center">登录中...</h1>
|
|
7
|
+
<!-- <div style="overflow:hidden;width:500px;margin:10px ">-->
|
|
8
|
+
<!-- <div style="overflow-y:auto;width:520px;">-->
|
|
9
|
+
<!-- <!–<change-declare ></change-declare>–>-->
|
|
10
|
+
<!-- </div>-->
|
|
11
|
+
<!-- </div>-->
|
|
12
|
+
<!-- <p>版本号:v1.0.0</p>-->
|
|
13
13
|
</div>
|
|
14
14
|
<!--输入框-->
|
|
15
|
-
<div class="htmleaf-container"
|
|
16
|
-
|
|
17
|
-
<div class="wrapper" :class="{'form-success': login}"
|
|
18
|
-
<div class="container"
|
|
19
|
-
<h3 style="color:white;">欢迎使用</h3
|
|
20
|
-
|
|
21
|
-
<form class="form"
|
|
22
|
-
<input type="text" placeholder="用户名" v-model="model.ename" class="usericon"
|
|
23
|
-
<input type="password" placeholder="密码" v-model="model.password" class="psicon"
|
|
24
|
-
@keyup.enter="confirm('key')"
|
|
25
|
-
<input v-if="$login.Verification" style="width: 40%; display: inline" type="text" placeholder="请输入验证码"
|
|
26
|
-
v-model="picLyanzhengma" @keyup.enter="confirm('key')"
|
|
27
|
-
<input v-if="$login.Verification" style="width: 30%; display: inline;background-color: darkgray;"
|
|
28
|
-
type="button" @click="createCode" v-model="checkCode"/><br
|
|
29
|
-
<button type="button" id="login-button" @click.prevent="confirm('click')"><strong>登录</strong></button
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</form
|
|
33
|
-
</div
|
|
34
|
-
</div
|
|
35
|
-
</div
|
|
15
|
+
<!-- <div class="htmleaf-container">-->
|
|
16
|
+
<!-- <!– <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> –>-->
|
|
17
|
+
<!-- <div class="wrapper" :class="{'form-success': login}">-->
|
|
18
|
+
<!-- <div class="container">-->
|
|
19
|
+
<!-- <h3 style="color:white;">欢迎使用</h3>-->
|
|
20
|
+
<!-- <!– <h4 style="color:white;">Welcome to OA System</h4> –>-->
|
|
21
|
+
<!--<!– <form class="form">–>-->
|
|
22
|
+
<!--<!– <input type="text" placeholder="用户名" v-model="model.ename" class="usericon">–>-->
|
|
23
|
+
<!--<!– <input type="password" placeholder="密码" v-model="model.password" class="psicon"–>-->
|
|
24
|
+
<!--<!– @keyup.enter="confirm('key')">–>-->
|
|
25
|
+
<!--<!– <input v-if="$login.Verification" style="width: 40%; display: inline" type="text" placeholder="请输入验证码"–>-->
|
|
26
|
+
<!--<!– v-model="picLyanzhengma" @keyup.enter="confirm('key')">–>-->
|
|
27
|
+
<!--<!– <input v-if="$login.Verification" style="width: 30%; display: inline;background-color: darkgray;"–>-->
|
|
28
|
+
<!--<!– type="button" @click="createCode" v-model="checkCode"/><br>–>-->
|
|
29
|
+
<!--<!– <button type="button" id="login-button" @click.prevent="confirm('click')"><strong>登录</strong></button>–>-->
|
|
30
|
+
<!--<!– <!– <button type="button" id="login-button" @click.prevent="confirm()"><strong>注册</strong></button> –>–>-->
|
|
31
|
+
<!--<!– <!– <span @click="register()">还没有注册,现在注册>>></span> –>–>-->
|
|
32
|
+
<!--<!– </form>–>-->
|
|
33
|
+
<!-- </div>-->
|
|
34
|
+
<!-- </div>-->
|
|
35
|
+
<!-- </div>-->
|
|
36
36
|
<!--输入框结束-->
|
|
37
37
|
<!-- 注册模态框开始 -->
|
|
38
38
|
<!-- <modal v-ref:modal :show.sync="registerShow" :backdrop="false" class="auto">
|
|
@@ -148,16 +148,55 @@
|
|
|
148
148
|
export default {
|
|
149
149
|
title: '登录',
|
|
150
150
|
ready () {
|
|
151
|
-
if (
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
if (window.location.href.includes('ticket')) {
|
|
152
|
+
let url = window.location.href.split("?")[1]
|
|
153
|
+
let obj = {}
|
|
154
|
+
for (let params of url.split("&")) {
|
|
155
|
+
let kv = params.split("=")
|
|
156
|
+
obj[kv[0]] = kv[1]
|
|
157
|
+
}
|
|
158
|
+
let params = {
|
|
159
|
+
st: obj.ticket,
|
|
160
|
+
serviceKey: '931c5577c71047b9b58e1a7638b4e999'
|
|
161
|
+
}
|
|
162
|
+
this.$resetpost('/sso/logic/serviceValidate', params,{resolveMsg: null, rejectMsg: null}).then((re) => {
|
|
163
|
+
// this.$showMessage("re----" + JSON.stringify(re))
|
|
164
|
+
if (re.data.code === 200) {
|
|
165
|
+
let condition = `ename = '${re.data.data.userName}'`
|
|
166
|
+
this.$resetpost('rs/sql/singleTable', {data: { items: '*', tablename: 't_user', condition: condition}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
167
|
+
if (res.data && res.data.length > 0) {
|
|
168
|
+
this.model.ename = res.data[0].ename
|
|
169
|
+
this.model.password = res.data[0].password
|
|
170
|
+
// this.$showMessage("re----" + JSON.stringify(this.model))
|
|
171
|
+
let gen = saveGen(this)
|
|
172
|
+
return co(gen)
|
|
173
|
+
}
|
|
174
|
+
})
|
|
175
|
+
} else {
|
|
176
|
+
if (this.$login && this.$login.getUrlCompileParames('name') && this.$login.getUrlCompileParames('password')) {
|
|
177
|
+
this.model.ename = this.$login.getUrlCompileParames('name')
|
|
178
|
+
this.model.password = this.$login.getUrlCompileParames('password')
|
|
179
|
+
this.confirm()
|
|
180
|
+
}
|
|
181
|
+
$('#login-button').click(function (event) {
|
|
182
|
+
event.preventDefault()
|
|
183
|
+
$('form').fadeOut(500)
|
|
184
|
+
}),
|
|
185
|
+
this.createCode()
|
|
186
|
+
}
|
|
187
|
+
})
|
|
188
|
+
} else {
|
|
189
|
+
if (this.$login && this.$login.getUrlCompileParames('name') && this.$login.getUrlCompileParames('password')) {
|
|
190
|
+
this.model.ename = this.$login.getUrlCompileParames('name')
|
|
191
|
+
this.model.password = this.$login.getUrlCompileParames('password')
|
|
192
|
+
this.confirm()
|
|
193
|
+
}
|
|
194
|
+
$('#login-button').click(function (event) {
|
|
195
|
+
event.preventDefault()
|
|
196
|
+
$('form').fadeOut(500)
|
|
197
|
+
}),
|
|
198
|
+
this.createCode()
|
|
155
199
|
}
|
|
156
|
-
$('#login-button').click(function (event) {
|
|
157
|
-
event.preventDefault()
|
|
158
|
-
$('form').fadeOut(500)
|
|
159
|
-
}),
|
|
160
|
-
this.createCode()
|
|
161
200
|
},
|
|
162
201
|
data () {
|
|
163
202
|
return {
|
|
@@ -1,92 +1,86 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="style">
|
|
3
|
-
<label class="control-label">公司 </label>
|
|
4
|
-
<right-tree @re-res="getorg"></right-tree>
|
|
5
|
-
</div>
|
|
6
|
-
<div :class="style">
|
|
7
|
-
<label class="control-label">部门 </label>
|
|
8
|
-
<res-select restype='department'
|
|
9
|
-
@res-select="getdep"
|
|
10
|
-
:parentresid="depresid"
|
|
11
|
-
:initresid='initresid'
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
this
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
console.log("
|
|
72
|
-
this.
|
|
73
|
-
this.
|
|
74
|
-
this.returnOrg();
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
this.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
watch: {
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
}
|
|
92
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="style">
|
|
3
|
+
<label class="control-label">公司 </label>
|
|
4
|
+
<right-tree @re-res="getorg"></right-tree>
|
|
5
|
+
</div>
|
|
6
|
+
<div :class="style">
|
|
7
|
+
<label class="control-label">部门 </label>
|
|
8
|
+
<res-select restype='department'
|
|
9
|
+
@res-select="getdep"
|
|
10
|
+
:parentresid="depresid"
|
|
11
|
+
:initresid='initresid'>
|
|
12
|
+
</res-select>
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
<div :class="style">
|
|
16
|
+
<label class="control-label">人员 </label>
|
|
17
|
+
<res-select restype='user'
|
|
18
|
+
@res-select="getuser"
|
|
19
|
+
:parentresid="userresid"
|
|
20
|
+
:initresid='initresid'>
|
|
21
|
+
</res-select>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
<script>
|
|
25
|
+
import plugin from '../../plugins/GetLoginInfoService'
|
|
26
|
+
export default {
|
|
27
|
+
title: '资源选择测试',
|
|
28
|
+
props: {
|
|
29
|
+
style: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: 'col-sm-2 form-group form-input-group form-fix-width'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
data () {
|
|
35
|
+
return {
|
|
36
|
+
orgresid:[this.$login.f.orgid],
|
|
37
|
+
depresid:[],
|
|
38
|
+
userresid:[],
|
|
39
|
+
obj:{
|
|
40
|
+
orgnames:[],
|
|
41
|
+
depnames:[],
|
|
42
|
+
operatornames:[]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
ready () {
|
|
47
|
+
console.log('开始获取组织结构。。。')
|
|
48
|
+
},
|
|
49
|
+
methods:{
|
|
50
|
+
returnOrg(ids){
|
|
51
|
+
let condition;
|
|
52
|
+
if(this.depresid.length > 0)
|
|
53
|
+
condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
|
|
54
|
+
else
|
|
55
|
+
condition = " and f_orgid = " + this.$login.f.orgid;
|
|
56
|
+
if(this.userresid.length > 0){
|
|
57
|
+
condition += " and f_depid in " + plugin.convertToIn(this.userresid);
|
|
58
|
+
}
|
|
59
|
+
if(ids && ids.length > 0){
|
|
60
|
+
condition += " and f_operatorid in " + plugin.convertToIn(ids);
|
|
61
|
+
}
|
|
62
|
+
this.$dispatch('re-res',condition,this.obj)
|
|
63
|
+
},
|
|
64
|
+
getorg (obj) {
|
|
65
|
+
console.log("选中公司的数据11",obj.resids)
|
|
66
|
+
this.depresid=obj.resids
|
|
67
|
+
this.obj.orgnames = obj.res
|
|
68
|
+
this.returnOrg();
|
|
69
|
+
},
|
|
70
|
+
getdep(obj,val) {
|
|
71
|
+
console.log("选中部门的数据22",obj)
|
|
72
|
+
this.obj.depnames = val
|
|
73
|
+
this.userresid=obj
|
|
74
|
+
this.returnOrg();
|
|
75
|
+
},
|
|
76
|
+
getuser(obj) {
|
|
77
|
+
this.obj.operatornames = obj
|
|
78
|
+
console.log("选中用户的数据33",obj)
|
|
79
|
+
this.returnOrg(obj);
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
watch: {
|
|
83
|
+
|
|
84
|
+
},
|
|
85
|
+
}
|
|
86
|
+
</script>
|
package/.npmignore
DELETED
package/build/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/dev-server.js
|
package/src/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/main.js
|