centaline-data-driven 1.3.37 → 1.3.40

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.
@@ -5,10 +5,10 @@ import common from '../../../common';
5
5
  import Router from './Router';
6
6
  import Vue from 'vue';
7
7
  import formData from '../../../formData';
8
- const ContactList = function (source,para ,callBack) {
8
+ const ContactList = function (source, para, callBack) {
9
9
  var init = function (data) {
10
10
  var rtn = {
11
- $vue: null,
11
+ $vue: null,
12
12
  _buttons: null,
13
13
  _actionRouter: null,
14
14
  _rowRouter: null,
@@ -21,10 +21,10 @@ const ContactList = function (source,para ,callBack) {
21
21
  isMergeTitle: false,//是否合并标题
22
22
  selectIndex: 0,
23
23
  formData: formData,
24
- rowHiddenKey:'contactID',
25
- rowHiddenColumns:['contactNameDesc','propertyIdentityTypeID'],
26
- columnShow:'contactNoTypeDesc',
27
- rowHiddenKeyData:[],
24
+ rowHiddenKey: 'contactID',
25
+ rowHiddenColumns: ['contactNameDesc', 'propertyIdentityTypeID'],
26
+ columnShow: 'contactNoTypeDesc',
27
+ rowHiddenKeyData: [],
28
28
  attrs: {
29
29
  size: 'mini'
30
30
  },
@@ -43,6 +43,7 @@ const ContactList = function (source,para ,callBack) {
43
43
  rtn._buttons = [];
44
44
  data.content.toolButtons.forEach((v) => {
45
45
  var button = Router(v);
46
+ button.key = Math.random().toString();
46
47
  button.is = "ct-btn";
47
48
  button.attrs = { size: "mini", class: 'max-btn-gray' }
48
49
  rtn._buttons.push(button);
@@ -50,7 +51,7 @@ const ContactList = function (source,para ,callBack) {
50
51
  }
51
52
  return rtn._buttons;
52
53
  }
53
- },
54
+ },
54
55
  get actionRouter() {
55
56
  if (rtn._actionRouter !== null) {
56
57
  return rtn._actionRouter;
@@ -83,20 +84,20 @@ const ContactList = function (source,para ,callBack) {
83
84
  }
84
85
  return rtn._rowRouter;
85
86
  }
86
- },
87
+ },
87
88
  get listData() {
88
- if (rtn._listData.length<=0) {
89
- if(data.content.rows && data.content.rows.length>0){
90
- data.content.rows.forEach((v,i) => {
89
+ if (rtn._listData.length <= 0) {
90
+ if (data.content.rows && data.content.rows.length > 0) {
91
+ data.content.rows.forEach((v, i) => {
91
92
  rtn._listData.push(v);
92
- if(v.descNewRow){
93
- var newRow = {};
94
- newRow[rtn.rowHiddenKey]=v[rtn.rowHiddenKey];
95
- newRow.descNewRow = v.descNewRow;
96
- newRow.colspan = rtn.dataFieldcolumnsShow.length-rtn.rowMergedColumns.length;
97
- newRow.columnShow=rtn.columnShow;
98
- newRow.flagRow=true;
99
- rtn._listData.push(newRow);
93
+ if (v.descNewRow) {
94
+ var newRow = {};
95
+ newRow[rtn.rowHiddenKey] = v[rtn.rowHiddenKey];
96
+ newRow.descNewRow = v.descNewRow;
97
+ newRow.colspan = rtn.dataFieldcolumnsShow.length - rtn.rowMergedColumns.length;
98
+ newRow.columnShow = rtn.columnShow;
99
+ newRow.flagRow = true;
100
+ rtn._listData.push(newRow);
100
101
  }
101
102
  });
102
103
  }
@@ -105,7 +106,7 @@ const ContactList = function (source,para ,callBack) {
105
106
  },
106
107
  set listData(v) {
107
108
  if (v) {
108
- rtn._listData=v;
109
+ rtn._listData = v;
109
110
  }
110
111
  },
111
112
  get columns() {
@@ -180,7 +181,7 @@ const ContactList = function (source,para ,callBack) {
180
181
  if (col._router !== null) {
181
182
  return col._router;
182
183
  }
183
- if (typeof v.routerKey !== "undefined" && v.routerKey && v.routerKey.indexOf(',')===-1) {
184
+ if (typeof v.routerKey !== "undefined" && v.routerKey && v.routerKey.indexOf(',') === -1) {
184
185
  let router = rtn.actionRouter.find(b => {
185
186
  return b.id === v.routerKey;
186
187
  });
@@ -194,8 +195,8 @@ const ContactList = function (source,para ,callBack) {
194
195
  return col._routers;
195
196
  }
196
197
  if (typeof v.routerKey !== "undefined" && v.routerKey) {
197
- col._routers=[];
198
- v.routerKey.split(',').forEach((v) => {
198
+ col._routers = [];
199
+ v.routerKey.split(',').forEach((v) => {
199
200
  let router = rtn.actionRouter.find(b => {
200
201
  return b.id === v;
201
202
  });
@@ -308,7 +309,7 @@ const ContactList = function (source,para ,callBack) {
308
309
  self._dataFieldcolumns = arr;
309
310
  return self._dataFieldcolumns;
310
311
  }
311
- },
312
+ },
312
313
  get dataFieldcolumnsShow() {
313
314
  var self = this;
314
315
  if (self._dataFieldcolumnsShow.length > 0) {
@@ -329,10 +330,10 @@ const ContactList = function (source,para ,callBack) {
329
330
  get apiRouter() {
330
331
  return source.apiRouter;
331
332
  },
332
- getCurrentRowApiData(rtnData,router) {
333
+ getCurrentRowApiData(rtnData, router, callBack) {
333
334
  var self = this;
334
335
  var searchFields = self.apiRouter.getSearchPara();
335
- var searchValue1=router.flagAddRowAfterAction? rtnData.content: rtn.listData[rtn.selectIndex][self.primaryKey];
336
+ var searchValue1 = router.flagAddRowAfterAction ? rtnData.content : rtn.listData[rtn.selectIndex][self.primaryKey];
336
337
  if (self.primaryKey) {
337
338
  searchFields.fields.push({
338
339
  fieldName1: self.primaryFieldMappingDBName ? self.primaryFieldMappingDBName : self.primaryKey,
@@ -350,41 +351,47 @@ const ContactList = function (source,para ,callBack) {
350
351
  flagSearch: true
351
352
  }
352
353
  })
353
- .then(function (response) {
354
- if (response.rtnCode === Enum.ReturnCode.Successful) {
355
- if (response.content.rows.length > 0) {
356
- if(router.flagAddRowAfterAction){
357
- rtn.doNew(response.content.rows);
354
+ .then(function (response) {
355
+ if (response.rtnCode === Enum.ReturnCode.Successful) {
356
+ if (response.notification == Enum.ActionType.Refersh) {
357
+ var rtn = init(response);
358
+ if (callBack) {
359
+ callBack(rtn);
360
+ }
358
361
  }
359
- else{
360
- rtn.doUpdate(response.content.rows,searchValue1);
362
+ else if (response.content.rows.length > 0) {
363
+ if (router.flagAddRowAfterAction) {
364
+ rtn.doNew(response.content.rows);
365
+ }
366
+ else {
367
+ rtn.doUpdate(response.content.rows, searchValue1);
368
+ }
361
369
  }
362
370
  }
363
- }
364
- })
365
- .catch((error) => {
366
- });
371
+ })
372
+ .catch((error) => {
373
+ });
367
374
  },
368
- doAction(response,field) {
375
+ doAction(response, field) {
369
376
  if (response.responseData) {
370
377
  response = response.responseData;
371
378
  }
372
- if(field.flagFreshCurrentRow || field.flagAddRowAfterAction){
373
- rtn.getCurrentRowApiData(response,field);
379
+ if (field.flagFreshCurrentRow || field.flagAddRowAfterAction) {
380
+ rtn.getCurrentRowApiData(response, field);
374
381
  }
375
- else{
382
+ else {
376
383
  switch (response.notification) {
377
384
  case Enum.ActionType.Delete://删除
378
385
  case Enum.ActionType.CloseTabThenDelete://删除
379
386
  var deleteRow = response.content.split(',');
380
387
  if (deleteRow) {
381
388
  deleteRow.forEach((r) => {
382
- let strat=-1;
383
- let count=0;
384
- rtn._listData.forEach((v,i) => {
385
- if(v[rtn.rowHiddenKey]===r){
386
- if(strat===-1)strat=i;
387
- count=count+1;
389
+ let strat = -1;
390
+ let count = 0;
391
+ rtn._listData.forEach((v, i) => {
392
+ if (v[rtn.rowHiddenKey] === r) {
393
+ if (strat === -1) strat = i;
394
+ count = count + 1;
388
395
  }
389
396
  });
390
397
  rtn._listData.splice(strat, count);
@@ -393,12 +400,15 @@ const ContactList = function (source,para ,callBack) {
393
400
  break;
394
401
  case Enum.ActionType.New://新增
395
402
  case Enum.ActionType.CloseTabThenNew://新增
396
- rtn.doNew(response.content);
403
+ rtn.doNew(response.content);
404
+ break;
405
+ case Enum.ActionType.Refersh: //刷新
406
+ rtn.getCurrentRowApiData(response, field, rtn.$vue.load);
397
407
  break;
398
408
  case Enum.ActionType.Update://修改
399
409
  case Enum.ActionType.CloseTabThenUpdate://修改
400
- var searchValue1=rtn.listData[rtn.selectIndex][self.primaryKey];
401
- rtn.doUpdate(response.content,searchValue1);
410
+ var searchValue1 = rtn.listData[rtn.selectIndex][self.primaryKey];
411
+ rtn.doUpdate(response.content, searchValue1);
402
412
  break;
403
413
  default:
404
414
  break;
@@ -406,60 +416,60 @@ const ContactList = function (source,para ,callBack) {
406
416
  }
407
417
  rtn.$vue.$forceUpdate();
408
418
  },
409
- doNew(data){
419
+ doNew(data) {
410
420
  data.forEach((v) => {
411
- if(v.descNewRow){
421
+ if (v.descNewRow) {
412
422
  var newRow = {};
413
- newRow[rtn.rowHiddenKey]=v[rtn.rowHiddenKey];
423
+ newRow[rtn.rowHiddenKey] = v[rtn.rowHiddenKey];
414
424
  newRow.descNewRow = v.descNewRow;
415
- newRow.colspan = rtn.dataFieldcolumnsShow.length-rtn.rowMergedColumns.length;
416
- newRow.columnShow=rtn.columnShow;
417
- newRow.flagRow=true;
425
+ newRow.colspan = rtn.dataFieldcolumnsShow.length - rtn.rowMergedColumns.length;
426
+ newRow.columnShow = rtn.columnShow;
427
+ newRow.flagRow = true;
418
428
  rtn._listData.unshift(newRow);
419
429
  }
420
430
  rtn._listData.unshift(v);
421
431
  });
422
432
  rtn.setHiddenRow();
423
433
  },
424
- doUpdate(data,searchValue1){
425
- let updateData=[];
434
+ doUpdate(data, searchValue1) {
435
+ let updateData = [];
426
436
  data.forEach((v) => {
427
437
  updateData.push(v);
428
- if(v.descNewRow){
438
+ if (v.descNewRow) {
429
439
  var newRow = {};
430
- newRow[rtn.rowHiddenKey]=v[rtn.rowHiddenKey];
440
+ newRow[rtn.rowHiddenKey] = v[rtn.rowHiddenKey];
431
441
  newRow.descNewRow = v.descNewRow;
432
- newRow.colspan = rtn.dataFieldcolumnsShow.length-rtn.rowMergedColumns.length;
433
- newRow.columnShow=rtn.columnShow;
434
- newRow.flagRow=true;
442
+ newRow.colspan = rtn.dataFieldcolumnsShow.length - rtn.rowMergedColumns.length;
443
+ newRow.columnShow = rtn.columnShow;
444
+ newRow.flagRow = true;
435
445
  updateData.push(newRow);
436
446
  }
437
447
  });
438
- let strat=-1;
439
- let count=0;
440
- rtn._listData.forEach((v,i) => {
441
- if(v[rtn.rowHiddenKey]===searchValue1){
442
- if(strat===-1)strat=i;
443
- count=count+1;
448
+ let strat = -1;
449
+ let count = 0;
450
+ rtn._listData.forEach((v, i) => {
451
+ if (v[rtn.rowHiddenKey] === searchValue1) {
452
+ if (strat === -1) strat = i;
453
+ count = count + 1;
444
454
  }
445
455
  });
446
- if(updateData.length===1){
447
- rtn._listData.splice(strat, count,updateData[0]);
448
- }
449
- else if(updateData.length===2){
450
- rtn._listData.splice(strat, count,updateData[0],updateData[1]);
451
- }
452
- else if(updateData.length===3){
453
- rtn._listData.splice(strat, count,updateData[0],updateData[1],updateData[2]);
454
- }
455
- else if(updateData.length===4){
456
- rtn._listData.splice(strat, count,updateData[0],updateData[1],updateData[2],updateData[3]);
457
- }
458
- else if(updateData.length===5){
459
- rtn._listData.splice(strat, count,updateData[0],updateData[1],updateData[2],updateData[3],updateData[4]);
460
- }
461
- else if(updateData.length===6){
462
- rtn._listData.splice(strat, count,updateData[0],updateData[1],updateData[2],updateData[3],updateData[4],updateData[5]);
456
+ if (updateData.length === 1) {
457
+ rtn._listData.splice(strat, count, updateData[0]);
458
+ }
459
+ else if (updateData.length === 2) {
460
+ rtn._listData.splice(strat, count, updateData[0], updateData[1]);
461
+ }
462
+ else if (updateData.length === 3) {
463
+ rtn._listData.splice(strat, count, updateData[0], updateData[1], updateData[2]);
464
+ }
465
+ else if (updateData.length === 4) {
466
+ rtn._listData.splice(strat, count, updateData[0], updateData[1], updateData[2], updateData[3]);
467
+ }
468
+ else if (updateData.length === 5) {
469
+ rtn._listData.splice(strat, count, updateData[0], updateData[1], updateData[2], updateData[3], updateData[4]);
470
+ }
471
+ else if (updateData.length === 6) {
472
+ rtn._listData.splice(strat, count, updateData[0], updateData[1], updateData[2], updateData[3], updateData[4], updateData[5]);
463
473
  }
464
474
  rtn.setHiddenRow();
465
475
  },
@@ -494,39 +504,39 @@ const ContactList = function (source,para ,callBack) {
494
504
  return c;
495
505
  },
496
506
  setHiddenRow() {
497
- if (rtn.rowHiddenColumns.length===0) {
507
+ if (rtn.rowHiddenColumns.length === 0) {
498
508
  return;
499
509
  }
500
- let lastKey='';
501
- let count=1;
502
- let firstIndex=0;
503
- rtn.rowHiddenKeyData=[];
510
+ let lastKey = '';
511
+ let count = 1;
512
+ let firstIndex = 0;
513
+ rtn.rowHiddenKeyData = [];
504
514
  for (let i = 0; i < rtn.listData.length; i++) {
505
- if(!rtn.rowHiddenKeyData.includes(rtn.listData[i][rtn.rowHiddenKey])){
515
+ if (!rtn.rowHiddenKeyData.includes(rtn.listData[i][rtn.rowHiddenKey])) {
506
516
  rtn.rowHiddenKeyData.push(rtn.listData[i][rtn.rowHiddenKey])
507
517
  }
508
- rtn.listData[i].$rowspan=0;
509
- if(lastKey){
510
- if(rtn.listData[i][rtn.rowHiddenKey]){
511
- if(rtn.listData[i][rtn.rowHiddenKey]===lastKey){
512
- rtn.listData[i].rowHiddenColumns=rtn.rowHiddenColumns;
518
+ rtn.listData[i].$rowspan = 0;
519
+ if (lastKey) {
520
+ if (rtn.listData[i][rtn.rowHiddenKey]) {
521
+ if (rtn.listData[i][rtn.rowHiddenKey] === lastKey) {
522
+ rtn.listData[i].rowHiddenColumns = rtn.rowHiddenColumns;
513
523
  count++;
514
- if(i===rtn.listData.length-1){
515
- rtn.listData[firstIndex].$rowspan=count;
524
+ if (i === rtn.listData.length - 1) {
525
+ rtn.listData[firstIndex].$rowspan = count;
516
526
  }
517
527
  }
518
- else{
519
- rtn.listData[firstIndex].$rowspan=count;
520
- lastKey=rtn.listData[i][rtn.rowHiddenKey];
521
- count=1;
522
- firstIndex=i;
528
+ else {
529
+ rtn.listData[firstIndex].$rowspan = count;
530
+ lastKey = rtn.listData[i][rtn.rowHiddenKey];
531
+ count = 1;
532
+ firstIndex = i;
523
533
  }
524
534
  }
525
535
  }
526
- else{
527
- lastKey=rtn.listData[i][rtn.rowHiddenKey];
528
- count=1;
529
- firstIndex=i;
536
+ else {
537
+ lastKey = rtn.listData[i][rtn.rowHiddenKey];
538
+ count = 1;
539
+ firstIndex = i;
530
540
  }
531
541
  }
532
542
  },
@@ -534,7 +544,7 @@ const ContactList = function (source,para ,callBack) {
534
544
  return rtn;
535
545
  }
536
546
  if (typeof source === 'string') {
537
- Vue.prototype.$api.postHandler(common.globalUri(), { action: source,para:para}).then(
547
+ Vue.prototype.$api.postHandler(common.globalUri(), { action: source, para: para }).then(
538
548
  function (response) {
539
549
  if (response.rtnCode === Enum.ReturnCode.Successful) {
540
550
  var rtn = init(response);
@@ -469,6 +469,25 @@ const Detail = function (source, para, callBack) {
469
469
  get shortcutFollowForm() {
470
470
  return data.shortcutFollowForm;
471
471
  },
472
+ getAction(api, submitData, callback) {
473
+ Vue.prototype.$api.postHandler(common.globalUri(), {
474
+ action: api,
475
+ para: submitData
476
+ })
477
+ .then(function (response) {
478
+ if (response.rtnCode === Enum.ReturnCode.Successful) {
479
+ if (typeof callback !== 'undefined') {
480
+ callback(response.content);
481
+ }
482
+ }
483
+ })
484
+ .catch((error) => {
485
+ console.error(error);
486
+ if (typeof callback !== 'undefined') {
487
+ callback();
488
+ }
489
+ });
490
+ },
472
491
  doAction(response, field) {
473
492
  if (response.responseData) {
474
493
  response = response.responseData;
@@ -349,7 +349,7 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
349
349
  rowNum = rowNum !== null ? rowNum : data.listData.currentRowIndex;
350
350
 
351
351
  //若该行正在编辑,则取编辑状态的。
352
- if (data && data.listData && data.listData.currentRow.data && data.listData.currentRow.data[fiedlId]
352
+ if (data && data.listData && data.listData.currentRow.data && data.listData.currentRow.data[fiedlId] && rowNum>-1
353
353
  && data.listData.currentRow.data.$sourceIndex === data.listData.source.rows[rowNum].$sourceIndex && data.listData.currentRow.isSet) {
354
354
  if(fiedlId=='deleted' || fiedlId=='flagDeleted'){
355
355
  return data.listData.currentRow.data.deleted || false;
@@ -392,14 +392,18 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
392
392
  if (data) {
393
393
  if (data.field) {
394
394
  data.field.source[attrName] = value;
395
- data.listData.updateListField(data.listData.$self.$refs.FieldsLabel, rowNum, fiedlId);
395
+ data.listData.updateListField(data.listData.$self.$refs.FieldsLabel, data.listData.source.rows[rowNum].$sourceIndex, fiedlId);
396
396
  }
397
397
 
398
398
  //正在编辑的行
399
- if (data.listData.currentRow.data && data.listData.currentRow.data[fiedlId]
399
+ if (data.listData.currentRow.data && data.listData.currentRow.data[fiedlId] && rowNum>-1
400
400
  && data.listData.currentRow.data.$sourceIndex === data.listData.source.rows[rowNum].$sourceIndex) {
401
401
  let currentField = data.listData.currentRow.data[fiedlId];
402
402
  currentField.source[attrName] = value;
403
+ // if (typeof currentField.self.$set === "function") {
404
+ // currentField.self.$set(currentField,attrName,value);
405
+ // }
406
+ data.listData.currentRow.data[fiedlId].rowKey=Math.random();
403
407
  //校验自己
404
408
  if (currentField.self && currentField.self.validExcute) {
405
409
  currentField.self.validExcute();
@@ -168,6 +168,7 @@ const FormList = function (source, master) {
168
168
  }
169
169
  if (item instanceof Object) {
170
170
  item.form = rtn.form;
171
+ item.rowKey=Math.random();
171
172
  row.field.push(item);
172
173
  }
173
174
  });
@@ -227,6 +228,7 @@ const FormList = function (source, master) {
227
228
  let rowData = rtn.initRow(JSON.parse(JSON.stringify(sourceRow)));
228
229
  for (let j = 0; j < rowData.field.length; j++) {//遍历每一列
229
230
  row[rowData.field[j].id] = rowData.field[j];
231
+ row[rowData.field[j].id].rowKey=Math.random();
230
232
  }
231
233
  row.$sourceIndex = sourceRow.$sourceIndex+"";
232
234
  return row;
@@ -257,6 +259,7 @@ const FormList = function (source, master) {
257
259
  }
258
260
  });
259
261
  if (ref) {
262
+ ref.vmodel.rowKey=Math.random(),
260
263
  ref.$forceUpdate();
261
264
  }
262
265
  }
@@ -328,7 +331,7 @@ const FormList = function (source, master) {
328
331
  self.currentRowIndex=index;
329
332
  var dialogOption = {
330
333
  title: '修改',
331
- pane: common.getParentPane(self),
334
+ pane: common.getParentPane(self.$self),
332
335
  content: [{
333
336
  component: 'ct-form',
334
337
  attrs: {
@@ -336,7 +339,7 @@ const FormList = function (source, master) {
336
339
  scripts: source.scripts,
337
340
  parameterAction: self.OptApi,
338
341
  fields: JSON.parse(JSON.stringify(source.rows[index].columns)),
339
- colSpan: 1,
342
+ colSpan: rtn.pageColumns,
340
343
  buttons: [
341
344
  {
342
345
  "key": "test1",
@@ -345,8 +348,8 @@ const FormList = function (source, master) {
345
348
  }
346
349
  ]
347
350
  },
348
- width:'500px',
349
- height: '400px'
351
+ width: rtn.pageWidth+'px',
352
+ height: rtn.pageHeight+'px'
350
353
  },
351
354
  on: {
352
355
  submit: function (ev) {
@@ -618,7 +621,16 @@ const FormList = function (source, master) {
618
621
  return button;
619
622
  }
620
623
  return null;
621
- }
624
+ },
625
+ get pageWidth() {
626
+ return source.pageWidth || 500;
627
+ },
628
+ get pageHeight() {
629
+ return source.pageHeight || 400;
630
+ },
631
+ get pageColumns() {
632
+ return source.pageColumns || 1;
633
+ },
622
634
  };
623
635
  return rtn;
624
636
  };
@@ -38,6 +38,13 @@ const Tags = function (source, moreActionRouter) {
38
38
  return source.code1;
39
39
  },
40
40
  set text(v) {
41
+
42
+ //由于tags存的数据都是json对象 所以如果传进来的数据是string类型则 需要转成对象
43
+ if(typeof v=="string")
44
+ {
45
+ v=JSON.parse(v);
46
+ }
47
+
41
48
  if (source.code1 !== '') {
42
49
  var tempV1 = JSON.parse(source.code1);
43
50
  tempV1.forEach((v1) => {
@@ -68,6 +75,7 @@ const Tags = function (source, moreActionRouter) {
68
75
  return '';
69
76
  },
70
77
  get labelValue() {
78
+
71
79
  if (source.code1) {
72
80
  var rtnLabelValue = '';
73
81
  JSON.parse(source.code1).forEach((op) => {
package/src/main.js CHANGED
@@ -13,10 +13,10 @@ Vue.use(ElementUI, { size: 'mini'});
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
15
  // baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
- baseUrl: "http://10.88.23.22:9999/v1/form/router",
17
- // baseUrl: "http://tjcptest.centaline.com.cn/",
18
- // baseUrl: "http://10.88.22.69:8080/",
19
- // flagRouterSelf: true,
16
+ // baseUrl: "http://10.88.23.22:9999/v1/form/router",
17
+ baseUrl: "http://tjcptest.centaline.com.cn/",
18
+ // baseUrl: "http://10.88.22.40:8080/",
19
+ flagRouterSelf: true,
20
20
  zindex: 999,
21
21
  showRequestSuccessMessage: true,
22
22
  showRequestErrorMessage: true,
@@ -41,7 +41,7 @@ Vue.use(centaline, {
41
41
  // 获取请求头
42
42
  getRequestHeaders: function () {
43
43
  return {
44
- oldToken: 'a0c6a2be-f79e-47ea-8490-212d5f4f4ff4',
44
+ oldToken: '012d6b6a-db4b-47b1-b4ee-fea22af4f4fb',
45
45
  originalRequestURL: 'http://10.88.22.67:8080',
46
46
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
47
47
  Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE2OGI1YThjLThiZTUtNDQyZi04NTA4LWMyODY4N2NkYmEzMSJ9.Rk26QdZSUzDVdjdRxGxDApOt5W6KYjmyjmsXpWeZb5E5NwZjpXnHYwhYkKjNxIeyg--OV2UrzFa2SxGzZ-Wneg',