centaline-data-driven 1.4.74 → 1.4.76

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.74",
3
+ "version": "1.4.76",
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() {
@@ -6,7 +6,7 @@ import common from '../common';
6
6
  //Axios.defaults.baseURL = 'https://localhost:44381/api'
7
7
  Axios.defaults.headers.post['Content-Type'] = 'application/json';
8
8
  Axios.defaults.maxContentLength = 400000;
9
- Axios.defaults.withCredentials = true;//允许带上跨域cookies
9
+ // Axios.defaults.withCredentials = true;//允许带上跨域cookies
10
10
 
11
11
  // Axios.defaults = {
12
12
  // // `url` 是用于请求的服务器 URL
@@ -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 {
@@ -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"}',