centaline-data-driven 1.3.96 → 1.3.98

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.3.96",
3
+ "version": "1.3.98",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Detail.vue CHANGED
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div id="appDetail" style="height:100%;">
3
- <ct-Detail :api="'PropertyOFI/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailOFI'"></ct-Detail>
3
+ <ct-Detail :api="'PropertyRET/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailRET'"></ct-Detail>
4
4
  <ct-dialog-list></ct-dialog-list>
5
5
  </div>
6
6
  </template>
@@ -10,7 +10,7 @@
10
10
  name: 'DataDrivendetail',
11
11
  data() {
12
12
  return {
13
- apiParam: {actionType: 1,chanceID: "1524955049590132736"} ,
13
+ apiParam: {actionType: 1,chanceID: "1"} ,
14
14
  }
15
15
  },
16
16
  mounted() {
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="'/PropertyRET/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>
@@ -11,16 +11,21 @@
11
11
  name: 'DataDrivenForm',
12
12
  data() {
13
13
  return {
14
- apiParam:{
15
- actionType: "2",
16
- buildingID: "1",
17
- estateID: "1",
18
- floorID: "1",
19
- pageOnly: "true",
20
- pageTitle: "开盘",
21
- propertyID: "",
22
- roomNo: "1563",
23
- tradeID: "200",
14
+ apiParam:{actionType
15
+ :
16
+ "3",
17
+ originalTraId
18
+ :
19
+ "1572420664851103746",
20
+ pageOnly
21
+ :
22
+ "true",
23
+ pageStyle
24
+ :
25
+ "2",
26
+ pageTitle
27
+ :
28
+ "修改成交单",
24
29
  },
25
30
  topHeight:10,
26
31
  }
@@ -599,6 +599,15 @@
599
599
  }
600
600
  }
601
601
  },
602
+ inputHandler(field) {
603
+ if (typeof field.input !== 'undefined') {
604
+ if (typeof this.model.scripts !== 'undefined') {
605
+ this.model.scripts.formData.setExcuteListData(this.model.fields);
606
+ }
607
+ this.model.scripts.$fd = field.id;
608
+ this.$common.excute.call(this.model.scripts, field.input);
609
+ }
610
+ },
602
611
  changeHandler(field) {
603
612
  var self = this;
604
613
  if (typeof field.change !== 'undefined') {
@@ -665,15 +674,6 @@
665
674
  }
666
675
  self.$forceUpdate();
667
676
  },
668
- inputHandler(field) {
669
- if (typeof field.input !== 'undefined') {
670
- if (typeof this.model.scripts !== 'undefined') {
671
- this.model.scripts.formData.setExcuteListData(this.model.fields);
672
- }
673
- this.model.scripts.$fd = field.id;
674
- this.$common.excute.call(this.model.scripts, field.input);
675
- }
676
- },
677
677
  popupSearchListHandler(singleSelectio, field, router, callBack) {
678
678
  var self = this;
679
679
  var submitData = {};
@@ -10,7 +10,7 @@
10
10
  <div ref="highlights" v-if="model.firbiddenWords" class="backdrop" :style="{width:firbiddenWordsWidth+'px',height:firbiddenWordsHeight+'px',left:firbiddenWordsLeft+'px',top:firbiddenWordsTop+'px'}">
11
11
  <div class="highlights" v-html="firbiddenWordsValue"></div>
12
12
  </div>
13
- <el-input ref="input" :title="model.lock?model.value:''" :type="model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear()" @change="changeHandler($event)"
13
+ <el-input ref="input" :title="model.lock?model.value:''" :type="model.inputType" v-model="model.value" v-bind="model.attrs" @input="inputHandler($event);isShowClear();applyHighlights()" @change="changeHandler($event)"
14
14
  class="ct-flex-div-input max-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'',model.firbiddenWords?'inputHighlights':'']"
15
15
  :disabled="model.lock" :rows="model.rows"
16
16
  :readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit"
@@ -153,10 +153,6 @@
153
153
  });
154
154
  });
155
155
  },
156
- inputHandler(e) {
157
- this.applyHighlights();
158
- this.$emit('inputHandler',e);
159
- },
160
156
  scrollHandler() {
161
157
  var scrollTop = this.$refs.input.$el.children[0].scrollTop;
162
158
  var scrollHeight = this.$refs.input.$el.children[0].scrollHeight;
@@ -69,7 +69,6 @@ const FormList = function (source, master) {
69
69
  },
70
70
  getFormObj() {
71
71
  let rtnFormArr = [];
72
- debugger
73
72
  for (let i = 1; i < rtn.rows.length; i++) {
74
73
  let rtnFormObj = {};
75
74
  rtn.rows[i].field.forEach((s) => {
@@ -625,7 +625,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
625
625
 
626
626
  source.page.rows = source.page.rows + response.content.rows.length;
627
627
  rtn.$vue.calculatingRowHeight()
628
- } else {
628
+ }
629
+ else {
629
630
  response.content.rows.forEach((row) => {
630
631
  for (var vkey in row) {
631
632
  rtn.dataDictionary[row[rtn.primaryKey]][vkey] = row[vkey];
@@ -649,6 +650,32 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
649
650
  if (typeof response.content.bottomText !== 'undefined') {
650
651
  self.listFooter = response.content.bottomText;
651
652
  }
653
+ if (response.content.updateTableColumns) {
654
+ self.columns = response.content.columns;
655
+ if (self.template) {
656
+ var tempLoader = template.loader(self.template).default;
657
+ tempLoader.init(self);
658
+ }
659
+ else{
660
+ self.$vue.refreshTableColumns(response);
661
+ }
662
+ }
663
+ if(response.content.updateToolButtons){
664
+ if (response.content.toolButtons) {
665
+ self._buttons=[];
666
+ response.content.toolButtons.forEach((v) => {
667
+ var button = Router(v);
668
+ button.is = "ct-btn";
669
+ button.attrs = {
670
+ size: "mini",
671
+ class: 'max-btn-gray'
672
+ }
673
+ self._buttons.push(button);
674
+ });
675
+ self.toolbarKey=self.toolbarKey+1;
676
+ self.$vue.setTableHeight();
677
+ }
678
+ }
652
679
  }
653
680
 
654
681
  if (typeof callback !== 'undefined') {
package/src/main.js CHANGED
@@ -42,7 +42,7 @@ Vue.use(centaline, {
42
42
  // 获取请求头
43
43
  getRequestHeaders: function () {
44
44
  return {
45
- oldToken: '823894f8-bbf3-4d54-b3fb-4c697801c5c4',
45
+ oldToken: '854e91e2-3a5e-42af-a522-c51a0f5c09bc',
46
46
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVbC9rL2pgMnNBwicpxFChXKRwIh7g6IpEvPFFNM894TxrmFEvwCbmilkQXc0EpjDIk3XONBfERichhMDBiJI52q2sVjBQXo_QalYfaWhfe-gD5Nv2CCs98wjzqc9fGPc9ep_8zmJGJDzthaViQVxbQjwtSpdqSOLjbB6w0AAP__.nf7jF3ewbimJ8eNFZ72RKXS7qN0SgN5OnkZ0ZEk82Rc',
47
47
 
48
48
  originalRequestURL: 'http://10.88.22.67:8080',