centaline-data-driven 1.4.55 → 1.4.57

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.4.55",
3
+ "version": "1.4.57",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Detail.vue CHANGED
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div id="appDetail" style="height:100%;">
3
- <ct-Detail :api="'PropertyRET/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailRET'"></ct-Detail>
3
+ <ct-Detail :api="'PropertyOFI/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailOFI'"></ct-Detail>
4
4
  <ct-dialog-list></ct-dialog-list>
5
5
  </div>
6
6
  </template>
@@ -10,7 +10,7 @@
10
10
  name: 'DataDrivendetail',
11
11
  data() {
12
12
  return {
13
- apiParam: {actionType: 1,chanceID: "1603623689855832064"} ,
13
+ apiParam: {actionType: 1,chanceID: "1620973360810954752"} ,
14
14
  }
15
15
  },
16
16
  mounted() {
package/src/Form.vue CHANGED
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
3
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
4
- <ct-form :api="'/api/third-dept-tran/transaction/edit'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/system/menuright/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
5
5
  <ct-dialog-list></ct-dialog-list>
6
6
  </div>
7
7
  </template>
@@ -12,21 +12,7 @@
12
12
  data() {
13
13
  return {
14
14
  apiParam:{
15
- actionType
16
- :
17
- "3",
18
- originalTraId
19
- :
20
- "1603271493445812226",
21
- pageOnly
22
- :
23
- "true",
24
- pageStyle
25
- :
26
- "2",
27
- pageTitle
28
- :
29
- "成交报告"
15
+ "searchFields":{"fields":[]},"actionType":2
30
16
  },
31
17
  topHeight:10,
32
18
  }
@@ -22,17 +22,17 @@
22
22
  :searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'">
23
23
  </ct-searchlist> -->
24
24
 
25
- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
25
+ <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
26
26
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
27
27
  :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
28
28
  :searchStatsApi="'/PropertyRETList/getListStats'">
29
- </ct-searchlist>
29
+ </ct-searchlist> -->
30
30
 
31
- <!-- <ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'"
31
+ <ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'"
32
32
  :searchDataApi="'/PropertyOFIList/getListOfSearchModel'"
33
33
  :searchCategoryApi="'/PropertyOFIList/getLayoutOfSearchCategory'"
34
34
  :searchStatsApi="'/PropertyOFIList/getListStats'">
35
- </ct-searchlist> -->
35
+ </ct-searchlist>
36
36
 
37
37
  <ct-dialog-list></ct-dialog-list>
38
38
  </div>
@@ -2,7 +2,7 @@
2
2
  <div ref="main" class="main" v-if="model !== null">
3
3
  <div class="details-content">
4
4
  <div ref="header" class="details-head base-box mb10">
5
- <div class="head-type" :style="{background:model.fields1Dic.flagActive.value=='0'?'rgba(153, 153, 153, 1)':'#ee6b6b'}">
5
+ <div class="head-type" :style="{background:model.fields1Dic && model.fields1Dic.flagActive && model.fields1Dic.flagActive.value=='0'?'rgba(153, 153, 153, 1)':'#ee6b6b'}">
6
6
  {{ model.fields1Dic.Trade.value }}
7
7
  </div>
8
8
  <div class="head-info">
@@ -30,8 +30,7 @@
30
30
  </div>
31
31
  </div>
32
32
  <div v-if="model.fields1Dic.PropertyDepict && model.fields1Dic.PropertyDepict.value !== ''" v-html="model.fields1Dic.PropertyDepict.value"
33
- style=" font-weight: bold; font-size: 13px; margin-top: 10px; background: rgb(236, 249, 255);
34
- flex: 1; align-items: center; padding: 5px; border-radius: 5px;">
33
+ style="font-weight: bold; font-size: 13px; margin-top: 10px; background: rgb(236, 249, 255); flex: 1; align-items: center; padding: 5px; border-radius: 5px;">
35
34
  </div>
36
35
  </div>
37
36
  <div class="head-but" :key="actionRoutersKey">
@@ -67,7 +66,10 @@
67
66
  </div>
68
67
  </div>
69
68
  </div>
70
- <div ref="detail" class="details-mid y-auto" @scroll="scrollHandle($event)" :style="{height: model.detailHeight ? model.detailHeight + 'px' : '780px',}">
69
+ <div v-if="model.flagHiddenSensitiveInfo" :style="{height:flagHiddenSensitiveInfoHeight+'px'}" style="display: flex;align-items: center;justify-content: center;">
70
+ <div v-html="model.hiddenSensitiveInfoReason"></div>
71
+ </div>
72
+ <div v-if="!model.flagHiddenSensitiveInfo" ref="detail" class="details-mid y-auto" @scroll="scrollHandle($event)" :style="{height: model.detailHeight ? model.detailHeight + 'px' : '780px',}">
71
73
  <div ref="midl" class="mid-l" :style="{width: model.midlWidth ? model.midlWidth + 'px' : '1200px',}">
72
74
  <!-- 图片内容部分 -->
73
75
  <div class="hous-info base-box">
@@ -484,6 +486,7 @@ export default {
484
486
  dropDownSelected: false,
485
487
  iconSort: require("../../../assets/sort.png"),
486
488
  actionRoutersKey: Math.random(),
489
+ flagHiddenSensitiveInfoHeight:0,
487
490
  };
488
491
  },
489
492
  mounted() {
@@ -599,6 +602,7 @@ export default {
599
602
  },
600
603
  loadFields() {
601
604
  var self = this;
605
+ if(!self.model.fields2Dic) return;
602
606
  self.collapse = [];
603
607
  var collapseItemArr = [];
604
608
  var col = 0;
@@ -678,7 +682,13 @@ export default {
678
682
  var w1 = this.$refs.detail.clientWidth | 0;
679
683
  var w2 = this.$refs.midr.clientWidth | 0;
680
684
  this.model.midlWidth = w1 - w2 - 10;
681
- this.showStats();
685
+
686
+ this.showStats();
687
+ }
688
+ if(this.$refs.main){
689
+ var m1 = document.body.clientHeight | 0;
690
+ var m2 = this.$refs.header.clientHeight | 0;
691
+ this.flagHiddenSensitiveInfoHeight=m1-m2-this.top;
682
692
  }
683
693
  });
684
694
  },
