centaline-data-driven-v3 0.1.41 → 0.1.42

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.
@@ -705,7 +705,7 @@ function loadSearchScreenModel(source, prevParam) {
705
705
  rtn._actionRouters.push(button);
706
706
  });
707
707
  }
708
- else if (source.content.actionRouters) {
708
+ else if (source.content && source.content.actionRouters) {
709
709
  source.content.actionRouters.forEach((v) => {
710
710
  v.actionType = 2;
711
711
  var button = Router(v);
package/src/main.js CHANGED
@@ -21,7 +21,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
21
21
  }
22
22
 
23
23
  app.use(centaline, {
24
- baseUrl: "http://10.88.22.66:7080/ibs-api/",
24
+ baseUrl: "https://kq-api.centaline.com.cn/onecard-api/",
25
25
  //baseUrl:"http://10.88.22.66/IBS.Mvc/api/",
26
26
  //baseUrl: "https://kq-api.centaline.com.cn/onecard-api/",
27
27
  //baseUrl: "http://10.88.22.13:6060/onecard-api/",
@@ -66,8 +66,8 @@ app.use(centaline, {
66
66
  getRequestHeaders: function () {
67
67
  return {
68
68
 
69
- //AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjQxZTM1MGE1LWFiMGMtNDY2Mi05MTQ5LTAwYTQ4NTljMDkyYSJ9.3ci0CpgcmIqm-ORf9efFnvB6sgAWVSGv6ptrWMe3ZSs3fQ8PvlZv3BizhcBJjk0l7csA2Ihw9oodq2N81ELUoQ',
70
- authobject: '{token:"T5067-2003269852298657792",platform:"WEB"}',
69
+ //AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImIzMjNmYjZjLTU5MWEtNGU5Mi1iODNmLWUzZDBhNThmMDMzMSJ9.P32j9z5ujG9bg76InDMrs89NgLhjly6ESp9MIipYVmCoiYQD0kgscqdk_7E6NKsi_FKosZVliKEeZFlPwqsBZQ',
70
+ authobject: '{token:"16-2005889170303787008",platform:"WEB"}',
71
71
  //authobject: '{EmpID:"Token_946d56e1-7972-4382-9d10-4a72496aab39",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_946d56e1-7972-4382-9d10-4a72496aab39",Platform:"WEB"}',
72
72
  //oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
73
73
  //authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
@@ -73,14 +73,14 @@ const request = {
73
73
  //common.getDataDrivenOpts().handler.closeTab();
74
74
  }
75
75
  }
76
-
76
+
77
77
  if (data.rtnCode === Enum.ReturnCode.Successful) {
78
78
  if (data.rtnMsg && common.getDataDrivenOpts().showRequestSuccessMessage) {
79
79
  if (data.msgAlertStyle && data.msgAlertStyle == Enum.MessageAlertStyle.Dialog) {
80
- common.confirm(data.rtnMsg, '信息', { confirmButtonText: '确定', flagShowcCancelButton: '0' });
80
+ common.message(data.rtnMsg, 'error', '', 0, true)
81
81
  }
82
82
  else {
83
- common.message(response.data.rtnMsg, 'success')
83
+ common.message(data.rtnMsg, 'success')
84
84
  }
85
85
  }
86
86
 
@@ -115,11 +115,10 @@ const request = {
115
115
  else {
116
116
  if (response.data.rtnMsg && common.getDataDrivenOpts().showRequestErrorMessage) {
117
117
  if (data.msgAlertStyle && data.msgAlertStyle == Enum.MessageAlertStyle.Dialog) {
118
-
119
- common.confirm(data.rtnMsg, '信息', { confirmButtonText: '确定', flagShowcCancelButton: '0' });
118
+ common.message(data.rtnMsg, 'error', '', 0, true)
120
119
  }
121
120
  else {
122
- common.message(response.data.rtnMsg, 'error')
121
+ common.message(data.rtnMsg, 'error')
123
122
  }
124
123
  }
125
124
  return Promise.reject(response);
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
- <ct-form :api="'/jobschedulingmanage/JobManage/readDetail'" :apiParam="apiParam"></ct-form>
3
+ <ct-form :api="'/Employee/readDetail'" :apiParam="apiParam"></ct-form>
4
4
  <!-- <ct-textbox :source="source"></ct-textbox> -->
5
5
  <ct-dialoglist ref="dialogList"></ct-dialoglist>
6
6
  </div>
7
7
  </template>
8
8
  <script lang="ts" setup>
9
- const apiParam={"actionType":2}
9
+ const apiParam={"rowGUID":"{84373596-5043-4d58-935c-bc3559c8654f}","actionType":3}
10
10
  </script>
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div id="app-search" style="width:100%;height:100%;position: fixed;">
3
- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/RoleList/getLayoutOfSearch'"
3
+ <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
4
4
 
5
- :searchDataApi="'/RoleList/getListOfSearchModel'"></ct-searchlist>
5
+ :searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist>
6
6
 
7
7
  <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
8
8
 
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div id="app-Tree" style="height:100%;position: fixed;width:100%;padding: 10px;">
3
3
  <ct-treelist :flagsearch="true" :apiParam="apiParam" :leftWidth="'280'"
4
- :searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'"
5
- :searchDataApi="'/SystemParameterCatalogList/getListOfSearchModel'"
4
+ :searchConditionApi="'/DepartmentList/getLayoutOfSearch'"
5
+ :searchDataApi="'/DepartmentList/getListOfSearchModel'"
6
6
  @loaded="loaded"></ct-treelist>
7
7
  <!-- <ct-textbox :source="source"></ct-textbox> -->
8
8
  <ct-dialoglist></ct-dialoglist>