centaline-data-driven 1.2.38 → 1.2.41

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.
@@ -30,20 +30,21 @@
30
30
  </li>
31
31
  </ul>
32
32
  </div>
33
- <el-popover :append-to-table="option.appendId?option.appendId:''" class="Stats-popover"
33
+ <el-popover :append-to-table="option.appendId?option.appendId:''" class="Stats-popover" popper-class="el-popover1"
34
34
  :placement="option.placement?option.placement:'left'"
35
35
  :trigger="option.trigger?option.trigger:''">
36
36
  <div v-if="FlagStatistics" class="tab-list" style="border-bottom:none">
37
- <div class="tablf" v-for="(item, index) in showData[1]" @click="handleClick($event,item)" style="text-align:left">
38
- <ul class="btnTab">
37
+ <div class="popovertablf" v-for="(item, index) in showData[1]" @click="handleClick($event,item)">
38
+ <ul class="popoverbtnTab" style="padding:0px">
39
39
  <li :class="[selectStats==item.code1+'*'+item.controlLabel?'activecolor':'']">{{item.controlLabel}}</li>
40
40
  <li class="tdcenter">
41
41
  <span :class="[selectStats==item.code1+'*'+item.controlLabel?'active':'']"></span>
42
42
  </li>
43
43
  </ul>
44
+ <br />
44
45
  </div>
45
46
  </div>
46
- <sapn slot="reference" class="icon-more">⋮</sapn>
47
+ <span slot="reference" class="icon-more">⋮</span>
47
48
 
48
49
  </el-popover>
49
50
  </template>
@@ -176,8 +177,8 @@
176
177
 
177
178
  <style>
178
179
  .tab-list {
179
- position:relative;
180
- margin-bottom: 10px;
180
+ position: relative;
181
+ margin-bottom: 10px;
181
182
  height: 30px;
182
183
  }
183
184
 
@@ -194,6 +195,10 @@
194
195
  color: #ee5d56;
195
196
  }
196
197
 
198
+ .tab-list .popoverbtnTab:hover, .tab-list .popovertablf:hover {
199
+ color: #ee5d56;
200
+ }
201
+
197
202
  .tab-list .tabl-el {
198
203
  max-width: 150px;
199
204
  box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
@@ -207,6 +212,23 @@
207
212
  display: block;
208
213
  }
209
214
 
215
+ .tab-list .popovertablf {
216
+ font-size: 14px !important;
217
+ font-weight: bold;
218
+ text-align: center;
219
+ display: block;
220
+ padding: 5px 8px;
221
+ }
222
+
223
+ .tab-list .popoverbtnTab {
224
+ font-size: 14px !important;
225
+ font-weight: bold;
226
+ cursor: pointer;
227
+ float: left;
228
+ list-style-type: none;
229
+ padding: 0px 20px 0px 20px;
230
+ }
231
+
210
232
  .tab-list .tdcenter {
211
233
  line-height: 1px;
212
234
  height: 1px;
@@ -218,18 +240,21 @@
218
240
  /* border-bottom-right-radius: 12px !important; */
219
241
  /* border-top-right-radius: 11px; */
220
242
  width: 20px;
221
- border-bottom: #ee5d56 solid 3px;
243
+ border-bottom: #ee5d56 solid 3px;
222
244
  }
223
245
 
246
+
247
+
224
248
  .tab-list .activecolor {
225
249
  color: #ee5d56 !important;
226
250
  }
227
251
 
