centaline-data-driven 1.5.50 → 1.5.52

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.50",
3
+ "version": "1.5.52",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## v1.5.52
2
+ 2023-08-22
3
+
4
+ bug修复
5
+
6
+ 侧边栏关闭再打开后,拨打按钮的popover显示有问题
7
+
8
+ 优化
9
+
10
+ 弹层form表单点击X关闭时,不触发刷新行事件
11
+
12
+ 表单列表记录横向滚动条位置,编辑保存时自动滚动到上一次位置
13
+
14
+ ## v1.5.51
15
+ 2023-08-18
16
+
17
+ bug修复
18
+
19
+ 文件上传 官方上传方式,显示逻辑fileName改成url判断
20
+
21
+ 优化
22
+
23
+ 文本域输入被挡优化
24
+
25
+ 文本文字与数字对齐
26
+
27
+ 输入框左边距调整
28
+
1
29
  ## v1.5.50
2
30
  2023-08-15
3
31
 
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="'/api/distribution/commission_presentiment/detail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/api/distribution/commission_presentiment/task'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
5
5
  <ct-dialog-list></ct-dialog-list>
6
6
  </div>
7
7
  </template>
@@ -12,7 +12,7 @@
12
12
  data() {
13
13
  return {
14
14
  apiParam:{
15
- "transactionId":["1661661776303677441","1667002679704797185"],"actionType":2,"pageStyle":2,"pageTitle":"新增预结","pageOnly":true
15
+ "stepId":"1689521582976049153","businessId":"1689521146390945793","actionType":"1","pageStyle":"2","pageOnly":"true"
16
16
  },
17
17
  topHeight:10,
18
18
  }
Binary file
@@ -44,7 +44,7 @@ html {
44
44
  font-size: inherit;
45
45
  line-height: 26px;
46
46
  outline: 0;
47
- padding: 0 15px;
47
+ padding: 0 15px 0 5px;
48
48
  padding-right: 30px;
49
49
  -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
50
50
  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
@@ -176,7 +176,7 @@ html {
176
176
  background-color: #ed745f;
177
177
  }
178
178
  .ct-dialog_content .ct-dialog_header span {
179
- display: inline-block;
179
+ display: inline-block;
180
180
  height: 20px;
181
181
  font-size: 18px;
182
182
  color: #fff;
@@ -285,7 +285,7 @@ html {
285
285
  font-size: inherit;
286
286
  line-height: 26px;
287
287
  outline: 0;
288
- padding: 0 15px;
288
+ padding: 0 15px 0 5px;
289
289
  padding-right: 30px;
290
290
  -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
291
291
  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
@@ -401,6 +401,11 @@ html {
401
401
  .el-textarea .el-input__count {
402
402
  /* right: 24px; */
403
403
  }
404
+ .textarea-box .el-textarea .el-textarea__inner,.textarea-box .el-input .el-input__inner{
405
+ padding: 5px 15px 5px 5px;
406
+ border: 0;
407
+ resize: none;
408
+ }
404
409
  .ct-flex-div-input input.el-input__inner {
405
410
  /* width: 100%; */
406
411
  }
@@ -612,7 +617,7 @@ html {
612
617
  right: 3px;
613
618
  }
614
619
  .ct-unitnameLable {
615
- line-height: 26px;
620
+ /* line-height: 21px; */
616
621
  }
617
622
  .ct-lable {
618
623
  height: 26px;
@@ -40,8 +40,8 @@
40
40
  :style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
41
41
  :icon="model.icon"
42
42
  :disabled="model.disabled || model.locked">
43
- <el-popover class="Stats-popover" :popper-class="'el-popoverCallTel'" :placement="option.placement?option.placement:'left'"
44
- v-model="visible" :trigger="option.trigger?option.trigger:''">
43
+ <el-popover class="Stats-popover" :popper-class="visible ? 'isBlock':'isNone'" :placement="option.placement?option.placement:'left'"
44
+ v-model="visible" :trigger="option.trigger?option.trigger:''" >
45
45
  <div style="border-bottom:none">
46
46
  <div style="color: #388cd3;text-align: center;">{{message}}</div>
47
47
  <img v-show="qrCode" :src="qrCode" style="margin-top: 5px;" :style="{'width':width+'px','height':height+'px'}" />
@@ -281,8 +281,13 @@
281
281
  .labelText{
282
282
  -webkit-transform: scale(0.85);
283
283
  }
284
- .el-popoverCallTel{
284
+ .isBlock{
285
285
  margin-left: 5px;
286
+ display: block !important;
287
+ }
288
+ .isNone{
289
+ margin-left: 5px;
290
+ display: none !important;
286
291
  }
287
292
  .subText{
288
293
  color:var(--chinaRed);;
@@ -638,7 +638,7 @@ export default {
638
638
  }
639
639
  },
640
640
  closeDialog(ev) {
641
- self.$emit('simpleRouterclickHandler', field, ev);
641
+ // self.$emit('simpleRouterclickHandler', field, ev);
642
642
  }
643
643
  }
644
644
  }]
@@ -506,7 +506,7 @@ export default {
506
506
  }
507
507
  },
508
508
  closeDialog(ev) {
509
- self.$emit('simpleRouterclickHandler', field, ev);
509
+ // self.$emit('simpleRouterclickHandler', field, ev);
510
510
  }
511
511
  }
512
512
  }]
