centaline-data-driven 1.1.44 → 1.1.45

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.1.44",
3
+ "version": "1.1.45",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -7,8 +7,8 @@
7
7
  <!--<ct-form :api="'/api/form/formdata/contractDetail'" :apiParam="apiParam"></ct-form>-->
8
8
  <!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
9
9
  <!-- <ct-form :api="'/forminfo/readDetail'" :apiParam="apiParam"></ct-form> -->
10
- <!-- <ct-form :api="'/PropertyTrust/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
11
- <ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form>
10
+ <ct-form :api="'PropertyKey/getLayoutOfNew'" :apiParam="apiParam"></ct-form>
11
+ <!-- <ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form> -->
12
12
  <ct-dialog-list></ct-dialog-list>
13
13
  </div>
14
14
  </template>
@@ -22,16 +22,16 @@
22
22
  // apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
23
23
  // apiParam: {SN: "13557_132", UserID: "wuhan3"},
24
24
  // apiParam: {actionType: 3,formId: "2c12649f-09c5-4aa9-8011-b6d1c7b56a41"} ,
25
- // apiParam: {chanceID: "1", actionType: 2} ,
26
- apiParam: {
27
- actionType: 2,
28
- agentId: "1450283160825425922",
29
- estateId: "B6E6B3D8-FDF2-4AF8-91E6-B348D637E993",
30
- pageOnly: true,
31
- pageStyle: 2,
32
- propertyId: "14102015-0736-9265-205A-451687BF7062",
33
- relProId: "1475708315466829833",
34
- }
25
+ apiParam: {chanceID: "1", actionType: 2} ,
26
+ // apiParam: {
27
+ // actionType: 2,
28
+ // agentId: "1450283160825425922",
29
+ // estateId: "B6E6B3D8-FDF2-4AF8-91E6-B348D637E993",
30
+ // pageOnly: true,
31
+ // pageStyle: 2,
32
+ // propertyId: "14102015-0736-9265-205A-451687BF7062",
33
+ // relProId: "1475708315466829833",
34
+ // }
35
35
  }
36
36
  },
37
37
  methods: {
@@ -723,4 +723,8 @@ html {
723
723
  }
724
724
  .el-radio__label{
725
725
  padding-left: 5px!important;
726
- }
726
+ }
727
+ .el-input--mini .el-input__inner {
728
+ height: 26px!important;
729
+ line-height: 26px!important;
730
+ }
@@ -112,7 +112,7 @@
112
112
  class: ['el-icon', 'el-icon-close'],
113
113
  style: {
114
114
  'position': 'absolute',
115
- 'right': '20px',
115
+ 'right': '8px',
116
116
  'top':'7px',
117
117
  'font-size':'22px'
118
118
  },
@@ -223,7 +223,7 @@
223
223
  var self = this;
224
224
  this.model.scripts.$fd = field.id;
225
225
  this.model.scripts.$result = [];
226
-
226
+
227
227
  var clickAcion = function (field) {
228
228
  if (field.isSubmit) {
229
229
  let verified = true;
@@ -391,8 +391,10 @@
391
391
  },
392
392
  changeCallBackHandler(field, callBackFunName, callBackPara) {
393
393
  var self = this;
394
- this.model.scripts.$fd = field.id;
395
- this.$common.excuteFunStr.call(this.model.scripts, callBackFunName, callBackPara);
394
+ if(callBackFunName){
395
+ this.model.scripts.$fd = field.id;
396
+ this.$common.excuteFunStr.call(this.model.scripts, callBackFunName, callBackPara);
397
+ }
396
398
  self.$forceUpdate();
397
399
  },
398
400
  inputHandler(field) {
@@ -444,7 +446,7 @@
444
446
  },
445
447
  on: {
446
448
  submit(option) {
447
- if (typeof callBack === "function") {
449
+ if (typeof callBack === "function" && !router.callBackFunName) {
448
450
  callBack(option);
449
451
  }
450
452
 
@@ -515,8 +517,7 @@
515
517
  }
516
518
  });
517
519
  },
518
- getFormObj()
519
- {
520
+ getFormObj(){
520
521
  let formData=this.model.getFormObj();
521
522
  if(this.$route && this.$route.query && this.$route.query.pageStyle)
522
523
  {
@@ -528,3 +529,8 @@
528
529
  }
529
530
  }
530
531
  </script>
532
+ <style scoped>
533
+ .el-collapse{
534
+ border-top: none;
535
+ }
536
+ </style>
@@ -17,7 +17,7 @@
17
17
  </span>
18
18
  </div>
19
19
  <el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel?'showLabel':'']"
