centaline-data-driven 1.1.32 → 1.1.36
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/build/centaline/centaline.path.js +1 -0
- package/package.json +1 -1
- package/src/SearchTree.vue +3 -8
- package/src/assets/icon-eye.png +0 -0
- package/src/centaline/css/common.css +5 -0
- package/src/centaline/css/max.css +3 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +1 -7
- package/src/centaline/dynamicSearchList/src/dynamicSearchCategory.vue +5 -4
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +12 -3
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +5 -3
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +1 -0
- package/src/centaline/dynamicSensitiveEye/src/dynamicSensitiveEye.vue +18 -5
- package/src/centaline/templateControls/src/dynamicTableCurrency.vue +4 -0
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -34,6 +34,7 @@ const paths = {
|
|
|
34
34
|
"dynamicPlaceHolder": "./src/centaline/dynamicPlaceHolder/index.js",//占位控件
|
|
35
35
|
"dynamicDetail": "./src/centaline/dynamicDetail/index.js",//详情页控件
|
|
36
36
|
"dynamicTree": "./src/centaline/dynamicTree/index.js",//树组件
|
|
37
|
+
"dynamicSensitiveEye": "./src/centaline/dynamicSensitiveEye/index.js",////敏感数据小眼睛控
|
|
37
38
|
"progress": "./src/centaline/progress/index.js",//进度条
|
|
38
39
|
},
|
|
39
40
|
"plugs": {
|
package/package.json
CHANGED
package/src/SearchTree.vue
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-Tree" style="height:100%;position: fixed;">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
</el-aside>
|
|
7
|
-
<el-main v-if="isShowSearchlist">
|
|
8
|
-
<ct-searchlist :searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'" :searchDataApi="'/SystemParameterCatalogList/getList'" :api-param="apiParam"></ct-searchlist>
|
|
9
|
-
</el-main>
|
|
10
|
-
</el-container>
|
|
3
|
+
<ct-treelist :flagsearch="true" :apiParam="apiParam"
|
|
4
|
+
:searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'"
|
|
5
|
+
:searchDataApi="'/SystemParameterCatalogList/getListOfSearchModel'" @loaded="loaded"></ct-treelist>
|
|
11
6
|
</div>
|
|
12
7
|
</template>
|
|
13
8
|
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-loading="loading" style="width:100%">
|
|
3
|
-
<div v-if="model !== null && !loading" class="ct-form" :class="{'
|
|
3
|
+
<div v-if="model !== null && !loading" class="ct-form" :class="{'domDisabled':model.pageDisabled}">
|
|
4
4
|
<!--可根据场景判断显示el-card还是el-main-->
|
|
5
5
|
<component :is="model.showTitle?'el-main':'el-card'">
|
|
6
6
|
<div slot="header" class="clearfix" v-if="typeof model.title !== 'undefined' && model.flagShowTitle">
|
|
@@ -523,9 +523,3 @@
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
</script>
|
|
526
|
-
<style>
|
|
527
|
-
.tableDisabled {
|
|
528
|
-
pointer-events: none;
|
|
529
|
-
opacity:0.4;
|
|
530
|
-
}
|
|
531
|
-
</style>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
]">
|
|
4
4
|
<div style="flex:1;" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
5
5
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
6
|
-
<img v-if="model.preLabel" :src="model.preLabel" style="width:
|
|
6
|
+
<img v-if="model.preLabel" :src="model.preLabel" style="width: 1.3em;height: 1.3em;fill: currentColor;
|
|
7
7
|
overflow: hidden;vertical-align: middle;"/>
|
|
8
8
|
{{model.label}}
|
|
9
9
|
</div>
|
|
@@ -77,17 +77,18 @@
|
|
|
77
77
|
}
|
|
78
78
|
.ct-searchcategory .el-input-group__prepend{
|
|
79
79
|
text-align: left;
|
|
80
|
-
|
|
80
|
+
padding-left: 0px!important;
|
|
81
|
+
color: #ee6b6b !important;
|
|
81
82
|
font-weight: Bold;
|
|
82
83
|
text-shadow: 0 2px 2px rgb(121 0 4 / 10%);
|
|
83
|
-
font-size:
|
|
84
|
+
font-size: 16px;
|
|
84
85
|
vertical-align: middle;
|
|
85
86
|
}
|
|
86
87
|
.ct-searchcategory .ct-radios {
|
|
87
88
|
color: #606266;
|
|
88
89
|
border-radius: 4px;
|
|
89
90
|
/*border: 1px solid #dcdfe6;*/
|
|
90
|
-
line-height:
|
|
91
|
+
line-height: 30px;
|
|
91
92
|
padding-left: 15px;
|
|
92
93
|
text-align: right;
|
|
93
94
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="ct-search-list" :style="searchListStyle">
|
|
2
|
+
<div class="ct-search-list" :style="searchListStyle" :class="{'domDisabled':pageDisabled}">
|
|
3
3
|
<div slot="header" class="clearfix" v-if="typeof title !== 'undefined' && showTitle">
|
|
4
4
|
<span style="font-weight:bold">{{title}}</span>
|
|
5
5
|
</div>
|
|
6
6
|
<ct-searchcategory v-if="searchCategoryApi" ref="category" :api="searchCategoryApi" @loadedCategory="categoryLoaded"
|
|
7
7
|
@changeCategory="categorychange" ></ct-searchcategory>
|
|
8
8
|
|
|
9
|
-
<ct-searchscreen ref="screen" :api="searchConditionApi" :key="
|
|
9
|
+
<ct-searchscreen ref="screen" :api="searchConditionApi" :key="reloadKeyScreen"
|
|
10
10
|
@loaded="screenLoaded" :screenPara="screenPara"
|
|
11
11
|
:categoryLoaded="loaded.categoryLoaded" @search="search()"
|
|
12
12
|
@showTitle="showTitleScreenHandler"></ct-searchscreen>
|
|
13
13
|
|
|
14
14
|
<ct-searchtable ref="table" :api="searchDataApi" :searchDataStatisticsApi="searchDataStatisticsApi"
|
|
15
|
-
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="
|
|
15
|
+
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate()"
|
|
16
16
|
@showTitle="showTitleHandler"></ct-searchtable>
|
|
17
17
|
</div>
|
|
18
18
|
</template>
|
|
@@ -69,7 +69,10 @@
|
|
|
69
69
|
showTitle:false,
|
|
70
70
|
screenPara:null,
|
|
71
71
|
reloadKey:0,
|
|
72
|
+
reloadKeyScreen:'s0',
|
|
73
|
+
reloadKeyTable:'t0',
|
|
72
74
|
isReload:false,
|
|
75
|
+
pageDisabled:false,
|
|
73
76
|
}
|
|
74
77
|
},
|
|
75
78
|
methods: {
|
|
@@ -86,15 +89,21 @@
|
|
|
86
89
|
categorychange(param) {
|
|
87
90
|
if(param)this.screenPara=param;
|
|
88
91
|
this.reloadKey = this.reloadKey+1;
|
|
92
|
+
this.reloadKeyScreen='s'+this.reloadKey;
|
|
93
|
+
this.reloadKeyTable='t'+this.reloadKey;
|
|
89
94
|
},
|
|
90
95
|
search(btn) {
|
|
91
96
|
if (this.$refs.table.model) {
|
|
97
|
+
this.pageDisabled=true;
|
|
92
98
|
this.$refs.table.getPage(1);
|
|
93
99
|
}
|
|
94
100
|
else {
|
|
95
101
|
this.$refs.table.searchComplate(this.$refs.screen.model);
|
|
96
102
|
}
|
|
97
103
|
},
|
|
104
|
+
searchComplate() {
|
|
105
|
+
this.pageDisabled=false;
|
|
106
|
+
},
|
|
98
107
|
toolbarClickHandler(field, submitData) {
|
|
99
108
|
if (field.isExport) {
|
|
100
109
|
this.$refs.screen.model.export(field, submitData);
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
</template>
|
|
9
9
|
<component v-for="(col, index) in model.btnScreen" :key="index" :is="col.is" :vmodel="col" :api="model.optionApi" @click="clickHandler(col)"></component>
|
|
10
10
|
</div>
|
|
11
|
-
|
|
12
11
|
<!--<el-row>
|
|
13
12
|
<el-col v-for="(col, index) in model.screen" :key="index" :span="col.colspan" style="padding:10px" v-if="col.show !== false">
|
|
14
13
|
<component :is="col.is" :vmodel="col" :api="model.optionApi" @click="clickHandler(col)"></component>
|
|
@@ -45,11 +44,14 @@
|
|
|
45
44
|
props: {
|
|
46
45
|
api: String,
|
|
47
46
|
vmodel: Object,
|
|
48
|
-
categoryLoaded:
|
|
47
|
+
categoryLoaded:{
|
|
48
|
+
type:Boolean,
|
|
49
|
+
default:true
|
|
50
|
+
},
|
|
49
51
|
screenPara: {
|
|
50
52
|
type: Object,
|
|
51
53
|
default: () => { }
|
|
52
|
-
}
|
|
54
|
+
},
|
|
53
55
|
},
|
|
54
56
|
data() {
|
|
55
57
|
return {
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend field-label-div" :class="[model.labelClass]">
|
|
5
5
|
<span>{{model.label}}</span>
|
|
6
6
|
</div>
|
|
7
|
-
<span>{{showLable==true?model.labelValue1:model.labelValue}}</span>
|
|
8
|
-
<i v-if="model.labelValue" class="el-icon-view" @click="onSensitiveEye($event)"></i>
|
|
7
|
+
<span class="eyelabel">{{showLable==true?model.labelValue1:model.labelValue}}</span>
|
|
8
|
+
<i v-if="model.labelValue" :class="[!showLable?'el-icon-view':'el-icon-eye']" @click="onSensitiveEye($event)"></i>
|
|
9
9
|
</div>
|
|
10
10
|
</div>
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
</template>
|
|
13
|
+
|
|
13
14
|
<script>
|
|
14
15
|
import dynamicElement from '../../mixins/dynamicElement'
|
|
15
16
|
export default {
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
computed: {
|
|
36
|
-
|
|
37
|
+
|
|
37
38
|
},
|
|
38
39
|
methods: {
|
|
39
40
|
onSensitiveEye() {
|
|
@@ -54,8 +55,20 @@
|
|
|
54
55
|
}
|
|
55
56
|
</script>
|
|
56
57
|
<style>
|
|
57
|
-
.el-icon-view {
|
|
58
|
+
.el-icon-view, .el-icon-eye {
|
|
58
59
|
margin-left: 5px;
|
|
59
60
|
font-size: 16px;
|
|
60
61
|
}
|
|
62
|
+
.eyelabel {
|
|
63
|
+
width:80px;
|
|
64
|
+
}
|
|
65
|
+
.el-icon-eye:before {
|
|
66
|
+
background: url("../../../assets/icon-eye.png") no-repeat;
|
|
67
|
+
content: '';
|
|
68
|
+
display: block;
|
|
69
|
+
width: 16px;
|
|
70
|
+
height: 16px;
|
|
71
|
+
font-size: 16px;
|
|
72
|
+
background-size: 16px;
|
|
73
|
+
}
|
|
61
74
|
</style>
|