@@ -505,7 +505,7 @@ export default {
505
505
  }
506
506
  },
507
507
  closeDialog(ev) {
508
- self.$emit('simpleRouterclickHandler', field, ev);
508
+ // self.$emit('simpleRouterclickHandler', field, ev);
509
509
  }
510
510
  }
511
511
  }]
@@ -119,7 +119,7 @@
119
119
  <div slot="file" slot-scope="{ file }" :title="file.fileName">
120
120
  <div class="cover-list-item">
121
121
  <div @click="viewerfile(file)">
122
- <el-image fit="fill" :src="file.fileName?file.url:require('../../../assets/blank.png')" style="width: 100px; height: 100px" :z-index="previewZIndex" >
122
+ <el-image fit="fill" :src="file.url?file.url:file.mediaUrl?file.url:require('../../../assets/blank.png')" style="width: 100px; height: 100px" :z-index="previewZIndex" >
123
123
  </el-image></div>
124
124
  <span class="cover-list-item-span-Default" v-if="(model.lock&&file.flagDefault)||(model.rightDefault&&model.rightDefault==1&&file.mediaTypeID==2)">
125
125
  <i>
@@ -169,6 +169,7 @@
169
169
  itemKey: Math.random(),
170
170
  tableColumnWith: 0,
171
171
  fixedButtons:false,
172
+ scrollLeft:0,
172
173
  }
173
174
  },
174
175
  created() {
@@ -183,6 +184,7 @@
183
184
  });
184
185
  },
185
186
  mounted() {
187
+ let self=this;
186
188
  this.$nextTick(function () {
187
189
  let domT=document.querySelector('#listTable');
188
190
  if(domT){
@@ -190,6 +192,11 @@
190
192
  if(domB && domB.scrollWidth>domB.offsetWidth){
191
193
  this.fixedButtons='right';
192
194
  }
195
+ if(domB){
196
+ domB.addEventListener("scroll", function(){
197
+ self.scrollLeft=domB.scrollLeft;
198
+ });
199
+ }
193
200
  }
194
201
  });
195
202
  },
@@ -223,6 +230,7 @@
223
230
  app.model.currentRow.isNew = true;
224
231
  app.model.currentRow.index = app.model.tableData.length - 1;
225
232
  }
233
+ app.resetScroll();
226
234
  },
227
235
  //修改
228
236
  saveRow(row, index, isCancel) {
@@ -251,6 +259,7 @@
251
259
  }
252
260
  row.isSet = !row.isSet;
253
261
  app.itemKey = Math.random();
262
+ app.resetScroll();
254
263
  return ;
255
264
  }
256
265
 
