centaline-data-driven 1.2.55 → 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.55",
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> -->
4
- <ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam"></ct-form>
3
+ <ct-form :api="'/salematter/agentcontract/readDetail'" :apiParam="apiParam"></ct-form>
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/form/formdata/contractDetail'" :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: {actionType: "2", propertyID: "", estateID: "1", buildingID: "1", floorID: "1", roomNo: "1504",tradeID: "100"}
20
+ // apiParam: {originalTraId: "1516290587463507969", actionType: "3", pageStyle: "2", pageTitle: "成交报告",pageOnly: "true"}
21
+ apiParam:{acId:"220422141624917EB85D143D438CB8E5",actionType:3}
21
22
  }
22
23
  },
23
24
  methods: {
Binary file
Binary file
@@ -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(';
@@ -805,4 +805,3 @@ html {
805
805
  }
806
806
 
807
807
 
808
-
@@ -34,30 +34,31 @@
34
34
  <div>{{model.label}}</div>
35
35
  <div style="color:red;font-weight:700;">{{model.subText}}</div>
36
36
  </el-button>
37
- <el-button v-else-if="model.isCallTel"
37
+ <el-button v-else-if="model.isCallTel" :id="model.id"
38
38
  :type="model.isHyperLink ? 'text' : 'primary'"
39
39
  v-bind="model.attrs" @click="clickHandle"
40
- :style="{color:model.textColor,backgroundColor:model.bgColor,borderColor:model.borderColor}"
40
+ :style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
41
41
  :icon="model.icon"
42
42
  :disabled="model.disabled || model.locked">
43
- <el-popover :ref="'popover'+model.id" :append-to-table="option.appendId?option.appendId:''"
44
- class="Stats-popover" popper-class="el-popover1" :placement="option.placement?option.placement:'left'"
45
- v-model="visible"
46
- :trigger="option.trigger?option.trigger:''">
47
- <div style="border-bottom:none">
48
- <div style="color: #388cd3;text-align: center;">{{message}}</div>
49
- <img v-show="qrCode" :src="qrCode" style="margin-top: 5px;" :style="{'width':width+'px','height':height+'px'}" />
50
- </div>
51
- <span slot="reference">{{model.label}}</span>
52
- </el-popover>
43
+ <el-popover :ref="'popover'+model.id"
44
+ class="Stats-popover" :popper-class="'el-popoverCallTel'" :placement="option.placement?option.placement:'left'"
45
+ v-model="visible" :trigger="option.trigger?option.trigger:''">
46
+ <div style="border-bottom:none">
47
+ <div style="color: #388cd3;text-align: center;">{{message}}</div>
48
+ <img v-show="qrCode" :src="qrCode" style="margin-top: 5px;" :style="{'width':width+'px','height':height+'px'}" />
49
+ </div>
50
+ <img v-if="model.imgUrl" slot="reference" :title="model.label" :src="tellImgUrl?tellImgUrl:model.imgUrl" height="24px" />
51
+ <span v-else slot="reference">{{model.label}}</span>
52
+ </el-popover>
53
53
  </el-button>
54
54
  <el-button v-else
55
55
  :type="model.isHyperLink ? 'text' : 'primary'"
56
56
  v-bind="model.attrs" @click="$emit('click',model)"
57
- :style="{color:model.textColor,backgroundColor:model.bgColor,borderColor:model.borderColor}"
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">
60
- {{model.label}}
60
+ <img v-if="model.imgUrl" :title="model.label" :src="model.imgUrl" height="24px"/>
61
+ <span v-else>{{model.label}}</span>
61
62
  </el-button>
62
63
  </template>
63
64
  <script>
@@ -77,10 +78,11 @@
77
78
  qrCode:'',
78
79
  width:300,
79
80
  height:300,
81
+ tellImgUrl:'',
80
82
  option: {
81
83
  isHidden: true,//是否开启操作栏隐藏设置,默认开启
82
84
  showNum: 3,//如果isHidden为true时,个数大于3就会隐藏,默认是3
83
- appendId: '',//将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
85
+ appendId: '.el-button',//将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
84
86
  trigger: 'manual',//触发方式,传值可查看Popper UI组件trigger属性
85
87
  placement: 'bottom-start',//方向,传值可查看Popper UI组件placement属性
86
88
  },
@@ -138,6 +140,7 @@
138
140
  if(this.model.isCallTel){
139
141
  if(this.visible){
140
142
  this.visible=false;
143
+ this.tellImgUrl='';
141
144
  }
142
145
  else{
143
146
  this.$emit('click',this.model);
@@ -150,9 +153,11 @@
150
153
  callTelClick(data){
151
154
  this.message='';
152
155
  this.qrCode='';
156
+ this.tellImgUrl='';
153
157
  if(data.content.actionType=='显示消息'){
154
158
  this.visible=true;
155
159
  this.message=data.content.message;
160
+ if(data.content.imgUrl)this.tellImgUrl=data.content.imgUrl;
156
161
  }
157
162
  else if(data.content.actionType=='扫码拨号'){
158
163
  this.visible=true;
@@ -160,6 +165,7 @@
160
165
  this.qrCode = data.content.qrCode;
161
166
  if(data.content.width)this.width=data.content.width;
162
167
  if(data.content.height)this.height=data.content.height;
168
+ if(data.content.imgUrl)this.tellImgUrl=data.content.imgUrl;
163
169
  }
164
170
  },
165
171
  }
@@ -1,7 +1,8 @@
1
1
  <template>
2
- <div v-if="apiRouter!=={} && model && model.listData.length>0" style="border: 1px solid #ECEFF2;box-shadow: 0 2px 4px 0 rgba(0,0,0,0.06);border-radius: 6px;
3
- padding-bottom: 10px;padding-top: 10px;padding-left: 10px;display: flex;font-size: 12px;">
4
- <div class="ct-so" style="width:180px;">
2
+ <div v-if="apiRouter!=={} && model && model.listData.length>0"
3
+ style="border: 1px solid #ECEFF2;box-shadow: 0 2px 4px 0 rgba(0,0,0,0.06);border-radius: 6px;
4
+ padding-bottom: 10px;padding-top: 10px;padding-left: 10px;display: flex;font-size: 12px;width:100%">
5
+ <div class="ct-so" style="width:auto;margin-right: 10px;">
5
6
  <el-popover ref="pop" placement="bottom-start" v-model="showDrop" trigger="click">
6
7
  <div>
7
8
  <ctSelectOptionVertical :model="model" @click="selectOption($event)"></ctSelectOptionVertical>
@@ -19,7 +20,7 @@
19
20
  </div>
20
21
  <div style="margin-left: 5px;display: flex;">
21
22
  <component v-for="(router, index) in model.rowRouter" :key="index" :ref="'router'+router.id"
22
- v-if="!router.rightField || model.listData[model.value][router.rightField] == 1"
23
+ v-if="!router.rightField || model.listData[model.value][router.rightField] == 1"
23
24
  :is="router.is" :vmodel="router" :api="model.optionApi" @click="fieldClickHandler(router)">
24
25
  </component>
25
26
  </div>
@@ -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
  }
@@ -177,7 +177,7 @@
177
177
  <div class="t-item">
178
178
  <span class="i">{{col.operationName}}</span>
179
179
  </div>
180
- <div class="t-item"><span class="i" :class="'operation'+col.flagKey">{{col.desc}}</span></div>
180
+ <div class="t-item"><span class="i" :class="'operation'+col.flagKey" :style="{color:col.descColor}">{{col.desc}}</span></div>
181
181
  <div class="t-item" style="min-height: 50px;">
182
182
  <component v-for="(router, routerIndex) in col.routers" :key="routerIndex" :is="router.is" :vmodel="router" :api="model.optionApi"
183
183
  @click="fieldClickHandler(router,$event)" class="el-button t-but el-button--info max-info"></component>
@@ -27,8 +27,8 @@
27
27
  <span>{{model.fields1Dic.DistrictName.value}}</span>
28
28
  <span>{{model.fields1Dic.AreaName.value}}</span>
29
29
  </div>
30
- <div style="margin-top: 7px;display: flex;">
31
- <div v-for="(tag, index) in model.actionRouterLabel" :key="index" class="t-tag"
30
+ <div style="display: flex;flex-wrap: wrap;">
31
+ <div v-for="(tag, index) in model.actionRouterLabel" :key="index" class="t-tag" style="margin-top: 7px;"
32
32
  :style="{color:tag.textColor,backgroundColor:tag.bgColor,borderColor:tag.borderColor}">
33
33
  {{tag.label}}
34
34
  </div>
@@ -48,7 +48,7 @@
48
48
  <div style="margin-top: 7px;font-size: 14px;font-weight: Bold;color: #EE6B6B;">{{model.fields1Dic.FloorName.value}}</div>
49
49
  </div>
50
50
  </div>
51
- <div ref="contact" style="margin-top: 16px;" v-if="model.contactApiRouter!==null" >
51
+ <div ref="contact" id="contact" style="margin-top: 16px;" v-if="model.contactApiRouter!==null" >
52
52
  <ct-contact :apiRouter="model.contactApiRouter" :api="model.contactApiRouter.action" :apiParam="model.contactApiRouter.getSearchPara()"></ct-contact>
53
53
  </div>
54
54
  <div ref="routers" style="margin-top: 16px;display: flex;">
@@ -60,8 +60,8 @@
60
60
  <el-popover v-if="showIndex>0" ref="popover0" :append-to-table="option.appendId?option.appendId:''"
61
61
  class="Stats-popover" popper-class="el-popover1" :placement="option.placement?option.placement:'left'"
62
62
  :trigger="option.trigger?option.trigger:''">
63
- <div class="tab-list" style="border-bottom:none">
64
- <component v-for="(router, index) in model.actionRoutersSimple.slice(showIndex)" :key="index"
63
+ <div class="tab-list" style="border-bottom:none;display: flex;flex-direction: column;">
64
+ <component v-for="(router, index) in model.actionRoutersSimple.slice(showIndex)" :key="index" style="margin-bottom: 10px;margin-left: 0px;"
65
65
  v-if="!router.rightField || (model.fields1Dic[router.rightField] && model.fields1Dic[router.rightField].value == 1)"
66
66
  :is="router.is" :vmodel="router" :api="model.optionApi" @click="fieldClickHandler(router)">
67
67
  </component>
@@ -100,7 +100,7 @@
100
100
  showNum: 3,//如果isHidden为true时,个数大于3就会隐藏,默认是3
101
101
  appendId: '',//将浮动栏添加到对应id或者class节点中。或者.xxx。传空字符串是添加到body中。
102
102
  trigger: 'hover',//触发方式,传值可查看Popper UI组件trigger属性
103
- placement: 'right-start',//方向,传值可查看Popper UI组件placement属性
103
+ placement: 'left-start',//方向,传值可查看Popper UI组件placement属性
104
104
  },
105
105
  }
