centaline-data-driven 1.4.10 → 1.4.12

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.
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.4.10",
3
+ "version": "1.4.12",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
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/detail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
5
5
  <ct-dialog-list></ct-dialog-list>
6
6
  </div>
7
7
  </template>
@@ -14,19 +14,31 @@
14
14
  apiParam:{
15
15
  actionType
16
16
  :
17
+ 2,
18
+ buildingID
19
+ :
17
20
  "1",
18
- originalTraId
21
+ estateID
19
22
  :
20
- "1590164845049495554",
21
- pageOnly
23
+ "1",
24
+ floorID
22
25
  :
23
- "true",
24
- pageStyle
26
+ "1",
27
+ pageOnly
25
28
  :
26
- "2",
29
+ true,
27
30
  pageTitle
28
31
  :
29
- "成交报告",
32
+ "开盘",
33
+ propertyID
34
+ :
35
+ "",
36
+ roomNo
37
+ :
38
+ "1527",
39
+ tradeID
40
+ :
41
+ "200",
30
42
  },
31
43
  topHeight:10,
32
44
  }
@@ -11,16 +11,16 @@
11
11
  :searchStatsApi="'/ProfileWorklistList/getListStats'">
12
12
  </ct-searchlist> -->
13
13
 
14
- <!-- <ct-searchlist
15
- :searchConditionApi="'/report/monthly/region/layout'"
16
- :searchDataApi="'/report/monthly/region/list'">
17
- </ct-searchlist> -->
18
-
19
14
  <ct-searchlist
15
+ :searchConditionApi="'/api/distribution/distributionList/getLayoutOfSearch'"
16
+ :searchDataApi="'/api/distribution/distributionList'">
17
+ </ct-searchlist>
18
+
19
+ <!-- <ct-searchlist
20
20
  :searchCategoryApi="'/PropertyPublishList/getLayoutOfSearchCategory'"
21
21
  :searchConditionApi="'/PropertyPublishList/getLayoutOfSearchForRET'"
22
22
  :searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'">
23
- </ct-searchlist>
23
+ </ct-searchlist> -->
24
24
 
25
25
  <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
26
26
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
@@ -40,6 +40,9 @@
40
40
  {{tag.label}}
41
41
  </div>
42
42
  </div>
43
+ <div v-if="model.fields1Dic.PropertyDepict" v-html="model.fields1Dic.PropertyDepict.value"
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;">
45
+ </div>
43
46
  </div>
44
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;">
45
48
  <div style="width: 33.33%;">
@@ -62,7 +62,14 @@
62
62
  </el-dropdown>
63
63
  </span>
64
64
  </div>
65
- <el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress.toFixed(2)" :width="96" :height="96" class="file-cirle"></el-progress>
65
+ <div>
66
+ <el-progress type="circle" v-if="file.progressFlag" :show-text="false"
67
+ :percentage="typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00"
68
+ :width="96" :height="96" class="file-cirle"></el-progress>
69
+ <div class="circleCenter" v-if="file.progressFlag">
70
+ <div style="font-size: 12px;color: #666;"> {{ file.loadProgress.toFixed(2) }}%</div>
71
+ </div>
72
+ </div>
66
73
  </div>
67
74
  </el-upload>
68
75
  </template>
@@ -128,7 +135,14 @@
128
135
  </el-dropdown>
129
136
  </span>
130
137
  </div>
131
- <el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress.toFixed(2)" :width="96" :height="96" class="file-cirle"></el-progress>
138
+ <div>
139
+ <el-progress type="circle" v-if="file.progressFlag" :show-text="false"
140
+ :percentage="typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00"
141
+ :width="96" :height="96" class="file-cirle"></el-progress>
142
+ <div class="circleCenter" v-if="file.progressFlag">
143
+ <div style="font-size: 12px;color: #666;"> {{ file.loadProgress.toFixed(2) }}%</div>
144
+ </div>
145
+ </div>
132
146
  </div>
133
147
  </el-upload>
134
148
  </template>
@@ -576,4 +590,9 @@
576
590
  .file-cirle .el-progress-circle {
577
591
  margin-left: 15px;
578
592
  }
593
+ .circleCenter {
594
+ position: absolute;
595
+ top: 38px;
596
+ left: 32px;
597
+ }
579
598
  </style>
@@ -1422,6 +1422,7 @@ export default {
1422
1422
  this.model.setButtonsDisabled();
1423
1423
  this.model.setSelectAll();
1424
1424
  this.selectAllType = this.model.getSelectAll();
1425
+ this.$forceUpdate();
1425
1426
  },
1426
1427
  calculatingRowHeight() {
1427
1428
  let self = this;
@@ -277,7 +277,6 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
277
277
  }
278
278
  },
279
279
  setSelectAll() {
280
-
281
280
  if (rtn.listData.length === 0) {
282
281
  return;
283
282
  }
@@ -288,7 +287,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
288
287
  });
289
288
  if (!rtnData || rtnData.length > 0) {
290
289
  this.selectAll = 0;
291
- } else {
290
+ }
291
+ else {
292
292
  this.selectAll = 1;
293
293
  }
