centaline-data-driven 1.3.50 → 1.3.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.3.50",
3
+ "version": "1.3.51",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -8,15 +8,15 @@
8
8
  :searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
9
9
  :searchDataApi="'/ProfileWorklistList/getListOfSearchModel'" :apiParam="para"></ct-searchlist> -->
10
10
 
11
- <!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'"
12
- :searchDataApi="'/api/third-dept-tran/tran-list'">
13
- </ct-searchlist> -->
11
+ <ct-searchlist :searchConditionApi="'/api/agenttrans/transactionList/getLayoutOfSearch'"
12
+ :searchDataApi="'/api/agenttrans/transactionList/getTableList'">
13
+ </ct-searchlist>
14
14
 
15
- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
15
+ <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
16
16
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
17
17
  :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
18
18
  :searchStatsApi="'/exampleList/getListStats'">
19
- </ct-searchlist>
19
+ </ct-searchlist> -->
20
20
 
21
21
  <ct-dialog-list></ct-dialog-list>
22
22
  </div>
@@ -848,8 +848,29 @@ export default {
848
848
  // if (typeof field.onClick !== 'undefined') {
849
849
  // verified = self.$common.excute.call(self.model.scripts, field.onClick);
850
850
  // }
851
-
852
- if (field.isOpenForm) {
851
+ if (field.isBrowseAttachment) {//浏览附件
852
+ var MediaAlbum = [
853
+ { albumName: self.model.title || "媒体", medias: [] },
854
+ ];
855
+ if (field.action) {
856
+ var callback = function (data) {
857
+ MediaAlbum[0].medias = data;
858
+ self.$common.viewerfile(field, MediaAlbum, 0, 0);
859
+ }
860
+ var vsubmitData = {
861
+ ...field.getActionPara(submitData).para,
862
+ ...submitData
863
+ };
864
+ self.model.getAction(field.action, vsubmitData, callback);
865
+ }
866
+ else {
867
+ submitData.mediaData.forEach((v) => {
868
+ MediaAlbum[0].medias.push(v);
869
+ });
870
+ self.$common.viewerfile(field, MediaAlbum, 0, 0);
871
+ }
872
+ }
873
+ else if (field.isOpenForm) {
853
874
  var dialogOption = {
854
875
  title: field.pageTitle,
855
876
  pane: self.$common.getParentPane(self),
@@ -12,7 +12,7 @@
12
12
  :categoryLoaded="loaded.categoryLoaded" @search="search()" @saveShortcut="saveShortcut"
13
13
  @showTitle="showTitleScreenHandler"></ct-searchscreen>
14
14
 
15
- <ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" @loaded="tableLoaded"
15
+ <ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" :isIframe="isIframe" @loaded="tableLoaded"
16
16
  @toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate"
17
17
  @rowClickHandle="rowClickHandle" @scrollHandle="scrollHandle" @refreshRowHandle="refreshRowHandle" @doClosePopoverHandle="doClosePopoverHandle"
18
18
  @showTitle="showTitleHandler"></ct-searchtable>
@@ -63,12 +63,20 @@
63
63
  default:'searchlist'
64
64
  },
65
65
  },
66
+ data() {
67
+ return {
68
+ isIframe: false,
69
+ };
70
+ },
66
71
  created() {
67
72
  this.model = this.vmodel;
68
73
  this.screenPara=this.apiParam;
69
74
  if(this.searchCategoryApi){
70
75
  this.loaded.categoryLoaded=false;
71
76
  }
77
+ if(this.apiParam && this.apiParam.isIframe && this.apiParam.isIframe=='true'){
78
+ this.isIframe=true;
79
+ }
72
80
  },
73
81
  computed: {
74
82
  },
@@ -191,6 +191,10 @@ export default {
191
191
  String,
192
192
  default: "searchlist",
193
193
  },
194
+ isIframe: {
195
+ Boolean,
196
+ default: false,
197
+ },
194
198
  },
195
199
  computed: {},
196
200
  data() {
@@ -1091,6 +1095,9 @@ export default {
1091
1095
  let title = field.pageTitle == undefined ? field.label : field.pageTitle;
1092
1096
  submitData.actionType = field.actionType;
1093
1097
  var fun = self.$common.getDataDrivenOpts().handler[action];
1098
+ if(self.isIframe){
1099
+ submitData.isIframe=self.isIframe;
1100
+ }
1094
1101
  fun(submitData, title, self.$parent);
1095
1102
  }
1096
1103
  };
@@ -46,6 +46,15 @@ const Base = function (source) {
46
46
  set code1(v) {
47
47
  source.code1 = v;
48
48
  },
49
+ set code2(v) {
50
+ source.code2 = v;
51
+ },
52
+ set code3(v) {
53
+ source.code3 = v;
54
+ },
55
+ set code4(v) {
56
+ source.code4 = v;
57
+ },
49
58
  get value() {
50
59
  return source.code1;
51
60
  },
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.13:7070/v1/form/router",
16
- baseUrl: "http://10.88.23.25:9999/v1/form/router",
16
+ // baseUrl: "http://10.88.23.25:9999/v1/form/router",
17
17
  // baseUrl: "http://10.88.22.40:8080/",
18
- // baseUrl: "http://tjcptest.centaline.com.cn/",
19
- // flagRouterSelf: true,
18
+ baseUrl: "http://tjcptest.centaline.com.cn/",
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: '8ce4e917-2183-40d9-8b87-53ae45e1fc59',
44
+ oldToken: '925105ab-273a-4d9e-bb9c-83dca3282a8a',
45
45
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEKg0AQRP9laxe8u3X31i6epslHyMkpmCpEhYSQf48h2tnnFa8YBmZeMC0dlCAbeKCdVjfwQDutMaRiuMGTSkBicuhN8BiIA53rxoWqhgz6xw1Kw5w7ESeUwRjnX2A112-wTP390j__ce46j-vsIAN5ch1alrSWhTCqRiRbJEtc-MQM7w8AAAD__w.dYqgv0MHo3uvKDGcRKsCZt4UCdSl1qVTNQt628giu6k',
46
46
  originalRequestURL: 'http://10.88.22.67:8080',
47
47
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',