228
-
229
- .tab-list .btnTab span {
252
+ .tab-list .btnTab span, .tab-list .popovertablf span {
230
253
  display: inline-block;
231
254
  }
232
255
 
256
+
257
+
233
258
  .tab-list .icon-more {
234
259
  color: #ee5d56;
235
260
  font-size: 20px;
@@ -240,8 +265,16 @@
240
265
  cursor: pointer;
241
266
  }
242
267
 
243
- .Stats-popover {
244
- position:absolute;
245
- right:5px;
268
+  .Stats-popover {
269
+ float: left;
270
+ margin-top: 4px;
271
+ margin-left: 4px;
272
+ height: 16px;
273
+ }
274
+
275
+ </style>
276
+ <style>
277
+ .el-popover1 {
278
+ min-width: inherit !important;
246
279
  }
247
280
  </style>
@@ -57,6 +57,7 @@
57
57
  methods: {
58
58
  load(data) {
59
59
  this.model = data;
60
+ this.model.self = this;
60
61
  },
61
62
  clearClickHandle: function (event) {
62
63
  this.model.value = '';
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <div class="field-top">
3
- <div v-if="model !== null" class="ct-text ct-flex-div max-flex-div" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'',model.attrs.size?'ct-font-size-'+model.attrs.size:'']"
4
- @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
3
+ <div style="width:100%;display:flex;">
4
+ <div v-if="model !== null" class="ct-text ct-flex-div max-flex-div" style="flex:1;"
5
+ :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'',model.attrs.size?'ct-font-size-'+model.attrs.size:'']"
6
+ @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
5
7
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend field-label-div max-input-group" :class="[model.labelClass]">
6
8
  <span>{{model.label}}</span>
7
9
  </div>
@@ -19,13 +21,14 @@
19
21
  </el-input>
20
22
 
21
23
  <span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
22
- <transition name="el-fade-in" class="ct-flex-div-span">
23
- <span v-show="!valid" class="errorMessage ">
24
- {{validMessage}}
25
- </span>
26
- </transition>
27
24
  <ctQuickInputSos v-if="!model.lock && model.paramName" class="ct-flex-div-span" :pn="model.paramName" :action="api" @click="model.value=$event"></ctQuickInputSos>
28
25
  </div>
26
+ <transition name="el-fade-in" class="ct-flex-div-span">
27
+ <span v-show="!valid" class="errorMessage ">
28
+ {{validMessage}}
29
+ </span>
30
+ </transition>
31
+ </div>
29
32
  </div>
30
33
  </template>
31
34
  <script>
@@ -34,7 +37,7 @@
34
37
  export default {
35
38
  name: 'ct-text',
36
39
  mixins: [dynamicElement],
37
- components: {
40
+ components: {
38
41
  'ctQuickInputSos': ctQuickInputSos,
39
42
  },
40
43
  props: {
@@ -9,7 +9,6 @@ import Vue from 'vue';
9
9
 
10
10
  const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
11
11
  var init = function (source) {
12
- //source.layoutOrientation = Enum.Orientation.Horizontal;
13
12
  let rtn = {
14
13
  get source() {
15
14
  return source;
@@ -301,6 +301,12 @@ const Router = function (source) {
301
301
  }
302
302
  });
303
303
  },
304
+ get subText() {
305
+ return source.subText;
306
+ },
307
+ get locked() {
308
+ return source.locked;
309
+ },
304
310
  };
305
311
  return rtn;
306
312
  }
@@ -157,7 +157,10 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
157
157
  get title() {
158
158
  return v.columnToolTip;
159
159
  }
160
- }
160
+ },
161
+ get flagHtml() {
162
+ return v.flagHtml;
163
+ },
161
164
  };
162
165
  if (col.show) {
163
166
  //合并表头时暂不支持固定列
@@ -252,8 +255,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
252
255
  },
253
256
  set selectAllType(v1) {
254
257
  source.selectAllType = v1;
255
- },
256
-
258
+ },
257
259
  getSelectRowData(router) {
258
260
  if (rtn.listData.length === 0) {
259
261
  return null;
@@ -838,6 +840,9 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
838
840
  }
839
841
  return c;
840
842
  },
843
+ get rowMenuDisplayCount() {
844
+ return source.content.rowMenuDisplayCount && source.content.rowMenuDisplayCount>0?source.content.rowMenuDisplayCount : 4;
845
+ },
841
846
  };
842
847
  if (rtn.template) {
843
848
  var tempLoader = template.loader(rtn.template).default;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div :class="isOperationalColumn?'subdiv_allinline':''" v-if="isShowLabel">
3
- <img v-if="router.imgUrl" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" @click="clickHandler($event);" />
3
+ <img v-if="router.imgUrl && isShowImg" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" @click="clickHandler($event);" />
4
4
  <a v-else href="javascript:void(0);" class="ct-tablecurrencyItem" @click="clickHandler($event)">
5
5
  {{label}}
6
6
  </a>
@@ -14,9 +14,14 @@
14
14
  router: Object,
15
15
  rowData: Object,
16
16
  colValue: String,
17
+ rowindex: Number,
17
18
  isOperationalColumn: {
18
19
  type: Boolean,
19
20
  default: false
21
+ },
22
+ isShowImg: {
23
+ type: Boolean,
24
+ default: true
20
25
  }
21
26
  },
22
27
  computed: {
@@ -38,7 +43,7 @@
38
43
  },
39
44
  methods: {
40
45
  clickHandler(ev) {
41
- this.$emit('click', this.router, this.rowData);
46
+ this.$emit('click', this.router, this.rowData,this.rowindex);
42
47
  }
43
48
  }
44
49
  }
package/src/main.js CHANGED
@@ -13,7 +13,7 @@ Vue.use(ElementUI, { size: 'mini'});
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
15
  baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
- // baseUrl: "http://10.1.245.111:38028/v1/form/router",
16
+ // baseUrl: "http://tjcptest.centaline.com.cn/",
17
17
  // baseUrl: "http://10.88.22.46:7070/",
18
18
  // flagRouterSelf: true,
19
19
  zindex: 999,
@@ -36,7 +36,7 @@ Vue.use(centaline, {
36
36
  // 获取请求头
37
37
  getRequestHeaders: function () {
38
38
  return {
39
- oldToken: '5e730b63-1439-4850-9e88-4a83c8609525',
39
+ oldToken: 'fd2b9945-9709-4608-a57b-13a8ad61030a',
40
40
  estateId: '20210729104021C49F04B55C50F6AF58',
41
41
  originalRequestURL: 'http://10.88.22.67:8080',
42
42
  Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',