centaline-data-driven 1.6.36 → 1.6.38
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 +18 -0
- package/src/SearchList.vue +5 -2
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +1 -2
- package/src/centaline/dynamicFile/src/dynamicFile.vue +1 -13
- package/src/centaline/dynamicForm/src/dynamicForm.vue +4 -3
- package/src/centaline/dynamicIti/src/dynamicIti.vue +5 -13
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +8 -2
- package/src/centaline/dynamicTags/src/dynamicTags.vue +2 -1
- package/src/centaline/loader/src/ctl/Base.js +3 -0
- package/src/centaline/loader/src/ctl/Router.js +3 -0
- package/src/centaline/loader/src/ctl/SearchScreen.js +4 -4
- package/src/centaline/loader/src/ctl/SearchTable.js +1 -4
- package/src/centaline/loader/src/ctl/lib/Enum.js +18 -0
- package/src/main.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +61 -61
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
package/src/SearchList.vue
CHANGED
|
@@ -31,11 +31,14 @@
|
|
|
31
31
|
|
|
32
32
|
<!-- CCES -->
|
|
33
33
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
|
|
34
|
-
<ct-searchlist :apiParam="para" :searchConditionApi="'/contractmanage/ContractList/getLayoutOfSearch'" :searchDataApi="'/contractmanage/ContractList/getList'"></ct-searchlist>
|
|
34
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/contractmanage/ContractList/getLayoutOfSearch'" :searchDataApi="'/contractmanage/ContractList/getList'"></ct-searchlist> -->
|
|
35
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
36
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/workwxmanage/WorkWXApplicationList/getLayoutOfSearch'" :searchDataApi="'/workwxmanage/WorkWXApplicationList/getList'"></ct-searchlist> -->
|
|
38
37
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/UrgentResponsiblePersonList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/UrgentResponsiblePersonList/getList'"></ct-searchlist> -->
|
|
38
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/ProjectCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/ProjectCustomerList/getList'"></ct-searchlist> -->
|
|
39
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/MyCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/MyCustomerList/getList'"></ct-searchlist> -->
|
|
40
|
+
<ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/CustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/CustomerList/getList'"></ct-searchlist>
|
|
41
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
|
|
39
42
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
|
|
40
43
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
|
|
41
44
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/EntranceNoticeInfoList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/EntranceNoticeInfoList/getList'"></ct-searchlist> -->
|
|
@@ -52,8 +52,7 @@
|
|
|
52
52
|
<tr v-for="(row,rowindex) in model.listData" :key="rowindex"
|
|
53
53
|
v-if="pageRowMin <= rowindex && rowindex <= pageRowMax"
|
|
54
54
|
:ref="'rows.'+rowindex" @click="rowClickHandle($event,rowindex)"
|
|
55
|
-
class="ct-tr"
|
|
56
|
-
:style="row.$style">
|
|
55
|
+
class="ct-tr">
|
|
57
56
|
<td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td" :class="[model.tdClass]" align="center">
|
|
58
57
|
<label v-if="!model.rightMulti || row[model.rightMulti] == 1" class="el-checkbox is-checked"><span class="el-checkbox__input" :class="rowCheckClass(row)">
|
|
59
58
|
<span class="el-checkbox__inner"></span>
|
|
@@ -903,19 +903,7 @@ export default {
|
|
|
903
903
|
window.uploads = { count: 0, length: uploads.length };
|
|
904
904
|
}
|
|
905
905
|
if (uploads.length > 1) {
|
|
906
|
-
|
|
907
|
-
window.uploads.length = uploads.length;
|
|
908
|
-
|
|
909
|
-
if (window.uploads.count == window.uploads.length) {
|
|
910
|
-
window.uploads = null;
|
|
911
|
-
|
|
912
|
-
self.$message({
|
|
913
|
-
message: "存在多个上传组件,请点击上传!",
|
|
914
|
-
type: 'info',
|
|
915
|
-
showClose: true,
|
|
916
|
-
});
|
|
917
|
-
return false;
|
|
918
|
-
}
|
|
906
|
+
|
|
919
907
|
}
|
|
920
908
|
else if (uploads.length == 1) {
|
|
921
909
|
window.uploads = null;
|
|
@@ -1065,11 +1065,12 @@
|
|
|
1065
1065
|
fun(submitData, title, self.model);
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
+
|
|
1069
|
+
if(typeof field.onClick !== 'undefined'){
|
|
1070
|
+
self.$common.excute.call(self.model.scripts, field.onClick)
|
|
1071
|
+
}
|
|
1068
1072
|
|
|
1069
1073
|
if (field.isSubmit && field.flagVerifyData) {
|
|
1070
|
-
if(typeof field.onClick !== 'undefined'){
|
|
1071
|
-
self.$common.excute.call(self.model.scripts, field.onClick)
|
|
1072
|
-
}
|
|
1073
1074
|
if(!self.validExcute()){
|
|
1074
1075
|
return;
|
|
1075
1076
|
}
|
|
@@ -13,13 +13,7 @@
|
|
|
13
13
|
class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
|
|
14
14
|
<input style="text-align:left;width:100%" class="el-range-input" :placeholder="model.attrs.placeholder1"
|
|
15
15
|
v-model="model.value" @change="changeHandler($event)" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value','decimals')"
|
|
16
|
-
:class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
|
|
17
|
-
|
|
18
|
-
<!-- <span class="el-input__suffix el-input--mini" v-if="showClear.input1">
|
|
19
|
-
<span class="el-input__suffix-inner ct-close">
|
|
20
|
-
<i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event,'input1','value')"></i>
|
|
21
|
-
</span>
|
|
22
|
-
</span> -->
|
|
16
|
+
:class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
|
|
23
17
|
</div>
|
|
24
18
|
<span style="width:5%" class="el-range-separator">-</span>
|
|
25
19
|
<div :style="{'width':model.unitName && model.unitName.length == 1 ? '45%':(model.unitName && model.unitName.length == 3) ?'50%':(model.unitName && model.unitName.length == 5) ?'60%': ''}" class="ct-position-relative" @mouseout="mouseOutHandle('input2')">
|
|
@@ -27,7 +21,7 @@
|
|
|
27
21
|
v-model="model.value1" @change="changeHandler($event);" @input="onInputHandler($event);isShowClear('input2')" @focus="focusHandler" @blur="blurHandler('value1','decimals1')"
|
|
28
22
|
:class="model.lock ? 'ct-is-disabled' : ''" :disabled="model.lock" @keyup.enter="search()"/>
|
|
29
23
|
</div>
|
|
30
|
-
<span
|
|
24
|
+
<span class="el-input__suffix el-input--mini is-show-Span" v-if="showClear.input2">
|
|
31
25
|
<span class="el-input__suffix-inner ct-close">
|
|
32
26
|
<i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event,'input2')"></i>
|
|
33
27
|
</span>
|
|
@@ -58,7 +52,6 @@
|
|
|
58
52
|
return {
|
|
59
53
|
isFocus: false,
|
|
60
54
|
showClear:{input1:false,input2:false},
|
|
61
|
-
|
|
62
55
|
}
|
|
63
56
|
},
|
|
64
57
|
created() {
|
|
@@ -145,13 +138,12 @@
|
|
|
145
138
|
mouseOutHandle: function (id) {
|
|
146
139
|
this.showClear[id]=false;
|
|
147
140
|
},
|
|
148
|
-
isShowClear(id)
|
|
149
|
-
{
|
|
141
|
+
isShowClear(id){
|
|
150
142
|
if ((this.model['value'] !== '' || this.model['value1'] !== '') && this.model.clearable) {
|
|
151
143
|
this.showClear[id]=true;
|
|
152
144
|
}
|
|
153
145
|
else {
|
|
154
|
-
|
|
146
|
+
this.showClear[id]=false;
|
|
155
147
|
}
|
|
156
148
|
},
|
|
157
149
|
search() {
|
|
@@ -163,7 +155,7 @@
|
|
|
163
155
|
<style scoped>
|
|
164
156
|
.el-input__suffix {
|
|
165
157
|
right: -4px;
|
|
166
|
-
top:-
|
|
158
|
+
top:-7px;
|
|
167
159
|
}
|
|
168
160
|
|
|
169
161
|
span.ct-unitname.el-input__suffix.el-input__suffix-inner {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<!--可视区域的行数据-->
|
|
76
76
|
<tr v-for="(row, rowindex) in model.listData" :key="rowindex"
|
|
77
77
|
v-if="from == 'form' || pageRowMin <= rowindex && rowindex <= pageRowMax" :ref="'rows.' + rowindex"
|
|
78
|
-
@click="rowClickHandle($event, rowindex)" class="ct-tr" :style="row
|
|
78
|
+
@click="rowClickHandle($event, rowindex)" class="ct-tr" :style="row.rowStyle">
|
|
79
79
|
<td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td"
|
|
80
80
|
:class="[model.tdClass, rowindex === model.selectIndex ? 'select' : null,]" align="center">
|
|
81
81
|
<label v-if="!model.rightMulti || $common.getDataOfUpperLower(row, model.rightMulti) == 1"
|
|
@@ -2537,6 +2537,10 @@ export default {
|
|
|
2537
2537
|
background-color: #ddd !important;
|
|
2538
2538
|
}
|
|
2539
2539
|
|
|
2540
|
+
.ct-searchtable .ct-tr{
|
|
2541
|
+
background-color: #ffffff;
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2540
2544
|
.ct-searchtable .ct-tr>.ct-td {
|
|
2541
2545
|
/*border: 1px solid #e7e8eb;
|
|
2542
2546
|
border-bottom: 1px solid #e7e8eb;
|
|
@@ -2544,7 +2548,7 @@ export default {
|
|
|
2544
2548
|
border-left: 1px solid #e7e8eb;*/
|
|
2545
2549
|
padding: 2px 20px;
|
|
2546
2550
|
cursor: default;
|
|
2547
|
-
background-color: #ffffff;
|
|
2551
|
+
/* background-color: #ffffff; */
|
|
2548
2552
|
// color: var(--centalineBlack);
|
|
2549
2553
|
}
|
|
2550
2554
|
|
|
@@ -2694,10 +2698,12 @@ export default {
|
|
|
2694
2698
|
|
|
2695
2699
|
.ct-table .left-fixation {
|
|
2696
2700
|
position: sticky;
|
|
2701
|
+
background-color: inherit;
|
|
2697
2702
|
}
|
|
2698
2703
|
|
|
2699
2704
|
.ct-table .right-fixation {
|
|
2700
2705
|
position: sticky;
|
|
2706
|
+
background-color: inherit;
|
|
2701
2707
|
}
|
|
2702
2708
|
|
|
2703
2709
|
.ct-table .left-fixation-th {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<ctSelectOptionVertical :model="model" @click="selectOption($event)" @dataUpdated="dataUpdated()"></ctSelectOptionVertical>
|
|
26
26
|
</div>
|
|
27
27
|
<input slot="reference" v-bind="model.attrs" :placeholder="tagsPlaceholder"
|
|
28
|
-
ref="ct-input" class="" :style="{height:inputHeight + 'px','line-height':inputLineHeight + 'px'}"
|
|
28
|
+
ref="ct-input" class="" :style="{height:inputHeight + 'px','line-height':inputLineHeight + 'px','font-size': 'small'}"
|
|
29
29
|
:class="model.lock ? 'ct-is-disabled' : 'ct-input_inner'"
|
|
30
30
|
@focus="focusHandle" @blur="blurHandle" @click="clickHandle"
|
|
31
31
|
:disabled="model.lock" />
|
|
@@ -461,6 +461,7 @@
|
|
|
461
461
|
}
|
|
462
462
|
.ct-tags-value-label {
|
|
463
463
|
/* padding-left: 15px; */
|
|
464
|
+
font-size: small;
|
|
464
465
|
}
|
|
465
466
|
.h26{
|
|
466
467
|
height: 26px;
|
|
@@ -770,11 +770,11 @@ const SearchScreen = function (source, callBack, screenPara, prevParam) {
|
|
|
770
770
|
//判断控件是否需要单独处理searchValue1
|
|
771
771
|
isHandle(type){
|
|
772
772
|
let result=false;
|
|
773
|
-
switch (type)
|
|
774
|
-
{
|
|
773
|
+
switch (type) {
|
|
775
774
|
case Enum.ControlType.CheckBoxList://复选列表
|
|
776
|
-
|
|
777
|
-
|
|
775
|
+
case Enum.ControlType.MultiSelectWithSearch:
|
|
776
|
+
result=true;
|
|
777
|
+
break;
|
|
778
778
|
default:
|
|
779
779
|
result=false;
|
|
780
780
|
break;
|
|
@@ -789,11 +789,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
789
789
|
//设置行样式
|
|
790
790
|
setStyleRow(rows) {
|
|
791
791
|
rows.forEach((row) => {
|
|
792
|
-
if (!row.$style) {
|
|
793
|
-
row.$style = {};
|
|
794
|
-
}
|
|
795
792
|
if (rtn.rowColorColumn && row[rtn.rowColorColumn]) {
|
|
796
|
-
row
|
|
793
|
+
row.rowStyle = row.rowStyle + ";color:" + row[rtn.rowColorColumn] + ";";
|
|
797
794
|
}
|
|
798
795
|
});
|
|
799
796
|
},
|
|
@@ -295,6 +295,16 @@ const Enum = {
|
|
|
295
295
|
/// 月份区间
|
|
296
296
|
/// </summary>
|
|
297
297
|
MonthRange: 59,
|
|
298
|
+
|
|
299
|
+
/// <summary>
|
|
300
|
+
/// 数值输入框带+/-按钮
|
|
301
|
+
/// </summary>
|
|
302
|
+
NumberWithPlusAndMinus: 60,
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* VUE 前端子定义组件,组件名在 Field.vueComponentName 属性里定义
|
|
306
|
+
*/
|
|
307
|
+
VueCustomizedComponent:61,
|
|
298
308
|
|
|
299
309
|
},
|
|
300
310
|
|
|
@@ -638,6 +648,14 @@ const Enum = {
|
|
|
638
648
|
* 在系统弹层打开
|
|
639
649
|
*/
|
|
640
650
|
LayerInSystem:120,
|
|
651
|
+
/**
|
|
652
|
+
* 在弹层打开 前端的VUE组件, 组件名称放在action参数里
|
|
653
|
+
*/
|
|
654
|
+
OpenVueComponentInLayer:121,
|
|
655
|
+
/**
|
|
656
|
+
* 在tab页打开 前端的VUE组件, 组件名称放在action参数里
|
|
657
|
+
*/
|
|
658
|
+
OpenVueComponentInTab:122,
|
|
641
659
|
},
|
|
642
660
|
|
|
643
661
|
/// <summary>
|
package/src/main.js
CHANGED
|
@@ -75,8 +75,8 @@ Vue.use(centaline, {
|
|
|
75
75
|
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"}',
|
|
76
76
|
estateId: '',
|
|
77
77
|
|
|
78
|
-
authObject: '{"currentEstate":{},"platform":1,"osVersion":"","
|
|
79
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
78
|
+
authObject: '{"currentEstate":{},"platform":1,"osVersion":"","machineCode":"eeb8e2fc88b5bcbc2e4f297777142537","token":"","random":"FLNd7t","time":1742453755758,"sign":"dcf9d289a261a3a63bfb8f29a699ac1e","systemSource":"CCESU","empNo":"maopp","empId":"2411120940038E8B1C87525447179987","clientVersion":"24.11.4.1","empName":"%E6%AF%9B%E7%AE%A1%E7%90%86","roleName":"%E9%9B%86%E5%9B%A2IT%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"}',
|
|
79
|
+
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImNkMTM3NTZjLTE2YWQtNGZjNi05OWRjLTFlMjljOTllYjcyZiJ9.QXAIvKUIg-Rdc9wZibPxuJlJZeVTQQCR7U8eiNJzqdcVD1mb45GL6xgTfdYBQ6sdw673VyzFrhSErEj1mCQeKQ',
|
|
80
80
|
};
|
|
81
81
|
},
|
|
82
82
|
// 请求完成事件,可判断是否登录过期执行响应操作
|