centaline-data-driven 1.3.56 → 1.3.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.3.56",
3
+ "version": "1.3.57",
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="'/PropertyRealLook/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/api/finance/account-flow/task-virtual'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
5
5
  <ct-dialog-list></ct-dialog-list>
6
6
  </div>
7
7
  </template>
@@ -12,7 +12,11 @@
12
12
  data() {
13
13
  return {
14
14
  apiParam:{
15
- chanceID: "1526015051042000896", actionType: 2
15
+ actionType: "1",
16
+ businessId: "1557203282719256578",
17
+ pageOnly: "true",
18
+ pageStyle: "2",
19
+ stepId: "1557203798568316929",
16
20
  },
17
21
  topHeight:10,
18
22
  }
@@ -125,42 +125,33 @@
125
125
  }}</span>
126
126
  </div>
127
127
  </div>
128
- <div
129
- v-if="model.fields1Dic.EstimatePriceRentUnit"
130
- class="row-i"
131
- >
132
- <span>{{
133
- model.fields1Dic.EstimatePriceRentUnit.label
134
- }}</span
135
- ><span>{{
136
- model.fields1Dic.EstimatePriceRentUnit.value
137
- }}</span
138
- ><span>{{
139
- model.fields1Dic.EstimatePriceRentUnit.unitName
140
- }}</span>
128
+ <div v-if="model.fields1Dic.EstimatePriceRentUnit" class="row-i">
129
+ <span>{{ model.fields1Dic.EstimatePriceRentUnit.label }}</span>
130
+ <span>{{ model.fields1Dic.EstimatePriceRentUnit.value }}</span>
131
+ <span>{{ model.fields1Dic.EstimatePriceRentUnit.unitName }}</span>
141
132
  </div>
142
133
  </div>
143
134
 
144
135
  <div class="info-mid">
145
- <div class="mid-i">
136
+ <div class="mid-i" v-if="model.fields1Dic.Area">
146
137
  <div>{{ model.fields1Dic.Area.label }}</div>
147
138
  <div>
148
139
  {{ model.fields1Dic.Area.value
149
140
  }}{{ model.fields1Dic.Area.unitName }}
150
141
  </div>
151
142
  </div>
152
- <div class="mid-i">
143
+ <div class="mid-i" v-if="model.fields1Dic.AreaNet">
153
144
  <div>{{ model.fields1Dic.AreaNet.label }}</div>
154
145
  <div>
155
146
  {{ model.fields1Dic.AreaNet.value
156
147
  }}{{ model.fields1Dic.AreaNet.unitName }}
157
148
  </div>
158
149
  </div>
159
- <div class="mid-i">
150
+ <div class="mid-i" v-if="model.fields1Dic.FloorName">
160
151
  <div>{{ model.fields1Dic.FloorName.label }}</div>
161
152
  <div>{{ model.fields1Dic.FloorName.value }}</div>
162
153
  </div>
163
- <div class="mid-i">
154
+ <div class="mid-i" v-if="model.fields1Dic.PropertyDirectionID">
164
155
  <div>{{ model.fields1Dic.PropertyDirectionID.label }}</div>
165
156
  <div>{{ model.fields1Dic.PropertyDirectionID.value }}</div>
166
157
  </div>
@@ -597,20 +588,24 @@ export default {
597
588
  var sumWidth = 0;
598
589
  for (var i = 0; i < self.model.tags1.length; i++) {
599
590
  var moreWidth = 22;
600
-
601
- sumWidth = sumWidth + self.$refs["StatisticsItem" + i][0].offsetParent.offsetWidth;
591
+
592
+ if(self.$refs["StatisticsItem" + i][0] && self.$refs["StatisticsItem" + i][0].offsetParent){
593
+ sumWidth = sumWidth + self.$refs["StatisticsItem" + i][0].offsetParent.offsetWidth;
594
+ }
602
595
  var nextWidth = 0;
603
596
  if (i + 1 < self.model.tags1.length) {
604
597
  try {
605
598
  nextWidth = self.$refs["StatisticsItem" + (i + 1)][0].offsetParent.offsetWidth;
606
599
  } catch (e) { }
607
- } else {
600
+ }
601
+ else {
608
602
  moreWidth = 0;
609
603
  }
610
604
  if (self.model.midlWidth - 42 < sumWidth + moreWidth) {
611
605
  showIndex = i;
612
606
  break;
613
- } else if (self.model.midlWidth - 42 < nextWidth + moreWidth) {
607
+ }
608
+ else if (self.model.midlWidth - 42 < nextWidth + moreWidth) {
614
609
  showIndex = i + 1;
615
610
  break;
616
611
  }
@@ -620,7 +615,8 @@ export default {
620
615
  self.model.tags1.slice(0, showIndex),
621
616
  self.model.tags1.slice(showIndex),
622
617
  ];
623
- } else {
618
+ }
619
+ else {
624
620
  self.showData = [self.model.tags1];
625
621
  }
626
622
  }