@@ -279,6 +288,7 @@
279
288
  app.itemKey = Math.random();
280
289
  this.model.change = this.model.formListChange;
281
290
  app.$emit('change');
291
+ app.resetScroll();
282
292
  }
283
293
  }
284
294
  }
@@ -289,6 +299,7 @@
289
299
  app.model.currentRow.isSet = true;
290
300
  row.isSet = true;
291
301
  app.itemKey = Math.random();
302
+ app.resetScroll();
292
303
  }
293
304
  },
294
305
  //删除
@@ -324,6 +335,7 @@
324
335
  }
325
336
  });
326
337
  self.itemKey = Math.random();
338
+ self.resetScroll();
327
339
  });
328
340
  },
329
341
  fieldsValidExcute() {
@@ -490,7 +502,24 @@
490
502
  // 移除 document 中临时的 span
491
503
  document.body.removeChild(span);
492
504
  return h('span', column.label);
493
- }
505
+ },
506
+ resetScroll(){
507
+ let self=this;
508
+ this.$nextTick(function () {
509
+ let domT=document.querySelector('#listTable');
510
+ if(domT){
511
+ let domB=domT.querySelector('.el-table__body-wrapper');
512
+ if(domB){
513
+ if(this.scrollLeft>0){
514
+ domB.scrollLeft=this.scrollLeft;
515
+ }
516
+ domB.addEventListener("scroll", function(){
517
+ self.scrollLeft=domB.scrollLeft;
518
+ });
519
+ }
520
+ }
521
+ });
522
+ },
494
523
  }
495
524
  }
496
525
  </script>
@@ -7,7 +7,7 @@
7
7
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend field-label-div inputNumbe-line-feed" :class="[model.labelClass]">
8
8
  {{model.label}}
9
9
  </div>
10
- <div style="padding-left:15px;flex:1" v-bind="model.attrs" class="el-date-editor ct-input__inner">
10
+ <div style="flex:1" v-bind="model.attrs" class="el-date-editor ct-input__inner">
11
11
  <input style="text-align:left;width:100%" class="el-range-input" :placeholder="model.attrs.placeholder1"
12
12
  v-model="model.value" @change="onChangeHandler($event)" @input="onInputHandler($event);isShowClear()"
13
13
  @blur="onBlurHandler($event)"
@@ -152,7 +152,7 @@
152
152
  display: inline-block;
153
153
  height: 26px;
154
154
  outline: 0;
155
- padding: 0 15px;
155
+ padding: 0 15px 0 5px;
156
156
  -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
157
157
  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
158
158
  width: 100%;
@@ -11,7 +11,7 @@
11
11
  <span slot="suffix" v-if="model.unitName" class="ct-unitname">{{model.unitName}}</span>
12
12
  </el-input>
13
13
  <span v-if="model.sufLabel" style="width:auto" class="spanMessage">{{model.sufLabel}}</span> -->
14
- <div class="el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix showLabel lableinput">
14
+ <div class="el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix showLabel lableinput text-justify">
15
15
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend">
16
16
  <div slot="prepend" class="" :class="[model.labelClass]">
17
17
  {{model.label}}
@@ -22,7 +22,7 @@
22
22
  <span class="el-select__tags-text">{{item}}</span>
23
23
  </span>
24
24
  </span>
25
- <div v-else style="display:inline-block">
25
+ <div v-else style="display:flex">
26
26
  <!-- --计算占用宽度-- -->
27
27
  <div style="position: relative" v-if="isShowComput">
28
28
  <label class="ct-lable" style="position: absolute; left: -10000px">
@@ -30,7 +30,7 @@
30
30
  </label>
31
31
  </div>
32
32
  <!-- 展示 -->
33
- <label class="ct-lable" :style="{ display: (model.labelValue ? 'inline-flex' : '') }">
33
+ <label class="ct-lable" :style="{ display: (model.labelValue ? 'flex' : '') }">
34
34
  <el-tooltip placement="top" effect="light" :disabled="isShowTooltip">