294
294
  }
@@ -394,9 +394,11 @@ const LibFunction = {
394
394
  var colNum = source.colSpan ? source.colSpan : 3;
395
395
  if (item1.excLine) {
396
396
  num = 24;
397
- } else if (field.spanCols > 0) {
397
+ }
398
+ else if (field.spanCols > 0) {
398
399
  num = field.spanCols * (24 / colNum);
399
- } else {
400
+ }
401
+ else {
400
402
  num = 24 / colNum;
401
403
  }
402
404
  return num;
@@ -414,9 +416,10 @@ const LibFunction = {
414
416
  //size: 'mini'
415
417
  },
416
418
  get excLine() {
417
- return field.singleLine === true || field.controlType === Enum.ControlType.GroupSplitLine ||
418
- field.controlType === Enum.ControlType.List || field.controlType === Enum.ControlType.File ||
419
- field.controlType === Enum.ControlType.SearchPage;
419
+ return field.singleLine === true || field.controlType === Enum.ControlType.GroupSplitLine
420
+ || field.controlType === Enum.ControlType.List || field.controlType === Enum.ControlType.File
421
+ || field.controlType === Enum.ControlType.SliceUpload
422
+ || field.controlType === Enum.ControlType.SearchPage;
420
423
  },
421
424
  showLabel: showLabel
422
425
  };
@@ -1,97 +1,114 @@
1
1
  <template>
2
2
  <div class="ct-progress">
3
3
  <div style="padding: 5px;">
4
- <el-progress type="circle" :percentage="percentage"></el-progress>
4
+ <!-- <el-progress type="circle" :percentage="percentage"></el-progress> -->
5
+ <div class="circleBox">
6
+ <el-progress type="circle" v-if="progressFlag" :show-text="false"
7
+ :percentage="typeof percentage !== 'undefined' && percentage !== null ? percentage : 0.00" class="file-cirle">
8
+ </el-progress>
9
+ <div class="circleCenter" v-if="progressFlag">
10
+ <div style="font-size: 16px;color: #666;"> {{ percentage.toFixed(2) }}%</div>
11
+ </div>
12
+ </div>
5
13
  <span class="progressMsg">{{ message }}</span>
6
14
  </div>
7
- <iframe :src="downloadUrl" style="height:0px;width:0px">
15
+ <iframe :src="downloadUrl" style="height:0px;width:0px;border-width: 0px;">
8
16
  </iframe>
9
17
  </div>
10
18
  </template>
11
19
  <script>