@@ -119,23 +119,23 @@
119
119
  </div>
120
120
 
121
121
  <div class="info-mid">
122
- <div class="mid-i">
122
+ <div class="mid-i" v-if="model.fields1Dic.Area">
123
123
  <div>{{ model.fields1Dic.Area.label }}</div>
124
124
  <div>
125
125
  {{ model.fields1Dic.Area.value}}{{ model.fields1Dic.Area.unitName }}
126
126
  </div>
127
127
  </div>
128
- <div class="mid-i">
128
+ <div class="mid-i" v-if="model.fields1Dic.AreaNet">
129
129
  <div>{{ model.fields1Dic.AreaNet.label }}</div>
130
130
  <div>
131
131
  {{ model.fields1Dic.AreaNet.value}}{{ model.fields1Dic.AreaNet.unitName }}
132
132
  </div>
133
133
  </div>
134
- <div class="mid-i">
134
+ <div class="mid-i" v-if="model.fields1Dic.FloorName">
135
135
  <div>{{ model.fields1Dic.FloorName.label }}</div>
136
136
  <div>{{ model.fields1Dic.FloorName.value }}</div>
137
137
  </div>
138
- <div class="mid-i">
138
+ <div class="mid-i" v-if="model.fields1Dic.PropertyDirectionID">
139
139
  <div>{{ model.fields1Dic.PropertyDirectionID.label }}</div>
140
140
  <div>{{ model.fields1Dic.PropertyDirectionID.value }}</div>
141
141
  </div>
@@ -551,10 +551,8 @@ export default {
551
551
  },
