system-clients 3.1.93 → 3.1.96-test

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.
@@ -118,6 +118,8 @@
118
118
  import Vue from 'vue'
119
119
  import {HttpResetClass} from 'vue-client'
120
120
 
121
+
122
+
121
123
  let saveGen = function *(self) {
122
124
  try {
123
125
  yield self.$login.login(self.model.ename, self.model.password)
@@ -205,23 +207,20 @@
205
207
  export default {
206
208
  title: '登录',
207
209
  async ready () {
208
- let http = new HttpResetClass()
209
- let res = await http.load('POST', 'rs/sql/singleTable',
210
- {data:{
211
- tablename: 't_changedeclare',
212
- condition: ` f_type ='变更通知' `
213
- }
214
- }, {resolveMsg: null, rejectMsg: '获取通知出错!!'})
215
- if(res.data.length>0){
216
- console.log("---------------获取通知",res.data[0].f_change_message)
217
- this.notice=res.data[0].f_change_message
218
- }
219
-
220
- if (this.$login && this.$login.getUrlCompileParames('name') && this.$login.getUrlCompileParames('password')) {
221
- this.model.ename = this.$login.getUrlCompileParames('name')
222
- this.model.password = this.$login.getUrlCompileParames('password')
223
- this.confirm()
224
- }
210
+ try{
211
+ let http = new HttpResetClass()
212
+ let res = await http.load('POST', 'rs/sql/singleTable',
213
+ {data:{
214
+ tablename: 't_changedeclare',
215
+ condition: ` f_type ='变更通知' `
216
+ }
217
+ }, {resolveMsg: null, rejectMsg: null})
218
+ if(res.data.length>0){
219
+ console.log("---------------获取通知",res.data[0].f_change_message)
220
+ this.notice=res.data[0].f_change_message
221
+ }
222
+ }catch(e){}
223
+ this.loginother();
225
224
  $('#login-button').click(function (event) {
226
225
  event.preventDefault()
227
226
  $('form').fadeOut(500)
@@ -243,7 +242,8 @@
243
242
  isMac: false,
244
243
  depPrompt: false,
245
244
  weakPassword: false,
246
- title: '燃气客服系统'
245
+ title: '燃气客服系统',
246
+ distanceLogin: false
247
247
  },
248
248
  login: false,
249
249
  depPromptShow: false,
@@ -256,10 +256,27 @@
256
256
  modifyPwShow: false,
257
257
  logoandroid:false,
258
258
  showus:false,
259
- notice:''
259
+ notice:'',
260
+ loginotherflag :true
260
261
  }
261
262
  },
262
263
  methods: {
264
+ async loginother(){
265
+ if (this.config.distanceLogin) {
266
+ if (this.$login && this.$login.getUrlParames('name') ) {
267
+ let ename = this.$login.getUrlParames('name');
268
+ let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
269
+ if(logininfo.data){
270
+ if(logininfo.data.ename && logininfo.data.password){
271
+ this.model.ename = logininfo.data.ename
272
+ this.model.password =logininfo.data.password
273
+ let gen = saveGen(this)
274
+ return co(gen)
275
+ }
276
+ }
277
+ }
278
+ }
279
+ },
263
280
  theme(){
264
281
  // var elementList = document.querySelectorAll('body');
265
282
  // console.log(elementList)
@@ -68,7 +68,7 @@ export default {
68
68
  //人员是否和部门关联
69
69
  cascade: {
70
70
  type: Boolean,
71
- default: false
71
+ default: true
72
72
  },
73
73
  selectin: {
74
74
  type: Boolean,