centaline-data-driven 1.4.86 → 1.4.88

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.86",
3
+ "version": "1.4.88",
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="'/PropertyKey/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/api/third-dept-tran/transaction/edit'" :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
- chanceID: "1560550751669981184", actionType: 2
15
+ originalTraId: "1646416021069754369", actionType: 3, pageStyle: 2, pageTitle: "修改成交单", pageOnly: true
16
16
  },
17
17
  topHeight:10,
18
18
  }
@@ -4,10 +4,10 @@
4
4
 
5
5
  <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
6
6
 
7
- <!-- <ct-searchlist :apiParam="para"
7
+ <ct-searchlist :apiParam="para"
8
8
  :searchConditionApi="'/api/third-dept-tran/tran-list/layout'"
9
9
  :searchDataApi="'/api/third-dept-tran/tran-list'">
10
- </ct-searchlist> -->
10
+ </ct-searchlist>
11
11
 
12
12
 
13
13
  <!-- <ct-searchlist :apiParam="para"
@@ -28,11 +28,11 @@
28
28
  :searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'">
29
29
  </ct-searchlist> -->
30
30
 
31
- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
31
+ <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
32
32
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
33
33
  :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
34
34
  :searchStatsApi="'/PropertyRETList/getListStats'">
35
- </ct-searchlist>
35
+ </ct-searchlist> -->
36
36
 
37
37
  <!-- <ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'"
38
38
  :searchDataApi="'/PropertyOFIList/getListOfSearchModel'"
@@ -92,7 +92,7 @@
92
92
  showNum: 3,//如果isHidden为true时,个数大于3就会隐藏,默认是3
93
93
  appendId: '',//将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
94
94
  trigger: 'manual',//触发方式,传值可查看Popper UI组件trigger属性
95
- placement: 'bottom-start',//方向,传值可查看Popper UI组件placement属性
95
+ placement: 'bottom-end',//方向,传值可查看Popper UI组件placement属性
96
96
  },
97
97
  };
98
98
  },
@@ -206,4 +206,7 @@
206
206
  .labelText{
207
207
  -webkit-transform: scale(0.90);
208
208
  }
209
+ .el-popoverCallTel{
210
+ margin-left: 5px;
211
+ }
209
212
  </style>
@@ -24,7 +24,7 @@
24
24
  @keydown.down="rowKeyDownHandle($event, 1)" tabindex="-1">
25
25
  <div class="ct-table-content" v-if="!isLayout">
26
26
  <table border="0" cellpadding="0" cellspacing="0"
27
- :class="['ct-table', model.attrs.size ? 'ct-table-' + model.attrs.size : '',]">
27
+ :class="['ct-table', model.attrs.size ? 'ct-table-' + model.attrs.size : '',leftShadow>-1 || rightShadow>-1 ? 'ct-table-Shadow' : '',]">
28
28
  <!--表头-->
29
29
  <thead ref="tableHead" class="right-no-fixation-th">
30
30
  <tr class="ct-tr" ref="headTr" v-for="(columns, columnsIndex) in model.columnsArr" :key="columnsIndex">
@@ -1813,6 +1813,9 @@ export default {
1813
1813
  min-width: 100%;
1814
1814
  border-collapse: collapse;
1815
1815
  }
1816
+ .ct-searchtable .ct-table-Shadow {
1817
+ border-collapse: separate;
1818
+ }
1816
1819
 