552
552
  mounted() {
553
553
  var self = this;
554
- this.$watch(
555
- "$refs.main.model.midlWidth",
554
+ this.$watch( "$refs.main.model.midlWidth",
556
555
  function (newVal, oldVal) {
557
- // 做点什么
558
556
  if (oldVal != undefined) {
559
557
  self.showStats();
560
558
  }
@@ -605,23 +603,23 @@ export default {
605
603
  for (var i = 0; i < self.model.tags1.length; i++) {
606
604
  var moreWidth = 22;
607
605
 
608
- sumWidth =
609
- sumWidth +
610
- self.$refs["StatisticsItem" + i][0].offsetParent.offsetWidth;
606
+ if(self.$refs["StatisticsItem" + i][0] && self.$refs["StatisticsItem" + i][0].offsetParent){
607
+ sumWidth = sumWidth + self.$refs["StatisticsItem" + i][0].offsetParent.offsetWidth;
608
+ }
611
609
  var nextWidth = 0;
612
610
  if (i + 1 < self.model.tags1.length) {
613
611
  try {
614
- nextWidth =
615
- self.$refs["StatisticsItem" + (i + 1)][0].offsetParent
616
- .offsetWidth;
612
+ nextWidth = self.$refs["StatisticsItem" + (i + 1)][0].offsetParent.offsetWidth;
617
613
  } catch (e) {}
618
- } else {
614
+ }
615
+ else {
619
616
  moreWidth = 0;
620
617
  }
621
618
  if (self.model.midlWidth - 42 < sumWidth + moreWidth) {
622
619
  showIndex = i;
623
620
  break;
624
- } else if (self.model.midlWidth - 42 < nextWidth + moreWidth) {
621
+ }
622
+ else if (self.model.midlWidth - 42 < nextWidth + moreWidth) {
625
623
  showIndex = i + 1;
626
624
  break;
627
625
  }
@@ -631,7 +629,8 @@ export default {
631
629
  self.model.tags1.slice(0, showIndex),
632
630
  self.model.tags1.slice(showIndex),
633
631
  ];
634
- } else {
632
+ }
633
+ else {
635
634
  self.showData = [self.model.tags1];
636
635
  }
637
636
  }
@@ -779,6 +779,11 @@
779
779
  || f.$el.offsetParent.offsetParent.offsetParent.classList[0] === 'app-main'
780
780
  || f.$el.offsetParent.offsetParent.classList[0] === 'app-main') {
781
781
  total = f.$el.offsetParent.offsetTop;
782
+ if(f.$el.offsetParent.offsetParent.classList[0] === 'app-main'
783
+ && f.$el.offsetTop>f.$el.offsetParent.offsetTop
784
+ && f.$el.offsetParent.classList[0] === 'el-row'){
785
+ total = f.$el.offsetTop;
786
+ }
782
787
  this.$common.setScrollTop(total);
783
788
  }
784
789
  else if (f.$el.offsetParent.offsetParent.offsetParent.classList[0] === 'ct-dialog_wrapper') {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-loading="loading" class="ct-Layout" v-if="Layout !== null && !loading">
2
+ <div class="ct-Layout" v-if="Layout !== null && !loading">
3
3
  <ct-layoutchildren :rowindex="rowindex" :actionRouter="actionRouter" :rowdata="vmodel" :vmodel="Layout" @click="clickHandler"></ct-layoutchildren>
4
4
  </div>
5
5
  </template>
@@ -224,7 +224,24 @@
224
224
  mounted() {
225
225
  },
226
226
  beforeDestroy() {
227
- this.Layout = [];
227
+ async function destroyDeep(vnode) {
228
+ let vnodes
229
+ if (vnode.children || (typeof vnode.componentInstance !== 'undefined' && vnode.componentInstance._vnode.children)) {
230
+ vnodes = vnode.children || vnode.componentInstance._vnode.children
231
+ for (const vn of vnodes) {
232
+ destroyDeep(vn)
233
+ }
234
+ }
235
+ if (typeof vnode.componentInstance !== 'undefined') {
236
+ vnode.componentInstance.$destroy()
237
+ }
238
+ setTimeout(() => {
239
+ vnode.componentInstance = undefined
240
+ vnode.elm.innerHTML = ''
241
+ }, 0)
242
+ }
243
+ this.Layout = null;
244
+ destroyDeep(this._vnode)
228
245
  },
229
246
  }
230
247
  </script>
@@ -28,7 +28,7 @@
28
28
  },
29
29
  data() {
30
30
  return {
31
- forindex: 0
31
+
32
32
  };
33
33
  },
34
34
  created() {
@@ -43,7 +43,23 @@
43
43
 
44
44
  },
45
45
  beforeDestroy() {
46
- this.model = {};
46
+ async function destroyDeep(vnode) {
47
+ let vnodes
48
+ if (vnode.children || (typeof vnode.componentInstance !== 'undefined' && vnode.componentInstance._vnode.children)) {
49
+ vnodes = vnode.children || vnode.componentInstance._vnode.children
50
+ for (const vn of vnodes) {
51
+ destroyDeep(vn)
52
+ }
53
+ }
54
+ if (typeof vnode.componentInstance !== 'undefined') {
55
+ vnode.componentInstance.$destroy()
56
+ }
57
+ setTimeout(() => {
58
+ vnode.componentInstance = undefined
59
+ vnode.elm.innerHTML = ''
60
+ }, 0)
61
+ }
62
+ destroyDeep(this._vnode)
47
63
  },
48
64
  }
49
65
  </script>
@@ -19,8 +19,7 @@
19
19
  },
20
20
  data() {
21
21
  return {
22
- forname: '',
23
- forwindex:0
22
+
24
23
  };
25
24
  },
26
25
  created() {
@@ -35,7 +34,23 @@
35
34
 
36
35
  },
37
36
  beforeDestroy() {
38
- this.model = {};
37
+ async function destroyDeep(vnode) {
38
+ let vnodes
39
+ if (vnode.children || (typeof vnode.componentInstance !== 'undefined' && vnode.componentInstance._vnode.children)) {
40
+ vnodes = vnode.children || vnode.componentInstance._vnode.children
41
+ for (const vn of vnodes) {
42
+ destroyDeep(vn)
43
+ }
44
+ }
45
+ if (typeof vnode.componentInstance !== 'undefined') {
46
+ vnode.componentInstance.$destroy()
47
+ }
48
+ setTimeout(() => {
49
+ vnode.componentInstance = undefined
50
+ vnode.elm.innerHTML = ''
51
+ }, 0)
52
+ }
53
+ destroyDeep(this._vnode)
39
54
  },
40
55
  }
41
56
  </script>
@@ -102,7 +102,23 @@
102
102
 
103
103
  },
104
104
  beforeDestroy() {
105
- this.model = {};
105
+ async function destroyDeep(vnode) {
106
+ let vnodes
107
+ if (vnode.children || (typeof vnode.componentInstance !== 'undefined' && vnode.componentInstance._vnode.children)) {
108
+ vnodes = vnode.children || vnode.componentInstance._vnode.children
109
+ for (const vn of vnodes) {
110
+ destroyDeep(vn)
111
+ }
112
+ }
113
+ if (typeof vnode.componentInstance !== 'undefined') {
114
+ vnode.componentInstance.$destroy()
115
+ }
116
+ setTimeout(() => {
117
+ vnode.componentInstance = undefined
118
+ vnode.elm.innerHTML = ''
119
+ }, 0)
120
+ }
121
+ destroyDeep(this._vnode)
106
122
  },
