centaline-data-driven 1.3.96 → 1.3.97

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.97",
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="'/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) => {
package/src/main.js CHANGED
@@ -12,12 +12,12 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- baseUrl: "http://10.88.22.46:7070/v1/form/router",
15
+ // baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
16
  // baseUrl: "http://10.25.10.67:9999/v1/form/router",
17
17
  // baseUrl: "http://10.88.22.42:9999/v1/form/router",
18
18
  // baseUrl: "http://10.88.22.39:8080/api/",
19
- // baseUrl: "http://tjcptest.centaline.com.cn/",
20
- // flagRouterSelf: true,
19
+ baseUrl: "http://tjcptest.centaline.com.cn/",
20
+ flagRouterSelf: true,
21
21
  zindex: 999,
22
22
  showRequestSuccessMessage: true,
23
23
  showRequestErrorMessage: true,
@@ -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',