centaline-data-driven 1.4.33 → 1.4.35
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 +16 -2
- package/src/centaline/dynamicDetail/src/dynamicAlbums.vue +18 -18
- package/src/centaline/dynamicForm/src/dynamicForm.vue +86 -42
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +6 -2
- package/src/centaline/loader/src/ctl/FormList.js +2 -0
- package/src/main.js +3 -3
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/api/third-dept-tran/transaction/edit'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,21 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
|
|
15
|
+
actionType
|
|
16
|
+
:
|
|
17
|
+
"3",
|
|
18
|
+
originalTraId
|
|
19
|
+
:
|
|
20
|
+
"1603271493445812226",
|
|
21
|
+
pageOnly
|
|
22
|
+
:
|
|
23
|
+
"true",
|
|
24
|
+
pageStyle
|
|
25
|
+
:
|
|
26
|
+
"2",
|
|
27
|
+
pageTitle
|
|
28
|
+
:
|
|
29
|
+
"成交报告"
|
|
16
30
|
},
|
|
17
31
|
topHeight:10,
|
|
18
32
|
}
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
>
|
|
13
13
|
<template v-for="(item, index) in carouselMediaAlbums">
|
|
14
14
|
<el-carousel-item :key="index">
|
|
15
|
-
<div class="swiper-i">
|
|
16
|
-
<div class="page">{{item.page}}</div>
|
|
15
|
+
<div class="swiper-i">
|
|
17
16
|
<img :src="getShowUrl(item)" @click="viewerfile(item)" />
|
|
18
17
|
<img
|
|
19
18
|
:src="item.albumBigImageUrl"
|
|
@@ -28,7 +27,7 @@
|
|
|
28
27
|
</div> </el-carousel-item
|
|
29
28
|
></template>
|
|
30
29
|
</el-carousel>
|
|
31
|
-
|
|
30
|
+
<div class="page">{{page}}</div>
|
|
32
31
|
<div
|
|
33
32
|
class="hous-img"
|
|
34
33
|
style="position: absolute; bottom: 0; z-index: 9"
|
|
@@ -77,17 +76,20 @@ export default {
|
|
|
77
76
|
newMediaAlbums: [],
|
|
78
77
|
activeAlbumsIndex: 0,
|
|
79
78
|
flagChange: true,
|
|
80
|
-
carouselMediaAlbums:[]
|
|
79
|
+
carouselMediaAlbums:[],
|
|
80
|
+
page:""
|
|
81
81
|
};
|
|
82
82
|
},
|
|
83
83
|
created() {
|
|
84
84
|
this.init();
|
|
85
85
|
},
|
|
86
86
|
methods: {
|
|
87
|
+
setPage(item){
|
|
88
|
+
this.page=item.page;
|
|
89
|
+
},
|
|
87
90
|
init() {
|
|
88
91
|
var self = this;
|
|
89
92
|
this.newMediaAlbums = this.mediaAlbums || [];
|
|
90
|
-
|
|
91
93
|
this.mediaAlbums.forEach((item,index)=>{
|
|
92
94
|
item.medias.forEach((n,i)=>{
|
|
93
95
|
n.albumSmallImageUrl=item.albumSmallImageUrl;
|
|
@@ -100,17 +102,20 @@ export default {
|
|
|
100
102
|
self.carouselMediaAlbums.push(n);
|
|
101
103
|
})
|
|
102
104
|
})
|
|
103
|
-
|
|
105
|
+
this.setPage( self.carouselMediaAlbums[self.getinitialIndex(self.carouselMediaAlbums)]);
|
|
104
106
|
self.$forceUpdate();
|
|
105
107
|
},
|
|
106
108
|
|
|
107
109
|
changeAlbumsIndex(newindex,oldValue){
|
|
108
110
|
var self = this;
|
|
109
111
|
self.activeAlbumsIndex= self.carouselMediaAlbums[newindex].groupindex;
|
|
112
|
+
this.setPage( self.carouselMediaAlbums[newindex]);
|
|
110
113
|
},
|
|
111
114
|
handleClick(index) {
|
|
115
|
+
var self = this;
|
|
112
116
|
if (index == this.activeAlbumsIndex) return;
|
|
113
117
|
var initialIndex = this.carouselMediaAlbums.findIndex((v) => v.groupindex == index) | 0;
|
|
118
|
+
this.setPage(self.carouselMediaAlbums[initialIndex]);
|
|
114
119
|
this.$refs.mediaAlbumsCarousel.setActiveItem(initialIndex);
|
|
115
120
|
this.activeAlbumsIndex = index;
|
|
116
121
|
this.flagChange = !this.flagChange;
|
|
@@ -125,12 +130,7 @@ export default {
|
|
|
125
130
|
initialIndex = list.medias.findIndex((v) => v.flagDefault == 1) | 0;
|
|
126
131
|
} catch (error) {}
|
|
127
132
|
return initialIndex < 0 ? 0 : initialIndex;
|
|
128
|
-
},
|
|
129
|
-
getDefaultUrl(list) {
|
|
130
|
-
var initialIndex = this.getinitialIndex(list);
|
|
131
|
-
return this.getShowUrl(list.medias[initialIndex]);
|
|
132
|
-
},
|
|
133
|
-
|
|
133
|
+
},
|
|
134
134
|
getShowUrl(list) {
|
|
135
135
|
if (list.mediaTypeID == "2") {
|
|
136
136
|
return list.mediaUrl + "/260/200";
|
|
@@ -170,17 +170,17 @@ export default {
|
|
|
170
170
|
left: 50%;
|
|
171
171
|
transform: translate(-50%, -50%);
|
|
172
172
|
}
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
}
|
|
174
|
+
.page{
|
|
175
|
+
position: absolute;
|
|
175
176
|
bottom: 20px;
|
|
176
177
|
text-align: right;
|
|
177
178
|
right: 0px;
|
|
178
|
-
|
|
179
|
+
background-color: rgb(14 12 24 / 38%);
|
|
179
180
|
color: #FFF;
|
|
180
|
-
|
|
181
|
+
padding: 0px 5px;
|
|
182
|
+
z-index: 9
|
|
181
183
|
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
184
|
.hous-img {
|
|
185
185
|
margin-top: 10px;
|
|
186
186
|
width: 100%;
|
|
@@ -311,57 +311,101 @@
|
|
|
311
311
|
if (field.action) {
|
|
312
312
|
field.disabled = true;//提交按钮禁用
|
|
313
313
|
self.model.pageDisabled = true;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
self.
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
314
|
+
|
|
315
|
+
if (field.flagAsync) {
|
|
316
|
+
field.doAction(self.getFormObj(), (res) => {
|
|
317
|
+
if (res.content && res.content.action) {
|
|
318
|
+
var dialogOption = {
|
|
319
|
+
title: field.pageTitle || field.label,
|
|
320
|
+
content: [{
|
|
321
|
+
component: 'ct-progress',
|
|
322
|
+
attrs: {
|
|
323
|
+
progressAction: res.content.action,
|
|
324
|
+
progressKey: res.content.key,
|
|
325
|
+
progressType: field.isExport ? 'export' : 'import',
|
|
326
|
+
width: '350px',
|
|
327
|
+
height: '165px'
|
|
328
|
+
},
|
|
329
|
+
on: {
|
|
330
|
+
finished(data) {
|
|
331
|
+
field.disabled = false;
|
|
332
|
+
self.model.pageDisabled = false;
|
|
333
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
334
|
+
if (data.rtnMsg) {
|
|
335
|
+
self.$message.success(data.rtnMsg);
|
|
336
|
+
}
|
|
337
|
+
if (data.notification === 17) {
|
|
338
|
+
self.clickHandler(self.model.getRtnRouter(data.content), null)
|
|
339
|
+
}
|
|
340
|
+
self.$emit('submit', { formData: self.model, responseData: data });
|
|
341
|
+
},
|
|
342
|
+
error(data) {
|
|
343
|
+
field.disabled = false;
|
|
344
|
+
self.model.pageDisabled = false;
|
|
345
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
346
|
+
self.$message.warning(data.rtnMsg);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}]
|
|
350
|
+
};
|
|
351
|
+
self.$common.openDialog(dialogOption);
|
|
320
352
|
}
|
|
321
|
-
|
|
322
|
-
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
field.doAction(self.getFormObj(), (data) => {
|
|
357
|
+
field.disabled = false;
|
|
358
|
+
self.model.pageDisabled = false;
|
|
359
|
+
if (data.rtnCode === 200) {
|
|
360
|
+
if (data.notification === 17) {
|
|
361
|
+
self.clickHandler(self.model.getRtnRouter(data.content), null)
|
|
362
|
+
}
|
|
363
|
+
if (self.model.flagAlertClose) {
|
|
364
|
+
self.$common.confirm('操作成功,是否关闭本页面?', '提示', {
|
|
365
|
+
confirmButtonText: '确定',
|
|
366
|
+
cancelButtonText: '取消',
|
|
367
|
+
type: 'warning'
|
|
368
|
+
}).then(() => {
|
|
369
|
+
//如果没有弹框 则关闭tab页
|
|
370
|
+
if (self.$common.dialogList && self.$common.dialogList.List.length === 0) {
|
|
371
|
+
if (typeof self.$common.getDataDrivenOpts().handler.closeTab === 'function') {
|
|
372
|
+
self.$common.getDataDrivenOpts().handler.closeTab();
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
self.$emit('submit', { formData: self.model, responseData: data });
|
|
376
|
+
}).catch(() => {
|
|
377
|
+
self.init();
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
self.$emit('submit', { formData: self.model, responseData: data });
|
|
382
|
+
}
|
|
383
|
+
if (self.parentModel) {
|
|
384
|
+
self.parentModel.$vue.closeTabThen(data);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
else if (data.rtnCode === 202) {
|
|
388
|
+
self.$common.confirm(data.rtnMsg, '提示', {
|
|
323
389
|
confirmButtonText: '确定',
|
|
324
390
|
cancelButtonText: '取消',
|
|
325
391
|
type: 'warning'
|
|
326
392
|
}).then(() => {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
393
|
+
field.doAction(self.getFormObj({ flagHaveAlert: '1' }), (res) => {
|
|
394
|
+
if (res.rtnCode === 200) {
|
|
395
|
+
if (res.notification === 17) {
|
|
396
|
+
self.clickHandler(self.model.getRtnRouter(res.content), null)
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
self.$emit('submit', { formData: self.model, responseData: res });
|
|
400
|
+
}
|
|
331
401
|
}
|
|
332
|
-
}
|
|
333
|
-
self.$emit('submit', { formData: self.model, responseData: data });
|
|
402
|
+
});
|
|
334
403
|
}).catch(() => {
|
|
335
|
-
self.init();
|
|
336
404
|
});
|
|
337
405
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
if (self.parentModel) {
|
|
342
|
-
self.parentModel.$vue.closeTabThen(data);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
else if (data.rtnCode === 202) {
|
|
346
|
-
self.$common.confirm(data.rtnMsg, '提示', {
|
|
347
|
-
confirmButtonText: '确定',
|
|
348
|
-
cancelButtonText: '取消',
|
|
349
|
-
type: 'warning'
|
|
350
|
-
}).then(() => {
|
|
351
|
-
field.doAction(self.getFormObj({ flagHaveAlert: '1' }), (res) => {
|
|
352
|
-
if (res.rtnCode === 200) {
|
|
353
|
-
if (res.notification === 17) {
|
|
354
|
-
self.clickHandler(self.model.getRtnRouter(res.content), null)
|
|
355
|
-
}
|
|
356
|
-
else {
|
|
357
|
-
self.$emit('submit', { formData: self.model, responseData: res });
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
|
-
}).catch(() => {
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
}, self.model.scripts);
|
|
406
|
+
}, self.model.scripts);
|
|
407
|
+
}
|
|
408
|
+
|
|
365
409
|
}
|
|
366
410
|
//无值,触发submit事件
|
|
367
411
|
else {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<ct-tablecurrency :router="v.router" :colValue="scope.row[v.id].code1" :rowData="scope.row" @click="rolRouterClickHandler">
|
|
39
39
|
</ct-tablecurrency>
|
|
40
40
|
</span>
|
|
41
|
-
<ct-span v-else :vmodel="scope.row[v.id]" :rowNum="scope.row.$sourceIndex" :key="scope.row[v.id].rowKey" ref="FieldsLabel"></ct-span>
|
|
41
|
+
<ct-span v-else :vmodel="scope.row[v.id]" :rowNum="scope.row.$sourceIndex" :rowData="scope.row" :key="scope.row[v.id].rowKey" ref="FieldsLabel"></ct-span>
|
|
42
42
|
</template>
|
|
43
43
|
</el-table-column>
|
|
44
44
|
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
props: {
|
|
75
75
|
vmodel: Object,
|
|
76
76
|
rowNum: String,
|
|
77
|
+
rowData: Object,
|
|
77
78
|
},
|
|
78
79
|
data: function () {
|
|
79
80
|
return {
|
|
@@ -84,9 +85,12 @@
|
|
|
84
85
|
if (this.vmodel.is === "ct-inputNumber") {
|
|
85
86
|
return 'ct-table-inputnumber';
|
|
86
87
|
}
|
|
88
|
+
},
|
|
89
|
+
getFontColor() {
|
|
90
|
+
return this.rowData.fontColor || '';
|
|
87
91
|
}
|
|
88
92
|
},
|
|
89
|
-
template: '<div :class="getClass()">{{vmodel.labelValue}}{{vmodel.unitName}}</div>'
|
|
93
|
+
template: '<div :class="getClass()" :style="{\'color\':getFontColor()}">{{vmodel.labelValue}}{{vmodel.unitName}}</div>'
|
|
90
94
|
}
|
|
91
95
|
|
|
92
96
|
export default {
|
|
@@ -127,6 +127,7 @@ const FormList = function (source, master) {
|
|
|
127
127
|
var row = {
|
|
128
128
|
field: [],
|
|
129
129
|
isSet: false,
|
|
130
|
+
fontColor: r.fontColor,
|
|
130
131
|
get delete() {//删除权限
|
|
131
132
|
return r.rightDelete === true;
|
|
132
133
|
},
|
|
@@ -194,6 +195,7 @@ const FormList = function (source, master) {
|
|
|
194
195
|
Vue.set(row, 'isSet', false);
|
|
195
196
|
Vue.set(row, 'edit', rows[i].edit);
|
|
196
197
|
Vue.set(row, 'delete', rows[i].delete);
|
|
198
|
+
Vue.set(row, 'fontColor', rows[i].fontColor);
|
|
197
199
|
this._tableData.push(row);
|
|
198
200
|
}
|
|
199
201
|
}
|
package/src/main.js
CHANGED
|
@@ -12,7 +12,7 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl: "http://10.88.22.
|
|
15
|
+
baseUrl: "http://10.88.22.13:7070/max-uplink-api/v1/form/router",
|
|
16
16
|
// baseUrl: "http://10.25.10.63:9999/v1/form/router",
|
|
17
17
|
// baseUrl: "http://10.88.22.42:9999/v1/form/router",
|
|
18
18
|
// baseUrl: "http://10.88.22.69:8080/api/",
|
|
@@ -42,8 +42,8 @@ Vue.use(centaline, {
|
|
|
42
42
|
// 获取请求头
|
|
43
43
|
getRequestHeaders: function () {
|
|
44
44
|
return {
|
|
45
|
-
oldToken: '
|
|
46
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
45
|
+
oldToken: '9a73e482-db16-4a24-81e7-67daef02b64d',
|
|
46
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrsOgkAQRf9laiaZYWdfdLpg40eQFYcEKyOQaIz_rkbo6D3FKU5z7xPG-QQV-AXc0EobF3BDKy2zRM-uwV30CcWJwcApYBKX5FA3Ju1rKEDvV6jYeS5FxJQFDHn6BbaBvmEe9XbUxz_OXabhM2ujNeQ7RSE6o0QizJ0ocu6You-1dxZebwAAAP__.vkp7C4-AbNZcFXOUNh7GhACgGYct_lCq8lYCyLOdfSg',
|
|
47
47
|
|
|
48
48
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
49
49
|
EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
|