centaline-data-driven 1.2.33 → 1.2.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/Detail.vue +1 -1
- package/src/Form.vue +3 -3
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +5 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +6 -2
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +5 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +6 -2
- 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/Detail.vue
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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/
|
|
3
|
+
<ct-form :api="'/api/third-dept-tran/profit-return/applyUI'" :apiParam="apiParam"></ct-form>
|
|
4
4
|
<!-- <ct-form :api="'/PropertyPublish/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
5
5
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
6
6
|
<!--:api="'FormSample/formdata'"-->
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
name: 'App',
|
|
17
17
|
data() {
|
|
18
18
|
return {
|
|
19
|
-
|
|
20
|
-
apiParam: {originalTraId: "1475658732246241281", actionType: 3, pageTitle: "成交报告", pageOnly: true} ,
|
|
19
|
+
apiParam: {profitReturnId: "1504359257134055426", actionType: 1, pageStyle: 2, pageTitle: "查看返利", pageOnly: true} ,
|
|
21
20
|
// apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
|
|
21
|
+
// apiParam: {originalTraId: "1475658732246241281", actionType: 2, chanceID: "1"} ,
|
|
22
22
|
// apiParam: {SN: "13557_132", UserID: "wuhan3"},
|
|
23
23
|
}
|
|
24
24
|
},
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
//row.flagRow && row.columnShow===column.id?'ct-td3':null,
|
|
72
72
|
rowBorderLeftColumns.includes(column.id)?'ct-td4':null,
|
|
73
73
|
rowBorderRightColumns.includes(column.id)?'ct-td5':null,
|
|
74
|
+
rowMergedTopColumns.includes(column.id)?'ct-tdTop':null,
|
|
74
75
|
model.rowHiddenKeyData.indexOf(row[model.rowHiddenKey])%2?'ct-tdDouble':'ct-tdSingle',
|
|
75
76
|
selectKey===row[model.rowHiddenKey]?'select':null,
|
|
76
77
|
colIndex === leftShadow?'shadowLeft':null,
|
|
@@ -134,6 +135,7 @@
|
|
|
134
135
|
rowMergedColumns:['contactNameDesc','propertyIdentityTypeID','operation'],
|
|
135
136
|
rowBorderLeftColumns:['contactNameDesc','operation'],
|
|
136
137
|
rowBorderRightColumns:['propertyIdentityTypeID','operation'],
|
|
138
|
+
rowMergedTopColumns:['contactNameDesc','propertyIdentityTypeID'],
|
|
137
139
|
selectKey:'',
|
|
138
140
|
}
|
|
139
141
|
},
|
|
@@ -544,6 +546,9 @@
|
|
|
544
546
|
.ct-searchtable .ct-tr > .ct-tdDouble {
|
|
545
547
|
background-color: rgb(239 255 239);
|
|
546
548
|
}
|
|
549
|
+
.ct-searchtable .ct-tr > .ct-tdTop {
|
|
550
|
+
vertical-align: top;
|
|
551
|
+
}
|
|
547
552
|
.shadowLeft {
|
|
548
553
|
border-right: 1px solid #e7e8eb;
|
|
549
554
|
box-shadow: 2px 0 3px -1px rgba(0,0,0,0.1);
|
|
@@ -6,16 +6,18 @@
|
|
|
6
6
|
<div slot="header" class="clearfix" v-if="typeof model.title !== 'undefined' && model.flagShowTitle">
|
|
7
7
|
<span style="font-weight:bold">{{model.title}}</span>
|
|
8
8
|
</div>
|
|
9
|
+
|
|
9
10
|
<!--头部元素-->
|
|
10
11
|
<el-row v-if="collapseFieldsRow.length > 0">
|
|
11
12
|
<el-col v-for="(col, index) in collapseFieldsRow[0]" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
|
|
12
|
-
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara"
|
|
13
|
+
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :from="'form'"
|
|
13
14
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)"
|
|
14
15
|
@input="inputHandler(col,$event)"
|
|
15
16
|
@popupSearchList="popupSearchListHandler"
|
|
16
17
|
@tableButtonClick="clickHandler"></component>
|
|
17
18
|
</el-col>
|
|
18
19
|
</el-row>
|
|
20
|
+
|
|
19
21
|
<!--tabs-->
|
|
20
22
|
<el-tabs v-if="model.isHorizontalLayout" v-model="activeName">
|
|
21
23
|
<el-tab-pane :label="item.label" :name="index.toString()"
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
</el-row>
|
|
32
34
|
</el-tab-pane>
|
|
33
35
|
</el-tabs>
|
|
36
|
+
|
|
34
37
|
<!--分组-->
|
|
35
38
|
<el-collapse v-else v-model="collapseActiveNames" @change="collapseHandleChange">
|
|
36
39
|
<el-collapse-item v-for="(item, index) in collapse" v-if="item.show !== false" :key="index" :title="item.label" :name="index" :disabled="item.lock" :class="item.lock?'ct-collapse-item-title':''">
|
|
@@ -40,7 +43,7 @@
|
|
|
40
43
|
</template>
|
|
41
44
|
<el-row>
|
|
42
45
|
<el-col v-for="(col, index) in collapseFieldsRow[index + 1]" :key="index" :span="col.colspan" v-if="col.show !== false" style="padding:5px">
|
|
43
|
-
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara"
|
|
46
|
+
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :from="'form'"
|
|
44
47
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)"
|
|
45
48
|
@input="inputHandler(col,$event)"
|
|
46
49
|
@popupSearchList="popupSearchListHandler"
|
|
@@ -49,6 +52,7 @@
|
|
|
49
52
|
</el-row>
|
|
50
53
|
</el-collapse-item>
|
|
51
54
|
</el-collapse>
|
|
55
|
+
|
|
52
56
|
<!--尾部元素-->
|
|
53
57
|
<el-row v-if="independentItem.length > 0" style="margin-top: 20px;">
|
|
54
58
|
<el-col v-for="(col, index) in independentItem" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:categoryLoaded="loaded.categoryLoaded" @search="search()"
|
|
12
12
|
@showTitle="showTitleScreenHandler"></ct-searchscreen>
|
|
13
13
|
|
|
14
|
-
<ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi"
|
|
14
|
+
<ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from"
|
|
15
15
|
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate()"
|
|
16
16
|
@showTitle="showTitleHandler"></ct-searchtable>
|
|
17
17
|
</div>
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
type: Object,
|
|
43
43
|
default: () => { }
|
|
44
44
|
},
|
|
45
|
+
from: {
|
|
46
|
+
String,
|
|
47
|
+
default:'searchlist'
|
|
48
|
+
},
|
|
45
49
|
},
|
|
46
50
|
created() {
|
|
47
51
|
this.model = this.vmodel;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<div v-loading="operationLoading">
|
|
17
17
|
</div>
|
|
18
18
|
<div class="ct-tableParent" ref="tableParent" v-bind="model.attrs" v-if="!isLoading"
|
|
19
|
-
:style="{'height':model.tableHeight+'px'}"
|
|
19
|
+
:style="{'height':from=='form'?'100%':model.tableHeight+'px'}"
|
|
20
20
|
@scroll="scrollHandle($event)" :v-focus="model.flagFocus"
|
|
21
21
|
@keydown.up="rowKeyDownHandle($event,0)" @keydown.down="rowKeyDownHandle($event,1)"
|
|
22
22
|
tabindex="-1">
|
|
@@ -143,7 +143,11 @@
|
|
|
143
143
|
flagFocus:{
|
|
144
144
|
Boolean,
|
|
145
145
|
default:true
|
|
146
|
-
}
|
|
146
|
+
},
|
|
147
|
+
from: {
|
|
148
|
+
String,
|
|
149
|
+
default:'searchlist'
|
|
150
|
+
},
|
|
147
151
|
},
|
|
148
152
|
computed: {
|
|
149
153
|
|
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
|
-
|
|
15
|
+
// baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
|
+
baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
|
|
17
17
|
// baseUrl: "http://10.88.22.46:7070/",
|
|
18
18
|
// flagRouterSelf: true,
|
|
19
19
|
zindex: 999,
|
|
@@ -36,7 +36,7 @@ Vue.use(centaline, {
|
|
|
36
36
|
// 获取请求头
|
|
37
37
|
getRequestHeaders: function () {
|
|
38
38
|
return {
|
|
39
|
-
oldToken: '
|
|
39
|
+
oldToken: '4195d16c-9b1d-43b2-b6de-ef4a9f2b7d44',
|
|
40
40
|
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
41
41
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
42
42
|
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',
|