106
106
  },
@@ -147,9 +147,12 @@
147
147
  this.topWidth=this.$refs.main.clientWidth-140;
148
148
  }
149
149
 
150
- let totalWidth=self.$refs.routers.offsetWidth;
150
+ let totalWidth=0;
151
151
  let sumWidth=0;
152
152
  let moreWidth = 20;
153
+ if(self.$refs.routers){
154
+ totalWidth=self.$refs.routers.offsetWidth;
155
+ }
153
156
  self.model.actionRoutersSimple.forEach((v,i) => {
154
157
  if(!v.rightField || (self.model.fields1Dic[v.rightField] && self.model.fields1Dic[v.rightField].value == 1)){
155
158
  if(self.$refs['routers'+i][0] && self.$refs['routers'+i][0].$el){
@@ -105,7 +105,7 @@
105
105
  var self = this;
106
106
  return {
107
107
  loading: true,
108
- activeName: '0',
108
+ activeName: '-1',
109
109
  collapse: [],//分组数组
110
110
  collapseActiveNames: [],//默认展开的分组name
111
111
  collapseFieldsRow: [],//分组数组对应的行列布局
@@ -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);
@@ -172,6 +181,9 @@
172
181
  }
173
182
  else if (v.is === 'ct-group') {
174
183
  self.collapse.push(v);
184
+ if(v.isExpand && self.activeName=='-1'){
185
+ self.activeName=(self.collapse.length-1).toString();
186
+ }
175
187
  if (v.lock || v.isExpand) {
176
188
  realCollapseActiveNames.push(self.collapse.length - 1);
177
189
  }
@@ -186,10 +198,11 @@
186
198
  collapseItem.push(v);
187
199
  }
188
200
  });
201
+ if(self.activeName==='-1')self.activeName='0';
189
202
  if (collapseItem.length > 0) {
190
203
  collapseItemArr.push(collapseItem);
191
204
  }
192
-
205
+
193
206
  //遍历分组里的组件,计算行列布局
194
207
  for (var i = 0; i < collapseItemArr.length; i++) {
195
208
  var myFilter = collapseItemArr[i];
@@ -251,8 +264,11 @@
251
264
  if (!field.isClientFuntion) {
252
265
  if (field.isSubmit) {
253
266
  let verified = true;
254
- if (self.validExcute()) {
255
- if (typeof field.onClick !== 'undefined') {
267
+ if(field.flagVerifyData){
268
+ verified=self.validExcute();
269
+ }
270
+ if (verified) {
271
+ if (field.flagVerifyData && typeof field.onClick !== 'undefined') {
256
272
  verified = self.$common.excute.call(self.model.scripts, field.onClick);
257
273
  }
258
274
 
@@ -290,7 +306,7 @@
290
306
  self.parentModel.$vue.closeTabThen(data);
291
307
  }
292
308
  }
293
- field.disabled = false;
309
+ field.disabled = false;
294
310
  self.model.pageDisabled= false;
295
311
  });
296
312
  }
@@ -407,7 +423,7 @@
407
423
  }
408
424
  }