12
- import { setTimeout } from 'timers';
13
- export default {
14
- name: 'ct-progress',
15
- props: {
16
- progressAction: String,
17
- progressKey: String,
18
- progressType: {
19
- type: String,
20
- default: 'export'
21
- },
20
+ import { setTimeout } from 'timers';
21
+ export default {
22
+ name: 'ct-progress',
23
+ props: {
24
+ progressAction: String,
25
+ progressKey: String,
26
+ progressType: {
27
+ type: String,
28
+ default: 'export'
22
29
  },
23
- data() {
24
- return {
25
- message: '',
26
- percentage: 0,
27
- isDestroy: false,
28
- downloadUrl:"",
29
- };
30
+ },
31
+ data() {
32
+ return {
33
+ message: '',
34
+ percentage: 0,
35
+ isDestroy: false,
36
+ downloadUrl: "",
37
+ progressFlag: false,
38
+ };
39
+ },
40
+ methods: {
41
+ load() {
30
42
  },
31
- methods: {
32
- load() {
33
- },
34
- getApiData() {
35
- const self = this;
36
- let params = {
37
- action: this.progressAction,
38
- para: {
39
- key: this.progressKey
40
- }
43
+ getApiData() {
44
+ const self = this;
45
+ let params = {
46
+ action: this.progressAction,
47
+ para: {
48
+ key: this.progressKey
41
49
  }
50
+ }
42
51
 
43
- if (self.isDestroy) {
44
- return;
45
- }
52
+ if (self.isDestroy) {
53
+ return;
54
+ }
46
55
 
47
- this.$api.postHandler(this.$common.globalUri(), params, null).then((response) => {
48
- const data = response.content;
49
- if (data) {
50
- if(data.processTaskName){
51
- self.message = data.processTaskName;
52
- }
53
- else if(data.rtnMsg){
54
- self.message = data.rtnMsg;
55
- }
56
- else if(response.rtnMsg){
57
- self.message = response.rtnMsg;
58
- }
56
+ this.$api.postHandler(this.$common.globalUri(), params, null).then((response) => {
57
+ const data = response.content;
58
+ if (data) {
59
+ if (data.processTaskName) {
60
+ self.message = data.processTaskName;
61
+ }
62
+ else if (data.rtnMsg) {
63
+ self.message = data.rtnMsg;
64
+ }
65
+ else if (response.rtnMsg) {
66
+ self.message = response.rtnMsg;
59
67
  }
60
-
61
- if (response.rtnCode === 200 && data.rtnCode === 200) {
62
- this.percentage = data.percentage;
63
- if (data.flagFinished) {
64
- if(this.progressType=='export' && data.content){
65
- if (data.content.indexOf("?") > -1) {
66
- self.downloadUrl = data.content + "&" + Math.random();
67
- }
68
- else {
69
- self.downloadUrl = data.content + "?" + Math.random();
70
- }
71
- // document.body.addEventListener('click', function() {
72
- // window.open(data.content, "_blank");
73
- // });
68
+ }
69
+
70
+ if (response.rtnCode === 200 && data.rtnCode === 200) {
71
+ this.progressFlag = true;
72
+ this.percentage = data.percentage;
73
+ if (data.flagFinished) {
74
+ if (this.progressType == 'export' && data.content) {
75
+ if (data.content.indexOf("?") > -1) {
76
+ self.downloadUrl = data.content + "&" + Math.random();
74
77
  }
75
- setTimeout(() => { self.$emit('finished',data); }, 800);
76
- }
77
- else {
78
- setTimeout(() => { self.getApiData() }, 1000);
78
+ else {
79
+ self.downloadUrl = data.content + "?" + Math.random();
80
+ }
81
+ // document.body.addEventListener('click', function() {
82
+ // window.open(data.content, "_blank");
83
+ // });
79
84
  }
85
+ setTimeout(() => {
86
+ self.$emit('finished', data);
87
+ this.progressFlag = false;
88
+ }, 800);
80
89
  }
81
90
  else {
82
- self.isDestroy = true;
83
- self.$emit('error',data);
91
+ setTimeout(() => {
92
+ self.getApiData();
93
+ this.progressFlag = false;
94
+ }, 1000);
84
95
  }
85
- });
86
- }
87
- },
88
- mounted() {
89
- this.getApiData();
90
- },
91
- beforeDestroy() {
92
- this.isDestroy = true;
96
+ }
97
+ else {
98
+ self.isDestroy = true;
99
+ self.$emit('error', data);
100
+ this.progressFlag = false;
101
+ }
102
+ });
93
103
  }
104
+ },
105
+ mounted() {
106
+ this.getApiData();
107
+ },
108
+ beforeDestroy() {
109
+ this.isDestroy = true;
94
110
  }
111
+ }
95
112
  </script>
96
113
  <style>
97
114
  .ct-progress {
@@ -102,4 +119,15 @@
102
119
  margin-top: 5px;
103
120
  display: block;
104
121
  }
122
+
123
+ .circleBox {
124
+ margin: 0 auto;
125
+ position: relative;
126
+ }
127
+
128
+ .circleCenter {
129
+ position: absolute;
130
+ top: 55px;
131
+ left: 145px;
132
+ }
105
133
  </style>
package/src/main.js CHANGED
@@ -12,12 +12,12 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- baseUrl: "http://10.88.22.46:7070/v1/form/router",
15
+ // baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
16
  // baseUrl: "http://10.25.10.63:9999/v1/form/router",
17
17
  // baseUrl: "http://10.88.22.42:9999/v1/form/router",
18
18
  // baseUrl: "http://10.88.22.39:8080/api/",
19
- // baseUrl: "http://tjcptest.centaline.com.cn/",
20
- // flagRouterSelf: true,
19
+ baseUrl: "http://tjcptest.centaline.com.cn/",
20
+ flagRouterSelf: true,
21
21
  zindex: 999,
22
22
  showRequestSuccessMessage: true,
23
23
  showRequestErrorMessage: true,
@@ -42,8 +42,8 @@ Vue.use(centaline, {
42
42
  // 获取请求头
43
43
  getRequestHeaders: function () {
44
44
  return {
45
- oldToken: '20ad6f77-b0fc-4a65-9334-eda7a89c5bcf',
46
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEOgjAURf_lzbykr33ta9mk4OJHkFY64GQEEo3x39UIG7tnOMNZ7n3CtGSoQVZwRxt9WMEdbfREHIRch4cgEdmxQU_RY2QX-dh2JjYtVFDuV6jJOa-1khAqGNP8C2TYfMMyldupPP5x7jKPn1nDyXOygsPgM_JZGcyWFVrJJFmTI0nwegMAAP__.LBBnoVAIPdLFhGmg3hkcqPmaqN4LrF3HE6pvgDdFJRI',
45
+ oldToken: '94083010-671d-465a-95a9-1a3318ceb239',
46
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrsOgkAQRf9laiZh3NmZWTpdsPEjCI81wcoIJBrjv6sROnpPcYrT3PuEcW6hAF3ADa3UYQE3tFITcVCSCvdBI7KwQ6NoGFkiH8vKxUMJGaT7FQoSMbacvWUwNNMvuMD5N8xjup3S4x_nLtPwmWURpjwR-r5zyO1O0bg_I1mnjap47wxebwAAAP__.R7h4AMsjakN5ut14PThDIYQJ_vYnaNXHblU4OLG-VqQ',
47
47
 
48
48
  originalRequestURL: 'http://10.88.22.67:8080',
49
49
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',