107
123
  }
108
124
  </script>
@@ -296,7 +296,26 @@
296
296
  doClosePopoverHandle(){
297
297
  this.$refs.screen.$refs.doClosePopover.click();
298
298
  },
299
- }
299
+ },
300
+ beforeDestroy() {
301
+ async function destroyDeep(vnode) {
302
+ let vnodes
303
+ if (vnode.children || (typeof vnode.componentInstance !== 'undefined' && vnode.componentInstance._vnode.children)) {
304
+ vnodes = vnode.children || vnode.componentInstance._vnode.children
305
+ for (const vn of vnodes) {
306
+ destroyDeep(vn)
307
+ }
308
+ }
309
+ if (typeof vnode.componentInstance !== 'undefined') {
310
+ vnode.componentInstance.$destroy()
311
+ }
312
+ setTimeout(() => {
313
+ vnode.componentInstance = undefined
314
+ vnode.elm.innerHTML = ''
315
+ }, 0)
316
+ }
317
+ destroyDeep(this._vnode)
318
+ },
300
319
  }
301
320
  </script>
302
321
  <style lang="scss" scoped>
@@ -283,7 +283,12 @@ export default {
283
283
  self.model.setRow(self.model.listData);
284
284
  }
285
285
  self.tableComplate = true;
286
- this.setTableHeight();
286
+ self.setTableHeight();
287
+ if (self.isLayout) {
288
+ setTimeout(function () {
289
+ self.setTableHeight();
290
+ }, 100);
291
+ }
287
292
  this.selectAllType = this.model.getSelectAll();
288
293
 
289
294
  this.$nextTick(() => {
@@ -458,7 +463,9 @@ export default {
458
463
  function scrollHandle(e) {
459
464
  self.getScrollAttr();
460
465
  }
461
- tableCont.addEventListener("scroll", self.getScrollAttr);
466
+ if (typeof tableCont !== "undefined") {
467
+ tableCont.addEventListener("scroll", self.getScrollAttr);
468
+ }
462
469
  });
463
470
  },
464
471
  removeScrollEvent() {
@@ -619,7 +626,11 @@ export default {
619
626
  if (this.$parent.$parent.$refs.shortcutFollow) {
620
627
  h4 = this.$parent.$parent.$refs.shortcutFollow.offsetHeight | 0;
621
628
  }
622
- let tableHeight = h1 - h2 - h3 - h4 - 290;
629
+ var h5 = 0;
630
+ if (this.$parent.$refs.screen) {
631
+ h5 = this.$parent.$refs.screen.$el.offsetHeight | 0;
632
+ }
633
+ let tableHeight = h1 - h2 - h3 - h4 - h5 - 290;
623
634
  if (h2 == 0) {
624
635
  tableHeight = tableHeight + 15;
625
636
  }
@@ -1541,7 +1552,7 @@ export default {
1541
1552
  self.updateCurrentRow(field, data);
1542
1553
  }
1543
1554
  },
1544
- },
1555
+ },
1545
1556
  };
1546
1557
  </script>
1547
1558
  <style>
package/src/main.js CHANGED
@@ -42,7 +42,7 @@ Vue.use(centaline, {
42
42
  getRequestHeaders: function () {
43
43
  return {
44
44
  oldToken: '77791819-ac7d-4a5d-bd16-5278b9f0b5d7',
45
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOgzAQRO-yNSt58Xpt6BJDmhwCATYSqSI-UqIod4-jQEefV4xGr5l5wbx2UILdwIPYaYoNPIidhogLS1LjqbAeWVijI-_Qs3i-VLX25woyiI87lCRCbNnYPIOxXX5CO0dfsc5xusbnP87dljHN6hCCUkGhtDxg-tljF1MzuTJ5P3RGWoL3BwAA__8.FzLOuskp7kNb-SJX74wAXbH9D0zkINhgIIGiew1y8XU',
45
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEOgkAQRP9laza55Xb3bu30wMaPIAdSYGUEEo3x38UEOnpf8YpJJjNvGOcWDhBWcEcbja3gjjYaIrZAWuPRQkJW9hgpRUysic9V7dOpggL65x0OpEoSo7EvYMjTGrhSfsE89o9L__rHuds0LLOm5rxcDZ20HXKZFXMoZamJdx2RzyLw-QIAAP__.hjzw6Mbh5gUGa-JsoKT0XZdSO5UstBfl1tvFXfGp98g',
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"}',
48
48
  estateId: '20210729104021C49F04B55C50F6AF58',