centaline-data-driven 1.4.96 → 1.4.98

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.96",
3
+ "version": "1.4.98",
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="'/integratedmanage/PreReportData/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/api/third-dept-tran/tran-comm-adjust/create'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
5
5
  <ct-dialog-list></ct-dialog-list>
6
6
  </div>
7
7
  </template>
@@ -11,9 +11,21 @@
11
11
  name: 'DataDrivenForm',
12
12
  data() {
13
13
  return {
14
- apiParam:{
15
-  actionType: 3,
16
-         jsonData: { preReportDataID: "4789be76-19df-44a5-a256-0f907060bcd9" },
14
+ apiParam:{actionType
15
+ :
16
+ "2",
17
+ commAdjustCategory
18
+ :
19
+ "CC01020020",
20
+ originalTraId
21
+ :
22
+ "1650403741662187522",
23
+ pageOnly
24
+ :
25
+ "true",
26
+ pageStyle
27
+ :
28
+ "2"
17
29
  },
18
30
  topHeight:10,
19
31
  }
@@ -776,25 +776,11 @@ export default {
776
776
  },
777
777
  resetScroll: function () {
778
778
  var self = this;
779
- if (
780
- self.$refs.tableParent.scrollTop >
781
- self.$refs["rows." + self.model.selectIndex][0].offsetTop -
782
- self.$refs.tableHead.offsetHeight
783
- ) {
784
- self.$refs.tableParent.scrollTop =
785
- self.$refs["rows." + self.model.selectIndex][0].offsetTop -
786
- self.$refs.tableHead.offsetHeight;
779
+ if (self.$refs.tableParent.scrollTop > self.$refs["rows." + self.model.selectIndex][0].offsetTop - self.$refs.tableHead.offsetHeight) {
780
+ self.$refs.tableParent.scrollTop = self.$refs["rows." + self.model.selectIndex][0].offsetTop - self.$refs.tableHead.offsetHeight;
787
781
  }
788
- if (
789
- self.$refs.tableParent.scrollTop +
790
- self.$refs.tableParent.clientHeight <=
791
- self.$refs["rows." + self.model.selectIndex][0].offsetTop +
792
- self.$refs["rows." + self.model.selectIndex][0].offsetHeight
793
- ) {
794
- self.$refs.tableParent.scrollTop =
795
- self.$refs["rows." + self.model.selectIndex][0].offsetTop -
796
- self.$refs.tableParent.clientHeight +
797
- self.$refs["rows." + self.model.selectIndex][0].offsetHeight;
782
+ if (self.$refs.tableParent.scrollTop + self.$refs.tableParent.clientHeight <= self.$refs["rows." + self.model.selectIndex][0].offsetTop + self.$refs["rows." + self.model.selectIndex][0].offsetHeight) {
783
+ self.$refs.tableParent.scrollTop = self.$refs["rows." + self.model.selectIndex][0].offsetTop - self.$refs.tableParent.clientHeight + self.$refs["rows." + self.model.selectIndex][0].offsetHeight;
798
784
  }
799
785
  self.scrollTop = self.$refs.tableParent.scrollTop;
800
786
  },
@@ -802,14 +788,15 @@ export default {
802
788
  var self = this;
803
789
  if (action === 1) {
804
790
  this.model.downKey();
805
- } else {
791
+ }
792
+ else {
806
793
  this.model.upKey();
807
794
  }
808
795
  this.rowColorChange();
809
796
  this.resetScroll();
810
797
  this.$emit("rowClickHandle");
811
798
  if (!this.isBusy) {
812
- if (this.model.selectIndex === this.model.listData.length - 1) {
799
+ if (this.model.selectIndex === this.model.listData.length - 3) {
813
800
  self.isBusy = true;
814
801
  self.tableLoading = true;
815
802
  self.model.nextPage((rtn) => {
@@ -21,7 +21,7 @@
21
21
  </div>
22
22
  <div v-if="categorySource" class="el-tabs__content">
23
23
  <div v-for="(col, index) in categorySource.selectItems1" v-show="activeIndex===index" v-loading="isLoading" :key="index" :index="index" class="el-tab-pane" role="tabpanel" aria-hidden="true">
24
- <ct-searchlistOne :ref="'searchlist'+index" :searchConditionApi="searchConditionApi" :pageHeight="listHeight"
24
+ <ct-searchlistOne v-if="col.loaded" :ref="'searchlist'+index" :searchConditionApi="searchConditionApi" :pageHeight="listHeight"
25
25
  :searchStatsApi="searchStatsApi" :searchDataApi="searchDataApi" :apiParam="apiParam" @tableLoaded="tableLoaded">
26
26
  </ct-searchlistOne>
27
27
  </div>
@@ -116,7 +116,7 @@
116
116
  function (response) {
117
117
  if (response.rtnCode === 200) {
118
118
  self.categorySource=response.content.fields[0];
119
- console.log('categorySource',self.categorySource)
119
+ self.categorySource.selectItems1[0].loaded=true;
120
120
  let parm={};
121
121
  parm[self.categorySource.fieldName1]=self.categorySource.selectItems1[self.activeIndex].code;
122
122
  self.label=self.categorySource.selectItems1[self.activeIndex].displayName;
@@ -131,17 +131,17 @@
131
131
  );
132
132
  },
133
133
  categorychangeHandler() {
134
- console.log('activeIndex',this.activeIndex)
135
134
  let i = this.activeIndex;
136
135
  let parm={};
137
136
  parm[this.categorySource.fieldName1]=this.categorySource.selectItems1[i].code;
138
- this.label=this.categorySource.selectItems1[i].displayName;
139
- this.$nextTick(function () {
140
- if(!this.$refs['searchlist'+i][0].loaded.categoryTabLoaded){
137
+ this.label=this.categorySource.selectItems1[i].displayName;
138
+ if(!this.categorySource.selectItems1[i].loaded){
139
+ this.categorySource.selectItems1[i].loaded=true;
140
+ this.$nextTick(function () {
141
141
  this.isLoading=true;
142
142
  this.$refs['searchlist'+i][0].categoryLoaded(parm);
143
- }
144
- });
143
+ });
144
+ };
145
145
  },
146
146
  categoryLoaded(param) {
147
147
  this.listHeight=(this.$refs.main.offsetHeight-42)+'px';
@@ -150,8 +150,9 @@
150
150
  categoryLoadedError() {
151
151
  this.$refs['searchlist'+this.activeIndex][0].categoryLoadedError();
152
152
  },
153
- tableLoaded(){
153
+ tableLoaded(model){
154
154
  this.isLoading=false;
155
+ this.$emit('tableLoaded', model);
155
156
  },
156
157
  refreshParentHandler() {
157
158
  this.$emit('refreshParent');
@@ -161,24 +162,6 @@
161
162
  this.$refs['searchlist'+this.activeIndex][0].resize();
162
163
  }
163
164
  },
164
- showTitleHandler() {
165
- if (this.$refs['table'+this.activeIndex][0].model && this.$refs['table'+this.activeIndex][0].model.flagShowTitle) {
166
- this.title=this.$refs['table'+this.activeIndex][0].model.title;
167
- this.showTitle=this.$refs['table'+this.activeIndex][0].model.flagShowTitle;
168
- }
169
- },
170
- showTitleScreenHandler() {
171
- if (this.$refs['screen'+this.activeIndex][0].model && this.$refs['screen'+this.activeIndex][0].model.flagShowTitle) {
172
- this.title=this.$refs['screen'+this.activeIndex][0].model.title;
173
- this.showTitle=this.$refs['screen'+this.activeIndex][0].model.flagShowTitle;
174
- }
175
- },
176
- clickNextHandler() {
177
- this.$refs['table'+this.activeIndex][0].rowKeyDownHandle(null,1);
178
- },
179
- clickPrevHandler() {
180
- this.$refs['table'+this.activeIndex][0].rowKeyDownHandle(null,-1);
181
- },
182
165
  },
183
166
  beforeDestroy() {
184
167
  async function destroyDeep(vnode) {
@@ -56,7 +56,8 @@
56
56
  <!--Video-->
57
57
  <template v-else-if="itemFile.mediaTypeID == '4'">
58
58
  <div class="viewerContent">
59
- <video preload="none"
59
+ <template v-if="itemFile.thumbnailUrl">
60
+ <video preload="none" :poster="itemFile.thumbnailUrl"
60
61
  :src="resultObject"
61
62
  controls="controls"
62
63
  class="viewerContent"
@@ -65,6 +66,18 @@
65
66
  :width="800">
66
67
  您的浏览器不支持 video 标签。
67
68
  </video>
69
+ </template>
70
+ <template v-else>
71
+ <video preload="none"
72
+ :src="resultObject"
73
+ controls="controls"
74
+ class="viewerContent"
75
+ controlslist="nodownload"
76
+ :height="500"
77
+ :width="800">
78
+ 您的浏览器不支持 video 标签。
79
+ </video>
80
+ </template>
68
81
  </div>
69
82
  </template>
70
83
  <!--Audio-->
@@ -491,7 +491,9 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
491
491
  },
492
492
  apiData(callback) {
493
493
  var self = this;
494
- self.$vue.searchStrat=Date.now();
494
+ if(self.$vue && self.$vue.searchStrat && self.$vue.searchEnd){
495
+ self.$vue.searchStrat=Date.now();
496
+ }
495
497
  this.isLoading = true;
496
498
  if (self.searchModel) {
497
499
  //不需要禁用查询按钮
@@ -509,7 +511,9 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
509
511
  }
510
512
  })
511
513
  .then(function (response) {
512
- self.$vue.searchEnd=Date.now();
514
+ if(self.$vue && self.$vue.searchStrat && self.$vue.searchEnd){
515
+ self.$vue.searchEnd=Date.now();
516
+ }
513
517
  self.isLoading = false;
514
518
  if (response.rtnCode === Enum.ReturnCode.Successful) {
515
519
  if (response.content.rows.length > 0) {
@@ -525,14 +529,12 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
525
529
  if (typeof response.content.foot !== 'undefined') {
526
530
  self.footer = response.content.foot;
527
531
  }
528
-
529
532
  if (typeof response.content.topText !== 'undefined') {
530
533
  self.listHeader = response.content.topText;
531
534
  }
532
535
  if (typeof response.content.bottomText !== 'undefined') {
533
536
  self.listFooter = response.content.bottomText;
534
537
  }
535
-
536
538
  if (typeof response.page.flagMoreData !== 'undefined') {
537
539
  self.flagMoreData = response.page.flagMoreData;
538
540
  }
@@ -562,6 +564,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
562
564
  self.$vue.setTableHeight();
563
565
  }
564
566
  }
567
+
565
568
  if (typeof callback !== 'undefined') {
566
569
  if (response.content.rows.length > 0) {
567
570
  callback(true,response);
package/src/main.js CHANGED
@@ -49,8 +49,8 @@ Vue.use(centaline, {
49
49
  // 获取请求头
50
50
  getRequestHeaders: function () {
51
51
  return {
52
- oldToken: '0bbcf3e8-cf7e-42de-adef-af54e2158fe4',
53
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOivZ2fXamy7xp-EQURJShAqRRAIh7o4R0NEzxRRPI725q3UfVaOQnbSJDQRLHoiNBaGcIWhmwawRY-zlE_hR3_TkgrRtckC6Y6BsE0gdMqDYLlJqXUysKjVfz6ox7GvUxciVWobtDWoj-gX2db4c5ts_zp22pWjJyIQDGhgJy5iMBz9pB3z02pGjchXV4wkAAP__.UJfbXztMu3Mir8CBo48y20zouMa8jMar9OMNWQtQBbA',
52
+ oldToken: '9dac5622-e8b2-46c4-aa90-b5bfd0d1b1e8',
53
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe_iOitt7PXamy7xp-EQUUKMBBUiiQRC3J0goKNnildMM--u5nVUjTLspE1cQ7Dkgbi2IJQzBGQWk9GYGHv5AD_mS08uSNsmB4QdA2WbQHTIYMR2kVLrYmJVqXI9q6Zmr8khMlbqOCxvYbzhl1jnctmV2z_OnZbjli2T9QOzB0TZsrS1R9x70EYmLtoerGX1eAIAAP__.0wvOuo6VUjar3ngMidARPex7UIAp9IPBRS4bI5vYWwQ',
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"}',