35
35
  <div slot="content" :style="{ 'width': (model.labelValue.length > 66 ? '400px' : 'auto') }">{{
36
36
  model.labelValue
@@ -102,4 +102,8 @@
102
102
  -webkit-line-clamp: 1;
103
103
  word-break:break-all;
104
104
  }
105
+ .text-justify{
106
+ display: flex;
107
+ align-items: center;
108
+ }
105
109
  </style>
@@ -353,7 +353,7 @@
353
353
  font-size: inherit;
354
354
  line-height: 26px;
355
355
  outline: 0;
356
- padding: 0 15px;
356
+ padding: 0 15px 0 5px;
357
357
  padding-right: 30px;
358
358
  -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
359
359
  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
@@ -1338,7 +1338,7 @@ export default {
1338
1338
  self.$common.closeDialog(dialogOption.dialog);
1339
1339
  },
1340
1340
  closeDialog() {
1341
- self.updateCurrentRow(field);
1341
+ // self.updateCurrentRow(field);
1342
1342
  },
1343
1343
  },
1344
1344
  },
@@ -1625,7 +1625,7 @@ export default {
1625
1625
  self.$common.closeDialog(dialogOption.dialog);
1626
1626
  },
1627
1627
  closeDialog() {
1628
- self.updateCurrentRow(field);
1628
+ // self.updateCurrentRow(field);
1629
1629
  },
1630
1630
  },
1631
1631
  },
@@ -265,7 +265,7 @@
265
265
  font-size: inherit;
266
266
  line-height: 26px;
267
267
  outline: 0;
268
- padding: 0 15px;
268
+ padding: 0 15px 0 5px;
269
269
  padding-right: 30px;
270
270
  -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
271
271
  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
@@ -29,13 +29,14 @@
29
29
  <i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event)"></i>
30
30
  </span>
31
31
  </span>
32
- </el-input>
32
+ </el-input>
33
33
  </el-popover>
34
34
 
35
- <el-input v-else ref="input" :title="model.lock?model.value:''" :type="model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear();applyHighlights()" @change="changeHandler($event)"
35
+ <div v-else class="textarea-box" ref="input">
36
+ <el-input :title="model.lock?model.value:''" :type="model.rows==1 ? '':model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear();applyHighlights()" @change="changeHandler($event)"
36
37
  class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'',model.forbiddenWords?'inputHighlights':'']"
37
- :disabled="model.lock" :rows="model.rows" :resize="model.forbiddenWords?'none':'vertical'"
38
- :readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit"
38
+ :disabled="model.lock" :rows="model.rows"
39
+ :readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max"
39
40
  @keyup.enter.native="search()" style="z-index: 3;background-color: transparent;">
40
41
  <span slot="suffix" v-if="model.unitName" class="ct-unitname" :class="showClear?'unitName-20':'unitName-0'">{{model.unitName}}</span>
41
42
 
@@ -44,8 +45,12 @@
44
45
  <i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event)"></i>
45
46
  </span>
46
47
  </span>
47
- </el-input>
48
- <span v-if="this.minText" :style="{left: minTextLeft+'px'}" style="color: #909399;background: #FFF;position: absolute;font-size: 12px;bottom: 5px;z-index: 3;">{{this.minText}}</span>
48
+ </el-input>
49
+ <span v-if="this.minText" class="textarea-tip">{{this.minText}}</span>
50
+ <span v-if="model.showWordLimit" class="textarea-count">{{model.value.length}}/{{ model.max }}</span>
51
+ <span v-if="!model.forbiddenWords" class="textarea-icon"></span>
52
+ </div>
53
+ <!-- <span v-if="this.minText" :style="{left: minTextLeft+'px'}" style="color: #909399;background: #FFF;position: absolute;font-size: 12px;bottom: 5px;z-index: 3;">{{this.minText}}</span> -->
49
54
  <span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
50
55
  <ctQuickInputSos v-if="!model.lock && model.paramName && !model.autoFill" class="ct-flex-div-span" :pn="model.paramName" :action="api" :flagNew="true" :textValue="model.value" @click="quickSelect"></ctQuickInputSos>