409
425
 
410
- if (field.isSubmit && !self.validExcute()) {
426
+ if (field.isSubmit && field.flagVerifyData && !self.validExcute()) {
411
427
  return;
412
428
  }
413
429
 
@@ -20,21 +20,36 @@
20
20
  @click="viewerOpen(photoList, index)"
21
21
  >
22
22
  </el-image>
23
- <span class="cover-list-item-span-delete">
23
+ <span
24
+ class="cover-list-item-span-delete"
25
+ v-if="!modelPhotoselect.lock"
26
+ >
24
27
  <i class="el-icon-delete" @click="handleRemove(index)"></i>
25
28
  </span>
26
- <span class="cover-list-item-span" v-if="item.mediaLabelName">
27
- <span class="el-dropdown-link">
28
- &nbsp;{{ item.mediaLabelName }}
29
+ <span class="cover-list-item-span">
30
+ <span class="el-dropdown-link" v-if="item.mediaLabelName">
31
+ <span style="width: 80px; height: 26px; display: inline-flex;">
32
+ &nbsp;{{ item.mediaLabelName }} </span>
33
+ </span>
34
+ <span v-if="item.rightDefault==true||item.rightDefault=='true'"
35
+ :class="[
36
+ item.flagDefault &&
37
+ (item.flagDefault == true || item.flagDefault == 'true')
38
+ ? 'checked'
39
+ : 'Unchecked',
40
+ 'isradio',
41
+ ]"
42
+ @click="radiochecked(photoList, item)"
43
+ >
29
44
  </span>
