centaline-data-driven 1.4.97 → 1.4.99

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.97",
3
+ "version": "1.4.99",
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
  }
@@ -1,6 +1,6 @@
1
1
 
2
2
  /* 查询搜索 */
3
- .max-search-btn,.max-more-btn{
3
+ .max-search-btn,.max-more-btn,.el-container button.el-button.max.el-button--primary.el-button--mini.ct-font-size-mini{
4
4
  height: 26px;
5
5
  background: var(--chinaRed) !important;
6
6
  border-color: var(--chinaRed) !important;
@@ -22,6 +22,7 @@
22
22
  border-color: var(--btnHoverRed) !important;
23
23
  color: #fff !important;
24
24
  }
25
+
25
26
  .max-more-btn:hover .max-open,.max-more-btn:hover .max-fold{
26
27
  background-color: var(--btnHoverRed) !important;
27
28
  }
@@ -369,4 +370,8 @@
369
370
  .field-top .ct-checkbox .el-checkbox.is-checked:hover .el-checkbox__input .el-checkbox__inner{
370
371
  border-color: var(--centalineBlue) !important;
371
372
  }
372
-
373
+ .el-container button.el-button.max.el-button--primary.el-button--mini.ct-font-size-mini:hover{
374
+ background-color:var(--btnHoverRed) !important;
375
+ border-color: var(--btnHoverRed) !important;
376
+ color: #fff !important;
377
+ }
@@ -32,7 +32,7 @@
32
32
  :icon="model.icon"
33
33
  :disabled="model.disabled || model.locked">
34
34
  <div>{{model.label}}</div>
35
- <div style="color:red;font-weight:700;">{{model.subText}}</div>
35
+ <div class="subText">{{model.subText}}</div>
36
36
  </el-button>
37
37
  <el-button v-else-if="model.isCallTel" class="max"
38
38
  :type="model.isHyperLink ? 'text' : 'primary'"
@@ -204,9 +204,16 @@
204
204
  </script>
205
205
  <style>
206
206
  .labelText{
207
- -webkit-transform: scale(0.90);
207
+ -webkit-transform: scale(0.85);
208
208
  }
209
209
  .el-popoverCallTel{
210
210
  margin-left: 5px;
211
211
  }
212
+ .subText{
213
+ color:var(--chinaRed);;
214
+ font-weight:700;
215
+ }
216
+ .max-info:hover .subText{
217
+ color: #fff;
218
+ }
212
219
  </style>
@@ -47,7 +47,8 @@
47
47
  </component>
48
48
  <button type="button" class="el-button el-button--info el-button--mini max-report rel w93"
49
49
  v-if="model.actionRoutersMoreList !== null && model.actionRoutersMoreList.length > 0">
50
- <img src="../../../assets/dian.png" alt="" class="report" />
50
+ <!-- <img src="../../../assets/dian.png" alt="" class="report" /> -->
51
+ <i class="el-icon-more"></i>
51
52
  <ul class="report-cont">
52
53
  <li v-for="(col, index) in model.actionRoutersMoreList" :key="index" v-if="col.show !== false">
53
54
  <component class="max-report w93" :is="col.is" :vmodel="col" :api="model.optionApi"
@@ -1207,16 +1208,22 @@ export default {
1207
1208
  min-width: 400px;
1208
1209
  .max-report {
1209
1210
  height: 26px;
1210
- color: #333333;
1211
+ line-height: 26px;
1212
+ color: var(--centalineBlack);
1211
1213
  background-color: #ffffff;
1212
- border: 1px solid #e0e0e0;
1214
+ border: 1px solid #C6C6C6;
1213
1215
  border-radius: 6px;
1214
1216
  font-size: 12px;
1215
1217
  z-index: 1;
1216
1218
  }
1219
+ .max-report:hover{
1220
+ background-color:var(--btnHoverRed) !important;
1221
+ border-color: var(--btnHoverRed) !important;
1222
+ color: #fff !important;
1223
+ }
1217
1224
  .max-report:hover .report-cont {
1218
1225
  display: block;
1219
- color: #333;
1226
+ color: var(--centalineBlack);
1220
1227
  }
1221
1228
  .report-cont {
1222
1229
  display: none;
@@ -1230,7 +1237,7 @@ export default {
1230
1237
  left: -61px;
1231
1238
  top: 26px;
1232
1239
  padding: 5px 0;
1233
- color: #333;
1240
+ color: var(--centalineBlack);
1234
1241
  }
1235
1242
  .report-cont li {
1236
1243
  padding: 5px 10px;
@@ -46,7 +46,8 @@
46
46
  @click="fieldClickHandler(model.actionRouters[1], $event)"></component>
47
47
  <button type="button" class="el-button el-button--info el-button--mini max-report rel w93"
48
48
  v-if=" model.actionRoutersMoreList !== null && model.actionRoutersMoreList.length > 0">
49
- <img src="../../../assets/dian.png" alt="" class="report" />
49
+ <!-- <img src="../../../assets/dian.png" alt="" class="report" /> -->
50
+ <i class="el-icon-more"></i>
50
51
  <ul class="report-cont">
51
52
  <li v-for="(col, index) in model.actionRoutersMoreList" :key="index" v-if="col.show !== false">
52
53
  <component class="max-report w93" :is="col.is" :vmodel="col" :api="model.optionApi" @click="fieldClickHandler(col, $event)"></component>
@@ -1218,16 +1219,22 @@ export default {
1218
1219
  min-width: 400px;
1219
1220
  .max-report {
1220
1221
  height: 26px;
1221
- color: #333333;
1222
+ line-height: 26px;
1223
+ color: var(--centalineBlack);
1222
1224
  background-color: #ffffff;
1223
- border: 1px solid #e0e0e0;
1225
+ border: 1px solid #C6C6C6;
1224
1226
  border-radius: 6px;
1225
1227
  font-size: 12px;
1226
1228
  z-index: 1;
1227
1229
  }
1230
+ .max-report:hover{
1231
+ background-color:var(--btnHoverRed) !important;
1232
+ border-color: var(--btnHoverRed) !important;
1233
+ color: #fff !important;
1234
+ }
1228
1235
  .max-report:hover .report-cont {
1229
1236
  display: block;
1230
- color: #333;
1237
+ color: var(--centalineBlack);
1231
1238
  }
1232
1239
  .report-cont {
1233
1240
  display: none;
@@ -1241,7 +1248,7 @@ export default {
1241
1248
  left: -61px;
1242
1249
  top: 26px;
1243
1250
  padding: 5px 0;
1244
- color: #333;
1251
+ color: var(--centalineBlack);
1245
1252
  }
1246
1253
  .report-cont li {
1247
1254
  padding: 5px 10px;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div ref="main" class="main" v-if="model !== null">
2
+ <div ref="main" class="main" v-if="model !== null" style="position: relative;overflow: hidden;">
3
3
  <div style="height:36px;margin-top: 10px;display: flex;border-bottom: solid 2px var(--chinaRed);">
4
4
  <el-popover v-if="model.routerForQRCode !== null" placement="left-start" trigger="hover"
5
5
  @show="fieldClickHandler(model.routerForQRCode, $event)">
@@ -25,7 +25,7 @@
25
25
  </div>
26
26
  <span v-if="model.flagAppMode" :slot="showIndex > 0 ? 'reference' : ''" class="more" style="margin-right: 10px;"
27
27
  @click="drawer = true"></span>
28
- <el-drawer title="更多操作" :visible.sync="drawer" direction="ttb" :modal="false" class="drawerMore" size="30%">
28
+ <el-drawer title="更多操作" :visible.sync="drawer" direction="ttb" :modal="false" class="drawerMore" size="30%" style="position: absolute;">
29
29
  <div style="display: flex;flex-flow:row wrap ">
30
30
  <component v-for="(router, index) in model.actionRoutersSimple.slice(showIndex)" :key="index"
31
31
  class="drawerButton"
@@ -673,21 +673,21 @@ export default {
673
673
  .drawerMore {
674
674
  width: 410px;
675
675
  left: auto;
676
- top: 18px;
676
+ top: 0;
677
677
  }
678
678
 
679
679
  .v-modal {
680
680
  position: relative;
681
681
  }
682
682
 
683
- .drawerMore .el-drawer__container {
684
- top: 70px;
685
- }
686
-
683
+ /* .drawerMore .el-drawer__container {
684
+ top: 27px;
685
+ } */
687
686
  .drawerMore .el-drawer.ttb {
688
687
  height: auto !important;
689
688
  background: rgba(47, 47, 47, 0.8);
690
689
  padding-bottom: 10px;
690
+ padding-left: 10px;
691
691
  }
692
692
 
693
693
  .drawerMore .el-drawer__header {
@@ -708,10 +708,10 @@ export default {
708
708
 
709
709
  .drawerButton {
710
710
  margin-bottom: 10px !important;
711
- margin-left: 6px !important;
711
+ margin-left: 5px !important;
712
712
  background-color: #181818 !important;
713
713
  border-color: #181818 !important;
714
- width: 94px !important;
714
+ width: 92px !important;
715
715
  height: 56px !important;
716
716
  }
717
717
 
@@ -776,40 +776,29 @@ 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;
787
- }
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;
779
+ if(self.$refs.tableParent && self.$refs["rows." + self.model.selectIndex]){
780
+ if (self.$refs.tableParent.scrollTop > self.$refs["rows." + self.model.selectIndex][0].offsetTop - self.$refs.tableHead.offsetHeight) {
781
+ self.$refs.tableParent.scrollTop = self.$refs["rows." + self.model.selectIndex][0].offsetTop - self.$refs.tableHead.offsetHeight;
782
+ }
783
+ 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) {
784
+ self.$refs.tableParent.scrollTop = self.$refs["rows." + self.model.selectIndex][0].offsetTop - self.$refs.tableParent.clientHeight + self.$refs["rows." + self.model.selectIndex][0].offsetHeight;
785
+ }
786
+ self.scrollTop = self.$refs.tableParent.scrollTop;
798
787
  }
799
- self.scrollTop = self.$refs.tableParent.scrollTop;
800
788
  },
801
789
  rowKeyDownHandle(ev, action) {
802
790
  var self = this;
803
791
  if (action === 1) {
804
792
  this.model.downKey();
805
- } else {
793
+ }
794
+ else {
806
795
  this.model.upKey();
807
796
  }
808
797
  this.rowColorChange();
809
798
  this.resetScroll();
810
799
  this.$emit("rowClickHandle");
811
800
  if (!this.isBusy) {
812
- if (this.model.selectIndex === this.model.listData.length - 1) {
801
+ if (this.model.selectIndex === this.model.listData.length - 3) {
813
802
  self.isBusy = true;
814
803
  self.tableLoading = true;
815
804
  self.model.nextPage((rtn) => {
@@ -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-->
@@ -522,7 +522,7 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
522
522
  if (rtn1) {
523
523
  if(attrKey=='code1' && rtn1.source.controlType===4
524
524
  && attrValue!=undefined && attrValue!=null && attrValue!=''){
525
- if(rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null){
525
+ if(rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null && rtn1.source.decimals1>-1){
526
526
  attrValue = Number(attrValue).toFixed(rtn1.source.decimals1)
527
527
  }
528
528
  }
@@ -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,7 +49,7 @@ Vue.use(centaline, {
49
49
  // 获取请求头
50
50
  getRequestHeaders: function () {
51
51
  return {
52
- oldToken: '0bbcf3e8-cf7e-42de-adef-af54e2158fe4',
52
+ oldToken: '9dac5622-e8b2-46c4-aa90-b5bfd0d1b1e8',
53
53
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe_iOitt7PXamy7xp-EQUUKMBBUiiQRC3J0goKNnildMM--u5nVUjTLspE1cQ7Dkgbi2IJQzBGQWk9GYGHv5AD_mS08uSNsmB4QdA2WbQHTIYMR2kVLrYmJVqXI9q6Zmr8khMlbqOCxvYbzhl1jnctmV2z_OnZbjli2T9QOzB0TZsrS1R9x70EYmLtoerGX1eAIAAP__.0wvOuo6VUjar3ngMidARPex7UIAp9IPBRS4bI5vYWwQ',
54
54
 
55
55
  originalRequestURL: 'http://10.88.22.67:8080',