centaline-data-driven 1.2.74 → 1.2.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.2.74",
3
+ "version": "1.2.75",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
- <ct-form :api="'/salematter/squareupload/readDetail'" :apiParam="apiParam"></ct-form>
3
+ <!-- <ct-form :api="'/salematter/squareupload/readDetail'" :apiParam="apiParam"></ct-form> -->
4
4
  <!-- <ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
5
5
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
6
- <!-- <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form> -->
6
+ <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form>
7
7
  <!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
8
8
  <ct-dialog-list></ct-dialog-list>
9
9
  </div>
@@ -18,7 +18,11 @@
18
18
  // apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
19
19
  // apiParam: {originalTraId: "1475658732246241281", actionType: 2, chanceID: "1"} ,
20
20
  // apiParam: {originalTraId: "1516290587463507969", actionType: "3", pageStyle: "2", pageTitle: "成交报告",pageOnly: "true"}
21
- apiParam:{"actionType":2,"jsonData":{}}
21
+ apiParam:{actionType: "3",
22
+ originalTraId: "1522961155108978690",
23
+ pageOnly: "true",
24
+ pageStyle: "2",
25
+ pageTitle: "成交报告"}
22
26
  }
23
27
  },
24
28
  methods: {
@@ -150,7 +150,6 @@
150
150
  if (!isCancel) {
151
151
  if (app.model.currentRow.isNew) app.model.tableData.splice(index, 1);
152
152
  return row.isSet = !row.isSet;
153
- app.model.currentRow.isSet = false;
154
153
  }
155
154
  //提交数据
156
155
  if (row.isSet) {//保存
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div style="width:100%;" class="ct-searchtable" ref="searchTable">
2
+ <div style="width:100%;" class="ct-searchtable" ref="searchTable" :style="{'margin-top':isLayout?'0':'','padding':isLayout?'0':''}">
3
3
  <ct-tableStats ref="tableStats" class="ct-search-table-list-header"
4
4
  v-if="!isLoading&&searchStatsApi"
5
5
  :api="searchStatsApi"
@@ -16,7 +16,7 @@
16
16
  <div v-loading="operationLoading">
17
17
  </div>
18
18
  <div class="ct-tableParent" ref="tableParent" v-bind="model.attrs" v-if="!isLoading"
19
- :style="{'height':from=='form'?'100%':model.tableHeight+'px'}"
19
+ :style="{'height':from=='form'?'100%':model.tableHeight+'px','border-bottom':isLayout?'none':''}"
20
20
  @scroll="scrollHandle($event)" :v-focus="model.flagFocus"
21
21
  @keydown.up="rowKeyDownHandle($event,0)" @keydown.down="rowKeyDownHandle($event,1)"
22
22
  tabindex="-1">
@@ -549,7 +549,10 @@
549
549
  if (this.$parent.$parent.$vnode.componentOptions.tag === 'ct-PropertySimpleDetailRET') {
550
550
  var h2 = this.$parent.$parent.$refs.contact.offsetHeight | 0;
551
551
  var h3 = this.$parent.$parent.$refs.title.offsetHeight | 0;
552
- let tableHeight = h1 - h2-h3 - 300;
552
+ let tableHeight = h1 - h2 - h3 - 270;
553
+ if (h2 == 0) {
554
+ tableHeight = tableHeight + 15;
555
+ }
553
556
  this.model.tableHeight = tableHeight;
554
557
  this.$nextTick(() => {
555
558
  self.getScrollAttr();
@@ -118,6 +118,7 @@ const FormList = function (source, master) {
118
118
  source.rows.forEach((r) => {
119
119
  var row = rtn.initRow(r);
120
120
  this._rows.push(row);
121
+ rtn._rows[rtn._rows.length - 1].$sourceIndex = rtn._rows.length - 1;
121
122
  });
122
123
  return this._rows;
123
124
  }
@@ -362,6 +363,7 @@ const FormList = function (source, master) {
362
363
  let iRow = this.initRow(sourceRow);
363
364
  iRow.isNewFlag = true;
364
365
  rtn._rows.push(iRow);
366
+ rtn._rows[rtn._rows.length - 1].$sourceIndex = rtn._rows.length - 1;
365
367
  Vue.set(row, 'edit', iRow.edit);
366
368
  Vue.set(row, 'delete', iRow.delete);
367
369
  row.$sourceIndex = rtn._rows.length - 1;
@@ -405,6 +407,7 @@ const FormList = function (source, master) {
405
407
  if (!isRepeat) {
406
408
  source.rows.push(row);
407
409
  rtn.rows.push(rowItem);
410
+ rtn._rows[rtn._rows.length - 1].$sourceIndex = rtn._rows.length - 1;
408
411
 
409
412
  rowData.$sourceIndex = source.rows.length - 1;
410
413
 
package/src/main.js CHANGED
@@ -13,9 +13,9 @@ Vue.use(ElementUI, { size: 'mini'});
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
15
  // baseUrl: "http://10.88.22.13:7070/v1/form/router",
16
- baseUrl: "http://10.88.23.22:9999/v1/form/router",
17
- // baseUrl: "http://10.1.245.111:38028/api",
18
- // flagRouterSelf: true,
16
+ // baseUrl: "http://10.88.23.22:9999/v1/form/router",
17
+ baseUrl: "http://tjcptest.centaline.com.cn/",
18
+ flagRouterSelf: true,
19
19
  zindex: 999,
20
20
  showRequestErrorMessage: true,
21
21
  handler: {
@@ -36,7 +36,7 @@ Vue.use(centaline, {
36
36
  // 获取请求头
37
37
  getRequestHeaders: function () {
38
38
  return {
39
- oldToken: '6613f67c-ba83-4065-9570-175c2f74e6d5',
39
+ oldToken: 'c72af00a-da9a-430a-b986-2935092b42f6',
40
40
  originalRequestURL: 'http://10.88.22.67:8080',
41
41
  EstateInfo: ' {"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"undefined"}',
42
42
  Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI2ZjYwZTBjLWFhYzEtNDgxYy1hYTBkLWMxNjZlNzdjOWZhYyJ9.56V1V4HOhrAdO58i-bg5XG5ZKSSJ-rN1trTEjs0lZCCID0CM8LLBswqrt4_wsbApIdT1QaTA4TtmWmlR3UvxXQ',