centaline-data-driven 1.6.58 → 1.6.60
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/release-log.md +24 -0
- package/src/SearchList.vue +10 -2
- package/src/SearchTree.vue +3 -3
- package/src/centaline/api/index.js +20 -8
- package/src/centaline/css/common.css +1 -1
- package/src/centaline/dynamicFile/src/dynamicFile.vue +8 -2
- package/src/centaline/dynamicForm/src/dynamicForm.vue +25 -18
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +1 -1
- package/src/centaline/dynamicTree/src/dynamicTree.vue +15 -8
- package/src/centaline/dynamicTreeList/src/dynamicTreeList.vue +20 -9
- package/src/centaline/loader/src/ctl/SliceUpload.js +9 -1
- package/src/centaline/loader/src/ctl/lib/Enum.js +8 -3
- package/src/main.js +14 -11
- package/wwwroot/static/centaline/centaline-data-driven.js +1697 -1443
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v1.6.60
|
|
2
|
+
2025-12-29
|
|
3
|
+
|
|
4
|
+
优化
|
|
5
|
+
|
|
6
|
+
查询列表点击重置按钮清空值后,根据重置按钮上的【是否自动查询】来决定是否查询列表数据
|
|
7
|
+
|
|
8
|
+
消息提示框添加Dialog对话框
|
|
9
|
+
|
|
10
|
+
BUG
|
|
11
|
+
|
|
12
|
+
表单toptip显示位置错误处理
|
|
13
|
+
|
|
14
|
+
# v1.6.59
|
|
15
|
+
2025-12-09
|
|
16
|
+
|
|
17
|
+
优化
|
|
18
|
+
|
|
19
|
+
分片上传添加请求头传到API
|
|
20
|
+
|
|
21
|
+
分片上调用前端传获取请求头把当前上传地址传给前端,前端用于判断区分
|
|
22
|
+
|
|
23
|
+
树界面右侧表单按钮样式调整
|
|
24
|
+
|
|
1
25
|
# v1.6.58
|
|
2
26
|
2025-12-01
|
|
3
27
|
|
package/src/SearchList.vue
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
|
|
24
24
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/buildinginfo/getLayoutOfSearch'" :searchDataApi="'/buildinginfo/getList'"></ct-searchlist> -->
|
|
25
25
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/roomtypelist/getLayoutOfSearch'" :searchDataApi="'/roomtypelist/getList'"></ct-searchlist> -->
|
|
26
|
-
|
|
26
|
+
<ct-searchlist :apiParam="para" :searchConditionApi="'/contractmanage/ContractList/getLayoutOfSearch'" :searchDataApi="'/contractmanage/ContractList/getList'"></ct-searchlist>
|
|
27
27
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/sunexpensemanage/sunexpenserecordlist/getLayoutOfSearch'" :searchDataApi="'/sunexpensemanage/sunexpenserecordlist/getList'"></ct-searchlist> -->
|
|
28
28
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/workwxmanage/WorkWXApplicationList/getLayoutOfSearch'" :searchDataApi="'/workwxmanage/WorkWXApplicationList/getList'"></ct-searchlist> -->
|
|
29
29
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/UrgentResponsiblePersonList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/UrgentResponsiblePersonList/getList'"></ct-searchlist> -->
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/selectionactivitymanage/EvaluationActWorksList/getLayoutOfSearch'" :searchDataApi="'/selectionactivitymanage/EvaluationActWorksList/getListOfSearchModel'"></ct-searchlist> -->
|
|
46
46
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/financesalemanage/finContractList/getLayoutOfSearch'" :searchDataApi="'/financesalemanage/finContractList/getList'"></ct-searchlist> -->
|
|
47
47
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/financecommissionmanage/fincommissionapplylist/getLayoutOfSearch'" :searchDataApi="'/financecommissionmanage/fincommissionapplylist/getList'"></ct-searchlist> -->
|
|
48
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/ProjectCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/ProjectCustomerList/getList'"></ct-searchlist> -->
|
|
48
49
|
<!-- CCES -->
|
|
49
50
|
|
|
50
51
|
<!-- <ct-searchlist :apiParam="para"
|
|
@@ -128,7 +129,14 @@
|
|
|
128
129
|
|
|
129
130
|
<!-- ibs -->
|
|
130
131
|
<!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EmployeeWorkLogList/ind/getLayoutOfSearch'" :searchDataApi="'/EmployeeWorkLogList/ind/getListOfSearchModel'"></ct-searchlist> -->
|
|
131
|
-
<ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/ApiAccessLogList/getLayoutOfSearch'" :searchDataApi="'/ApiAccessLogList/getListOfSearchModel'"></ct-searchlist>
|
|
132
|
+
<!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/ApiAccessLogList/getLayoutOfSearch'" :searchDataApi="'/ApiAccessLogList/getListOfSearchModel'"></ct-searchlist> -->
|
|
133
|
+
|
|
134
|
+
<!-- XXL -->
|
|
135
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'comprehensive/ApplicationList/getLayoutOfSearch'" :searchDataApi="'comprehensive/ApplicationList/getList'"></ct-searchlist> -->
|
|
136
|
+
<!-- CDDD -->
|
|
137
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/formlist/getLayoutOfSearch'" :searchDataApi="'/formlist/getTableList'" :searchStatsApi="'/formlist/getListStats'"></ct-searchlist> -->
|
|
138
|
+
|
|
139
|
+
|
|
132
140
|
<ct-dialog-list></ct-dialog-list>
|
|
133
141
|
</div>
|
|
134
142
|
</template>
|
package/src/SearchTree.vue
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div id="app-Tree" style="height:100%;position: fixed;width:100
|
|
2
|
+
<div id="app-Tree" style="height:100%;position: fixed;width:100%;background: #c8c8c8;padding: 10px;">
|
|
3
3
|
<ct-treelist :flagsearch="true" :apiParam="apiParam" :leftWidth="'280'"
|
|
4
|
-
:searchConditionApi="'/
|
|
5
|
-
:searchDataApi="'/
|
|
4
|
+
:searchConditionApi="'/system/menulist/getTreeLayoutOfSearch'"
|
|
5
|
+
:searchDataApi="'/system/menulist/getTreeList'" @loaded="loaded"></ct-treelist>
|
|
6
6
|
<ct-dialog-list></ct-dialog-list>
|
|
7
7
|
</div>
|
|
8
8
|
</template>
|
|
@@ -132,7 +132,7 @@ const api = {
|
|
|
132
132
|
params = params.para;
|
|
133
133
|
}
|
|
134
134
|
else if (common.flagRouterSelf()) {
|
|
135
|
-
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
135
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + (params.action && params.action[0]=='/'?params.action.slice(1):params.action);
|
|
136
136
|
params = params.para;
|
|
137
137
|
}
|
|
138
138
|
return Axios.get(url, params, {
|
|
@@ -151,7 +151,7 @@ const api = {
|
|
|
151
151
|
params = params.para;
|
|
152
152
|
}
|
|
153
153
|
else if (common.flagRouterSelf()) {
|
|
154
|
-
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
154
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + (params.action && params.action[0]=='/'?params.action.slice(1):params.action);
|
|
155
155
|
params = params.para;
|
|
156
156
|
}
|
|
157
157
|
return Axios.post(url, params, {
|
|
@@ -185,8 +185,14 @@ const api = {
|
|
|
185
185
|
|
|
186
186
|
if (data.rtnCode === Enum.ReturnCode.Successful) {
|
|
187
187
|
if (data.rtnMsg && common.getDataDrivenOpts().showRequestSuccessMessage) {
|
|
188
|
-
if (data.
|
|
189
|
-
common.confirm(data.rtnMsg, '信息', { confirmButtonText: '确定', flagShowcCancelButton: '0' });
|
|
188
|
+
if (data.messageAlertStyle && data.messageAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
189
|
+
// common.confirm(data.rtnMsg, '信息', { confirmButtonText: '确定', flagShowcCancelButton: '0' });
|
|
190
|
+
Vue.prototype.$message({
|
|
191
|
+
message: response.data.rtnMsg,
|
|
192
|
+
type: 'success',
|
|
193
|
+
showClose:true,
|
|
194
|
+
duration: 0,
|
|
195
|
+
});
|
|
190
196
|
}
|
|
191
197
|
else {
|
|
192
198
|
Vue.prototype.$message({
|
|
@@ -232,8 +238,14 @@ const api = {
|
|
|
232
238
|
}
|
|
233
239
|
else {
|
|
234
240
|
if (response.data.rtnMsg && common.getDataDrivenOpts().showRequestErrorMessage) {
|
|
235
|
-
if (data.
|
|
236
|
-
common.confirm(data.rtnMsg, '信息', { confirmButtonText: '确定', flagShowcCancelButton: '0' });
|
|
241
|
+
if (data.messageAlertStyle && data.messageAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
242
|
+
// common.confirm(data.rtnMsg, '信息', { confirmButtonText: '确定', flagShowcCancelButton: '0' });
|
|
243
|
+
Vue.prototype.$message({
|
|
244
|
+
message: response.data.rtnMsg,
|
|
245
|
+
type: 'error',
|
|
246
|
+
showClose:true,
|
|
247
|
+
duration: 0,
|
|
248
|
+
});
|
|
237
249
|
}
|
|
238
250
|
else {
|
|
239
251
|
Vue.prototype.$message({
|
|
@@ -254,7 +266,7 @@ const api = {
|
|
|
254
266
|
params = params.para;
|
|
255
267
|
}
|
|
256
268
|
else if (common.flagRouterSelf()) {
|
|
257
|
-
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
269
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + (params.action && params.action[0]=='/'?params.action.slice(1):params.action);
|
|
258
270
|
params = params.para;
|
|
259
271
|
}
|
|
260
272
|
let responseType=params.responseType || 'json';
|
|
@@ -287,7 +299,7 @@ const api = {
|
|
|
287
299
|
params = params.para;
|
|
288
300
|
}
|
|
289
301
|
else if (common.flagRouterSelf()) {
|
|
290
|
-
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
302
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + (params.action && params.action[0]=='/'?params.action.slice(1):params.action);
|
|
291
303
|
params = params.para;
|
|
292
304
|
}
|
|
293
305
|
return Axios.post(url, params, {
|
|
@@ -321,8 +321,13 @@ export default {
|
|
|
321
321
|
};
|
|
322
322
|
},
|
|
323
323
|
computed: {
|
|
324
|
-
headers:
|
|
325
|
-
|
|
324
|
+
headers: {
|
|
325
|
+
get() {
|
|
326
|
+
return this.$common.getDataDrivenOpts().handler.getRequestHeaders(this.model.action);
|
|
327
|
+
},
|
|
328
|
+
set(newValue) {
|
|
329
|
+
return newValue;
|
|
330
|
+
}
|
|
326
331
|
},
|
|
327
332
|
previewZIndex: function () {
|
|
328
333
|
return this.$common.getDataDrivenOpts().zindex + 100;
|
|
@@ -501,6 +506,7 @@ export default {
|
|
|
501
506
|
},
|
|
502
507
|
//上传之前的钩子
|
|
503
508
|
beforeUploadProcess(file) {
|
|
509
|
+
this.headers = this.$common.getDataDrivenOpts().handler.getRequestHeaders(this.model.action);
|
|
504
510
|
return true;
|
|
505
511
|
},
|
|
506
512
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div ref="formRef" v-loading="loading" :style="{width:pageWidth?pageWidth+'px':'100%',margin:'auto','min-height': minHeight}">
|
|
2
|
+
<div ref="formRef" v-loading="loading" :style="{width:pageWidth?pageWidth+'px':'100%',margin:'auto','min-height': minHeight,padding:'10px'}">
|
|
3
3
|
<div ref="fieldsRef" v-if="model !== null && !loading" class="ct-form" :class="{'domDisabled':model.pageDisabled}" :key="formKey">
|
|
4
|
-
<div v-if="model.tip" class="tip-absolute"
|
|
4
|
+
<div ref="topTipRef" v-if="model.tip" class="tip-absolute">
|
|
5
5
|
<span v-html="model.tip"></span>
|
|
6
6
|
</div>
|
|
7
|
+
<div v-if="(!this.model.isHorizontalLayout || this.flagScroll) && model.tip" :style="{'height': (model.tip ? 30:0) + 'px'}"></div>
|
|
7
8
|
|
|
8
9
|
<!--可根据场景判断显示el-card还是el-main-->
|
|
9
|
-
<component :is="model.showTitle?'el-main':'el-card'">
|
|
10
|
+
<component :is="model.showTitle?'el-main':'el-card'">
|
|
10
11
|
<div slot="header" class="clearfix" v-if="typeof model.title !== 'undefined' && model.flagShowTitle">
|
|
11
12
|
<span style="font-weight:bold">{{model.title}}</span>
|
|
12
13
|
</div>
|
|
@@ -201,15 +202,15 @@
|
|
|
201
202
|
</template>
|
|
202
203
|
</component>
|
|
203
204
|
|
|
204
|
-
|
|
205
|
+
<div v-if="model.bottomTip || (model.buttons.length>0 && model.buttons.findIndex((v)=>{return v.show}) > -1)"
|
|
206
|
+
:style="{'height': (model.bottomTip ? 34:0) + (model.buttons.length>0 && model.buttons.findIndex((v)=>{return v.show}) > -1?34:0) + 'px'}"></div>
|
|
205
207
|
</div>
|
|
206
208
|
<div ref="bottomTipRef" v-if="model && !loading && model.bottomTip"
|
|
207
|
-
:class="
|
|
208
|
-
:style="{width:isScroll?'100%':(tipWidth-20)+'px','margin-left':isScroll?'0px':'10px'}">
|
|
209
|
+
:class="(model.buttons.length>0 && model.buttons.findIndex((v)=>{return v.show}) > -1?'tip-bottom-absolute40':'tip-bottom-absolute')">
|
|
209
210
|
<span v-html="model.bottomTip"></span>
|
|
210
211
|
</div>
|
|
211
212
|
<div ref="buttonsRef" v-if="model && !loading && model.buttons.length>0 && model.buttons.findIndex((v)=>{return v.show}) > -1"
|
|
212
|
-
:class="isScroll?'ccai button-absolute':'button-
|
|
213
|
+
:class="isScroll?'ccai button-absolute':'button-absolute'" :style="{'max-width':pageWidth?(pageWidth-20)+'px':'100%'}">
|
|
213
214
|
<el-col :span="24" style="display: flex;align-items: center;justify-content: center;height: 40px ;padding-bottom: 1px;padding-left: 5px;padding-right: 5px;" class="btnPadBom">
|
|
214
215
|
<component v-for="(btn, index) in model.buttons" :key="index" :is="btn.is" :vmodel="btn" @click="clickHandler" v-if="btn.show"
|
|
215
216
|
:style="{'float':btn.isCheckbox ? btn.alignCss:''}"></component>
|
|
@@ -335,7 +336,6 @@
|
|
|
335
336
|
let parentDom=this.$el.parentElement;
|
|
336
337
|
if (parentDom && parentDom.scrollHeight > parentDom.clientHeight
|
|
337
338
|
&& this.model && (!this.model.isHorizontalLayout || this.flagScroll)) {
|
|
338
|
-
this.$refs.fieldsRef.style.height = 'auto';
|
|
339
339
|
this.isScroll = true;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
@@ -474,20 +474,23 @@
|
|
|
474
474
|
let h4 = this.$refs.linksRef ? this.$refs.linksRef.$el.offsetHeight : 0;
|
|
475
475
|
let h5 = this.$refs.buttonsRef ? this.$refs.buttonsRef.children[0].offsetHeight : 0;
|
|
476
476
|
let h6 = this.$refs.bottomTipRef ? this.$refs.bottomTipRef.offsetHeight : 0;
|
|
477
|
+
let h7 = this.$refs.topTipRef ? this.$refs.topTipRef.offsetHeight : 0;
|
|
477
478
|
if(h5===0 && h6===0){
|
|
478
479
|
h1=h1-5;
|
|
479
480
|
}
|
|
480
|
-
let tabHeight = h1 - h2 - h5 - h6;
|
|
481
|
+
let tabHeight = h1 - h2 - h5 - h6 - h7;
|
|
481
482
|
this.$refs.tabsRef.$el.children[1].style.height = tabHeight + 'px';
|
|
482
483
|
this.$refs.tabsRef.$el.children[1].style.overflow = 'auto';
|
|
483
484
|
}
|
|
484
485
|
else{
|
|
485
|
-
if(!this.model.isHorizontalLayout || this.flagScroll){
|
|
486
|
-
let h1 = this.$refs.formRef.parentElement.offsetHeight
|
|
487
|
-
let h5 = this.$refs.buttonsRef ? this.$refs.buttonsRef.children[0].offsetHeight : 0;
|
|
488
|
-
let h6 = this.$refs.bottomTipRef ? this.$refs.bottomTipRef.offsetHeight : 0;
|
|
489
|
-
let
|
|
490
|
-
|
|
486
|
+
if(this.$refs.formRef && (!this.model.isHorizontalLayout || this.flagScroll)){
|
|
487
|
+
let h1 = this.$refs.formRef.parentElement.offsetHeight;
|
|
488
|
+
// let h5 = this.$refs.buttonsRef ? this.$refs.buttonsRef.children[0].offsetHeight : 0;
|
|
489
|
+
// let h6 = this.$refs.bottomTipRef ? this.$refs.bottomTipRef.offsetHeight : 0;
|
|
490
|
+
// let h7 = this.$refs.topTipRef ? this.$refs.topTipRef.offsetHeight : 0;
|
|
491
|
+
// let fieldsHeight = h1 - h5 - h6 - h7;
|
|
492
|
+
// this.$refs.fieldsRef.style.height = fieldsHeight + 'px';
|
|
493
|
+
this.minHeight = h1 + 'px';
|
|
491
494
|
}
|
|
492
495
|
}
|
|
493
496
|
})
|
|
@@ -1659,7 +1662,6 @@
|
|
|
1659
1662
|
|
|
1660
1663
|
.button-initial {
|
|
1661
1664
|
line-height: 34px;
|
|
1662
|
-
/* margin-top: 8px; */
|
|
1663
1665
|
}
|
|
1664
1666
|
|
|
1665
1667
|
.button-absolute {
|
|
@@ -1678,9 +1680,12 @@
|
|
|
1678
1680
|
}
|
|
1679
1681
|
|
|
1680
1682
|
.tip-absolute {
|
|
1683
|
+
width:'100%';
|
|
1681
1684
|
z-index: 100;
|
|
1682
|
-
top:
|
|
1683
|
-
|
|
1685
|
+
margin-top: -10px;
|
|
1686
|
+
/* top : 44px; */
|
|
1687
|
+
left: 0;
|
|
1688
|
+
right: 0;
|
|
1684
1689
|
position: absolute;
|
|
1685
1690
|
line-height: 24px;
|
|
1686
1691
|
background-color:#ffe7cc;
|
|
@@ -1699,6 +1704,7 @@
|
|
|
1699
1704
|
font-size: 12px;
|
|
1700
1705
|
}
|
|
1701
1706
|
.tip-bottom-absolute {
|
|
1707
|
+
width:'100%';
|
|
1702
1708
|
z-index: 100;
|
|
1703
1709
|
bottom: 0;
|
|
1704
1710
|
left: 0;
|
|
@@ -1712,6 +1718,7 @@
|
|
|
1712
1718
|
font-size: 12px;
|
|
1713
1719
|
}
|
|
1714
1720
|
.tip-bottom-absolute40 {
|
|
1721
|
+
width:'100%';
|
|
1715
1722
|
z-index: 100;
|
|
1716
1723
|
bottom: 40px;
|
|
1717
1724
|
left: 0;
|
|
@@ -182,14 +182,20 @@ export default {
|
|
|
182
182
|
|
|
183
183
|
}
|
|
184
184
|
let actionIndex = 0;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
185
|
+
// 1. 先过滤:只保留“有权”的路由
|
|
186
|
+
this.allowedRoutes = (this.model.actionRouter || []).filter(
|
|
187
|
+
v =>!v.rightField
|
|
188
|
+
|| this.currentData[v.rightField]==undefined
|
|
189
|
+
|| this.currentData[v.rightField]==null
|
|
190
|
+
|| this.currentData[v.rightField]=='1'
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
// 2. 再统一处理:有权的路由才显示菜单、累加计数
|
|
194
|
+
this.allowedRoutes.forEach(() => {
|
|
195
|
+
this.menuVisible = true // 只要有一条有权就显示增删改 div
|
|
196
|
+
actionIndex += 1 // 统计有多少条有权路由
|
|
197
|
+
})
|
|
198
|
+
|
|
193
199
|
document.addEventListener('click', this.foo) // 监听事件鼠标点击事件,若点击则隐藏菜单
|
|
194
200
|
// 获取树状图的高度
|
|
195
201
|
let treeHeight = document.getElementById("mytree").offsetHeight;
|
|
@@ -510,5 +516,6 @@ export default {
|
|
|
510
516
|
|
|
511
517
|
.box-menu .opertion:hover {
|
|
512
518
|
color: var(--btnHoverRed);
|
|
519
|
+
background-color: var(--el-fill-color-light);
|
|
513
520
|
}
|
|
514
521
|
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div id="app-Tree" style="height:100%;">
|
|
2
|
+
<div ref="treeAppRef" id="app-Tree" style="height:100%;">
|
|
3
3
|
<el-container style="height: calc(100vh - 98px);" ref="tree_left">
|
|
4
4
|
<el-aside :width="asideWidth ? asideWidth + 'px' : '15%'"
|
|
5
5
|
style="background-color:white;border-radius: 6px;overflow-y:hidden">
|
|
@@ -10,11 +10,10 @@
|
|
|
10
10
|
<el-main v-if="isShowMain" style="position: relative;">
|
|
11
11
|
<div class="resizer" @mousedown="startResizing"></div>
|
|
12
12
|
<template v-if="pageType == 'form'">
|
|
13
|
-
<div
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
</div>
|
|
13
|
+
<div class="ct-tree-form"
|
|
14
|
+
:style="{'width': (width ? width + 'px' : 'auto'), 'height': (height ? height + 'px' : (heightPage?heightPage:'auto'))
|
|
15
|
+
,'position': 'relative','background-color': '#FFFFFF','border-radius': '6px'}">
|
|
16
|
+
<ct-form :api="formApi" :api-param="apiParam" :width="width" :height="height"></ct-form>
|
|
18
17
|
</div>
|
|
19
18
|
</template>
|
|
20
19
|
<template v-else>
|
|
@@ -51,6 +50,7 @@ export default {
|
|
|
51
50
|
formApi: "",
|
|
52
51
|
width: 0,
|
|
53
52
|
height: 0,
|
|
53
|
+
heightPage: '',
|
|
54
54
|
isShowMain: false,
|
|
55
55
|
pageType: 'list',
|
|
56
56
|
apiParam: {},
|
|
@@ -80,6 +80,18 @@ export default {
|
|
|
80
80
|
self.pageType = data.rowRouter.pageType != undefined ? data.rowRouter.pageType : "list";
|
|
81
81
|
self.width = parseFloat(data.rowRouter.width != undefined ? data.rowRouter.width : "0");
|
|
82
82
|
self.height = parseFloat(data.rowRouter.height != undefined ? data.rowRouter.height : "0");
|
|
83
|
+
if(self.pageType == 'form'){
|
|
84
|
+
self.heightPage = 'calc(100vh - 100px)';
|
|
85
|
+
let w1 = (this.$refs.treeAppRef)?this.$refs.treeAppRef.parentElement.offsetWidth : 0;
|
|
86
|
+
if(w1 > 0 && (self.width+self.asideWidth)>w1){
|
|
87
|
+
self.width = w1 - self.asideWidth - 30;
|
|
88
|
+
}
|
|
89
|
+
let h1 = (this.$refs.treeAppRef)?this.$refs.treeAppRef.parentElement.offsetHeight : 0;
|
|
90
|
+
if(h1 > 0 && self.height > 0 && self.height>h1){
|
|
91
|
+
self.height=0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
83
95
|
self.searchTableConditionApi = data.rowRouter.getLayoutOfSearch;
|
|
84
96
|
self.searchTableDataApi = data.rowRouter.getList;
|
|
85
97
|
var defaultPara = self.$common.deepClone(data);
|
|
@@ -113,7 +125,6 @@ export default {
|
|
|
113
125
|
document.addEventListener('mousemove', this.resizeAside);
|
|
114
126
|
document.addEventListener('mouseup', this.stopResizing);
|
|
115
127
|
},
|
|
116
|
-
|
|
117
128
|
resizeAside(event) {
|
|
118
129
|
if ( this.isResizing) {
|
|
119
130
|
const newWidth = this.startWidth + (event.clientX - this.startX);
|
|
@@ -121,7 +132,6 @@ export default {
|
|
|
121
132
|
window.localStorage.setItem(this.dataRowRouter, this.asideWidth);
|
|
122
133
|
}
|
|
123
134
|
},
|
|
124
|
-
|
|
125
135
|
stopResizing() {
|
|
126
136
|
this.isResizing = false;
|
|
127
137
|
document.removeEventListener('mousemove', this.resizeAside);
|
|
@@ -167,12 +177,13 @@ export default {
|
|
|
167
177
|
padding: 0;
|
|
168
178
|
}
|
|
169
179
|
|
|
170
|
-
#app-Tree .el-main ct-form {
|
|
180
|
+
#app-Tree .el-main ct-tree-form {
|
|
171
181
|
border: 1px solid #cfcece;
|
|
172
182
|
-webkit-box-shadow: #cfcece 0px 7px 9px 0px !important;
|
|
173
183
|
border-radius: 6px !important;
|
|
174
184
|
margin-top: 14px;
|
|
175
185
|
}
|
|
186
|
+
|
|
176
187
|
.resizer {
|
|
177
188
|
position: absolute;
|
|
178
189
|
top: 0;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import common from '../../../common';
|
|
2
2
|
async function postFile(api, data, callback) {
|
|
3
3
|
var xhr = window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP");
|
|
4
4
|
xhr.open('POST', api, !0)
|
|
5
|
+
|
|
6
|
+
let headers=common.getDataDrivenOpts().handler.getRequestHeaders(api);
|
|
7
|
+
if(headers){
|
|
8
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
9
|
+
xhr.setRequestHeader(key,value)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
xhr.onreadystatechange = function () {
|
|
6
14
|
if (xhr.readyState != 4 || xhr.status < 200) {
|
|
7
15
|
return false;
|
|
@@ -314,12 +314,17 @@ const Enum = {
|
|
|
314
314
|
/**
|
|
315
315
|
* json 数据查看控件
|
|
316
316
|
*/
|
|
317
|
-
|
|
317
|
+
JsonViewer:63,
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
/**
|
|
320
320
|
* Markdown 数据查看控件
|
|
321
321
|
*/
|
|
322
|
-
|
|
322
|
+
MarkdownViewer:64,
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* cron 表达式生成/选择
|
|
326
|
+
*/
|
|
327
|
+
Cron:65,
|
|
323
328
|
|
|
324
329
|
},
|
|
325
330
|
|
package/src/main.js
CHANGED
|
@@ -17,13 +17,15 @@ Vue.use(centaline, {
|
|
|
17
17
|
// baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
|
|
18
18
|
// baseUrl: "http://10.88.22.46:9004/max-uplink-api/",
|
|
19
19
|
// baseUrl: "http://10.88.22.46:6060/onecard-api/",
|
|
20
|
-
|
|
20
|
+
baseUrl: "http://10.88.22.46:9999/service-api/",
|
|
21
|
+
// baseUrl: "http://10.88.22.46:20808/service-api",
|
|
21
22
|
// baseUrl: "http://10.88.22.42:9999/service-api/",
|
|
22
23
|
// baseUrl: "http://10.88.22.46:22324/service-api/v1/form/router",
|
|
23
24
|
// baseUrl: "http://10.25.10.67:8999/service-api/v1/form/router",
|
|
25
|
+
// baseUrl: "http://10.88.22.46:8999/service-api/v1/form/router",
|
|
24
26
|
// baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
|
|
25
27
|
// baseUrl: "http://10.88.22.13:9004/max-uplink-api/",
|
|
26
|
-
baseUrl: "http://10.88.22.13:7080/ibs-api/",
|
|
28
|
+
// baseUrl: "http://10.88.22.13:7080/ibs-api/",
|
|
27
29
|
// baseUrl:"http://szamaxbusiness-api-test2.centaline.com.cn/max-uplink-api/",
|
|
28
30
|
// baseUrl: "http://10.88.22.13:7070/onecard-api/",
|
|
29
31
|
// baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
|
|
@@ -67,19 +69,20 @@ Vue.use(centaline, {
|
|
|
67
69
|
alert("openAnnexVerify")
|
|
68
70
|
},
|
|
69
71
|
// 获取请求头
|
|
70
|
-
getRequestHeaders: function () {
|
|
72
|
+
getRequestHeaders: function (action) {
|
|
71
73
|
return {
|
|
72
|
-
oldToken: '30bf66c7-b93e-47b4-9d6f-3a7e85c19ac0',
|
|
73
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjksOwjAMBe-SdS05tuPE7PpJNhwCBWglWCHaSiDE3SniEGznjfTm5eb16HYuIUWltoc-sYKkYGDcF_ApGWYzjrE_CHOHKANQxAJSYgYTCYBoahaC0qAHJc6lbRW8bLuUbpNIBDS3QTJhZiHXuPFxczsfmXxCJG3cpS4_gMb6Bes83vfj8x9x1-Wy3eJ48seQJuCaziATTWDRIlSazCNrlerd-wMAAP__.93H7c7k4TLTqbKpozp0aTSU4U_WrQu3eS990iS-TCpw',
|
|
74
|
-
authObject: '{token:"T5067-1995406631567089664",platform:"WEB"}',
|
|
74
|
+
// oldToken: '30bf66c7-b93e-47b4-9d6f-3a7e85c19ac0',
|
|
75
|
+
// token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjksOwjAMBe-SdS05tuPE7PpJNhwCBWglWCHaSiDE3SniEGznjfTm5eb16HYuIUWltoc-sYKkYGDcF_ApGWYzjrE_CHOHKANQxAJSYgYTCYBoahaC0qAHJc6lbRW8bLuUbpNIBDS3QTJhZiHXuPFxczsfmXxCJG3cpS4_gMb6Bes83vfj8x9x1-Wy3eJ48seQJuCaziATTWDRIlSazCNrlerd-wMAAP__.93H7c7k4TLTqbKpozp0aTSU4U_WrQu3eS990iS-TCpw',
|
|
76
|
+
// authObject: '{token:"T5067-1995406631567089664",platform:"WEB"}',
|
|
75
77
|
|
|
76
78
|
// originalRequestURL: 'http://10.88.22.67:8080',
|
|
77
|
-
EstateInfo: '{"estateId":"1c581b7c-d629-4670-8a7c-6d622860bc58","estateName":"0%E9%87%91%E9%9A%85%E4%BA%91%E7%AD%91%E5%A4%A9%E6%B4%A5","estDeptPath":"009.014.001.001"}',
|
|
78
|
-
estateId: '',
|
|
79
|
-
appinfo:'{"appId":"
|
|
79
|
+
// EstateInfo: '{"estateId":"1c581b7c-d629-4670-8a7c-6d622860bc58","estateName":"0%E9%87%91%E9%9A%85%E4%BA%91%E7%AD%91%E5%A4%A9%E6%B4%A5","estDeptPath":"009.014.001.001"}',
|
|
80
|
+
// estateId: '',
|
|
81
|
+
// appinfo:'{"appId":"7e4d0521-4e26-4beb-8627-e76977ad8aa5","appName":"CCAI-PLUS"}',
|
|
82
|
+
// authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjkzNDU5NjFkLWM2NmItNDU0ZS1hMTE4LTUzMWRkMjliZTdmYyJ9.ehMpxkFnyTFlJQ_43SbCTGZZTMFht3isTj3gUKmNoJBWCV5X8ez5Z2AgT7vMBwmmG1FdEHWZTnJhIj0ox86bCA',
|
|
80
83
|
|
|
81
|
-
|
|
82
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
84
|
+
AuthObject: '{"currentEstate":{"estateId":"201005121336088B888053DAF3FAD603","estateName":"A","estDeptPath":"001.041.001"},"platform":1,"osVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"Fm1KP8","time":"2025-12-26 17:13:10","timestamp":1766740390742,"sign":"","systemSource":"CCESU","empNo":"hqxtgl","empId":"2411121446336B97FBEB7FD54905A903","clientVersion":"12.5","empName":"hq%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86","roleName":"%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98","deptFullName":"%E6%9C%AA%E5%8C%B9%E9%85%8DCCHR%E4%B8%ADHROC%E9%83%A8%E9%97%A8%2F%E9%9B%86%E5%9B%A2IT%2FCCES%E7%BB%84"}',
|
|
85
|
+
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjA4Yjk3ZDhmLWJiYjItNGY0Yy04MDQwLWIxZGJkMTY5ZDFhOSJ9.mkY3k2Di_GpwvYpnq4N_yDdTz8dBryVCkX1TbW8fMdiG2AAickX7d1PMp1Hao04OFnt41Yrt2diKGXpmXEWYNQ',
|
|
83
86
|
};
|
|
84
87
|
},
|
|
85
88
|
// 请求完成事件,可判断是否登录过期执行响应操作
|