centaline-data-driven 1.4.33 → 1.4.34
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/dynamicFormListTable.vue +6 -2
- package/src/centaline/loader/src/ctl/FormList.js +2 -0
- package/src/main.js +4 -4
- 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%;
|
|
@@ -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,12 +12,12 @@ 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/max-uplink-api/v1/form/router",
|
|
15
|
+
// baseUrl: "http://10.88.22.46: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/",
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
20
|
+
flagRouterSelf: true,
|
|
21
21
|
zindex: 999,
|
|
22
22
|
showRequestSuccessMessage: true,
|
|
23
23
|
showRequestErrorMessage: true,
|
|
@@ -42,7 +42,7 @@ Vue.use(centaline, {
|
|
|
42
42
|
// 获取请求头
|
|
43
43
|
getRequestHeaders: function () {
|
|
44
44
|
return {
|
|
45
|
-
oldToken: '
|
|
45
|
+
oldToken: '9a73e482-db16-4a24-81e7-67daef02b64d',
|
|
46
46
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe8yNZMw7mRmlk4XbDwEWdg1wcoIJBrj3dUIHb2veMVr_n_COHdQgS7ghlZav4AbWmmJ2CtJg3uvAVnYoVEwDCyBj3XjwqGGAvL9ChWJEimbKwsY4vQLpRl_wzzm2yk__nHuMg2fWeoT5bNEjJoEOfWGplpiktg7z7LrjOD1BgAA__8.GYKnl1m1p9DYoV4G8e7guCAXfIZblTzhcpUhjbliuX0',
|
|
47
47
|
|
|
48
48
|
originalRequestURL: 'http://10.88.22.67:8080',
|