centaline-data-driven 1.5.0 → 1.5.1

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.1",
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,
@@ -776,7 +777,7 @@ export default {
776
777
  },
777
778
  resetScroll: function () {
778
779
  var self = this;
779
- if(self.$refs.tableParent && self.$refs["rows." + self.model.selectIndex]){
780
+ if(self.$refs.tableParent && self.$refs["rows." + self.model.selectIndex] && self.$refs["rows." + self.model.selectIndex][0]){
780
781
  if (self.$refs.tableParent.scrollTop > self.$refs["rows." + self.model.selectIndex][0].offsetTop - self.$refs.tableHead.offsetHeight) {
781
782
  self.$refs.tableParent.scrollTop = self.$refs["rows." + self.model.selectIndex][0].offsetTop - self.$refs.tableHead.offsetHeight;
782
783
  }
@@ -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-->