30
45
  </span>
31
46
  </div>
32
47
  </li>
33
48
  </draggable>
34
49
  </ul>
35
- <div
50
+ <div
36
51
  class="el-upload el-upload--picture-card"
37
- v-if="!modelPhotoselect.lock&&photoList.length<max"
52
+ v-if="!modelPhotoselect.lock && photoList.length < max"
38
53
  @click="handleOpen()"
39
54
  >
40
55
  <i class="el-icon-plus"></i>
@@ -65,7 +80,8 @@ export default {
65
80
  },
66
81
  data() {
67
82
  return {
68
- max:99999,
83
+ radio: "1",
84
+ max: 99999,
69
85
  validMessage: "",
70
86
  photoList: [],
71
87
  modelPhotoselect: {},
@@ -103,7 +119,7 @@ export default {
103
119
  methods: {
104
120
  load(data) {
105
121
  this.model = data;
106
- this.max=data.max?data.max:99999;
122
+ this.max = data.max ? data.max : 99999;
107
123
  this.modelPhotoselect = data;
108
124
  this.photoList = data.fileList;
109
125
  },
@@ -156,7 +172,7 @@ export default {
156
172
  }, 3000);
157
173
  photoList = photoList.slice(0, this.modelPhotoselect.max);
158
174
  }
159
- }
175
+ }
160
176
  self.modelPhotoselect.setFileList(photoList);
161
177
  self.photoList = photoList;
162
178
 
@@ -183,7 +199,15 @@ export default {
183
199
  self.$nextTick(function () {
184
200
  self.modelPhotoselect.setFileList(self.photoList);
185
201
  });
186
- },
202
+ },
203
+ radiochecked(list, item) {
204
+ var self = this;
205
+ list.forEach((v) => {
206
+ v.flagDefault = false;
207
+ });
208
+ item.flagDefault = true;
209
+ self.modelPhotoselect.setFileList(list);
210
+ },
187
211
  //不能共用的数据校验