51
56
 
@@ -57,6 +62,8 @@
57
62
  </el-button>
58
63
  </div>
59
64
  </div>
65
+
66
+
60
67
  <transition name="el-fade-in" class="ct-flex-div-span">
61
68
  <span v-show="!valid" class="errorMessage" :class="{ 'errorMessageMarginLeft': model.inputType === 'textarea' }">
62
69
  {{validMessage}}
@@ -292,4 +299,31 @@
292
299
  .autoFill{
293
300
  width: 100%;
294
301
  }
302
+ .textarea-box{
303
+ border: 1px solid #dcdfe6;
304
+ width: 100%;
305
+ position: relative;
306
+ border-radius: 4px;
307
+ }
308
+ .textarea-box:active,.textarea-box:focus,.textarea-box:hover{
309
+ border-color: #ff5b5b !important;
310
+ }
311
+ .textarea-tip{
312
+ margin-left: 5px;
313
+ color: #606266;
314
+ }
315
+ .textarea-count{
316
+ position: absolute;
317
+ right: 10px;
318
+ }
319
+ .textarea-icon{
320
+ background: url('../../../assets/icontext.png')no-repeat;
321
+ background-size: 100% 100%;
322
+ width: 12px;
323
+ height: 12px;
324
+ display: inline-block;
325
+ position: absolute;
326
+ right: 0;
327
+ bottom: 0;
328
+ }
295
329
  </style>
@@ -431,7 +431,7 @@
431
431
  -webkit-box-sizing: border-box;
432
432
  box-sizing: border-box;
433
433
  border-color: transparent;
434
- margin: 2px 0 2px 6px;
434
+ margin: 2px 0 2px 1px;
435
435
  background-color: #f0f2f5;
436
436
  }
437
437
 
@@ -282,7 +282,7 @@ export default {
282
282
  self.$common.closeDialog(dialogOption.dialog);
283
283
  },
284
284
  closeDialog() {
285
- self.updateCurrentRow(field);
285
+ // self.updateCurrentRow(field);
286
286
  },
287
287
  },
288
288
  },
package/src/main.js CHANGED
@@ -56,9 +56,9 @@ Vue.use(centaline, {
56
56
  // 获取请求头
57
57
  getRequestHeaders: function () {
58
58
  return {
59
- oldToken: '681f7eeb-e659-4c3b-a8c4-88d60c36a518',
59
+ oldToken: '2e1a6bc6-2cbe-435d-ba01-8e65d29e1e2a',
60
60
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
61
- authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOwjAMRe-SuZbixI2dbo3bLhwCNSiVyoRoK4EQdwcEbOy84Q9vef9mli2bxnTSWtLBg_auBuq4hnZggaQiNjn2lGQfP8CP-bJHpMgYemgjK1AgD4IqoBSUhq73mjpTmXI5mQZDdMgBLVZmHte3sBL5JbalnHfl-o9zx3V-ZicX-cBZYJqIgNAVkBgQfBYXQ03Zjc7cHwAAAP__.-lkfBY8Qlu2nt6fc_7LyMJb2c8Ki5dxMCR6fga2a1Ec"}',
61
+ authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOis59nrXTuf403CIyCFGggqRRAIh7k4Q0NHziimeRpq5i3kdRSc0sfOJWggGLSC1BhzmDEESOZ2l1jEO7gP8iC8DcnDeJwaUPQFmk8CpkEE700dMnmMi0Yh6PYuuJaeYUbJpxLEsb0GW6SXWuV529faPc6fluM2O-0KHggpUtQhoEbdyUYCGpsnayeBYxeMJAAD__w.3jtdole2dvyRTAFLiUyYiLbrekR9ZsmkA3x1LCyg2DY"}',
62
62
 
63
63
  originalRequestURL: 'http://10.88.22.67:8080',
64
64
  EstateInfo: '{"estateId":"201806071109550C867184E8BCA56EC3","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',