centaline-data-driven 1.2.77 → 1.2.78

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.77",
3
+ "version": "1.2.78",
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: "3"} ,
13
+ apiParam: {actionType: 1,chanceID: "1"} ,
14
14
  }
15
15
  },
16
16
  mounted() {
package/src/Form.vue CHANGED
@@ -1,9 +1,8 @@
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> -->
4
3
  <!-- <ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
5
4
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
6
- <ct-form :api="'/salematter/priceupload/readDetail'" :apiParam="apiParam"></ct-form>
5
+ <ct-form :api="'/api/third-dept-tran/second-hand-transaction/add-detail'" :apiParam="apiParam"></ct-form>
7
6
  <!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
8
7
  <ct-dialog-list></ct-dialog-list>
9
8
  </div>
@@ -18,7 +17,12 @@
18
17
  // apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
19
18
  // apiParam: {originalTraId: "1475658732246241281", actionType: 2, chanceID: "1"} ,
20
19
  // apiParam: {originalTraId: "1516290587463507969", actionType: "3", pageStyle: "2", pageTitle: "成交报告",pageOnly: "true"}
21
- apiParam:{"actionType":2}
20
+ apiParam:{actionType: 2,
21
+ externalPropertyId: "54802",
22
+ pageOnly: true,
23
+ pageStyle: 2,
24
+ propertyNo: "SHHKS000032362"
25
+ }
22
26
  }
23
27
  },
24
28
  methods: {
@@ -53,7 +53,7 @@
53
53
  </el-button>
54
54
  <el-button v-else class="max"
55
55
  :type="model.isHyperLink ? 'text' : 'primary'"
56
- v-bind="model.attrs" @click="$emit('click',model)"
56
+ v-bind="model.attrs" @click="clickHandle"
57
57
  :style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
58
58
  :icon="model.icon"
59
59
  :disabled="model.disabled || model.locked">
@@ -149,7 +149,7 @@
149
149
  }
150
150
  }
151
151
  else{
152
- this.$emit('click',this.model);
152
+ this.$emit('click',this.model,this.rowData,this.rowindex);
153
153
  }
154
154
  },
155
155
  callTelClick(data){
@@ -328,21 +328,7 @@
328
328
  }
329
329
 
330
330
  if (!submitData) {
331
- submitData = {};
332
- var tempFormData = self.model.getFormObj();
333
- if(field.flagAttachSearchCondition){
334
- submitData.jsonData=tempFormData;
335
- }
336
- else{
337
- field.submitFormField.forEach((v) => {
338
- if(tempFormData[v]){
339
- submitData[v] = tempFormData[v];
340
- }
341
- else{
342
- submitData[v] = tempFormData[self.$common.initialsToUpperCase(v)];
343
- }
344
- });
345
- }
331
+ submitData = self.getFileData(field);
346
332
  }
347
333
 
348
334
  if (field.isOpenForm) {
@@ -624,6 +610,7 @@
624
610
  return formData;
625
611
  },
626
612
  getFileData(field) {
613
+ var self=this;
627
614
  var submitData = {};
628
615
  var tempFormData = this.model.getFormObj();
629
616
  if(field.flagAttachSearchCondition){
@@ -632,7 +619,12 @@
632
619
  else{
633
620
  if(field.submitFormField){
634
621
  field.submitFormField.forEach((v) => {
635
- submitData[v] = tempFormData[v];
622
+ if(tempFormData[v]){
623
+ submitData[v] = tempFormData[v];
624
+ }
625
+ else{
626
+ submitData[v] = tempFormData[self.$common.initialsToUpperCase(v)];
627
+ }
636
628
  });
637
629
  }
638
630
  }
@@ -22,9 +22,10 @@
22
22
  </template>
23
23
  <template slot-scope="scope">
24
24
  <span v-if="scope.row.isSet">
25
- <component ref="Fields" :is="v.is" :vmodel="model.currentRow.data[v.id]" :api="model.OptApi"
26
- @change="changeHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"
27
- @input="inputHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"></component>
25
+ <component ref="Fields" :is="model.currentRow.data[v.id].locked || model.currentRow.data[v.id].is!==v.is?model.currentRow.data[v.id].is:v.is"
26
+ :vmodel="model.currentRow.data[v.id]" :api="model.OptApi"
27
+ @change="changeHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"
28
+ @input="inputHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"></component>
28
29
  </span>
29
30
  <span v-else-if="v.is=='ct-sensitiveeye'">
30
31
  <component v-if ref="Fields" :is="v.is" :vmodel="scope.row[v.id]" :vrowmodel="scope.row" :api="model.OptApi"></component>
@@ -308,7 +309,8 @@
308
309
  const value = Number(curr);
309
310
  if (!isNaN(value)) {
310
311
  return Number(prev + curr);
311
- } else {
312
+ }
313
+ else {
312
314
  return Number(prev);
313
315
  }
314
316
  }, 0);
@@ -316,7 +318,8 @@
316
318
  if (data[0][column.property].decimals && data[0][column.property].decimals > 0) {
317
319
  sums[index] = sums[index].toFixed(data[0][column.property].decimals);
318
320
  }
319
- } else {
321
+ }
322
+ else {
320
323
  sums[index] = 'N/A';
321
324
  }
322
325
  }
@@ -148,6 +148,9 @@ const Base = function (source) {
148
148
  get lock() {
149
149
  return source.locked;
150
150
  },
151
+ get locked() {
152
+ return source.locked;
153
+ },
151
154
  set locked(v) {
152
155
  source.locked = v;
153
156
  },
@@ -275,6 +278,9 @@ const Base = function (source) {
275
278
  get singleLine() {
276
279
  return source.singleLine;
277
280
  },
281
+ get decimals() {
282
+ return source.decimals1;
283
+ },
278
284
  };
279
285
 
280
286
  return rtn;
@@ -19,9 +19,6 @@ const box = function (source, callBack) {
19
19
  },
20
20
  set clearable(v) {
21
21
  source.clear = v;
22
- },
23
- get decimals() {
24
- return data.decimals1;
25
22
  },
26
23
  get value() {
27
24
  return source.code1;
package/src/main.js CHANGED
@@ -12,9 +12,9 @@ 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:7070/v1/form/router",
16
- baseUrl: "http://10.88.23.22:9999/v1/form/router",
17
- // baseUrl: "http://tjcptest.centaline.com.cn/",
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.88.22.69:8080/",
18
18
  // flagRouterSelf: true,
19
19
  zindex: 999,
20
20
  showRequestErrorMessage: true,
@@ -36,7 +36,7 @@ Vue.use(centaline, {
36
36
  // 获取请求头
37
37
  getRequestHeaders: function () {
38
38
  return {
39
- oldToken: 'c72af00a-da9a-430a-b986-2935092b42f6',
39
+ oldToken: '89a43c8a-df03-44b9-a234-8ba34b21b671',
40
40
  originalRequestURL: 'http://10.88.22.67:8080',
41
41
  EstateInfo: ' {"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"undefined"}',
42
42
  Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijk4NGM0ZjJlLTRhNTgtNDM4YS1iNjkxLWQyMTI4ZjdlYjNlMyJ9.nxO4kEXzIM2RJTXuX_AOoctKFvBiTZUEwHTu1YSFMn8JBjM9p-RK31ZB8ckJvlwgjiDGdbuGt1QOZRRP9KS3qQ',