centaline-data-driven 1.1.49 → 1.1.53
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 +1 -1
- package/src/Form.vue +4 -2
- package/src/centaline/css/common.css +7 -2
- package/src/centaline/css/max.css +10 -6
- package/src/centaline/dialogList/src/dialog.vue +6 -3
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +1 -3
- package/src/centaline/dynamicFile/src/dynamicFile.vue +18 -7
- package/src/centaline/dynamicForm/src/dynamicForm.vue +138 -110
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +3 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +3 -1
- package/src/centaline/dynamicSo/src/dynamicSo.vue +1 -1
- package/src/centaline/dynamicSos/src/dynamicSos.vue +1 -1
- package/src/centaline/dynamicTags/src/dynamicTags.vue +1 -1
- package/src/centaline/formData/index.js +2 -1
- package/src/centaline/loader/src/ctl/Form.js +17 -0
- package/src/centaline/loader/src/ctl/HyperLink.js +1 -1
- package/src/centaline/loader/src/ctl/Router.js +3 -2
- package/src/centaline/loader/src/ctl/SearchTable.js +1 -1
- package/src/centaline/loader/src/ctl.js +1 -0
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Form.vue
CHANGED
|
@@ -7,7 +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="'PropertyKey/getLayoutOfNew'" :apiParam="apiParam"></ct-form>
|
|
10
|
+
<!-- <ct-form :api="'PropertyKey/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
11
|
+
<ct-form :api="'Worklist/getLayoutOfAudit'" :apiParam="apiParam"></ct-form>
|
|
11
12
|
<!-- <ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form> -->
|
|
12
13
|
<ct-dialog-list></ct-dialog-list>
|
|
13
14
|
</div>
|
|
@@ -22,7 +23,8 @@
|
|
|
22
23
|
// apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
|
|
23
24
|
// apiParam: {SN: "13557_132", UserID: "wuhan3"},
|
|
24
25
|
// apiParam: {actionType: 3,formId: "2c12649f-09c5-4aa9-8011-b6d1c7b56a41"} ,
|
|
25
|
-
apiParam: {chanceID: "1", actionType: 2} ,
|
|
26
|
+
// apiParam: {chanceID: "1", actionType: 2} ,
|
|
27
|
+
apiParam: {worklistID: "1491261975253094400", actionType: 2}
|
|
26
28
|
// apiParam: {
|
|
27
29
|
// actionType: 2,
|
|
28
30
|
// agentId: "1450283160825425922",
|
|
@@ -315,7 +315,7 @@ html {
|
|
|
315
315
|
}
|
|
316
316
|
.spanMessage {
|
|
317
317
|
font-size: 12px;
|
|
318
|
-
padding:
|
|
318
|
+
padding: 2px 2px;
|
|
319
319
|
}
|
|
320
320
|
.el-input__icon {
|
|
321
321
|
height:initial;
|
|
@@ -734,5 +734,10 @@ html {
|
|
|
734
734
|
min-height: 26px!important;
|
|
735
735
|
}
|
|
736
736
|
.ct-dialog_body .el-card__body{
|
|
737
|
-
padding
|
|
737
|
+
padding: 0px 3px 10px 10px!important;
|
|
738
738
|
}
|
|
739
|
+
.ct-text .ct-font-size-mini span{
|
|
740
|
+
display: inline-block;
|
|
741
|
+
margin-top: 1px;
|
|
742
|
+
color: #388cd3;
|
|
743
|
+
}
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
border-radius: 6px;
|
|
44
44
|
}
|
|
45
45
|
/* 弹层新增按钮 */
|
|
46
|
-
.max-btn-add button{ /*list-button*/
|
|
46
|
+
.max-btn-add button,.max-btn-add{ /*list-button*/
|
|
47
47
|
height: 26px;
|
|
48
48
|
background: #EE6B6B;
|
|
49
49
|
border-color:#EE6B6B;
|
|
50
50
|
box-shadow: 0px 2px 4px 0px rgba(238,107,107,0.25);
|
|
51
51
|
border-radius: 6px;
|
|
52
52
|
}
|
|
53
|
-
.max-btn-add button:hover{
|
|
53
|
+
.max-btn-add button:hover,.max-btn-add:hover{
|
|
54
54
|
background-color:#FF9393;
|
|
55
55
|
border-color: #FF9393;
|
|
56
56
|
}
|
|
57
|
-
.max-btn-add button:focus,.max-btn-add button:active{
|
|
57
|
+
.max-btn-add button:focus,.max-btn-add button:active,.max-btn-add:focus,.max-btn-add:active{
|
|
58
58
|
background-color: #B33136;
|
|
59
59
|
border-color: #B33136;
|
|
60
60
|
}
|
|
@@ -168,13 +168,13 @@
|
|
|
168
168
|
text-align: left !important;
|
|
169
169
|
}
|
|
170
170
|
/* 重置input默认颜色 选中文字颜色 */
|
|
171
|
-
.ct-search-list input::-webkit-input-placeholder{
|
|
171
|
+
.ct-search-list input::-webkit-input-placeholder,.ct-iti-editor input::-webkit-input-placeholder{
|
|
172
172
|
color: #666666!important;
|
|
173
173
|
}
|
|
174
174
|
.ct-search-list .el-date-editor .el-range-input,.ct-search-list .el-input__inner{
|
|
175
175
|
color: #409eff;
|
|
176
176
|
}
|
|
177
|
-
.ct-so .ct-input_inner {
|
|
177
|
+
.ct-so .ct-input_inner,.ct-text .showLabel input{
|
|
178
178
|
color: #409eff!important;
|
|
179
179
|
}
|
|
180
180
|
.cover-list-item .el-checkbox__input.is-checked + .el-checkbox__label,.cover-list-item .el-checkbox__input.is-checked .el-checkbox__inner{
|
|
@@ -201,4 +201,8 @@
|
|
|
201
201
|
.ct-Seg.ct-Seg-mini .ct-radios, .ct-Seg.ct-Seg-mini .ct-radios .el-radio__label {
|
|
202
202
|
min-height: 26px;
|
|
203
203
|
line-height: 26px;
|
|
204
|
-
}
|
|
204
|
+
}
|
|
205
|
+
.el-input-group__append, .el-input-group__prepend {
|
|
206
|
+
color: #666;
|
|
207
|
+
border-color:#cecece;
|
|
208
|
+
}
|
|
@@ -56,10 +56,12 @@
|
|
|
56
56
|
style: {
|
|
57
57
|
'z-index': this.zindex,
|
|
58
58
|
//'wiidth': (this.vmodel.pane ? this.vmodel.pane.$el.offsetWidth : document.body.offsetWidth) + 'px',
|
|
59
|
-
'height': (self.vmodel.pane ? self.vmodel.pane.$el.offsetHeight : document.body.offsetHeight + 10) + 'px',
|
|
59
|
+
// 'height': (self.vmodel.pane ? self.vmodel.pane.$el.offsetHeight : document.body.offsetHeight + 10) + 'px',
|
|
60
|
+
'height':'100%',
|
|
60
61
|
'width': '100%',
|
|
61
62
|
// 'height': '100%',
|
|
62
63
|
}
|
|
64
|
+
|
|
63
65
|
}, [
|
|
64
66
|
//h('div', {
|
|
65
67
|
// 'class': [
|
|
@@ -148,9 +150,10 @@
|
|
|
148
150
|
ph=parseInt(item.attrs.height.replace('px',''));
|
|
149
151
|
}
|
|
150
152
|
if(self.vmodel.pane && self.vmodel.pane.$el.offsetHeight<ph){
|
|
151
|
-
item.attrs.height=(self.vmodel.pane.$el.offsetHeight-
|
|
153
|
+
item.attrs.height=(self.vmodel.pane.$el.offsetHeight-30)+'px';
|
|
152
154
|
}
|
|
153
|
-
|
|
155
|
+
// console.log(document.body.offsetHeight);
|
|
156
|
+
// console.log(item.attrs.height)
|
|
154
157
|
return h('div', {
|
|
155
158
|
style: {
|
|
156
159
|
width: item.attrs.width,
|
|
@@ -144,9 +144,7 @@
|
|
|
144
144
|
<div class="row-i"><span>装修:</span><span>豪装</span></div>
|
|
145
145
|
<div class="row-i"><span>租赁期:</span><span>半年</span></div>
|
|
146
146
|
<div class="row-i"><span>付款方式:</span><span>一次性全款</span></div>
|
|
147
|
-
<div class="row-i">
|
|
148
|
-
<span>可否注册公司:</span><span>是</span>
|
|
149
|
-
</div>
|
|
147
|
+
<div class="row-i"><span>可否注册公司:</span><span>是</span></div>
|
|
150
148
|
</div>
|
|
151
149
|
</div>
|
|
152
150
|
<div class="info-conten-b" v-show="allInfo">
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<div slot="file" slot-scope="{file}" :title="file.fileName">
|
|
20
20
|
<div class="cover-list-item">
|
|
21
21
|
<el-image fit="fill" :src="file.url"
|
|
22
|
-
style="width:
|
|
22
|
+
style="width: 100px; height: 100px"
|
|
23
23
|
:preview-src-list="getPreviewSrcList(file)"
|
|
24
24
|
:z-index="previewZIndex"
|
|
25
25
|
@click="handlePictureCardPreview(file)">
|
|
@@ -229,9 +229,12 @@
|
|
|
229
229
|
<style>
|
|
230
230
|
.ct-upload-display-none .el-upload--picture-card {
|
|
231
231
|
display: none;
|
|
232
|
+
|
|
232
233
|
}
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
.el-upload-list__item .is-ready{
|
|
235
|
+
width: 100px;
|
|
236
|
+
height: 100px;
|
|
237
|
+
} .ct-file .cover-list-item {
|
|
235
238
|
position: sticky;
|
|
236
239
|
}
|
|
237
240
|
|
|
@@ -261,12 +264,20 @@
|
|
|
261
264
|
.ct-file .el-icon-arrow-down {
|
|
262
265
|
font-size: 12px;
|
|
263
266
|
}
|
|
267
|
+
.el-collapse-item__content{
|
|
268
|
+
padding-bottom: 18px;
|
|
269
|
+
}
|
|
264
270
|
.el-upload--picture-card{
|
|
265
|
-
width:
|
|
266
|
-
height:
|
|
267
|
-
line-height:
|
|
271
|
+
width: 100px;
|
|
272
|
+
height: 100px;
|
|
273
|
+
line-height:initial;
|
|
274
|
+
padding: 34px;
|
|
268
275
|
}
|
|
269
276
|
.el-upload--picture-card i{
|
|
270
|
-
font-size:
|
|
277
|
+
font-size: 30px;
|
|
278
|
+
}
|
|
279
|
+
.el-upload-list--picture-card .el-upload-list__item{
|
|
280
|
+
width: 100px;
|
|
281
|
+
height: 100px;
|
|
271
282
|
}
|
|
272
283
|
</style>
|
|
@@ -217,6 +217,16 @@
|
|
|
217
217
|
var router = this.model.buttons.find((v) => {
|
|
218
218
|
return v.id === field.id;
|
|
219
219
|
});
|
|
220
|
+
if(router==undefined){
|
|
221
|
+
router = this.model.links.find((v) => {
|
|
222
|
+
return v.id === field.id;
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
if(router==undefined){
|
|
226
|
+
router = this.model.actionRouters.find((v) => {
|
|
227
|
+
return v.id === field.id;
|
|
228
|
+
});
|
|
229
|
+
}
|
|
220
230
|
this.clickHandler(router);
|
|
221
231
|
},
|
|
222
232
|
clickHandler(field, submitData) {
|
|
@@ -224,61 +234,139 @@
|
|
|
224
234
|
this.model.scripts.$fd = field.id;
|
|
225
235
|
this.model.scripts.$result = [];
|
|
226
236
|
|
|
227
|
-
var clickAcion = function (field) {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
if (
|
|
237
|
+
var clickAcion = function (field) {
|
|
238
|
+
//若不是客户端方法,则直接访问接口
|
|
239
|
+
if (!field.isClientFuntion) {
|
|
240
|
+
if (field.isSubmit) {
|
|
241
|
+
let verified = true;
|
|
242
|
+
if (self.validExcute()) {
|
|
243
|
+
if (typeof field.onClick !== 'undefined') {
|
|
244
|
+
verified = self.$common.excute.call(self.model.scripts, field.onClick);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (verified) {
|
|
248
|
+
//action有值,提交到后台
|
|
249
|
+
if (field.action) {
|
|
250
|
+
field.disabled = true;//提交按钮禁用
|
|
251
|
+
self.model.pageDisabled= true;
|
|
252
|
+
field.doAction(self.getFormObj(), (data) => {
|
|
253
|
+
if (data.rtnCode === 200) {
|
|
254
|
+
if (self.model.flagAlertClose) {
|
|
255
|
+
self.$common.confirm('操作成功,是否关闭本页面?', '提示', {
|
|
256
|
+
confirmButtonText: '确定',
|
|
257
|
+
cancelButtonText: '取消',
|
|
258
|
+
type: 'warning'
|
|
259
|
+
}).then(() => {
|
|
260
|
+
//如果没有弹框 则关闭tab页
|
|
261
|
+
if (self.$common.dialogList && self.$common.dialogList.List.length === 0) {
|
|
262
|
+
if (typeof self.$common.getDataDrivenOpts().handler.closeTab === 'function') {
|
|
263
|
+
self.$common.getDataDrivenOpts().handler.closeTab();
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
self.$emit('submit', { formData: self.model, responseData: data });
|
|
267
|
+
}).catch(() => {
|
|
268
|
+
self.init();
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
self.$emit('submit', { formData: self.model, responseData: data });
|
|
273
|
+
}
|
|
274
|
+
if (self.parentModel) {
|
|
275
|
+
self.parentModel.$vue.closeTabThen(data);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
field.disabled = false;
|
|
279
|
+
self.model.pageDisabled= false;
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
//无值,触发submit事件
|
|
283
|
+
else {
|
|
284
|
+
self.$emit('submit', { formData: self.model, responseData: {} });
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
231
290
|
if (typeof field.onClick !== 'undefined') {
|
|
232
291
|
verified = self.$common.excute.call(self.model.scripts, field.onClick);
|
|
233
292
|
}
|
|
234
293
|
|
|
235
|
-
if (
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
294
|
+
if (!submitData) {
|
|
295
|
+
submitData = {};
|
|
296
|
+
var tempFormData = self.model.getFormObj();
|
|
297
|
+
field.submitFormField.forEach((v) => {
|
|
298
|
+
submitData[v] = tempFormData[v];
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (field.isOpenForm) {
|
|
303
|
+
var dialogOption = {
|
|
304
|
+
title: field.pageTitle,
|
|
305
|
+
pane: self.$common.getParentPane(self),
|
|
306
|
+
content: [{
|
|
307
|
+
component: 'ct-form',
|
|
308
|
+
attrs: {
|
|
309
|
+
//ssource: data.content,
|
|
310
|
+
api: field.action,
|
|
311
|
+
apiParam: field.getActionPara(submitData).para,
|
|
312
|
+
showTitle: false,
|
|
313
|
+
width: field.dialogWidth + 'px',
|
|
314
|
+
height: field.dialogHeight + 'px'
|
|
315
|
+
},
|
|
316
|
+
on: {
|
|
317
|
+
submit(ev) {
|
|
318
|
+
self.model.updateFields(ev, () => {
|
|
319
|
+
self.$refs.Fields.forEach((fd) => {
|
|
320
|
+
fd.$forceUpdate();
|
|
321
|
+
});
|
|
257
322
|
});
|
|
323
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
258
324
|
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
325
|
+
}
|
|
326
|
+
}]
|
|
327
|
+
};
|
|
328
|
+
self.$common.openDialog(dialogOption);
|
|
329
|
+
}
|
|
330
|
+
else if (field.isOpenList) {
|
|
331
|
+
var dialogOption = {
|
|
332
|
+
title: field.pageTitle,
|
|
333
|
+
pane: self.$common.getParentPane(self),
|
|
334
|
+
content: [{
|
|
335
|
+
component: 'ct-searchlist',
|
|
336
|
+
attrs: {
|
|
337
|
+
searchConditionApi: field.actionForSearchLayout,
|
|
338
|
+
searchDataApi: field.actionForSearch,
|
|
339
|
+
apiParam: submitData,
|
|
340
|
+
width: field.dialogWidth + 'px',
|
|
341
|
+
height: field.dialogHeight + 'px'
|
|
342
|
+
},
|
|
343
|
+
on: {
|
|
344
|
+
submit(ev) {
|
|
345
|
+
self.model.updateFields(ev, () => {
|
|
346
|
+
self.$refs.Fields.forEach((fd) => {
|
|
347
|
+
fd.$forceUpdate();
|
|
348
|
+
});
|
|
349
|
+
});
|
|
350
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
264
351
|
}
|
|
265
352
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
353
|
+
}]
|
|
354
|
+
};
|
|
355
|
+
self.$common.openDialog(dialogOption);
|
|
356
|
+
}
|
|
357
|
+
else if (field.isFormPageInTab || field.isSearchPageInTab) {// 外部框架tab页打开
|
|
358
|
+
submitData = field.getActionPara(submitData).para;
|
|
359
|
+
self.$common.getDataDrivenOpts().handler.openTab(field.action, submitData, field.pageTitle);
|
|
360
|
+
}
|
|
361
|
+
else if (field.isBrowserNewTab) {// 浏览器打开
|
|
362
|
+
submitData = field.getActionPara(submitData).para;
|
|
363
|
+
let query = self.$common.objectToQueryStr(submitData);
|
|
364
|
+
window.open(field.action + query, "_blank");
|
|
274
365
|
}
|
|
275
366
|
}
|
|
276
367
|
}
|
|
368
|
+
//执行客户端脚本
|
|
277
369
|
else {
|
|
278
|
-
if (typeof field.onClick !== 'undefined') {
|
|
279
|
-
verified = self.$common.excute.call(self.model.scripts, field.onClick);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
370
|
if (!submitData) {
|
|
283
371
|
submitData = {};
|
|
284
372
|
var tempFormData = self.model.getFormObj();
|
|
@@ -286,71 +374,11 @@
|
|
|
286
374
|
submitData[v] = tempFormData[v];
|
|
287
375
|
});
|
|
288
376
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
content: [{
|
|
295
|
-
component: 'ct-form',
|
|
296
|
-
attrs: {
|
|
297
|
-
//ssource: data.content,
|
|
298
|
-
api: field.action,
|
|
299
|
-
apiParam: field.getActionPara(submitData).para,
|
|
300
|
-
showTitle: false,
|
|
301
|
-
width: field.dialogWidth + 'px',
|
|
302
|
-
height: field.dialogHeight + 'px'
|
|
303
|
-
},
|
|
304
|
-
on: {
|
|
305
|
-
submit(ev) {
|
|
306
|
-
self.model.updateFields(ev, () => {
|
|
307
|
-
self.$refs.Fields.forEach((fd) => {
|
|
308
|
-
fd.$forceUpdate();
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
self.$common.closeDialog(dialogOption.dialog);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}]
|
|
315
|
-
};
|
|
316
|
-
self.$common.openDialog(dialogOption);
|
|
317
|
-
}
|
|
318
|
-
else if (field.isOpenList) {
|
|
319
|
-
var dialogOption = {
|
|
320
|
-
title: field.pageTitle,
|
|
321
|
-
pane: self.$common.getParentPane(self),
|
|
322
|
-
content: [{
|
|
323
|
-
component: 'ct-searchlist',
|
|
324
|
-
attrs: {
|
|
325
|
-
searchConditionApi: field.actionForSearchLayout,
|
|
326
|
-
searchDataApi: field.actionForSearch,
|
|
327
|
-
apiParam: submitData,
|
|
328
|
-
width: field.dialogWidth + 'px',
|
|
329
|
-
height: field.dialogHeight + 'px'
|
|
330
|
-
},
|
|
331
|
-
on: {
|
|
332
|
-
submit(ev) {
|
|
333
|
-
self.model.updateFields(ev, () => {
|
|
334
|
-
self.$refs.Fields.forEach((fd) => {
|
|
335
|
-
fd.$forceUpdate();
|
|
336
|
-
});
|
|
337
|
-
});
|
|
338
|
-
self.$common.closeDialog(dialogOption.dialog);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}]
|
|
342
|
-
};
|
|
343
|
-
self.$common.openDialog(dialogOption);
|
|
344
|
-
}
|
|
345
|
-
else if (field.isFormPageInTab || field.isSearchPageInTab) {// 外部框架tab页打开
|
|
346
|
-
submitData = field.getActionPara(submitData).para;
|
|
347
|
-
self.$common.getDataDrivenOpts().handler.openTab(field.action, submitData, field.pageTitle);
|
|
348
|
-
}
|
|
349
|
-
else if (field.isBrowserNewTab) {// 浏览器打开
|
|
350
|
-
submitData = field.getActionPara(submitData).para;
|
|
351
|
-
let query = self.$common.objectToQueryStr(submitData);
|
|
352
|
-
window.open(field.action + query, "_blank");
|
|
353
|
-
}
|
|
377
|
+
submitData = field.getActionPara(submitData).para;
|
|
378
|
+
let title=field.pageTitle==undefined ?field.label:field.pageTitle;
|
|
379
|
+
submitData.actionType=field.actionType;
|
|
380
|
+
var fun =self.$common.getDataDrivenOpts().handler[field.action];
|
|
381
|
+
fun(submitData,title,self.model);
|
|
354
382
|
}
|
|
355
383
|
}
|
|
356
384
|
|
|
@@ -410,12 +438,12 @@
|
|
|
410
438
|
var self = this;
|
|
411
439
|
var submitData = {};
|
|
412
440
|
var tempFormData = self.model.getFormObj();
|
|
441
|
+
|
|
413
442
|
var check = true;
|
|
414
443
|
var checkMsg;
|
|
415
444
|
router.submitFormField.forEach((v) => {
|
|
416
445
|
submitData[v] = tempFormData[v];
|
|
417
|
-
|
|
418
|
-
if (typeof tempFormData[v] === "undefined" || tempFormData[v] === '') {
|
|
446
|
+
if (typeof tempFormData[v] === "undefined") {
|
|
419
447
|
if (self.model.fieldsDic[v]) {
|
|
420
448
|
checkMsg = "请先录入" + self.model.fieldsDic[v].label;
|
|
421
449
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
2
|
+
<div style="padding:0 8px 0 10px">
|
|
3
3
|
<div v-if="model !== null && !loading">
|
|
4
4
|
<el-table ref="multipleTable"
|
|
5
5
|
:data="tableData"
|
|
@@ -233,5 +233,7 @@
|
|
|
233
233
|
}
|
|
234
234
|
.el-table .el-table__header th {
|
|
235
235
|
background-color: #f4f7fa!important;
|
|
236
|
+
padding-left: 5px;
|
|
237
|
+
padding-right: 5px;
|
|
236
238
|
}
|
|
237
239
|
</style>
|
|
@@ -684,7 +684,9 @@
|
|
|
684
684
|
},
|
|
685
685
|
on: {
|
|
686
686
|
submit(ev) {
|
|
687
|
-
|
|
687
|
+
if (!field.flagFreshCurrentRow) {
|
|
688
|
+
self.model.doAction(ev);
|
|
689
|
+
}
|
|
688
690
|
self.$forceUpdate();
|
|
689
691
|
self.$refs.footer.$forceUpdate();
|
|
690
692
|
self.$common.closeDialog(dialogOption.dialog);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
3
|
<div style="width:100%;display:flex;">
|
|
4
|
-
<div style="flex:1;
|
|
4
|
+
<div style="flex:1;" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
5
5
|
]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
6
6
|
<div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
3
|
<div style="width:100%;display:flex">
|
|
4
|
-
<div style="flex:1;
|
|
4
|
+
<div style="flex:1;" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
5
5
|
]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
6
6
|
<div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
7
7
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
2
|
import common from '../common';
|
|
3
|
+
import Enum from '../loader/src/ctl/lib/Enum';
|
|
3
4
|
import Axios from 'axios';
|
|
4
5
|
const formData = {
|
|
5
6
|
install(Vue) {
|
|
@@ -230,7 +231,7 @@ const formData = {
|
|
|
230
231
|
//获取后台数据,并返回脚本。
|
|
231
232
|
execServerScript(action, object, successCallback) {
|
|
232
233
|
let formData = this;//作用域保存
|
|
233
|
-
|
|
234
|
+
debugger;
|
|
234
235
|
//是否是行内触发的
|
|
235
236
|
let data = this.getListField(this.form.scripts.$fd, null, null);
|
|
236
237
|
object.editMode = data ? 1 : 0;
|
|
@@ -118,6 +118,23 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
118
118
|
return rtn._links;
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
|
+
_actionRouters: null,
|
|
122
|
+
get actionRouters() {
|
|
123
|
+
if (rtn._actionRouters !== null) {
|
|
124
|
+
return rtn._actionRouters;
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
rtn._actionRouters = [];
|
|
128
|
+
if (source.actionRouters) {
|
|
129
|
+
source.actionRouters.forEach((v) => {
|
|
130
|
+
var button = Router(v);
|
|
131
|
+
button.is = "ct-btn";
|
|
132
|
+
rtn._actionRouters.push(button);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return rtn._actionRouters;
|
|
136
|
+
}
|
|
137
|
+
},
|
|
121
138
|
get optionApi() {
|
|
122
139
|
return source.parameterAction;
|
|
123
140
|
},
|
|
@@ -146,7 +146,8 @@ const Router = function (source) {
|
|
|
146
146
|
return source.rightField;
|
|
147
147
|
},
|
|
148
148
|
get submitFormField() {
|
|
149
|
-
|
|
149
|
+
|
|
150
|
+
if (typeof source.refFieldName === 'undefined' || source.refFieldName === null|| source.refFieldName.trim() === '') {
|
|
150
151
|
return [];
|
|
151
152
|
}
|
|
152
153
|
var submitArr = [];
|
|
@@ -156,7 +157,7 @@ const Router = function (source) {
|
|
|
156
157
|
return submitArr;
|
|
157
158
|
},
|
|
158
159
|
get submitListField() {
|
|
159
|
-
if (typeof source.refFieldName === 'undefined' || source.refFieldName === null) {
|
|
160
|
+
if (typeof source.refFieldName === 'undefined' || source.refFieldName === null|| source.refFieldName.trim() === '') {
|
|
160
161
|
return [];
|
|
161
162
|
}
|
|
162
163
|
var submitArr = [];
|
|
@@ -29,6 +29,7 @@ const loader = {
|
|
|
29
29
|
File: require("./ctl/File.js").default,
|
|
30
30
|
Tree: require("./ctl/Tree.js").default,
|
|
31
31
|
SearchCategory: require("./ctl/SearchCategory.js").default,
|
|
32
|
+
HyperLink: require("./ctl/HyperLink.js").default,
|
|
32
33
|
Detail: require("./ctl/Detail.js").default,
|
|
33
34
|
};
|
|
34
35
|
|