centaline-data-driven 1.2.57 → 1.2.58

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.57",
3
+ "version": "1.2.58",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Detail.vue CHANGED
@@ -10,7 +10,7 @@
10
10
  name: 'DataDrivendetail',
11
11
  data() {
12
12
  return {
13
- apiParam: {actionType: 1,chanceID: "1"} ,
13
+ apiParam: {actionType: 1,chanceID: "3"} ,
14
14
  }
15
15
  },
16
16
  mounted() {
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="'/api/third-dept-tran/profit-return/applyUI'" :apiParam="apiParam"></ct-form> -->
3
+ <ct-form :api="'/salematter/agentcontract/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>
@@ -17,7 +17,8 @@
17
17
  // apiParam: {profitReturnId: "1504359257134055426", actionType: 1, pageStyle: 2, pageTitle: "查看返利", pageOnly: true} ,
18
18
  // apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
19
19
  // apiParam: {originalTraId: "1475658732246241281", actionType: 2, chanceID: "1"} ,
20
- apiParam: {originalTraId: "1516290587463507969", actionType: "3", pageStyle: "2", pageTitle: "成交报告",pageOnly: "true"}
20
+ // apiParam: {originalTraId: "1516290587463507969", actionType: "3", pageStyle: "2", pageTitle: "成交报告",pageOnly: "true"}
21
+ apiParam:{acId:"220422141624917EB85D143D438CB8E5",actionType:3}
21
22
  }
22
23
  },
23
24
  methods: {
@@ -351,7 +351,7 @@ const common = {
351
351
  initFunction(f) {
352
352
  return function () {
353
353
  if (arguments.length === 0) {
354
- return f($fd);
354
+ return f(typeof $fd!='undefined'?$fd:'');
355
355
  }
356
356
  else {
357
357
  var exStr = 'f(';
@@ -168,7 +168,6 @@
168
168
  this.model.scripts.formData = this.model.formData;
169
169
  this.model.scripts.formData.formTable = this.model;
170
170
  this.model.setHiddenRow();
171
- console.log(this.model);
172
171
  },
173
172
  lookOwner(router) {
174
173
  var self = this;
@@ -395,6 +394,15 @@
395
394
  if(callBack){
396
395
  callBack();
397
396
  }
397
+ if(field.actionType===10){
398
+ data.apiRouter=self.model.apiRouter;
399
+ data.rowMergedColumns=self.model.rowMergedColumns;
400
+ self.loaderObj.ContactList(data,null,self.load);
401
+ self.$forceUpdate();
402
+ }
403
+ else if(field.actionType===19){
404
+ self.$refs['router'+field.id][0].callTelClick(data);
405
+ }
398
406
  })
399
407
  }
400
408
  }
@@ -141,6 +141,7 @@
141
141
  this.$emit('failLoad', this.model);
142
142
  },
143
143
  load(data) {
144
+ var self=this;
144
145
  this.$set(this, 'model', data);
145
146
  this.model.self = this;
146
147
  if (typeof this.model.scripts !== 'undefined') {
@@ -150,6 +151,14 @@
150
151
  this.model.scripts.formData.fieldsDic = this.model.fieldsDic;
151
152
  }
152
153
  this.loadFields();
154
+
155
+ if(this.model.onload){
156
+ let onloads=this.model.onload.split(';');
157
+ onloads.forEach((v, index) => {
158
+ self.$common.excute.call(self.model.scripts, v);
159
+ });
160
+ }
161
+
153
162
  this.loading = false;
154
163
  //通知父组件加载完成
155
164
  this.$emit('loaded', this.model);
@@ -43,6 +43,9 @@ const Base = function (source) {
43
43
  get code1() {
44
44
  return source.code1;
45
45
  },
46
+ set code1(v) {
47
+ source.code1 = v;
48
+ },
46
49
  get value() {
47
50
  return source.code1;
48
51
  },
@@ -160,6 +160,9 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
160
160
  }
161
161
  }
162
162
  },
163
+ get onload() {
164
+ return source.onload;
165
+ },
163
166
  get formData() {
164
167
  return formData;
165
168
  },
package/src/main.js CHANGED
@@ -13,6 +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.88.23.22:9999/v1/form/router",
16
17
  // baseUrl: "http://tjcptest.centaline.com.cn/",
17
18
  // flagRouterSelf: true,
18
19
  zindex: 999,
@@ -36,9 +37,9 @@ Vue.use(centaline, {
36
37
  getRequestHeaders: function () {
37
38
  return {
38
39
  oldToken: '1c37d6b7-9259-4835-88f6-a389900244f7',
39
- estateId: '20210729104021C49F04B55C50F6AF58',
40
40
  originalRequestURL: 'http://10.88.22.67:8080',
41
- Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',
41
+ EstateInfo: '{"estateId":"201509230915485D942241BBA30FF49F","estateName":"%E7%88%B1%E7%90%B4%E6%B5%B7B%E7%BB%84"}',
42
+ Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjgyZjdlZWUzLTY1ODctNDk4NS1hMTE3LTE3ODQxNDUxYzY5MCJ9.d8lc203lFjHqjJ6mboxSD7Eo2nJBYyynY9MtH5L0N3L9fYVedUhhvscnaxw08fITffWLxH4Mc7kP7qvHbJ3I8A',
42
43
  };
43
44
  },
44
45
  // 请求完成事件,可判断是否登录过期执行响应操作