188
212
  selfValidExcute: function (eventName) {
189
213
  if (this.modelPhotoselect.required) {
@@ -275,10 +299,14 @@ export default {
275
299
  margin-right: 4px;
276
300
  }
277
301
 
278
- .ct-photoSelect .el-dropdown-link {
279
- cursor: pointer;
280
- color: #fff;
281
- }
302
+ .ct-photoSelect .el-dropdown-link{
303
+ cursor: pointer;
304
+ color: #fff;
305
+ position: relative;
306
+ width: 80px;
307
+ height: 26px;
308
+ display: inline-block;
309
+ }
282
310
 
283
311
  .ct-photoSelect .el-icon-arrow-down {
284
312
  font-size: 12px;
@@ -306,4 +334,21 @@ export default {
306
334
  .card {
307
335
  display: inline-block;
308
336
  }
337
+
338
+ .ct-photoSelect .checked {
339
+ background: url(../../../assets/checked.png);
340
+ }
341
+ .ct-photoSelect .Unchecked {
342
+ background: url(../../../assets/Unchecked.png);
343
+ }
344
+
345
+ .ct-photoSelect .isradio {
346
+ background-size: 100% 100%;
347
+ height: 18px;
348
+ width: 18px;
349
+ display: block;
350
+ cursor: pointer;
351
+ margin-top: 5px;
352
+ float: right;
353
+ }
309
354
  </style>
@@ -215,12 +215,16 @@
215
215
  }
216
216
  },
217
217
  sideMenuClickHandler(v) {
218
+ let popoverCallTels=document.getElementsByClassName('el-popoverCallTel');
218
219
  if(v=='open'){
219
220
  this.sideBarStatus ='close';
220
221
  this.sideBarRight=-this.sideBarWidth;
221
222
  this.sideBarWidth=0;
222
223
  this.searchWidth=0;
223
224
  this.sideBarMenuRight=0;
225
+ for(var i=0;i<popoverCallTels.length;i++){
226
+ popoverCallTels[i].style.display='none';
227
+ }
224
228
  }
225
229
  else if(v=='close'){
226
230
  this.sideBarStatus ='open';
@@ -228,7 +232,10 @@
228
232
  this.sideBarWidth=this.$refs.table.model.sideBarWidth;
229
233
  this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
230
234
  this.sideBarMenuRight=this.sideBarWidth-2;
231
- this.rowClickHandle();
235
+ this.rowClickHandle();
236
+ for(var i=0;i<popoverCallTels.length;i++){
237
+ popoverCallTels[i].style.display='block';
238
+ }
232
239
  }
233
240
  },
234
241
  closeSideHandler() {
@@ -45,7 +45,6 @@ const formData = {
45
45
  var rtn1 = this.fieldsDic[id];
46
46
  if (rtn1) {
47
47
  rtn1.source[attrKey] = attrValue;
48
- console.log(this.form)
49
48
  this.form.hatchHandle(id, attrKey, attrValue, rtn1);
50
49
  //this.form.hiddenHandle(rtn1);//隐藏关联的
51
50
 
@@ -231,7 +230,7 @@ const formData = {
231
230
  //获取后台数据,并返回脚本。
232
231
  execServerScript(action, object, successCallback) {
233
232
  let formData = this;//作用域保存
234
- debugger;
233
+
235
234
  //是否是行内触发的
236
235
  let data = this.getListField(this.form.scripts.$fd, null, null);
237
236
  object.editMode = data ? 1 : 0;
@@ -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
  },
@@ -144,7 +147,9 @@ const Base = function (source) {
144
147
  },
145
148
  get lock() {
146
149
  return source.locked;
147
- //return true;
150
+ },
151
+ set locked(v) {
152
+ source.locked = v;
148
153
  },
149
154
  get listBind() {
150
155
  let bind = {};
@@ -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
  },
@@ -313,6 +313,15 @@ const Router = function (source) {
313
313
  get locked() {
314
314
  return source.locked;
315
315
  },
316
+ get flagVerifyData() {
317
+ //提交表单时是否校验数据
318
+ if(source.flagVerifyData!=undefined){
319
+ return source.flagVerifyData;
320
+ }
321
+ else{
322
+ return true;
323
+ }
324
+ },
316
325
  };
317
326
  return rtn;
318
327
  }
package/src/main.js CHANGED
@@ -13,8 +13,8 @@ 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://tjcptest.centaline.com.cn/",
17
- // baseUrl: "http://10.88.22.46:7070/",
16
+ // baseUrl: "http://10.88.23.22:9999/v1/form/router",
17
+ // baseUrl: "http://tjcptest.centaline.com.cn/",
18
18
  // flagRouterSelf: true,
19
19
  zindex: 999,
20
20
  showRequestErrorMessage: true,
@@ -36,10 +36,10 @@ Vue.use(centaline, {
36
36
  // 获取请求头
37
37
  getRequestHeaders: function () {
38
38
  return {
39
- oldToken: 'fd2b9945-9709-4608-a57b-13a8ad61030a',
40
- estateId: '20210729104021C49F04B55C50F6AF58',
39
+ oldToken: '1c37d6b7-9259-4835-88f6-a389900244f7',
41
40
  originalRequestURL: 'http://10.88.22.67:8080',
42
- 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',
43
43
  };
44
44
  },
45
45
  // 请求完成事件,可判断是否登录过期执行响应操作