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 CHANGED
@@ -1,6 +1,6 @@
1
- version = '1.6.65'
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
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "1.6.65",
3
+ "version": "1.6.66-foric",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
7
+ "doc": "doc",
7
8
  "example": "examples",
8
9
  "test": "test"
9
10
  },
@@ -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:40%;">
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>
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
+ <!-- &lt;!&ndash;<change-declare ></change-declare>&ndash;&gt;-->
10
+ <!-- </div>-->
11
+ <!-- </div>-->
12
+ <!-- <p>版本号:v1.0.0</p>-->
13
13
  </div>
14
14
  <!--输入框-->
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>
15
+ <!-- <div class="htmleaf-container">-->
16
+ <!-- &lt;!&ndash; <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> &ndash;&gt;-->
17
+ <!-- <div class="wrapper" :class="{'form-success': login}">-->
18
+ <!-- <div class="container">-->
19
+ <!-- <h3 style="color:white;">欢迎使用</h3>-->
20
+ <!-- &lt;!&ndash; <h4 style="color:white;">Welcome to OA System</h4> &ndash;&gt;-->
21
+ <!--&lt;!&ndash; <form class="form">&ndash;&gt;-->
22
+ <!--&lt;!&ndash; <input type="text" placeholder="用户名" v-model="model.ename" class="usericon">&ndash;&gt;-->
23
+ <!--&lt;!&ndash; <input type="password" placeholder="密码" v-model="model.password" class="psicon"&ndash;&gt;-->
24
+ <!--&lt;!&ndash; @keyup.enter="confirm('key')">&ndash;&gt;-->
25
+ <!--&lt;!&ndash; <input v-if="$login.Verification" style="width: 40%; display: inline" type="text" placeholder="请输入验证码"&ndash;&gt;-->
26
+ <!--&lt;!&ndash; v-model="picLyanzhengma" @keyup.enter="confirm('key')">&ndash;&gt;-->
27
+ <!--&lt;!&ndash; <input v-if="$login.Verification" style="width: 30%; display: inline;background-color: darkgray;"&ndash;&gt;-->
28
+ <!--&lt;!&ndash; type="button" @click="createCode" v-model="checkCode"/><br>&ndash;&gt;-->
29
+ <!--&lt;!&ndash; <button type="button" id="login-button" @click.prevent="confirm('click')"><strong>登录</strong></button>&ndash;&gt;-->
30
+ <!--&lt;!&ndash; &lt;!&ndash; <button type="button" id="login-button" @click.prevent="confirm()"><strong>注册</strong></button> &ndash;&gt;&ndash;&gt;-->
31
+ <!--&lt;!&ndash; &lt;!&ndash; <span @click="register()">还没有注册,现在注册>>></span> &ndash;&gt;&ndash;&gt;-->
32
+ <!--&lt;!&ndash; </form>&ndash;&gt;-->
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 (this.$login && this.$login.getUrlCompileParames('name') && this.$login.getUrlCompileParames('password')) {
152
- this.model.ename = this.$login.getUrlCompileParames('name')
153
- this.model.password = this.$login.getUrlCompileParames('password')
154
- this.confirm()
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
- :is-mul="mul">
13
- </res-select>
14
-
15
- </div>
16
- <div :class="style">
17
- <label class="control-label">人员 </label>
18
- <res-select restype='user'
19
- @res-select="getuser"
20
- :parentresid="userresid"
21
- :initresid='initresid'
22
- :is-mul="mul">
23
- </res-select>
24
- </div>
25
- </template>
26
- <script>
27
- import plugin from '../../plugins/GetLoginInfoService'
28
- export default {
29
- title: '资源选择测试',
30
- props: {
31
- style: {
32
- type: String,
33
- default: 'col-sm-2 form-group form-input-group form-fix-width'
34
- },
35
- mul: {
36
- type: Boolean,
37
- default: true
38
- },
39
- },
40
- data () {
41
- return {
42
- orgresid:[this.$login.f.orgid],
43
- depresid:[],
44
- userresid:[],
45
- obj:{
46
- orgnames:[],
47
- depnames:[],
48
- operatornames:[]
49
- }
50
- }
51
- },
52
- ready () {
53
- console.log('开始获取组织结构。。。')
54
- },
55
- methods:{
56
- returnOrg(ids){
57
- let condition;
58
- if(this.depresid.length > 0)
59
- condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
60
- else
61
- condition = " and f_orgid = " + this.$login.f.orgid;
62
- if(this.userresid.length > 0){
63
- condition += " and f_depid in " + plugin.convertToIn(this.userresid);
64
- }
65
- if(ids && ids.length > 0){
66
- condition += " and f_operatorid in " + plugin.convertToIn(ids);
67
- }
68
- this.$dispatch('re-res',condition,this.obj)
69
- },
70
- getorg (obj) {
71
- console.log("选中公司的数据11",obj.resids)
72
- this.depresid=obj.resids
73
- this.obj.orgnames = obj.res
74
- this.returnOrg();
75
- },
76
- getdep(obj,val) {
77
- console.log("选中部门的数据22",obj)
78
- this.obj.depnames = val
79
- this.userresid=obj
80
- this.returnOrg();
81
- },
82
- getuser(obj) {
83
- this.obj.operatornames = obj
84
- console.log("选中用户的数据33",obj)
85
- this.returnOrg(obj);
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
@@ -1,9 +0,0 @@
1
- .idea/
2
- .DS_Store
3
- node_modules/
4
- dist/static/*.map
5
- npm-debug.log
6
- selenium-debug.log
7
- test/unit/coverage
8
- test/e2e/reports
9
- yarn.lock
package/build/.npmignore DELETED
@@ -1 +0,0 @@
1
- /dev-server.js
package/src/.npmignore DELETED
@@ -1 +0,0 @@
1
- /main.js