@@ -2,7 +2,7 @@
2
2
  <div ref="main" class="main" v-if="model !== null">
3
3
  <div class="details-content">
4
4
  <div ref="header" class="details-head base-box mb10">
5
- <div class="head-type" :style="{background:model.fields1Dic.flagActive.value=='0'?'rgba(153, 153, 153, 1)':'#ee6b6b'}">
5
+ <div class="head-type" :style="{background:model.fields1Dic && model.fields1Dic.flagActive && model.fields1Dic.flagActive.value=='0'?'rgba(153, 153, 153, 1)':'#ee6b6b'}">
6
6
  {{ model.fields1Dic.Trade.value }}
7
7
  </div>
8
8
  <div class="head-info">
@@ -66,7 +66,10 @@
66
66
  </div>
67
67
  </div>
68
68
  </div>
69
- <div ref="detail" class="details-mid y-auto" @scroll="scrollHandle($event)" :style="{height: model.detailHeight ? model.detailHeight + 'px' : '780px',}">
69
+ <div v-if="model.flagHiddenSensitiveInfo" :style="{height:flagHiddenSensitiveInfoHeight+'px'}" style="display: flex;align-items: center;justify-content: center;">
70
+ <div v-html="model.hiddenSensitiveInfoReason"></div>
71
+ </div>
72
+ <div v-if="!model.flagHiddenSensitiveInfo" ref="detail" class="details-mid y-auto" @scroll="scrollHandle($event)" :style="{height: model.detailHeight ? model.detailHeight + 'px' : '780px',}">
70
73
  <div ref="midl" class="mid-l" :style="{ width: model.midlWidth ? model.midlWidth + 'px' : '1200px',}">
