centaline-data-driven 1.6.7 → 1.6.9
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 +28 -0
- package/src/Form.vue +2 -2
- package/src/SearchList.vue +7 -4
- package/src/assets/close.png +0 -0
- package/src/assets/question.png +0 -0
- package/src/centaline/dialogList/src/dialog.vue +70 -6
- package/src/centaline/dynamicForm/src/dynamicForm.vue +16 -14
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +2 -0
- package/src/centaline/dynamicPhotoSelect/src/dynamicPhotoSelect.vue +8 -7
- package/src/centaline/dynamicPhotoSelectList/src/dynamicPhotoSelectList.vue +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +2 -0
- package/src/centaline/loader/src/ctl/Base.js +11 -1
- package/src/centaline/loader/src/ctl/Form.js +35 -8
- package/src/centaline/loader/src/ctl/FormList.js +7 -2
- package/src/main.js +9 -8
- package/wwwroot/static/centaline/centaline-data-driven.js +1048 -948
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
# v1.6.9
|
|
2
|
+
2024-06-12
|
|
3
|
+
|
|
4
|
+
优化
|
|
5
|
+
|
|
6
|
+
图片选择控件,没锁定且没权限时,默认项显示
|
|
7
|
+
|
|
8
|
+
表单列表弹层onAfterChanged支持调用actionRouters
|
|
9
|
+
|
|
10
|
+
表单列表选择数据后,再次编辑行数据后,没有触发数据统计bug处理
|
|
11
|
+
|
|
12
|
+
表单列表路由删除操作支持刷新整个表单
|
|
13
|
+
|
|
14
|
+
表单列表弹层新增修改时,支持弹层的路由操作可以取到父表单的数据
|
|
15
|
+
|
|
16
|
+
列表:查询条件加载完成后,数据还没有加载完成,查询条件可以选择的bug处理
|
|
17
|
+
|
|
18
|
+
标题栏 按钮(居右排列)
|
|
19
|
+
|
|
20
|
+
优化弹窗关闭符号和新增帮助符号
|
|
21
|
+
|
|
22
|
+
# v1.6.8
|
|
23
|
+
2024-05-08
|
|
24
|
+
|
|
25
|
+
优化
|
|
26
|
+
|
|
27
|
+
单行文本框在查询列表传值到API时,自动去掉前后空格、TAB符和换行符
|
|
28
|
+
|
|
1
29
|
# v1.6.7
|
|
2
30
|
2024-04-25
|
|
3
31
|
|
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="'/sunteammanage/suncommissionarrivalimport/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight" :documentHeight="'600px'"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
},
|
|
17
17
|
topHeight:10,
|
|
18
18
|
}
|
package/src/SearchList.vue
CHANGED
|
@@ -29,9 +29,12 @@
|
|
|
29
29
|
|
|
30
30
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/api/distribution/standing-book/layout'" :searchDataApi="'/api/distribution/standing-book/list'"></ct-searchlist> -->
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
<!-- CCES -->
|
|
33
33
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
|
|
34
|
-
|
|
34
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/contractmanage/ContractList/getLayoutOfSearch'" :searchDataApi="'/contractmanage/ContractList/getList'"></ct-searchlist> -->
|
|
35
|
+
<ct-searchlist :apiParam="para" :searchConditionApi="'/sunexpensemanage/sunexpenserecordlist/getLayoutOfSearch'" :searchDataApi="'/sunexpensemanage/sunexpenserecordlist/getList'"></ct-searchlist>
|
|
36
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/ProjectCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/ProjectCustomerList/getList'"></ct-searchlist> -->
|
|
37
|
+
<!-- CCES -->
|
|
35
38
|
|
|
36
39
|
<!-- <ct-searchlist :apiParam="para"
|
|
37
40
|
:searchConditionApi="'/api/transaction/adjustRecord/getLayoutOfSearch'"
|
|
@@ -122,7 +125,7 @@
|
|
|
122
125
|
|
|
123
126
|
<!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/OvertimeList/getLayoutOfSearch'" :searchDataApi="'/OvertimeList/getListOfSearchModel'"></ct-searchlist> -->
|
|
124
127
|
|
|
125
|
-
<ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/TrainingAllowanceTotalList/getLayoutOfSearch'" :searchDataApi="'/TrainingAllowanceTotalList/getListOfSearchModel'"></ct-searchlist>
|
|
128
|
+
<!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/TrainingAllowanceTotalList/getLayoutOfSearch'" :searchDataApi="'/TrainingAllowanceTotalList/getListOfSearchModel'"></ct-searchlist> -->
|
|
126
129
|
|
|
127
130
|
<ct-dialog-list></ct-dialog-list>
|
|
128
131
|
</div>
|
|
@@ -138,7 +141,7 @@
|
|
|
138
141
|
// appRootUrl:'http://10.88.22.13:6060/onecard-api/',
|
|
139
142
|
appRootUrl:'',
|
|
140
143
|
para:{
|
|
141
|
-
"type":"
|
|
144
|
+
"type":"left"
|
|
142
145
|
},
|
|
143
146
|
}
|
|
144
147
|
},
|
|
Binary file
|
|
Binary file
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
dialogTableVisible: true,
|
|
11
11
|
contentLeft: 0,
|
|
12
12
|
contentTop: 0,
|
|
13
|
-
pane:null
|
|
13
|
+
pane:null,
|
|
14
|
+
captionBarButtons:[],
|
|
15
|
+
modelSelf:null,
|
|
14
16
|
};
|
|
15
17
|
},
|
|
16
18
|
activated(){
|
|
@@ -123,17 +125,52 @@
|
|
|
123
125
|
},
|
|
124
126
|
this.vmodel.title),
|
|
125
127
|
h('i', {
|
|
126
|
-
class: ['el-icon', '
|
|
128
|
+
class: ['el-icon', 'close-mark','cursor'],
|
|
127
129
|
style: {
|
|
128
130
|
'position': 'absolute',
|
|
129
131
|
'right': '8px',
|
|
130
|
-
'top':'
|
|
131
|
-
'font-size':'
|
|
132
|
+
'top':'10px',
|
|
133
|
+
'font-size':'24px',
|
|
132
134
|
},
|
|
133
135
|
on: {
|
|
134
136
|
click: (event) => { this.close(event); }
|
|
135
137
|
}
|
|
136
|
-
})
|
|
138
|
+
}),
|
|
139
|
+
// h('i', {
|
|
140
|
+
// class: ['el-icon', 'question-mark'],
|
|
141
|
+
// style: {
|
|
142
|
+
// 'position': 'absolute',
|
|
143
|
+
// 'right': '35px',
|
|
144
|
+
// 'top':'10px',
|
|
145
|
+
// 'font-size':'24px',
|
|
146
|
+
// },
|
|
147
|
+
// on: {
|
|
148
|
+
// click: (event) => { this.close(event); }
|
|
149
|
+
// }
|
|
150
|
+
// })
|
|
151
|
+
h('div',{
|
|
152
|
+
style: {
|
|
153
|
+
'display':'inline-block',
|
|
154
|
+
'position': 'absolute',
|
|
155
|
+
'right': '44px',
|
|
156
|
+
'top':'10px',
|
|
157
|
+
}
|
|
158
|
+
},this.captionBarButtons.map((item,index) => {
|
|
159
|
+
let mySelf = this;
|
|
160
|
+
if(item.show){
|
|
161
|
+
return h('ct-btn', {
|
|
162
|
+
props: {
|
|
163
|
+
key:index,
|
|
164
|
+
vmodel:item
|
|
165
|
+
},
|
|
166
|
+
on: {
|
|
167
|
+
click(ev) {
|
|
168
|
+
mySelf.modelSelf.self.fieldClickHandler(item)
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}, [])
|
|
172
|
+
}
|
|
173
|
+
}))
|
|
137
174
|
])
|
|
138
175
|
]),
|
|
139
176
|
h('tr', {}, [
|
|
@@ -147,6 +184,10 @@
|
|
|
147
184
|
if (typeof item.on.loaded === "undefined") {
|
|
148
185
|
item.on.loaded = (model) => {
|
|
149
186
|
mySelf.vmodel.title = (model && model.title) ? model.title : mySelf.vmodel.title
|
|
187
|
+
if(model.captionBarButtons){
|
|
188
|
+
mySelf.captionBarButtons = model.captionBarButtons
|
|
189
|
+
}
|
|
190
|
+
mySelf.modelSelf = model
|
|
150
191
|
}
|
|
151
192
|
}
|
|
152
193
|
|
|
@@ -263,5 +304,28 @@
|
|
|
263
304
|
border-top:initial;
|
|
264
305
|
border-bottom: initial;
|
|
265
306
|
}
|
|
266
|
-
|
|
307
|
+
.question-mark {
|
|
308
|
+
background: url(../../../assets/question.png) no-repeat;
|
|
309
|
+
background-size: 100% 100%;
|
|
310
|
+
height: 22px;
|
|
311
|
+
width: 22px;
|
|
312
|
+
display: inline-block;
|
|
313
|
+
font-weight: bold;
|
|
314
|
+
}
|
|
315
|
+
.question-mark:hover {
|
|
316
|
+
background-color: #e4624c;
|
|
317
|
+
color: fff;
|
|
318
|
+
}
|
|
319
|
+
.close-mark{
|
|
320
|
+
background: url(../../../assets/close.png) no-repeat;
|
|
321
|
+
background-size: 100% 100%;
|
|
322
|
+
height: 26px;
|
|
323
|
+
width: 26px;
|
|
324
|
+
display: inline-block;
|
|
325
|
+
font-weight: bold;
|
|
326
|
+
}
|
|
327
|
+
.close-mark:hover {
|
|
328
|
+
background-color: #e4624c;
|
|
329
|
+
color: fff;
|
|
330
|
+
}
|
|
267
331
|
</style>
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
</el-row>
|
|
135
135
|
<el-row v-if="model.buttons.findIndex((v)=>{return v.show}) > -1" :class="isScroll?'ccai button-absolute':'button-initial'"
|
|
136
136
|
:style="{'max-width':pageWidth?(pageWidth-20)+'px':'100%'}">
|
|
137
|
-
<el-col :span="24" style="
|
|
137
|
+
<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">
|
|
138
138
|
<component v-for="(btn, index) in model.buttons" :key="index" :is="btn.is" :vmodel="btn" @click="clickHandler" v-if="btn.show"
|
|
139
139
|
:style="{'float':btn.isCheckbox ? btn.alignCss:''}"></component>
|
|
140
140
|
</el-col>
|
|
@@ -682,13 +682,15 @@
|
|
|
682
682
|
},
|
|
683
683
|
on: {
|
|
684
684
|
submit(ev) {
|
|
685
|
+
// if(ev.responseData
|
|
686
|
+
// && ev.responseData.clientActionType
|
|
687
|
+
// && ev.responseData.clientActionType === 2
|
|
688
|
+
// && ev.responseData.content){
|
|
689
|
+
// self.$common.excuteFunStr.call(self.model.scripts, ev.responseData.content);
|
|
690
|
+
// }
|
|
691
|
+
// else
|
|
685
692
|
if (ev.responseData && ev.responseData.notification === 10) {
|
|
686
|
-
self.
|
|
687
|
-
self.collapseActiveNames.splice(0, self.collapseActiveNames.length);
|
|
688
|
-
self.collapseFieldsRow.splice(0, self.collapseFieldsRow.length);
|
|
689
|
-
self.independentItem.splice(0, self.independentItem.length);
|
|
690
|
-
self.load(self.loaderObj.Form(ev.responseData.content));
|
|
691
|
-
self.formKey = self.formKey + 1;
|
|
693
|
+
self.init();
|
|
692
694
|
}
|
|
693
695
|
else {
|
|
694
696
|
self.model.updateFields(ev, () => {
|
|
@@ -963,13 +965,8 @@
|
|
|
963
965
|
if (field && field.changeCallBackFunName) {
|
|
964
966
|
self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
|
|
965
967
|
}
|
|
966
|
-
else if (field.isRefersh) {
|
|
967
|
-
self.
|
|
968
|
-
self.collapseActiveNames.splice(0, self.collapseActiveNames.length);
|
|
969
|
-
self.collapseFieldsRow.splice(0, self.collapseFieldsRow.length);
|
|
970
|
-
self.independentItem.splice(0, self.independentItem.length);
|
|
971
|
-
self.load(self.loaderObj.Form(data.content));
|
|
972
|
-
self.formKey = self.formKey + 1;
|
|
968
|
+
else if (field.isRefersh || data.notification === 10) {
|
|
969
|
+
self.init();
|
|
973
970
|
}
|
|
974
971
|
else {
|
|
975
972
|
self.model.doAction(data);
|
|
@@ -1403,6 +1400,11 @@
|
|
|
1403
1400
|
if (field.submitFormField) {
|
|
1404
1401
|
field.submitFormField.forEach((v) => {
|
|
1405
1402
|
submitData[v] = self.$common.getDataOfUpperLower(tempFormData, v);
|
|
1403
|
+
if(submitData[v]==undefined || submitData[v]==null || submitData[v]==''){
|
|
1404
|
+
if(self.parentModelForm){
|
|
1405
|
+
submitData[v] = self.parentModelForm.getFormObj()[v];
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1406
1408
|
});
|
|
1407
1409
|
}
|
|
1408
1410
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</span>
|
|
28
28
|
<span
|
|
29
29
|
class="cover-list-item-span-delete"
|
|
30
|
-
v-if="!model.lock"
|
|
30
|
+
v-if="!model.lock&& item.rightDel"
|
|
31
31
|
>
|
|
32
32
|
<i class="el-icon-delete" @click="handleRemove(item,index)"></i>
|
|
33
33
|
</span>
|
|
@@ -36,15 +36,16 @@
|
|
|
36
36
|
<span style="width: 80px; height: 26px; display: inline-flex;">
|
|
37
37
|
{{ item.mediaLabelName }} </span>
|
|
38
38
|
</span>
|
|
39
|
-
|
|
40
|
-
<span v-if="item.
|
|
41
|
-
class="checked isradio">
|
|
42
|
-
</span>
|
|
43
|
-
</template>
|
|
44
|
-
<span v-else-if="item.rightDefault==true||item.rightDefault=='true'"
|
|
39
|
+
|
|
40
|
+
<span v-if="item.rightDefault==true||item.rightDefault=='true'"
|
|
45
41
|
:class="[item.flagDefault &&(item.flagDefault == true || item.flagDefault == 'true')? 'checked': 'Unchecked','isradio',]"
|
|
46
42
|
@click="radiochecked(photoList, item)">
|
|
47
43
|
</span>
|
|
44
|
+
<template v-else>
|
|
45
|
+
<span v-if="item.flagDefault &&(item.flagDefault == true || item.flagDefault == 'true')"
|
|
46
|
+
class="checked isradio">
|
|
47
|
+
</span>
|
|
48
|
+
</template>
|
|
48
49
|
</span>
|
|
49
50
|
</div>
|
|
50
51
|
</li>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
</span>
|
|
30
30
|
</span>
|
|
31
31
|
<div class="p-2 text-center">
|
|
32
|
-
<i class="max-view" @click="
|
|
32
|
+
<i class="max-view" @click="viewerfile(imageList,index)"></i>
|
|
33
33
|
<i class="max-success" @click="choose(item)" :class="{'ischeck': item.ischeck }"></i>
|
|
34
34
|
|
|
35
35
|
<!-- <el-tag type="danger" effect="dark" size="mini" >1</el-tag> -->
|
|
@@ -174,6 +174,7 @@
|
|
|
174
174
|
if(this.from && this.from=='detail'){
|
|
175
175
|
this.screenTop=this.$refs.screen.$el.offsetTop;
|
|
176
176
|
}
|
|
177
|
+
this.pageDisabled=true;
|
|
177
178
|
this.$refs.table.searchComplate(this.$refs.screen.model, defaultSearch);
|
|
178
179
|
|
|
179
180
|
this.$emit('loaded', this.$refs.screen.model);
|
|
@@ -314,6 +315,7 @@
|
|
|
314
315
|
this.$refs.screen.LoadLayout();
|
|
315
316
|
}
|
|
316
317
|
|
|
318
|
+
this.pageDisabled=false;
|
|
317
319
|
this.flagSideBar=this.$refs.table.model.flagSideBar;
|
|
318
320
|
this.flagDefaultDisplaySideBar=this.$refs.table.model.flagDefaultDisplaySideBar;
|
|
319
321
|
if(this.$refs.table.model.rowSelectRouter){
|
|
@@ -276,7 +276,17 @@ const Base = function (source) {
|
|
|
276
276
|
get groupName() { return source.groupName || source.fieldName1; },
|
|
277
277
|
get operation() { return source.searchOperation; },
|
|
278
278
|
get searchDataType() { return source.searchDataType; } ,
|
|
279
|
-
get searchValue1() {
|
|
279
|
+
get searchValue1() {
|
|
280
|
+
if(source.controlType === Enum.ControlType.TextBox){
|
|
281
|
+
if(source.code1) {
|
|
282
|
+
let rtn = source.code1.trim();
|
|
283
|
+
rtn = rtn.replace(/\n/g, '');
|
|
284
|
+
rtn = rtn.replace(/\t/g, '');
|
|
285
|
+
return rtn;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return source.code1;
|
|
289
|
+
},
|
|
280
290
|
get searchValue2() { return source.code2; }
|
|
281
291
|
},
|
|
282
292
|
get searchDataType() {//检索的数据类型
|
|
@@ -150,6 +150,23 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
150
150
|
return rtn._actionRouters;
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
|
+
_captionBarButtons: null,
|
|
154
|
+
get captionBarButtons() {
|
|
155
|
+
if (rtn._captionBarButtons !== null) {
|
|
156
|
+
return rtn._captionBarButtons;
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
rtn._captionBarButtons = [];
|
|
160
|
+
if (source.captionBarButtons) {
|
|
161
|
+
source.captionBarButtons.forEach((v) => {
|
|
162
|
+
var button = Router(v);
|
|
163
|
+
button.is = "ct-btn";
|
|
164
|
+
rtn._captionBarButtons.push(button);
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
return rtn._captionBarButtons;
|
|
168
|
+
}
|
|
169
|
+
},
|
|
153
170
|
get optionApi() {
|
|
154
171
|
return source.parameterAction;
|
|
155
172
|
},
|
|
@@ -462,35 +479,45 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
462
479
|
let listData = this.excuteListData.find((v) => {
|
|
463
480
|
return v.id === tableId;
|
|
464
481
|
});
|
|
465
|
-
listData
|
|
482
|
+
if(listData){
|
|
483
|
+
listData[attrName] = attrValue
|
|
484
|
+
}
|
|
466
485
|
},
|
|
467
486
|
//新增表格数据
|
|
468
|
-
insertRow(tableId,rows) {
|
|
487
|
+
insertRow(tableId,rows) {
|
|
469
488
|
let listData = this.excuteListData.find((v) => {
|
|
470
489
|
return v.id === tableId;
|
|
471
490
|
});
|
|
472
|
-
listData
|
|
491
|
+
if(listData){
|
|
492
|
+
listData.insertRow(rows);
|
|
493
|
+
}
|
|
473
494
|
},
|
|
474
495
|
//新增或替换表格数据
|
|
475
|
-
insertOrUpdateRow(tableId,row) {
|
|
496
|
+
insertOrUpdateRow(tableId,row) {
|
|
476
497
|
let listData = this.excuteListData.find((v) => {
|
|
477
498
|
return v.id === tableId;
|
|
478
499
|
});
|
|
479
|
-
listData
|
|
500
|
+
if(listData){
|
|
501
|
+
listData.insertOrUpdateRow(row);
|
|
502
|
+
}
|
|
480
503
|
},
|
|
481
504
|
//删除表格数据
|
|
482
|
-
deleteRow(tableId,row) {
|
|
505
|
+
deleteRow(tableId,row) {
|
|
483
506
|
let listData = this.excuteListData.find((v) => {
|
|
484
507
|
return v.id === tableId;
|
|
485
508
|
});
|
|
486
|
-
listData
|
|
509
|
+
if(listData){
|
|
510
|
+
listData.delRow(row);
|
|
511
|
+
}
|
|
487
512
|
},
|
|
488
513
|
//清空表格数据
|
|
489
514
|
clear(tableId) {
|
|
490
515
|
let listData = this.excuteListData.find((v) => {
|
|
491
516
|
return v.id === tableId;
|
|
492
517
|
});
|
|
493
|
-
listData
|
|
518
|
+
if(listData){
|
|
519
|
+
listData.deleteAll();
|
|
520
|
+
}
|
|
494
521
|
},
|
|
495
522
|
|
|
496
523
|
//获取后台数据,并返回脚本。
|
|
@@ -376,6 +376,7 @@ const FormList = function (source, master) {
|
|
|
376
376
|
var self = this;
|
|
377
377
|
let index = source.rows.findIndex(v => v.$sourceIndex === sourceIndex);
|
|
378
378
|
self.currentRowIndex=index;
|
|
379
|
+
let fields = JSON.parse(JSON.stringify(source.rows[index].columns));
|
|
379
380
|
var dialogOption = {
|
|
380
381
|
title: '修改',
|
|
381
382
|
pane: common.getParentPane(self),
|
|
@@ -385,7 +386,7 @@ const FormList = function (source, master) {
|
|
|
385
386
|
source: {
|
|
386
387
|
scripts: source.scripts,
|
|
387
388
|
parameterAction: self.OptApi,
|
|
388
|
-
fields:
|
|
389
|
+
fields: fields,
|
|
389
390
|
colSpan: rtn.pageColumns,
|
|
390
391
|
buttons: [
|
|
391
392
|
{
|
|
@@ -394,6 +395,7 @@ const FormList = function (source, master) {
|
|
|
394
395
|
"buttonType": Enum.ButtonType.Submit
|
|
395
396
|
}
|
|
396
397
|
],
|
|
398
|
+
actionRouters:source.actionRouters,
|
|
397
399
|
},
|
|
398
400
|
width: rtn.pageWidth+'px',
|
|
399
401
|
height: rtn.pageHeight+'px',
|
|
@@ -409,6 +411,7 @@ const FormList = function (source, master) {
|
|
|
409
411
|
for (let findex = 0; findex < row.length; findex++) {//循环所在行的列
|
|
410
412
|
Vue.set(row[findex], 'code1', ev.formData.source.fields[findex].code1);
|
|
411
413
|
Vue.set(row[findex], 'name1', ev.formData.source.fields[findex].name1);
|
|
414
|
+
Vue.set(row[findex], 'locked', ev.formData.source.fields[findex].locked);
|
|
412
415
|
switch(ev.formData.source.fields[findex].controlType){
|
|
413
416
|
case 19:
|
|
414
417
|
case 20:
|
|
@@ -476,7 +479,8 @@ const FormList = function (source, master) {
|
|
|
476
479
|
"text": "提交",
|
|
477
480
|
"buttonType": Enum.ButtonType.Submit
|
|
478
481
|
}
|
|
479
|
-
]
|
|
482
|
+
],
|
|
483
|
+
actionRouters:source.actionRouters,
|
|
480
484
|
},
|
|
481
485
|
width: rtn.pageWidth+'px',
|
|
482
486
|
height: rtn.pageHeight+'px',
|
|
@@ -489,6 +493,7 @@ const FormList = function (source, master) {
|
|
|
489
493
|
let field = row.columns[findex];
|
|
490
494
|
field.code1 = ev.formData.source.fields[findex].code1;
|
|
491
495
|
field.name1 = ev.formData.source.fields[findex].name1;
|
|
496
|
+
field.locked = ev.formData.source.fields[findex].locked;
|
|
492
497
|
switch(ev.formData.source.fields[findex].controlType){
|
|
493
498
|
case 19:
|
|
494
499
|
case 20:
|
package/src/main.js
CHANGED
|
@@ -14,7 +14,7 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
14
14
|
// 关闭生产模式下给出的提示
|
|
15
15
|
Vue.config.productionTip = false;
|
|
16
16
|
Vue.use(centaline, {
|
|
17
|
-
baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
|
|
17
|
+
// baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
|
|
18
18
|
// baseUrl: "http://10.88.22.46:6060/onecard-api/",
|
|
19
19
|
// baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
|
|
20
20
|
// baseUrl: "http://10.88.22.13:6060/onecard-api/",
|
|
@@ -23,9 +23,10 @@ Vue.use(centaline, {
|
|
|
23
23
|
// baseUrl: "http://10.25.10.69:8080/",
|
|
24
24
|
// baseUrl: "https://ccesutest.centaline.com.cn/service-api/v1/form/router",
|
|
25
25
|
// baseUrl: "http://10.88.22.69:8080/api/",
|
|
26
|
-
baseUrl: "http://10.88.22.
|
|
26
|
+
baseUrl: "http://10.88.22.46:9999/service-api/",
|
|
27
|
+
// baseUrl: "http://10.88.22.42:9999/service-api/",
|
|
27
28
|
// baseUrl: "http://10.1.245.111:31574/service-api/",
|
|
28
|
-
// baseUrl: "
|
|
29
|
+
// baseUrl: "https://tjcptest.centaline.com.cn/",
|
|
29
30
|
// baseUrl: "https://shccai.centaline.com.cn/api/",
|
|
30
31
|
flagRouterSelf: true,
|
|
31
32
|
zindex: 999,
|
|
@@ -55,16 +56,16 @@ Vue.use(centaline, {
|
|
|
55
56
|
// 获取请求头
|
|
56
57
|
getRequestHeaders: function () {
|
|
57
58
|
return {
|
|
58
|
-
oldToken: '
|
|
59
|
+
oldToken: 'c48263f0-1b23-4599-96de-323f4507dc61',
|
|
59
60
|
token:'1080-1762727915918856192',
|
|
60
|
-
authObject: '{token:"
|
|
61
|
+
// authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjksKAjEMQO_StYEkTZp2dq3TbjzE0JERxpX4AUW8u4qHcPd4m_ee7nKb3eDYxio1EJRKHoTFf8gzIKqOJbdajKfUssYRBZhTAWnWICbzoJR8xhhLLTLFLRIjE-g2G4hlhawtga9BLKKNWNht3HI_uYGMlFkl8cat_foT5BN-xe2ynHfL4x9zx-v6yRKbCR4QYp87SEeFzr1D2Hfbk4ZwQHOvNwAAAP__.WXDbBaPltpYZXolspry93UzYBfcZrKEmjpvrgrVTWFM"}',
|
|
61
62
|
|
|
62
63
|
// originalRequestURL: 'http://10.88.22.67:8080',
|
|
63
|
-
EstateInfo: '{"estateId":"
|
|
64
|
+
EstateInfo: '{"estateId":"2209201708108B8F50AB530A49EAA858","estateName":"U%E7%89%88%E6%B5%8B%E8%AF%95%E6%A5%BC%E7%9B%98%E7%82%B9%E4%BD%8D","estDeptPath":"009.001.001"}',
|
|
64
65
|
estateId: '',
|
|
65
66
|
|
|
66
|
-
authObject: '{"currentEstate":{"estateId":"
|
|
67
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
67
|
+
authObject: '{"currentEstate":{"estateId":"2209201708108B8F50AB530A49EAA858","estateName":"U%E7%89%88%E6%B5%8B%E8%AF%95%E6%A5%BC%E7%9B%98%E7%82%B9%E4%BD%8D","estDeptPath":"009.001.001"},"platform":1,"osVersion":"","clientVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"Typw5","time":1716775934315,"sign":"a3cb02a3fc6178350dbe5680579ef127","systemSource":"CCESU","empNo":"csgl2","empId":"202110201430497BB5FE89123A054CCA"}',
|
|
68
|
+
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjgwOGVlMmZjLTA2ZDMtNDVmYy05NjJkLWY0ODM5MDQyYzk4ZiJ9.55wMFYRikPhYq-qfQmyliambjFkMtVX4b5wuO2zuCbPMhsDBcinq3Jg58dH4agJLKwim3UUd0-XfEpaEaTORLw',
|
|
68
69
|
};
|
|
69
70
|
},
|
|
70
71
|
// 请求完成事件,可判断是否登录过期执行响应操作
|