1817
1820
  .ct-searchtable .ct-table th {
1818
1821
  background-color: #f4f7fa !important;
@@ -1846,7 +1849,7 @@ export default {
1846
1849
  }
1847
1850
 
1848
1851
  .shadowLeft {
1849
- border-right: 1px solid #e7e8eb;
1852
+ /* border-right: 1px solid #e7e8eb; */
1850
1853
  box-shadow: 2px 0 3px -1px rgba(0, 0, 0, 0.1);
1851
1854
  }
1852
1855
 
@@ -222,13 +222,19 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
222
222
  attrKey = this.common.initialsToLowerCase(attrKey);
223
223
  var rtn1 = this.fieldsDic[id];
224
224
  if (rtn1) {
225
- rtn1.source[attrKey] = attrValue;
226
- this.form.hatchHandle(id, attrKey, attrValue, rtn1);
227
-
228
- //用于处理源数据改动,强制更新视图数据 todo
229
- if (rtn1.self.$forceUpdate) {
230
- rtn1.self.$forceUpdate();
225
+ if(attrKey=='code1' && rtn1.source.controlType===4
226
+ && attrValue!=undefined && attrValue!=null && attrValue!=''){
227
+ if(rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null){
228
+ attrValue = Number(attrValue).toFixed(rtn1.source.decimals1)
231
229
  }
230
+ }
231
+ rtn1.source[attrKey] = attrValue;
232
+ this.form.hatchHandle(id, attrKey, attrValue, rtn1);
233
+
234
+ //用于处理源数据改动,强制更新视图数据 todo
235
+ if (rtn1.self.$forceUpdate) {
236
+ rtn1.self.$forceUpdate();
237
+ }
232
238
  }
233
239
  },
234
240
  setValueByFieldNameFromParent(id, attrKey, attrValue) {
@@ -514,13 +520,19 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
514
520
  attrKey = common.initialsToLowerCase(attrKey);
515
521
  var rtn1 = this.fieldsDic[id];
516
522
  if (rtn1) {
517
- rtn1.source[attrKey] = attrValue;
518
- this.self.hatchHandle(id, attrKey, attrValue, rtn1);
519
-
520
- //用于处理源数据改动,强制更新视图数据 todo
521
- if (rtn1.self.$forceUpdate) {
522
- rtn1.self.$forceUpdate();
523
+ if(attrKey=='code1' && rtn1.source.controlType===4
524
+ && attrValue!=undefined && attrValue!=null && attrValue!=''){
525
+ if(rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null){
526
+ attrValue = Number(attrValue).toFixed(rtn1.source.decimals1)
527
+ }
523
528
  }
529
+ rtn1.source[attrKey] = attrValue;
530
+ this.self.hatchHandle(id, attrKey, attrValue, rtn1);
531
+
532
+ //用于处理源数据改动,强制更新视图数据 todo
533
+ if (rtn1.self.$forceUpdate) {
534
+ rtn1.self.$forceUpdate();
535
+ }
524
536
  }
525
537
  },
526
538
  getListField(tableName, rowNum, fiedlId) {
@@ -84,6 +84,9 @@ const actions = {
84
84
  return true;
85
85
  }
86
86
  else {
87
+ if(typeof v.value === "undefined"){
88
+ return false;
89
+ }
87
90
  v.value = o;
88
91
  return true;
89
92
  }
package/src/main.js CHANGED
@@ -12,14 +12,14 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- baseUrl: "http://10.88.22.13:9004/max-uplink-api/v1/form/router",
15
+ // baseUrl: "http://10.88.22.13:9004/max-uplink-api/v1/form/router",
16
16
  // baseUrl: "http://10.6.1.162:17070/max-uplink-api/v1/form/router",
17
17
  // baseUrl: "http://10.25.10.63:9999/v1/form/router",
18
18
  // baseUrl: "http://10.88.22.42:9999/v1/form/router",
19
19
  // baseUrl: "http://10.88.22.69:8080/api/",
20
20
  // baseUrl: "http://10.88.22.40:8080/api/",
21
- // baseUrl: "http://tjcptest.centaline.com.cn/",
22
- // flagRouterSelf: true,
21
+ baseUrl: "http://tjcptest.centaline.com.cn/",
22
+ flagRouterSelf: true,
23
23
  zindex: 999,
24
24
  showRequestSuccessMessage: true,
25
25
  showRequestErrorMessage: true,
@@ -47,7 +47,7 @@ Vue.use(centaline, {
47
47
  // 获取请求头
48
48
  getRequestHeaders: function () {
49
49
  return {
50
- oldToken: '038e4dcf-1976-4fca-a66a-93611ea1b18c',
50
+ oldToken: '41a167c9-2968-410a-a186-8f259716d806',
51
51
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe8yNZM4zOzujJ0u2HgIssAWWBmBRGO8uxqho_cVr3jN_08Y5xb2EBZwQyuNLeCGVhoisUC-xoOFiOKFUSkqRvFRTlXN8VhBAfl-hT15JXZm7AoY0vQLZWD3DfOYb-f8-Me5yzR8Zn2nLoeUsCXuUUgVVazDMgnt2Po2iIfXGwAA__8.HBO2CVtY9G5noVhElgHNtMUaUzW8DY-BlKm3gGLL6uM',
52
52
 
53
53
  originalRequestURL: 'http://10.88.22.67:8080',