71
74
  <div class="hous-info base-box">
72
75
  <div class="info-conten">
@@ -480,6 +483,7 @@ export default {
480
483
  dropDownSelected: false,
481
484
  iconSort: require("../../../assets/sort.png"),
482
485
  actionRoutersKey: Math.random(),
486
+ flagHiddenSensitiveInfoHeight:0,
483
487
  };
484
488
  },
485
489
  mounted() {
@@ -606,6 +610,7 @@ export default {
606
610
  },
607
611
  loadFields() {
608
612
  var self = this;
613
+ if(!self.model.fields2Dic) return;
609
614
  self.collapse = [];
610
615
  var collapseItemArr = [];
611
616
  var col = 0;
@@ -687,6 +692,11 @@ export default {
687
692
  this.model.midlWidth = w1 - w2 - 10;
688
693
  this.showStats();
689
694
  }
695
+ if(this.$refs.main){
696
+ var m1 = document.body.clientHeight | 0;
697
+ var m2 = this.$refs.header.clientHeight | 0;
698
+ this.flagHiddenSensitiveInfoHeight=m1-m2-this.top;
699
+ }
690
700
  });
691
701
  },
692
702
  handleSelect(key, keyPath) {
@@ -42,9 +42,12 @@
42
42
  </div>
43
43
  <div v-if="model.fields1Dic.PropertyDepict && model.fields1Dic.PropertyDepict.value !== ''" v-html="model.fields1Dic.PropertyDepict.value"
44
44
  style="font-weight: bold;font-size: 13px; margin-top: 10px;background: rgb(236, 249, 255); flex: 1;align-items: center;padding: 5px;border-radius: 5px; word-break: break-all;">
45
+ </div>
45
46
  </div>
47
+ <div v-if="model.flagHiddenSensitiveInfo" style="display: flex;align-items: center;justify-content: center;margin-top: 50%;height: 0px;">
48
+ <div v-html="model.hiddenSensitiveInfoReason"></div>
46
49
  </div>
47
- <div style="margin-top: 16px;display: flex;height: 65px;border: 1px solid #ECEFF2;box-shadow: 0 2px 4px 0 rgba(0,0,0,0.06);border-radius: 6px;text-align: center;">
50
+ <div v-if="!model.flagHiddenSensitiveInfo" style="margin-top: 16px;display: flex;height: 65px;border: 1px solid #ECEFF2;box-shadow: 0 2px 4px 0 rgba(0,0,0,0.06);border-radius: 6px;text-align: center;">
48
51
  <div style="width: 33.33%;">
49
52
  <div style="margin-top: 13px;font-size: 12px;">{{model.fields1Dic.Area.label.replace(':','')}}</div>
50
53
  <div style="margin-top: 7px;font-size: 14px;font-weight: Bold;color: #EE6B6B;">{{model.fields1Dic.Area.value}}{{model.fields1Dic.Area.unitName}}</div>
@@ -58,10 +61,10 @@
58
61
  <div style="margin-top: 7px;font-size: 14px;font-weight: Bold;color: #EE6B6B;">{{model.fields1Dic.FloorName.value}}</div>
59
62
  </div>
60
63
  </div>
61
- <div ref="contact" id="contact" style="margin-top: 16px;" v-if="model.contactApiRouter!==null">
64
+ <div ref="contact" id="contact" style="margin-top: 16px;" v-if="!model.flagHiddenSensitiveInfo && model.contactApiRouter!==null">
62
65
  <ct-contact :key="refreshKey" :apiRouter="model.contactApiRouter" :api="model.contactApiRouter.action" :apiParam="model.contactApiRouter.getSearchPara()"></ct-contact>
63
66
  </div>
64
- <div ref="routers" v-if="model.actionRoutersSimple!==null" style="margin-top: 16px;display: flex;">
67
+ <div ref="routers" v-if="!model.flagHiddenSensitiveInfo && model.actionRoutersSimple!==null" style="margin-top: 16px;display: flex;">
65
68
  <component v-for="(router, index) in model.actionRoutersSimple.slice(0,showIndex>0?showIndex:model.actionRoutersSimple.length)" :key="index"
66
69
  :ref="'routers'+index"
67
70
  v-if="!router.rightField || (model.fields1Dic[router.rightField] && model.fields1Dic[router.rightField].value == 1)"
@@ -79,10 +82,10 @@
79
82
  <span :slot="showIndex>0?'reference':''" class="more" style="margin-left: 10px;"></span>
80
83
  </el-popover>
81
84
  </div>
82
- <div ref="shortcutFollow" v-if="model.shortcutFollowForm!==undefined && model.shortcutFollowForm!==null" class="shortcutFollow" style="margin-top: 16px;">
85
+ <div ref="shortcutFollow" v-if="!model.flagHiddenSensitiveInfo && model.shortcutFollowForm!==undefined && model.shortcutFollowForm!==null" class="shortcutFollow" style="margin-top: 16px;">
83
86
  <ct-form :source="model.shortcutFollowForm" @submit="saveShortcutFollow"></ct-form>
84
87
  </div>
85
- <div class="tablist-info base-box">
88
+ <div v-if="!model.flagHiddenSensitiveInfo" class="tablist-info base-box">
86
89
  <div class="details-tabs-box">
87
90
  <el-tabs :value="model.activeIndex1" @tab-click="handleSelect">
88
91
  <el-tab-pane v-for="(col, index) in model.tags1" :key="col.appID"
@@ -198,7 +201,7 @@
198
201
  if(self.$refs.routers){
199
202
  totalWidth=self.$refs.routers.offsetWidth;
200
203
  }
201
- if(self.model.actionRoutersSimple!==null){
204
+ if(self.model && self.model.actionRoutersSimple){
202
205
  self.model.actionRoutersSimple.forEach((v,i) => {
203
206
  if(!v.rightField || (self.model.fields1Dic[v.rightField] && self.model.fields1Dic[v.rightField].value == 1)){
204
207
  if(self.$refs['routers'+i] && self.$refs['routers'+i].length>0 && self.$refs['routers'+i][0] && self.$refs['routers'+i][0].$el){
@@ -221,6 +224,7 @@
221
224
  },
222
225
  loadFields() {
223
226
  var self = this;
227
+ if(!self.model.fields2Dic) return;
224
228
  self.collapse=[];
225
229
  var collapseItemArr = [];
226
230
  var col=0;
@@ -84,11 +84,20 @@
84
84
  },
85
85
  clearClickHandle: function (event) {
86
86
  this.model.value = '';
87
+ this.model.name1='';
87
88
  this.inputHandler(this.model.value);
88
89
  this.changeHandler(this.model.value);
89
90
  if(this.model.autoSearch) this.$emit('click');
90
91
  },
91
92
  changeHandler1: function (event) {
93
+ var self=this;
94
+ if(this.model.value){
95
+ this.model.segmentValue.forEach((v) => {
96
+ if(self.model.value===v.code){
97
+ self.model.name1=v.name;
98
+ }
99
+ });
100
+ }
92
101
  this.inputHandler(this.model.value);
93
102
  this.changeHandler(this.model.value);
94
103
  if(this.model.autoSearch) this.$emit('click');
@@ -85,6 +85,12 @@ const Base = function (source) {
85
85
  set labelValue(v) {
86
86
  source.code1 = v;
87
87
  },
88
+ get name1() {
89
+ return source.name1;
90
+ },
91
+ set name1(v) {
92
+ source.name1 = v;
93
+ },
88
94
  defaultValue: source.defaultCode1 || '',
89
95
  defaultValue1: source.defaultCode2 || '',
90
96
  defaultValue2: source.defaultCode3 || '',
@@ -69,6 +69,18 @@ const Detail = function (source, para, callBack) {
69
69
  get title() {
70
70
  return data.title;
71
71
  },
72
+ get flagHiddenSensitiveInfo() {
73
+ return data.flagHiddenSensitiveInfo;
74
+ },
75
+ set flagHiddenSensitiveInfo(v) {
76
+ data.flagHiddenSensitiveInfo=v;
77
+ },
78
+ get hiddenSensitiveInfoReason() {
79
+ return data.hiddenSensitiveInfoReason;
80
+ },
81
+ set hiddenSensitiveInfoReason(v) {
82
+ data.hiddenSensitiveInfoReason=v;
83
+ },
72
84
  get fields1() {
73
85
  return data.fields1;
74
86
  },
package/src/main.js CHANGED
@@ -44,14 +44,14 @@ Vue.use(centaline, {
44
44
  getRequestHeaders: function () {
45
45
  return {
46
46
  oldToken: '3ba3f510-93fd-4103-9249-73c13f3f6fc2',
47
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEOgkAQRP9lazZhb9e9Wzo9sPEjCJ6QYGUEEo3x38UIHb2vmGReM_OCYTpDAX4BN2KltgXciJWaSMyTVrg3H1FUGAPFgFE0yrGsOB5KyKB93KAg9crqWDWDvhl_wvmdfcU0tPdT-_zHuevYz7POMRHnHTZdYJQgOQZLhEkvJnO13Cd4fwAAAP__.ZcU7DcrdnOJOI8uvg7C4vmkNyMWpO44tMwKK4jf2ERI',
47
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe8yNZMw7DizQ6cLNh6CsGFJsDICicZ4d9FAR-8rXvGb_14wzhFK0BXc0UZjK7ijjYaITUlqPJoGZGGHnoLHwBL4XNUunCrIID1uUJKo5izqLIOhnX6DmOTuO8xjul_S8x9x12lYbpeY2JnvsVdPyDE5jFYYprY7kKOiW7rh_QEAAP__.5JCaEz5Jd4ZZk9bHH5f2BtSoZLapz5MX2JzWPHwZapA',
48
48
 
49
49
  originalRequestURL: 'http://10.88.22.67:8080',
50
50
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
51
51
  estateId: '20210729104021C49F04B55C50F6AF58',
52
52
 
53
- authObject: '{"currentEstate":{"estateId":"046CC756-4FBE-4289-8512-F05975EEF327","estateName":"%E5%8D%8A%E5%B2%9B1%E5%8F%B7"},"platform":1,"OSVersion":"","clientVersion":"","machineCode":""}',
54
- Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjUyN2ZmMGIwLWEwZjktNDJlMy1iNWM1LTg1MGU2MzNjZDc2NCJ9.H6Th2eEV99mxEgZ91n9_6GidadA_y-piw-Bt-NQj5hDH9VdcspUyrNKm2karo0KxQaxrcrGw7TplzzTw2BCmaw',
53
+ authObject: '{"currentEstate":{"estateId":"20170524095458338E35F467429530B4","estateName":"A%E5%AE%89%E5%B3%A6%E5%85%AC%E9%A6%86"},"platform":1,"OSVersion":"","clientVersion":"","machineCode":"bb71c2cdc14b4e186f76e41cb67881c4","token":"","random":"tZ45b9","time":1676355606718,"sign":"0509bb7ae0184c9262ff50ff40f03cfd"}',
54
+ Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImY5NmZkZTBiLTQyYWEtNGJhZS04YWUwLWQ5OTBkM2Q2NTQ3OSJ9.0Nq41IzMfnDrYNaW85csIB7ra35DqsUBuHtqVTr5Wcwg1bNm_td-KO-_g2geYm8MuERiQhDq3uC-fOB95vUPrQ',
55
55
  };
56
56
  },
57
57
  // 请求完成事件,可判断是否登录过期执行响应操作