centaline-data-driven 1.5.0 → 1.5.2

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.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -71,7 +71,7 @@
71
71
  <tr v-for="(row, rowindex) in model.listData" :key="rowindex"
72
72
  v-if="pageRowMin <= rowindex && rowindex <= pageRowMax" :ref="'rows.' + rowindex"
73
73
  @click="rowClickHandle($event, rowindex)" class="ct-tr" :style="row.$style">
74
- <td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td" :class="[model.tdClass]"
74
+ <td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td" :class="[model.tdClass,rowindex === model.selectIndex ? 'select' : null,]"
75
75
  align="center">
76
76
  <label v-if="!model.rightMulti || $common.getDataOfUpperLower(row, model.rightMulti) == 1"
77
77
  class="el-checkbox is-checked">
@@ -87,6 +87,7 @@
87
87
  :rowspan="tdRowspan(column, row)" class="ct-td" :class="[
88
88
  colHasWidth[colIndex],
89
89
  model.tdClass,
90
+ rowindex === model.selectIndex ? 'select' : null,
90
91
  colIndex === leftShadow ? 'shadowLeft' : null,
91
92
  colIndex === rightShadow ? 'shadowRight' : null,
92
93
  column.fixed === 'left' ? 'left-fixation' : null,
@@ -292,6 +293,7 @@ export default {
292
293
  activated() {
293
294
  this.$nextTick(() => {
294
295
  this.setTableHeight();
296
+ this.resetScroll();
295
297
  });
296
298
  },
297
299
  methods: {
@@ -588,18 +590,12 @@ export default {
588
590
  }
589
591
  },
590
592
  getScrollAttr(e) {
591
- if (
592
- typeof this.$refs.tableParent !== "undefined" &&
593
- typeof this.$refs.headThs !== "undefined"
594
- ) {
593
+ if ( typeof this.$refs.tableParent !== "undefined" && typeof this.$refs.headThs !== "undefined") {
595
594
  this.calculatingRowHeight();
596
595
 
597
596
  var scrollTop = this.$refs.tableParent.scrollTop;
598
597
  var scrollLeft = this.$refs.tableParent.scrollLeft;
599
- var scrollRight =
600
- this.$refs.tableParent.scrollWidth -
601
- scrollLeft -
602
- this.$refs.tableParent.clientWidth;
598
+ var scrollRight = this.$refs.tableParent.scrollWidth - scrollLeft - this.$refs.tableParent.clientWidth;
603
599
 
604
600
  //计算可视范围的第一条数据
605
601
  let index = 0;
@@ -607,7 +603,8 @@ export default {
607
603
  for (; index < this.model.listData.length; index++) {
608
604
  if (topHeigth >= scrollTop) {
609
605
  break;
610
- } else {
606
+ }
607
+ else {
611
608
  topHeigth = topHeigth + this.model.listData[index].$heigth;
612
609
  }
613
610
  }
@@ -625,10 +622,7 @@ export default {
625
622
  this.pageRowMax = this.firstRow + this.displayRowNumber;
626
623
  this.pageRowMin = this.firstRow - this.displayRowNumber;
627
624
  this.pageRowMin = this.pageRowMin > 0 ? this.pageRowMin : 0;
628
- if (
629
- this.pageRowMin > 0 &&
630
- this.model.listData[this.pageRowMin].$rowspan === 0
631
- ) {
625
+ if ( this.pageRowMin > 0 && this.model.listData[this.pageRowMin].$rowspan === 0) {
632
626
  for (let i = this.pageRowMin; i >= 0; i--) {
633
627
  if (this.model.listData[i].$rowspan > 0) {
634
628
  this.pageRowMin = i;
@@ -776,7 +770,7 @@ export default {
776
770
  },
777
771
  resetScroll: function () {
778
772
  var self = this;
779
- if(self.$refs.tableParent && self.$refs["rows." + self.model.selectIndex]){
773
+ if(self.$refs.tableParent && self.$refs["rows." + self.model.selectIndex] && self.$refs["rows." + self.model.selectIndex][0]){
780
774
  if (self.$refs.tableParent.scrollTop > self.$refs["rows." + self.model.selectIndex][0].offsetTop - self.$refs.tableHead.offsetHeight) {
781
775
  self.$refs.tableParent.scrollTop = self.$refs["rows." + self.model.selectIndex][0].offsetTop - self.$refs.tableHead.offsetHeight;
782
776
  }
@@ -134,8 +134,11 @@
134
134
  let i = this.activeIndex;
135
135
  let parm={};
136
136
  parm[this.categorySource.fieldName1]=this.categorySource.selectItems1[i].code;
137
- this.label=this.categorySource.selectItems1[i].displayName;
138
- if(!this.categorySource.selectItems1[i].loaded){
137
+ this.label=this.categorySource.selectItems1[i].displayName;
138
+ if(this.categorySource.selectItems1[i].loaded){
139
+ this.$refs['searchlist'+i][0].resize();
140
+ }
141
+ else {
139
142
  this.categorySource.selectItems1[i].loaded=true;
140
143
  this.$nextTick(function () {
141
144
  this.isLoading=true;
@@ -46,7 +46,7 @@
46
46
  <!--Photo-->
47
47
  <template v-else-if="itemFile.mediaTypeID == '2'">
48
48
  <ct-viewerImage ref="viewerImage"
49
- :imgUrl="resultObject"
49
+ :imgUrl="resultObject+'/'+displayAreaWidth+'/'+displayAreaHeight"
50
50
  :rotate="rotate"></ct-viewerImage>
51
51
  </template>
52
52
  <!--ThreeDimensional-->
package/src/main.js CHANGED
@@ -50,7 +50,7 @@ Vue.use(centaline, {
50
50
  getRequestHeaders: function () {
51
51
  return {
52
52
  oldToken: '9dac5622-e8b2-46c4-aa90-b5bfd0d1b1e8',
53
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe_iOitt7PXamy7xp-EQUUKMBBUiiQRC3J0goKNnildMM--u5nVUjTLspE1cQ7Dkgbi2IJQzBGQWk9GYGHv5AD_mS08uSNsmB4QdA2WbQHTIYMR2kVLrYmJVqXI9q6Zmr8khMlbqOCxvYbzhl1jnctmV2z_OnZbjli2T9QOzB0TZsrS1R9x70EYmLtoerGX1eAIAAP__.0wvOuo6VUjar3ngMidARPex7UIAp9IPBRS4bI5vYWwQ',
53
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe_iOiv5s15n0yX-NBwisuUghQqRRAIh7k4Q0NEzxSumeXMXy1ZEJww57iMp8BZbQFIWGFMCL4nYJGlMCCN_gB_zZUTnue-jA5QDASYbgbVPYNgOAWPvQiTRiOl6Fp2iVtvWWqsaMef1LZBZvcS2TJfDdPtH3Gmd91upc60VC7g6VcCjk9CSqpC1KyWj3kNIPJ4AAAD__w.3I7QJ69KHIdBfYNzrurJKS6Xx02DG75sMCuV49wcIME',
54
54
 
55
55
  originalRequestURL: 'http://10.88.22.67:8080',
56
56
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',