20
- :trigger="'click'" :disabled="model.lock">
20
+ :trigger="(model.popupSearchListType > 0 || model.lock) ? 'manual' : 'click'" :disabled="model.lock">
21
21
  <div>
22
22
  <ct-select-option :model="model" :optionRowCount="optionRowCount" @click="selectOption($event)"></ct-select-option>
23
23
  </div>
@@ -271,9 +271,9 @@
271
271
  selectOptionArr(optionArr) {
272
272
  var self = this;
273
273
  optionArr.forEach((s) => {
274
- if (!self.model.value.find((v) => { return v === s.Code })) {
274
+ if (!self.model.value.find((v) => { return v === s[self.model.optionAttrs.value] })) {
275
275
  self.model.options.push(s);
276
- self.model.value.push(s.Code);
276
+ self.model.value.push(s[self.model.optionAttrs.value]);
277
277
  }
278
278
  });
279
279
 
@@ -107,12 +107,21 @@
107
107
  searchData() {
108
108
  this.$refs.table.searchComplate(this.model);
109
109
  },
110
+ reset() {
111
+ this.model.fields.forEach((v) => {
112
+ v.reset();
113
+ });
114
+ },
110
115
  getClickHandler(action) {
111
116
  var fun = {};
112
117
  switch (action) {
113
118
  case 'search':
114
119
  this.searchData();
115
120
  break;
121
+ case 'reset':
122
+ this.reset();
123
+ this.searchData();
124
+ break;
116
125
  default:
117
126
  break;
118
127
  }
@@ -186,10 +186,7 @@
186
186
  self.$emit('popupSearchList', true, self.model, self.model.moreActionRouter, (option) => {
187
187
  self.model.value = option[self.model.optionAttrs.value];
188
188
  self.model.text = option[self.model.optionAttrs.label];
189
- self.model.options.push({
190
- code: self.model.value,
191
- name: self.model.text
192
- });
189
+ self.model.options.push(option);
193
190
 
194
191
  self.soChange();
195
192
  });
@@ -196,10 +196,7 @@
196
196
  if (option) {
197
197
  self.model.value = option[self.model.optionAttrs.value];
198
198
  self.model.text = option[self.model.optionAttrs.label];
199
- self.model.options.push({
200
- Code: self.model.value,
201
- Name: self.model.text
202
- });
199
+ self.model.options.push(option);
203
200
 
204
201
  self.soChange();
205
202
  }
@@ -17,7 +17,7 @@
17
17
  </span>
18
18
  </span>
19
19
  </div>
20
- <el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel1?'showLabel':'']" :trigger="(model.popupSearchListType === 2 || model.lock) ? 'manual' : 'click'">
20
+ <el-popover ref="pop" placement="bottom-start" v-model="showDrop" :class="[model.showLabel1?'showLabel':'']" :trigger="(model.popupSearchListType > 0 || model.lock) ? 'manual' : 'click'">
21
21
  <div>
22
22
  <div>
23
23
  <el-input ref="searchInput" :size="model.attrs.size" suffix-icon="el-icon-search" v-model="searchText" @input="searchInputHandle"></el-input>
@@ -205,7 +205,7 @@
205
205
  },
206
206
  popupSearchListHandle: function () {
207
207
  var self = this;
208
-
208
+ self.showDrop=false;
209
209
  self.$emit('popupSearchList', false, self.model, self.model.moreActionRouter, (optionArr) => {
210
210
  self.selectOptionArr(optionArr);
211
211
  });
@@ -280,9 +280,9 @@
280
280
  selectOptionArr(optionArr) {
281
281
  var self = this;
282
282
  optionArr.forEach((s) => {
283
- if (!self.model.value.find((v) => { return v === s.Code })) {
283
+ if (!self.model.value.find((v) => { return v === s[self.model.optionAttrs.value] })) {
284
284
  self.model.options.push(s);
285
- self.model.value.push(s.Code);
285
+ self.model.value.push(s[self.model.optionAttrs.value]);
286
286
  }
287
287
  });
288
288
 
package/src/main.js CHANGED
@@ -12,8 +12,8 @@ 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",
16
- baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
15
+ baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
+ // baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
17
17
  zindex: 999,
18
18
  showRequestErrorMessage: true,
19
19
  handler: {