centaline-data-driven 1.3.68 → 1.3.69
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/SearchList.vue +4 -4
- package/src/centaline/dialogList/src/dialog.vue +19 -1
- package/src/centaline/dynamicForm/src/dynamicForm.vue +10 -4
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +5 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +6 -0
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/SearchList.vue
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
<ct-searchlist :apiParam="para"
|
|
8
8
|
:searchConditionApi="'/ProfileWorklistList/getLayoutOfSearch'"
|
|
9
9
|
:searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
|
|
10
10
|
:searchDataApi="'/ProfileWorklistList/getListOfSearchModel'"
|
|
11
11
|
:searchStatsApi="'/ProfileWorklistList/getListStats'">
|
|
12
|
-
</ct-searchlist>
|
|
12
|
+
</ct-searchlist>
|
|
13
13
|
|
|
14
|
-
<ct-searchlist :searchConditionApi="'/PropertyDutyList/getLayoutOfSearch'"
|
|
14
|
+
<!-- <ct-searchlist :searchConditionApi="'/PropertyDutyList/getLayoutOfSearch'"
|
|
15
15
|
:searchDataApi="'/PropertyDutyList/getListOfSearchModelForRET'">
|
|
16
|
-
</ct-searchlist>
|
|
16
|
+
</ct-searchlist> -->
|
|
17
17
|
|
|
18
18
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
|
19
19
|
:searchDataApi="'/PropertyRETList/getListOfSearchModel'"
|
|
@@ -152,7 +152,6 @@
|
|
|
152
152
|
if(item.attrs.height){
|
|
153
153
|
ph=parseInt(item.attrs.height.replace('px',''));
|
|
154
154
|
}
|
|
155
|
-
|
|
156
155
|
if(item.attrs.documentHeight && item.attrs.documentHeight!='auto'){
|
|
157
156
|
let dh=parseInt(item.attrs.documentHeight.replace('px',''));
|
|
158
157
|
if(dh<ph){
|
|
@@ -167,6 +166,25 @@
|
|
|
167
166
|
item.attrs.documentHeight=(self.vmodel.pane.$el.clientHeight-60)+'px';
|
|
168
167
|
}
|
|
169
168
|
}
|
|
169
|
+
//此行代码是为了防止弹出的窗口宽度 大于父级页面的宽度
|
|
170
|
+
var pw=0;
|
|
171
|
+
if(item.attrs.width){
|
|
172
|
+
pw=parseInt(item.attrs.width.replace('px',''));
|
|
173
|
+
}
|
|
174
|
+
if(item.attrs.documentWidth && item.attrs.documentWidth!='auto'){
|
|
175
|
+
let dw=parseInt(item.attrs.documentWidth.replace('px',''));
|
|
176
|
+
if(dw<pw){
|
|
177
|
+
item.attrs.width=item.attrs.documentWidth;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
else if(self.vmodel.pane && self.vmodel.pane.$el){
|
|
181
|
+
if(self.vmodel.pane.$el.clientWidth<pw) {
|
|
182
|
+
item.attrs.width=(self.vmodel.pane.$el.clientWidth-20)+'px';
|
|
183
|
+
}
|
|
184
|
+
if(item.component=='ct-form'){
|
|
185
|
+
item.attrs.documentWidth=(self.vmodel.pane.$el.clientWidth-20)+'px';
|
|
186
|
+
}
|
|
187
|
+
}
|
|
170
188
|
|
|
171
189
|
return h('div', {
|
|
172
190
|
style: {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<el-row v-if="collapseFieldsRow.length > 0">
|
|
12
12
|
<el-col v-for="(col, index) in collapseFieldsRow[0]" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
|
|
13
13
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
|
|
14
|
-
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight"
|
|
14
|
+
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight" :documentWidth="documentWidth"
|
|
15
15
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
16
16
|
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
17
17
|
@popupSearchList="popupSearchListHandler"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<el-row>
|
|
27
27
|
<el-col v-for="(col, index) in collapseFieldsRow[index + 1]" :key="index" :span="col.colspan" v-if="col.show !== false" style="padding:5px">
|
|
28
28
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
|
|
29
|
-
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight"
|
|
29
|
+
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight" :documentWidth="documentWidth"
|
|
30
30
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
31
31
|
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
32
32
|
@popupSearchList="popupSearchListHandler"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<el-row>
|
|
47
47
|
<el-col v-for="(col, index) in collapseFieldsRow[index + 1]" :key="index" :span="col.colspan" v-if="col.show !== false" style="padding:5px">
|
|
48
48
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
|
|
49
|
-
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight"
|
|
49
|
+
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight" :documentWidth="documentWidth"
|
|
50
50
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
51
51
|
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
52
52
|
@popupSearchList="popupSearchListHandler"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
<el-row v-if="independentItem.length > 0" style="margin-top: 20px;">
|
|
61
61
|
<el-col v-for="(col, index) in independentItem" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
|
|
62
62
|
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara"
|
|
63
|
-
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight"
|
|
63
|
+
:fileData="getFileData(col)" :from="'form'" :documentHeight="documentHeight" :documentWidth="documentWidth"
|
|
64
64
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)"
|
|
65
65
|
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
66
66
|
@popupSearchList="popupSearchListHandler"
|
|
@@ -114,6 +114,10 @@
|
|
|
114
114
|
String,
|
|
115
115
|
default: 'auto',
|
|
116
116
|
},
|
|
117
|
+
documentWidth:{
|
|
118
|
+
String,
|
|
119
|
+
default: 'auto',
|
|
120
|
+
},
|
|
117
121
|
},
|
|
118
122
|
data() {
|
|
119
123
|
return {
|
|
@@ -369,6 +373,7 @@
|
|
|
369
373
|
width: field.dialogWidth + 'px',
|
|
370
374
|
height: field.dialogHeight + 'px',
|
|
371
375
|
documentHeight:self.documentHeight,
|
|
376
|
+
documentWidth:self.documentWidth,
|
|
372
377
|
},
|
|
373
378
|
on: {
|
|
374
379
|
submit(ev) {
|
|
@@ -716,6 +721,7 @@
|
|
|
716
721
|
width: router.dialogWidth + 'px',
|
|
717
722
|
height: (router.dialogHeight || 500) + 'px',
|
|
718
723
|
documentHeight:self.documentHeight,
|
|
724
|
+
documentWidth:self.documentWidth,
|
|
719
725
|
},
|
|
720
726
|
on: {
|
|
721
727
|
submit(option) {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@showTitle="showTitleScreenHandler"></ct-searchscreen>
|
|
14
14
|
|
|
15
15
|
<ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" :isIframe="isIframe" :documentHeight="documentHeight"
|
|
16
|
-
@loaded="tableLoaded"
|
|
16
|
+
@loaded="tableLoaded" :documentWidth="documentWidth"
|
|
17
17
|
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate"
|
|
18
18
|
@rowClickHandle="rowClickHandle" @scrollHandle="scrollHandle" @refreshRowHandle="refreshRowHandle" @doClosePopoverHandle="doClosePopoverHandle"
|
|
19
19
|
@showTitle="showTitleHandler"></ct-searchtable>
|
|
@@ -67,6 +67,10 @@
|
|
|
67
67
|
String,
|
|
68
68
|
default: 'auto',
|
|
69
69
|
},
|
|
70
|
+
documentWidth:{
|
|
71
|
+
String,
|
|
72
|
+
default: 'auto',
|
|
73
|
+
},
|
|
70
74
|
},
|
|
71
75
|
created() {
|
|
72
76
|
this.model = this.vmodel;
|
|
@@ -199,6 +199,10 @@ export default {
|
|
|
199
199
|
String,
|
|
200
200
|
default: 'auto',
|
|
201
201
|
},
|
|
202
|
+
documentWidth:{
|
|
203
|
+
String,
|
|
204
|
+
default: 'auto',
|
|
205
|
+
},
|
|
202
206
|
},
|
|
203
207
|
computed: {},
|
|
204
208
|
data() {
|
|
@@ -986,6 +990,7 @@ export default {
|
|
|
986
990
|
width: field.dialogWidth + "px",
|
|
987
991
|
height: field.dialogHeight + "px",
|
|
988
992
|
documentHeight:self.documentHeight,
|
|
993
|
+
documentWidth:self.documentWidth,
|
|
989
994
|
},
|
|
990
995
|
on: {
|
|
991
996
|
submit(ev) {
|
|
@@ -1059,6 +1064,7 @@ export default {
|
|
|
1059
1064
|
width: field.dialogWidth + "px",
|
|
1060
1065
|
height: field.dialogHeight + "px",
|
|
1061
1066
|
documentHeight:self.documentHeight,
|
|
1067
|
+
documentWidth:self.documentWidth,
|
|
1062
1068
|
},
|
|
1063
1069
|
on: {
|
|
1064
1070
|
refreshParent() {
|
package/src/main.js
CHANGED
|
@@ -42,7 +42,7 @@ Vue.use(centaline, {
|
|
|
42
42
|
getRequestHeaders: function () {
|
|
43
43
|
return {
|
|
44
44
|
oldToken: '42ccd644-040d-4e01-9521-1623f1884058',
|
|
45
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
45
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVby2rv-pCNOaDhEFBsXoUIkkUCIuwMi6dIzxRTTvPeEaUlQg1vBHW30YQV3tNETcXBkOzwEF5EtG_QUPUa2kY9tZ2LTQgXlfoWarDVakxWpYBzmXyAj-huWqdxO5fGPc5d5_MwGCUqS9phTUsisFQ5ZGSyFg850FhGG1xsAAP__._bIs6F-PKatDpGVpnwJkgA9y7oaWPycWYjSN5gFSsI8',
|
|
46
46
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
47
47
|
EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|
|
48
48
|
estateId: '20210729104021C49F04B55C50F6AF58',
|