centaline-data-driven 1.4.73 → 1.4.75

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.73",
3
+ "version": "1.4.75",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Detail.vue CHANGED
@@ -10,7 +10,7 @@
10
10
  name: 'DataDrivendetail',
11
11
  data() {
12
12
  return {
13
- apiParam: {actionType: 1,chanceID: "1564070698362736640"} ,
13
+ apiParam: {actionType: 1,chanceID: "1602938585265344512"} ,
14
14
  }
15
15
  },
16
16
  mounted() {
@@ -246,7 +246,7 @@
246
246
  </div>
247
247
  </div>
248
248
  <!-- 右侧委托信息 -->
249
- <div ref="midr" class="mid-r" style="width: 420px">
249
+ <div ref="midr" class="mid-r" style="width: 360px">
250
250
  <div class="take-info base-box" style="padding: 10px;font-size: 14px;">
251
251
  <el-row>
252
252
  <el-col :span="8" style="text-align: center;border-right: 1px solid #e0e0e0;">
@@ -1563,7 +1563,7 @@ export default {
1563
1563
  }
1564
1564
  }
1565
1565
  .staff-info {
1566
- padding-bottom: 10px;
1566
+ padding: 10px;
1567
1567
  .open-mero {
1568
1568
  text-align: center;
1569
1569
  padding: 3px 0;
@@ -1616,11 +1616,11 @@ export default {
1616
1616
  .operation-table {
1617
1617
  padding: 0;
1618
1618
  .table-box {
1619
- display: flex;
1619
+ display: -webkit-box;
1620
1620
  // align-items: center;
1621
1621
  border-bottom: 1px solid #e0e0e0;
1622
1622
  .t-item {
1623
- padding: 5px 16px;
1623
+ padding: 5px 8px;
1624
1624
  font-size: 14px;
1625
1625
  flex: 1;
1626
1626
  position: relative;
@@ -247,7 +247,7 @@
247
247
  </div>
248
248
  </div>
249
249
  <!-- 右侧委托信息 -->
250
- <div ref="midr" class="mid-r" style="width: 420px">
250
+ <div ref="midr" class="mid-r" style="width: 360px">
251
251
  <div class="take-info base-box" style="padding: 10px;font-size: 14px;">
252
252
  <el-row>
253
253
  <el-col :span="8" style="text-align: center;border-right: 1px solid #e0e0e0;">
@@ -1575,7 +1575,7 @@ export default {
1575
1575
  }
1576
1576
  }
1577
1577
  .staff-info {
1578
- padding-bottom: 10px;
1578
+ padding:10px;
1579
1579
  .open-mero {
1580
1580
  text-align: center;
1581
1581
  padding: 3px 0;
@@ -1628,11 +1628,11 @@ export default {
1628
1628
  .operation-table {
1629
1629
  padding: 0;
1630
1630
  .table-box {
1631
- display: flex;
1631
+ display: -webkit-box;
1632
1632
  // align-items: center;
1633
1633
  border-bottom: 1px solid #e0e0e0;
1634
1634
  .t-item {
1635
- padding: 5px 16px;
1635
+ padding: 5px 8px;
1636
1636
  font-size: 14px;
1637
1637
  flex: 1;
1638
1638
  position: relative;
@@ -79,7 +79,7 @@
79
79
  <div>
80
80
  <el-progress type="circle" v-if="file.progressFlag" :show-text="false"
81
81
  :percentage="typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00"
82
- :width="96" :height="96" class="file-cirle"></el-progress>
82
+ :width="96" :height="96" class="file-cirle file-cirle-mrLeft"></el-progress>
83
83
  <div class="circleCenter" v-if="file.progressFlag">
84
84
  <div style="font-size: 12px;color: #666;"> {{ file.loadProgress.toFixed(2) }}%</div>
85
85
  </div>
@@ -167,7 +167,7 @@
167
167
  <div>
168
168
  <el-progress type="circle" v-if="file.progressFlag" :show-text="false"
169
169
  :percentage="typeof file.loadProgress !== 'undefined' && file.loadProgress !== null ? file.loadProgress : 0.00"
170
- :width="96" :height="96" class="file-cirle"></el-progress>
170
+ :width="96" :height="96" class="file-cirle file-cirle-mrLeft"></el-progress>
171
171
  <div class="circleCenter" v-if="file.progressFlag">
172
172
  <div style="font-size: 12px;color: #666;"> {{ file.loadProgress.toFixed(2) }}%</div>
173
173
  </div>
@@ -719,7 +719,7 @@
719
719
  left: 35px;
720
720
  }
721
721
 
722
- .file-cirle .el-progress-circle {
722
+ .file-cirle-mrLeft .el-progress-circle {
723
723
  margin-left: 15px;
724
724
  }
725
725
 
@@ -727,8 +727,7 @@
727
727
  position: absolute;
728
728
  top: 50%;
729
729
  left: 50%;
730
- margin-top: -11px;
731
- margin-left: -20px;
730
+ transform: translate(-50%,-50%);
732
731
  }
733
732
 
734
733
  .browseDefault .el-radio__input.is-checked .el-radio__inner {
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <div class="ct-form-list" v-focus="foucus" :class="{'tableDisabled':model.tableDisabled}">
3
- <div class="list-title">
3
+ <div v-if="model.create || (model.selectRouter && model.selectRouter.id)" class="list-title">
4
4
  <h5>{{model.title}}</h5>
5
5
  </div>
6
6
  <div class="list-button">
7
- <component v-if="model.selectRouter !== null" :is="model.selectRouter.is" :vmodel="model.selectRouter" @click="popupSearchListHandle" ></component>
7
+ <component v-if="model.selectRouter!==null" :is="model.selectRouter.is" :vmodel="model.selectRouter" @click="popupSearchListHandle" ></component>
8
8
  <el-button v-if="model.create" type="success" class=" max-btn-add" size="mini" icon="el-icon-circle-plus-outline" @click="addRow">
9
9
  新增
10
10
  </el-button>
@@ -88,9 +88,21 @@
88
88
  },
89
89
  getFontColor() {
90
90
  return this.rowData.fontColor || '';
91
- }
91
+ },
92
+ getLableShow(){
93
+ let labelShow=this.vmodel.labelValue;
94
+ if(this.vmodel.unitName){
95
+ labelShow=labelShow+this.vmodel.unitName;
96
+ }
97
+ if(this.vmodel.type===6){
98
+ if(this.vmodel.code2){
99
+ labelShow=this.vmodel.labelValue+this.vmodel.code2;
100
+ }
101
+ }
102
+ return labelShow;
103
+ },
92
104
  },
93
- template: '<div :class="getClass()" :style="{\'color\':getFontColor()}">{{vmodel.labelValue}}{{vmodel.unitName}}</div>'
105
+ template: '<div :class="getClass()" :style="{\'color\':getFontColor()}">{{getLableShow()}}</div>'
94
106
  }
95
107
 
96
108
  export default {
@@ -12,7 +12,7 @@
12
12
  </ct-tabletoolbar>
13
13
 
14
14
  <ct-tabletip ref="listHeader" class="ct-search-table-list-header ct-search-table-tag" :tip="model.listHeader"
15
- v-if="!isLoading && model"></ct-tabletip>
15
+ v-if="!isLoading && model" @setTableHeight="setTableHeight"></ct-tabletip>
16
16
 
17
17
  <div v-loading="tableLoading" v-if="!isLoading && model"
18
18
  :style="{ height: '0px', top: model.tableHeight * 0.55 + 'px' }"></div>
@@ -311,7 +311,6 @@ export default {
311
311
  self.tableComplate = true;
312
312
  self.setTableHeight();
313
313
  this.selectAllType = this.model.getSelectAll();
314
-
315
314
  this.$nextTick(() => {
316
315
  self.loadStats();
317
316
  window.addEventListener("resize", (ev) => {
@@ -424,6 +423,7 @@ export default {
424
423
  }
425
424
  },
426
425
  getPage(index) {
426
+
427
427
  var self = this;
428
428
  if (typeof self.$refs.tableParent !== "undefined") {
429
429
  self.$refs.tableParent.scrollTop = 0;
@@ -10,7 +10,17 @@ export default {
10
10
  },
11
11
  data() {
12
12
  return {}
13
- }
13
+ },
14
+ watch: {
15
+ tip: function (val) {
16
+ let self=this;
17
+ this.$nextTick(function () {
18
+ self.$emit("setTableHeight");
19
+ })
20
+ }
21
+ },
22
+
23
+
14
24
  }
15
25
  </script>
16
26
  <style>
@@ -258,7 +258,7 @@
258
258
  },
259
259
  //不能共用的数据校验
260
260
  selfValidExcute: function (eventName) {
261
- if (this.model.required && this.model.value1 == "") {
261
+ if (this.model.required && !this.model.value1) {
262
262
  this.validMessage = "必填";
263
263
  this.valid = false;
264
264
  return false;
@@ -37,6 +37,9 @@ const FormList = function (source, master) {
37
37
  get create() {
38
38
  return source.rightNew === true;
39
39
  },
40
+ set create(v) {
41
+ return source.rightNew = v;
42
+ },
40
43
  get required() {
41
44
  return master.required;
42
45
  },
@@ -366,6 +369,9 @@ const FormList = function (source, master) {
366
369
  for (let findex = 0; findex < row.length; findex++) {//循环所在行的列
367
370
  Vue.set(row[findex], 'code1', ev.formData.source.fields[findex].code1);
368
371
  Vue.set(row[findex], 'name1', ev.formData.source.fields[findex].name1);
372
+ if(ev.formData.source.fields[findex].code2){
373
+ Vue.set(row[findex], 'code2', ev.formData.source.fields[findex].code2);
374
+ }
369
375
  }
370
376
 
371
377
  common.closeDialog(dialogOption.dialog);
@@ -433,6 +439,9 @@ const FormList = function (source, master) {
433
439
  let field = row.columns[findex];
434
440
  field.code1 = ev.formData.source.fields[findex].code1;
435
441
  field.name1 = ev.formData.source.fields[findex].name1;
442
+ if(ev.formData.source.fields[findex].code2){
443
+ field.code2=ev.formData.source.fields[findex].code2;
444
+ }
436
445
  }
437
446
 
438
447
  let rowItem = rtn.initRow(row);
package/src/main.js CHANGED
@@ -48,7 +48,7 @@ Vue.use(centaline, {
48
48
  getRequestHeaders: function () {
49
49
  return {
50
50
  oldToken: '3ba3f510-93fd-4103-9249-73c13f3f6fc2',
51
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjkEOwjAMBP-SM5YS27EdbmlDLzyialCR4IRoK4EQfyeIR3Ad7c7uyy1bdXuXUMWYCfpDR8AlK3QSPPSScsyWUbo4yhALoiqQDgZ98ASIuYC3ogMVSqJ-LJyyYTM11EwYDmAdZcDIxjREThrdzs2Pm9sH0cQqiLhzl2n9AbJkX7At8_04P_9x7rpe2uy5NepcFYTFt7AgVKQz6EnVq01UQ3TvDwAAAP__.NfZrt1wK0fZT3WdJplCcBlTe7PriWBvxZb0MU_YWWoA',
51
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjFuwzAMRe-i2QQokiKpbLJlLz1EIDcOkExBnAAtgty9KnqILn94w3v_FfbnGg4hk6mLMEzzyCC1GIwaESbNJRUvpGM66pIqkRmwLQ5TRAaiUgG92sKVsxoeq-Ti1E0ddRPFGXzkApTEhZck2VIYwvZ1C4eojpHNXYZwaY8_gCnKL3ju2_1j-_6Pc9fHpWfZziatKWDjT5BTn3xODRRXkrY2ZDmF9w8AAAD__w.sUuy7HIYebv9o9r8-QfM3m-xy5W1OW6FNcq7Wyy0Hp0',
52
52
 
53
53
  originalRequestURL: 'http://10.88.22.67:8080',
54
54
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',