centaline-data-driven-v3 0.0.89 → 0.0.90

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/src/main.js CHANGED
@@ -30,7 +30,7 @@ app.use(centaline, {
30
30
  //baseUrl: "http://10.1.245.111:38028/",
31
31
 
32
32
  flagRouterSelf: true,
33
- flagApp: false,//是否app端
33
+ flagApp: true,//是否app端
34
34
  zindex: 999,
35
35
  showRequestSuccessMessage: true,
36
36
  showRequestErrorMessage: true,
@@ -68,7 +68,7 @@ app.use(centaline, {
68
68
  //authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
69
69
  //oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
70
70
  //authObject: '{token:"1-bce18a8d-21f0-4022-a6ca-450de105cafc"}',
71
- authObject: '{EmpID:"Token_2053032d-9248-494b-9295-12c2ddf81d22",MachineCode:"7c4b2ffd-920a-462c-a586-37bbfb45c4fe",SSO_Token:"SSOToken_2053032d-9248-494b-9295-12c2ddf81d22",Platform:"WEB"}',
71
+ authObject: '{EmpID:"Token_24ffcd48-4caa-4158-af20-b6dea70d869e",MachineCode:"7c4b2ffd-920a-462c-a586-37bbfb45c4fe",SSO_Token:"SSOToken_24ffcd48-4caa-4158-af20-b6dea70d869e",Platform:"IOS"}',
72
72
  };
73
73
  },
74
74
  getToken() {
@@ -144,7 +144,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
144
144
  //action有值,提交到后台
145
145
  if (field.action) {
146
146
  if (common.flagApp()) {
147
- showLoadingToast({ message: '正在处理', forbidClick: true, duration: 100000 });
147
+ showLoadingToast({ message:common.LocalizedString('正在处理', '正在處理') , forbidClick: true, duration: 100000 });
148
148
  }
149
149
  field.disabled = true;//提交按钮禁用
150
150
  model.pageDisabled = true;
@@ -442,12 +442,22 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
442
442
  common.getDataDrivenOpts().handler.openTabSearch(field, submitData);
443
443
  }
444
444
  else if (field.isOpenUrlInBrowse) {// 浏览器打开
445
- window.open(submitData[field.submitFormField], "_blank");
445
+ if(common.getDataDrivenOpts().handler.openUrlInBrowse){
446
+ common.getDataDrivenOpts().handler.openUrlInBrowse(submitData[field.submitFormField]);
447
+ }
448
+ else{
449
+ window.open(submitData[field.submitFormField], "_blank");
450
+ }
446
451
  }
447
452
  else if (field.isBrowserNewTab) {// 浏览器打开
448
453
  submitData = field.getActionPara(submitData).para;
449
454
  let query = common.objectToQueryStr(submitData);
450
- window.open(action + query, "_blank");
455
+ if(common.getDataDrivenOpts().handler.openUrlInBrowse){
456
+ common.getDataDrivenOpts().handler.openUrlInBrowse(action + query);
457
+ }
458
+ else{
459
+ window.open(action + query, "_blank");
460
+ }
451
461
  }
452
462
  else if (field.isUrlInSystemTab) {//外部框架tab页打开URl
453
463
  submitData = field.getActionPara(submitData).para;
@@ -1,15 +1,15 @@
1
1
  <template>
2
2
  <div id="app-search" style="width:100%;height:100%;position: fixed;">
3
- <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
3
+ <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
4
4
  :searchDataApi="'/propertyPublishList/getListOfSearchModel'"
5
- :searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist> -->
5
+ :searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
6
6
 
7
- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
8
- :searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist>
7
+ <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
8
+ :searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist> -->
9
9
 
10
10
 
11
- <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeAttendanceBillList/getLayoutOfSearchForMy'"
12
- :searchDataApi="'/EmployeeAttendanceBillList/getListOfSearchModelForMy'"></ct-searchlist> -->
11
+ <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/AttendanceClassList/getLayoutOfSearch'"
12
+ :searchDataApi="'/AttendanceClassList/getListOfSearchModel'"></ct-searchlist> -->
13
13
  <ct-dialoglist ref="dialogList"></ct-dialoglist>
14
14
 
15
15
  </div>