centaline-data-driven 1.1.55 → 1.1.56
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/.babelrc +12 -12
- package/.editorconfig +9 -9
- package/.gitattributes +63 -63
- package/.postcssrc.js +10 -10
- package/Centaline.Front_End.DataDriven.csproj +37 -37
- package/Centaline.Front_End.DataDriven.sln +25 -25
- package/Properties/launchSettings.json +26 -26
- package/README.md +140 -140
- package/build/build.js +41 -41
- package/build/centaline/centaline.path.js +59 -59
- package/build/centaline/webpack.centaline.conf.js +106 -106
- package/build/check-versions.js +54 -54
- package/build/utils.js +102 -102
- package/build/vue-loader.conf.js +22 -22
- package/build/webpack.base.conf.js +82 -82
- package/build/webpack.dev.conf.js +111 -111
- package/build/webpack.prod.conf.js +145 -145
- package/config/dev.env.js +12 -12
- package/config/index.js +73 -73
- package/config/prod.env.js +4 -4
- package/index.html +14 -14
- package/package.json +75 -75
- package/src/App.vue +10 -10
- package/src/Detail.vue +26 -26
- package/src/Edit.vue +66 -32
- package/src/Form.vue +30 -29
- package/src/SearchList.vue +40 -40
- package/src/SearchTree.vue +55 -51
- package/src/Tabs.vue +19 -19
- package/src/centaline/api/index.js +249 -249
- package/src/centaline/comfirm/index.js +11 -11
- package/src/centaline/comfirm/src/comfirm.vue +44 -44
- package/src/centaline/common/index.js +738 -738
- package/src/centaline/css/common.css +748 -748
- package/src/centaline/css/max.css +207 -207
- package/src/centaline/dialogList/index.js +11 -11
- package/src/centaline/dialogList/src/dialog.vue +210 -210
- package/src/centaline/dialogList/src/dialogList.vue +65 -65
- package/src/centaline/dialogList/src/dialogNew.vue +78 -78
- package/src/centaline/dialogList/src/drag.js +77 -77
- package/src/centaline/directives/index.js +23 -23
- package/src/centaline/dynamicBtn/index.js +11 -11
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +100 -100
- package/src/centaline/dynamicCb/index.js +11 -11
- package/src/centaline/dynamicCb/src/dynamicCb.vue +72 -72
- package/src/centaline/dynamicCheckbox/index.js +11 -11
- package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +128 -128
- package/src/centaline/dynamicComboBoxWithTextBox/index.js +11 -11
- package/src/centaline/dynamicComboBoxWithTextBox/src/dynamicComboBoxWithTextBox.vue +240 -240
- package/src/centaline/dynamicD/index.js +11 -11
- package/src/centaline/dynamicD/src/dynamicD.vue +92 -92
- package/src/centaline/dynamicDetail/index.js +10 -10
- package/src/centaline/dynamicDetail/src/dynamicDetail.vue +40 -40
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +1280 -1280
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +1293 -1293
- package/src/centaline/dynamicDrop/index.js +11 -11
- package/src/centaline/dynamicDrop/src/dynamicDrop.vue +54 -54
- package/src/centaline/dynamicDtd/index.js +11 -11
- package/src/centaline/dynamicDtd/src/dynamicDtd.vue +125 -125
- package/src/centaline/dynamicDtd/src/dynamicDtdOld.vue +93 -93
- package/src/centaline/dynamicFile/index.js +11 -11
- package/src/centaline/dynamicFile/src/dynamicFile.vue +288 -288
- package/src/centaline/dynamicForm/index.js +24 -24
- package/src/centaline/dynamicForm/src/dynamicForm.vue +564 -564
- package/src/centaline/dynamicForm/src/dynamicFormList.vue +209 -209
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +376 -376
- package/src/centaline/dynamicGp/index.js +11 -11
- package/src/centaline/dynamicGp/src/dynamicGp.vue +27 -27
- package/src/centaline/dynamicHyperLink/index.js +11 -11
- package/src/centaline/dynamicHyperLink/src/dynamicHyperLink.vue +54 -54
- package/src/centaline/dynamicInput/index.js +35 -35
- package/src/centaline/dynamicInput/src/dynamicInput.vue +35 -35
- package/src/centaline/dynamicInputNumber/index.js +11 -11
- package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +157 -157
- package/src/centaline/dynamicIti/index.js +11 -11
- package/src/centaline/dynamicIti/src/dynamicIti.vue +148 -148
- package/src/centaline/dynamicL/index.js +11 -11
- package/src/centaline/dynamicL/src/dynamicL.vue +37 -37
- package/src/centaline/dynamicLabel/index.js +11 -11
- package/src/centaline/dynamicLabel/src/dynamicLabel.vue +73 -73
- package/src/centaline/dynamicLs/index.js +22 -22
- package/src/centaline/dynamicLs/src/dynamicLs.vue +233 -233
- package/src/centaline/dynamicMo/index.js +13 -13
- package/src/centaline/dynamicMo/src/dynamicMo.vue +421 -421
- package/src/centaline/dynamicMt/index.js +11 -11
- package/src/centaline/dynamicMt/src/dynamicMt.vue +44 -44
- package/src/centaline/dynamicPlaceHolder/index.js +11 -11
- package/src/centaline/dynamicPlaceHolder/src/dynamicPlaceHolder.vue +29 -29
- package/src/centaline/dynamicPopupSearchList/index.js +11 -11
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +157 -157
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +239 -239
- package/src/centaline/dynamicRichText/index.js +11 -11
- package/src/centaline/dynamicRichText/src/dynamicRichText.vue +33 -33
- package/src/centaline/dynamicSearchList/index.js +11 -11
- package/src/centaline/dynamicSearchList/src/dynamicSearchCategory.vue +121 -121
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +135 -135
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +206 -206
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +1069 -1069
- package/src/centaline/dynamicSearchList/src/dynamicTableStatistics.vue +41 -41
- package/src/centaline/dynamicSearchList/src/dynamicTableTip.vue +46 -46
- package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +61 -61
- package/src/centaline/dynamicSeg/index.js +11 -11
- package/src/centaline/dynamicSeg/src/dynamicSeg.vue +100 -100
- package/src/centaline/dynamicSensitiveEye/index.js +11 -11
- package/src/centaline/dynamicSensitiveEye/src/dynamicSensitiveEye.vue +74 -74
- package/src/centaline/dynamicSo/index.js +14 -14
- package/src/centaline/dynamicSo/src/dynamicSo.vue +328 -328
- package/src/centaline/dynamicSo/src/dynamicSo/345/211/257/346/234/254.vue +69 -69
- package/src/centaline/dynamicSos/index.js +14 -14
- package/src/centaline/dynamicSos/src/dynamicSos - /345/244/215/345/210/266.vue" +223 -223
- package/src/centaline/dynamicSos/src/dynamicSos.vue +260 -260
- package/src/centaline/dynamicSw/index.js +11 -11
- package/src/centaline/dynamicSw/src/dynamicSw.vue +74 -74
- package/src/centaline/dynamicT/index.js +11 -11
- package/src/centaline/dynamicT/src/dynamicT.vue +79 -79
- package/src/centaline/dynamicTab/index.js +11 -11
- package/src/centaline/dynamicTab/src/dynamicTab.vue +49 -49
- package/src/centaline/dynamicTabs/index.js +11 -11
- package/src/centaline/dynamicTabs/src/dynamicTabs.vue +69 -69
- package/src/centaline/dynamicTags/index.js +13 -13
- package/src/centaline/dynamicTags/src/dynamicTags - /345/244/215/345/210/266.vue" +391 -391
- package/src/centaline/dynamicTags/src/dynamicTags.vue +427 -427
- package/src/centaline/dynamicTimeSelect/index.js +11 -11
- package/src/centaline/dynamicTimeSelect/src/dynamicTimeSelect.vue +141 -141
- package/src/centaline/dynamicTree/index.js +11 -11
- package/src/centaline/dynamicTree/src/dynamicSearchTree.vue +66 -66
- package/src/centaline/dynamicTree/src/dynamicTree.vue +233 -233
- package/src/centaline/dynamicTree/src/dynamicTreeList.vue +74 -74
- package/src/centaline/formData/index.js +289 -290
- package/src/centaline/imgPreview/index.js +42 -42
- package/src/centaline/imgPreview/src/imgPreview.vue +26 -26
- package/src/centaline/index.js +51 -51
- package/src/centaline/loader/index.js +157 -157
- package/src/centaline/loader/src/ctl/Base.js +261 -261
- package/src/centaline/loader/src/ctl/Button.js +44 -44
- package/src/centaline/loader/src/ctl/Cb.js +27 -27
- package/src/centaline/loader/src/ctl/Checkbox.js +107 -107
- package/src/centaline/loader/src/ctl/ComboBoxWithTextBox.js +162 -162
- package/src/centaline/loader/src/ctl/D.js +31 -31
- package/src/centaline/loader/src/ctl/Detail.js +175 -175
- package/src/centaline/loader/src/ctl/Dtd.js +115 -115
- package/src/centaline/loader/src/ctl/DtdOld.js +129 -129
- package/src/centaline/loader/src/ctl/File.js +296 -292
- package/src/centaline/loader/src/ctl/Form.js +380 -380
- package/src/centaline/loader/src/ctl/FormList.js +428 -428
- package/src/centaline/loader/src/ctl/GM.js +20 -20
- package/src/centaline/loader/src/ctl/Gp.js +9 -9
- package/src/centaline/loader/src/ctl/Hd.js +13 -13
- package/src/centaline/loader/src/ctl/HyperLink.js +24 -24
- package/src/centaline/loader/src/ctl/InputNumber.js +51 -51
- package/src/centaline/loader/src/ctl/Iti.js +108 -108
- package/src/centaline/loader/src/ctl/L.js +18 -18
- package/src/centaline/loader/src/ctl/Mo.js +183 -183
- package/src/centaline/loader/src/ctl/Mt.js +20 -20
- package/src/centaline/loader/src/ctl/PlaceHolder.js +17 -17
- package/src/centaline/loader/src/ctl/Router.js +273 -273
- package/src/centaline/loader/src/ctl/SearchCategory.js +54 -54
- package/src/centaline/loader/src/ctl/SearchScreen.js +236 -236
- package/src/centaline/loader/src/ctl/SearchTable.js +772 -772
- package/src/centaline/loader/src/ctl/Seg.js +37 -37
- package/src/centaline/loader/src/ctl/SensitiveEye.js +65 -65
- package/src/centaline/loader/src/ctl/So.js +117 -117
- package/src/centaline/loader/src/ctl/Sos.js +128 -128
- package/src/centaline/loader/src/ctl/Sw.js +27 -27
- package/src/centaline/loader/src/ctl/T.js +65 -65
- package/src/centaline/loader/src/ctl/Tabs.js +57 -57
- package/src/centaline/loader/src/ctl/Tags.js +191 -191
- package/src/centaline/loader/src/ctl/TimeSelect.js +87 -87
- package/src/centaline/loader/src/ctl/Tree.js +151 -151
- package/src/centaline/loader/src/ctl/Ttts.js +78 -78
- package/src/centaline/loader/src/ctl/lib/Enum.js +563 -563
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +364 -364
- package/src/centaline/loader/src/ctl.js +36 -36
- package/src/centaline/mixins/dynamicElement.js +151 -151
- package/src/centaline/mixins/dynamicSelect.js +84 -84
- package/src/centaline/mixins/emitter.js +33 -33
- package/src/centaline/progress/index.js +11 -11
- package/src/centaline/progress/src/progress.vue +70 -70
- package/src/centaline/quickInput/src/quickInput.vue +64 -64
- package/src/centaline/selectOption/src/selectOption.vue +61 -61
- package/src/centaline/selectOption/src/selectOptionVertical.vue +80 -80
- package/src/centaline/templateControls/index.js +17 -17
- package/src/centaline/templateControls/src/dynamicTableA.vue +20 -20
- package/src/centaline/templateControls/src/dynamicTableCurrency.vue +62 -62
- package/src/centaline/templateControls/src/dynamicTableImg.vue +25 -25
- package/src/centaline/templates/index.js +34 -34
- package/src/centaline/templates/src/ContractSearch.js +67 -67
- package/src/centaline/templates/src/test.js +44 -44
- package/src/centaline/validate/index.js +332 -332
- package/src/main.js +47 -46
- package/src/router/index.js +44 -44
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="width:100%;display:flex" v-if="model !== null" class="ct-searchcategory" :class="[model.attrs.size?'ct-searchcategory-'+model.attrs.size:''
|
|
3
|
-
]">
|
|
4
|
-
<div style="flex:1;" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
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: 1.3em;height: 1.3em;fill: currentColor;
|
|
7
|
-
overflow: hidden;vertical-align: middle;"/>
|
|
8
|
-
{{model.label}}
|
|
9
|
-
</div>
|
|
10
|
-
<div class="ct-radios" :class="[model.showLabel?'showLabel':'',model.value !== ''?'hasValue':'']">
|
|
11
|
-
<el-radio-group v-model="model.value" @change="changeHandler1($event)">
|
|
12
|
-
<el-radio-button v-bind="model.attrs" v-for="(value, index) in model.segmentValue" :key="index" v-model="model.value"
|
|
13
|
-
:label="value[model.optionAttrs.value]" :displayLabel="value[model.optionAttrs.displayLabel]" :disabled="model.lock">
|
|
14
|
-
{{value[model.optionAttrs.label]}}
|
|
15
|
-
</el-radio-button >
|
|
16
|
-
</el-radio-group>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<span v-show="!valid" class="errorMessage">
|
|
20
|
-
{{validMessage}}
|
|
21
|
-
</span>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
<script>
|
|
25
|
-
import dynamicElement from '../../mixins/dynamicElement';
|
|
26
|
-
export default {
|
|
27
|
-
name: 'ct-searchcategory',
|
|
28
|
-
mixins: [dynamicElement],
|
|
29
|
-
props: {
|
|
30
|
-
vmodel: Object,
|
|
31
|
-
api: String
|
|
32
|
-
},
|
|
33
|
-
data() {
|
|
34
|
-
return {
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
mounted() {
|
|
38
|
-
var self = this;
|
|
39
|
-
this.$nextTick(function () {
|
|
40
|
-
if (self.vmodel) {
|
|
41
|
-
self.load(self.vmodel);
|
|
42
|
-
}
|
|
43
|
-
else if (typeof self.source !== 'undefined') {
|
|
44
|
-
self.loaderObj.SearchCategory(self.source,self.load);
|
|
45
|
-
}
|
|
46
|
-
else if (typeof self.api !== 'undefined') {
|
|
47
|
-
self.loaderObj.SearchCategory(self.api, self.load);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
},
|
|
51
|
-
methods: {
|
|
52
|
-
load(data) {
|
|
53
|
-
this.model = data;
|
|
54
|
-
let parm={};
|
|
55
|
-
parm[this.model.id]=this.model.value;
|
|
56
|
-
this.$emit('loadedCategory',parm);
|
|
57
|
-
},
|
|
58
|
-
clearClickHandle: function (event) {
|
|
59
|
-
this.model.value = '';
|
|
60
|
-
this.inputHandler(this.model.value);
|
|
61
|
-
this.changeHandler(this.model.value);
|
|
62
|
-
},
|
|
63
|
-
changeHandler1: function (event) {
|
|
64
|
-
var self=this;
|
|
65
|
-
this.model.segmentValue.forEach((v, i) => {
|
|
66
|
-
if(v[self.model.optionAttrs.value]==event && v[self.model.optionAttrs.displayLabel]){
|
|
67
|
-
self.model.label=v[self.model.optionAttrs.displayLabel];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
this.inputHandler(this.model.value);
|
|
71
|
-
this.changeHandler(this.model.value);
|
|
72
|
-
let parm={};
|
|
73
|
-
parm[this.model.id]=this.model.value;
|
|
74
|
-
this.$emit('changeCategory',parm);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
</script>
|
|
79
|
-
<style>
|
|
80
|
-
.ct-searchcategory {
|
|
81
|
-
margin-bottom: 10px;
|
|
82
|
-
line-height: 30px;
|
|
83
|
-
}
|
|
84
|
-
.ct-searchcategory .el-input-group__prepend{
|
|
85
|
-
text-align: left;
|
|
86
|
-
padding-left: 0px!important;
|
|
87
|
-
color: #ee6b6b !important;
|
|
88
|
-
font-weight: Bold;
|
|
89
|
-
text-shadow: 0 2px 2px rgb(121 0 4 / 10%);
|
|
90
|
-
font-size: 16px;
|
|
91
|
-
vertical-align: middle;
|
|
92
|
-
}
|
|
93
|
-
.ct-searchcategory .ct-radios {
|
|
94
|
-
color: #606266;
|
|
95
|
-
border-radius: 4px;
|
|
96
|
-
/*border: 1px solid #dcdfe6;*/
|
|
97
|
-
line-height: 30px;
|
|
98
|
-
padding-left: 15px;
|
|
99
|
-
text-align: right;
|
|
100
|
-
}
|
|
101
|
-
.ct-searchcategory .ct-radios:hover {
|
|
102
|
-
border-color: #c0c4cc;
|
|
103
|
-
}
|
|
104
|
-
.ct-searchcategory .ct-radios .el-radio {
|
|
105
|
-
margin-left: 0px;
|
|
106
|
-
margin-right: 10px;
|
|
107
|
-
}
|
|
108
|
-
.ct-searchcategory .ct-radios .ct-Seg-label {
|
|
109
|
-
margin-right: 15px;
|
|
110
|
-
}
|
|
111
|
-
.ct-searchcategory .el-radio-button__orig-radio:checked+.el-radio-button__inner {
|
|
112
|
-
color: #FFF;
|
|
113
|
-
background-color: #EE6B6B;
|
|
114
|
-
border-color: #EE6B6B;
|
|
115
|
-
-webkit-box-shadow: -1px 0 0 0 #EE6B6B;
|
|
116
|
-
box-shadow: -1px 0 0 0 #EE6B6B;
|
|
117
|
-
}
|
|
118
|
-
.ct-searchcategory .el-radio-button__inner:hover {
|
|
119
|
-
color: #EE6B6B;
|
|
120
|
-
}
|
|
121
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="width:100%;display:flex" v-if="model !== null" class="ct-searchcategory" :class="[model.attrs.size?'ct-searchcategory-'+model.attrs.size:''
|
|
3
|
+
]">
|
|
4
|
+
<div style="flex:1;" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
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: 1.3em;height: 1.3em;fill: currentColor;
|
|
7
|
+
overflow: hidden;vertical-align: middle;"/>
|
|
8
|
+
{{model.label}}
|
|
9
|
+
</div>
|
|
10
|
+
<div class="ct-radios" :class="[model.showLabel?'showLabel':'',model.value !== ''?'hasValue':'']">
|
|
11
|
+
<el-radio-group v-model="model.value" @change="changeHandler1($event)">
|
|
12
|
+
<el-radio-button v-bind="model.attrs" v-for="(value, index) in model.segmentValue" :key="index" v-model="model.value"
|
|
13
|
+
:label="value[model.optionAttrs.value]" :displayLabel="value[model.optionAttrs.displayLabel]" :disabled="model.lock">
|
|
14
|
+
{{value[model.optionAttrs.label]}}
|
|
15
|
+
</el-radio-button >
|
|
16
|
+
</el-radio-group>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<span v-show="!valid" class="errorMessage">
|
|
20
|
+
{{validMessage}}
|
|
21
|
+
</span>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
<script>
|
|
25
|
+
import dynamicElement from '../../mixins/dynamicElement';
|
|
26
|
+
export default {
|
|
27
|
+
name: 'ct-searchcategory',
|
|
28
|
+
mixins: [dynamicElement],
|
|
29
|
+
props: {
|
|
30
|
+
vmodel: Object,
|
|
31
|
+
api: String
|
|
32
|
+
},
|
|
33
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
mounted() {
|
|
38
|
+
var self = this;
|
|
39
|
+
this.$nextTick(function () {
|
|
40
|
+
if (self.vmodel) {
|
|
41
|
+
self.load(self.vmodel);
|
|
42
|
+
}
|
|
43
|
+
else if (typeof self.source !== 'undefined') {
|
|
44
|
+
self.loaderObj.SearchCategory(self.source,self.load);
|
|
45
|
+
}
|
|
46
|
+
else if (typeof self.api !== 'undefined') {
|
|
47
|
+
self.loaderObj.SearchCategory(self.api, self.load);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
load(data) {
|
|
53
|
+
this.model = data;
|
|
54
|
+
let parm={};
|
|
55
|
+
parm[this.model.id]=this.model.value;
|
|
56
|
+
this.$emit('loadedCategory',parm);
|
|
57
|
+
},
|
|
58
|
+
clearClickHandle: function (event) {
|
|
59
|
+
this.model.value = '';
|
|
60
|
+
this.inputHandler(this.model.value);
|
|
61
|
+
this.changeHandler(this.model.value);
|
|
62
|
+
},
|
|
63
|
+
changeHandler1: function (event) {
|
|
64
|
+
var self=this;
|
|
65
|
+
this.model.segmentValue.forEach((v, i) => {
|
|
66
|
+
if(v[self.model.optionAttrs.value]==event && v[self.model.optionAttrs.displayLabel]){
|
|
67
|
+
self.model.label=v[self.model.optionAttrs.displayLabel];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
this.inputHandler(this.model.value);
|
|
71
|
+
this.changeHandler(this.model.value);
|
|
72
|
+
let parm={};
|
|
73
|
+
parm[this.model.id]=this.model.value;
|
|
74
|
+
this.$emit('changeCategory',parm);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
</script>
|
|
79
|
+
<style>
|
|
80
|
+
.ct-searchcategory {
|
|
81
|
+
margin-bottom: 10px;
|
|
82
|
+
line-height: 30px;
|
|
83
|
+
}
|
|
84
|
+
.ct-searchcategory .el-input-group__prepend{
|
|
85
|
+
text-align: left;
|
|
86
|
+
padding-left: 0px!important;
|
|
87
|
+
color: #ee6b6b !important;
|
|
88
|
+
font-weight: Bold;
|
|
89
|
+
text-shadow: 0 2px 2px rgb(121 0 4 / 10%);
|
|
90
|
+
font-size: 16px;
|
|
91
|
+
vertical-align: middle;
|
|
92
|
+
}
|
|
93
|
+
.ct-searchcategory .ct-radios {
|
|
94
|
+
color: #606266;
|
|
95
|
+
border-radius: 4px;
|
|
96
|
+
/*border: 1px solid #dcdfe6;*/
|
|
97
|
+
line-height: 30px;
|
|
98
|
+
padding-left: 15px;
|
|
99
|
+
text-align: right;
|
|
100
|
+
}
|
|
101
|
+
.ct-searchcategory .ct-radios:hover {
|
|
102
|
+
border-color: #c0c4cc;
|
|
103
|
+
}
|
|
104
|
+
.ct-searchcategory .ct-radios .el-radio {
|
|
105
|
+
margin-left: 0px;
|
|
106
|
+
margin-right: 10px;
|
|
107
|
+
}
|
|
108
|
+
.ct-searchcategory .ct-radios .ct-Seg-label {
|
|
109
|
+
margin-right: 15px;
|
|
110
|
+
}
|
|
111
|
+
.ct-searchcategory .el-radio-button__orig-radio:checked+.el-radio-button__inner {
|
|
112
|
+
color: #FFF;
|
|
113
|
+
background-color: #EE6B6B;
|
|
114
|
+
border-color: #EE6B6B;
|
|
115
|
+
-webkit-box-shadow: -1px 0 0 0 #EE6B6B;
|
|
116
|
+
box-shadow: -1px 0 0 0 #EE6B6B;
|
|
117
|
+
}
|
|
118
|
+
.ct-searchcategory .el-radio-button__inner:hover {
|
|
119
|
+
color: #EE6B6B;
|
|
120
|
+
}
|
|
121
|
+
</style>
|
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ct-search-list" :style="searchListStyle" :class="{'domDisabled':pageDisabled}">
|
|
3
|
-
<div slot="header" class="clearfix" v-if="typeof title !== 'undefined' && showTitle">
|
|
4
|
-
<span style="font-weight:bold">{{title}}</span>
|
|
5
|
-
</div>
|
|
6
|
-
<ct-searchcategory v-if="searchCategoryApi" ref="category" :api="searchCategoryApi" @loadedCategory="categoryLoaded"
|
|
7
|
-
@changeCategory="categorychange" ></ct-searchcategory>
|
|
8
|
-
|
|
9
|
-
<ct-searchscreen ref="screen" :api="searchConditionApi" :key="reloadKeyScreen"
|
|
10
|
-
@loaded="screenLoaded" :screenPara="screenPara"
|
|
11
|
-
:categoryLoaded="loaded.categoryLoaded" @search="search()"
|
|
12
|
-
@showTitle="showTitleScreenHandler"></ct-searchscreen>
|
|
13
|
-
|
|
14
|
-
<ct-searchtable ref="table" :api="searchDataApi" :searchDataStatisticsApi="searchDataStatisticsApi"
|
|
15
|
-
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate()"
|
|
16
|
-
@showTitle="showTitleHandler"></ct-searchtable>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
<script>
|
|
20
|
-
import dynamicElement from '../../mixins/dynamicElement';
|
|
21
|
-
import dynamicSearchCategory from './dynamicSearchCategory.vue';
|
|
22
|
-
import dynamicSearchScreen from './dynamicSearchScreen.vue';
|
|
23
|
-
import dynamicSearchTable from './dynamicSearchTable.vue';
|
|
24
|
-
import progress from '../../progress/src/progress.vue';
|
|
25
|
-
export default {
|
|
26
|
-
name: 'ct-searchlist',
|
|
27
|
-
mixins: [dynamicElement],
|
|
28
|
-
components: {
|
|
29
|
-
'ct-searchscreen': dynamicSearchScreen,
|
|
30
|
-
'ct-searchtable': dynamicSearchTable,
|
|
31
|
-
'ct-progress': progress,
|
|
32
|
-
'ct-searchcategory': dynamicSearchCategory
|
|
33
|
-
},
|
|
34
|
-
props: {
|
|
35
|
-
vmodel: Object,
|
|
36
|
-
searchCategoryApi: String,
|
|
37
|
-
searchConditionApi: String,
|
|
38
|
-
searchDataApi: String,
|
|
39
|
-
searchDataStatisticsApi: String,
|
|
40
|
-
pageHeight: String,
|
|
41
|
-
apiParam: {
|
|
42
|
-
type: Object,
|
|
43
|
-
default: () => { }
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
created() {
|
|
47
|
-
this.model = this.vmodel;
|
|
48
|
-
this.screenPara=this.apiParam;
|
|
49
|
-
if(this.searchCategoryApi){
|
|
50
|
-
this.loaded.categoryLoaded=false;
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
computed: {
|
|
54
|
-
searchListStyle: function() {
|
|
55
|
-
if (this.pageHeight) {
|
|
56
|
-
return { 'height': this.pageHeight };
|
|
57
|
-
}
|
|
58
|
-
return {};
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
data() {
|
|
62
|
-
return {
|
|
63
|
-
loaded: {
|
|
64
|
-
screenLoaded: false,
|
|
65
|
-
tableLoaded: false,
|
|
66
|
-
categoryLoaded: true,
|
|
67
|
-
},
|
|
68
|
-
title:'',
|
|
69
|
-
showTitle:false,
|
|
70
|
-
screenPara:null,
|
|
71
|
-
reloadKey:0,
|
|
72
|
-
reloadKeyScreen:'s0',
|
|
73
|
-
reloadKeyTable:'t0',
|
|
74
|
-
isReload:false,
|
|
75
|
-
pageDisabled:false,
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
methods: {
|
|
79
|
-
screenLoaded(defaultSearch) {
|
|
80
|
-
this.loaded.screenLoaded = true;
|
|
81
|
-
this.$refs.table.searchComplate(this.$refs.screen.model, defaultSearch);
|
|
82
|
-
this.$emit('loaded', this.$refs.screen.model);
|
|
83
|
-
},
|
|
84
|
-
categoryLoaded(param) {
|
|
85
|
-
this.loaded.categoryLoaded = true;
|
|
86
|
-
if(param)this.screenPara=param;
|
|
87
|
-
this.$refs.screen.searchComplate();
|
|
88
|
-
},
|
|
89
|
-
categorychange(param) {
|
|
90
|
-
if(param)this.screenPara=param;
|
|
91
|
-
this.reloadKey = this.reloadKey+1;
|
|
92
|
-
this.reloadKeyScreen='s'+this.reloadKey;
|
|
93
|
-
this.reloadKeyTable='t'+this.reloadKey;
|
|
94
|
-
},
|
|
95
|
-
search(btn) {
|
|
96
|
-
if (this.$refs.table.model) {
|
|
97
|
-
this.pageDisabled=true;
|
|
98
|
-
this.$refs.table.getPage(1);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
this.$refs.table.searchComplate(this.$refs.screen.model);
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
searchComplate() {
|
|
105
|
-
this.pageDisabled=false;
|
|
106
|
-
},
|
|
107
|
-
toolbarClickHandler(field, submitData) {
|
|
108
|
-
if (field.isExport) {
|
|
109
|
-
this.$refs.screen.model.export(field, submitData);
|
|
110
|
-
}
|
|
111
|
-
else if (field.isRefreshParent) {
|
|
112
|
-
this.isRefreshParent();
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
refreshParentHandler() {
|
|
116
|
-
this.$emit('refreshParent');
|
|
117
|
-
},
|
|
118
|
-
resize() {
|
|
119
|
-
this.$refs.table.setTableHeight();
|
|
120
|
-
},
|
|
121
|
-
showTitleHandler() {
|
|
122
|
-
if (this.$refs.table.model && this.$refs.table.model.flagShowTitle) {
|
|
123
|
-
this.title=this.$refs.table.model.title;
|
|
124
|
-
this.showTitle=this.$refs.table.model.flagShowTitle;
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
showTitleScreenHandler() {
|
|
128
|
-
if (this.$refs.screen.model && this.$refs.screen.model.flagShowTitle) {
|
|
129
|
-
this.title=this.$refs.screen.model.title;
|
|
130
|
-
this.showTitle=this.$refs.screen.model.flagShowTitle;
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ct-search-list" :style="searchListStyle" :class="{'domDisabled':pageDisabled}">
|
|
3
|
+
<div slot="header" class="clearfix" v-if="typeof title !== 'undefined' && showTitle">
|
|
4
|
+
<span style="font-weight:bold">{{title}}</span>
|
|
5
|
+
</div>
|
|
6
|
+
<ct-searchcategory v-if="searchCategoryApi" ref="category" :api="searchCategoryApi" @loadedCategory="categoryLoaded"
|
|
7
|
+
@changeCategory="categorychange" ></ct-searchcategory>
|
|
8
|
+
|
|
9
|
+
<ct-searchscreen ref="screen" :api="searchConditionApi" :key="reloadKeyScreen"
|
|
10
|
+
@loaded="screenLoaded" :screenPara="screenPara"
|
|
11
|
+
:categoryLoaded="loaded.categoryLoaded" @search="search()"
|
|
12
|
+
@showTitle="showTitleScreenHandler"></ct-searchscreen>
|
|
13
|
+
|
|
14
|
+
<ct-searchtable ref="table" :api="searchDataApi" :searchDataStatisticsApi="searchDataStatisticsApi"
|
|
15
|
+
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate()"
|
|
16
|
+
@showTitle="showTitleHandler"></ct-searchtable>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
<script>
|
|
20
|
+
import dynamicElement from '../../mixins/dynamicElement';
|
|
21
|
+
import dynamicSearchCategory from './dynamicSearchCategory.vue';
|
|
22
|
+
import dynamicSearchScreen from './dynamicSearchScreen.vue';
|
|
23
|
+
import dynamicSearchTable from './dynamicSearchTable.vue';
|
|
24
|
+
import progress from '../../progress/src/progress.vue';
|
|
25
|
+
export default {
|
|
26
|
+
name: 'ct-searchlist',
|
|
27
|
+
mixins: [dynamicElement],
|
|
28
|
+
components: {
|
|
29
|
+
'ct-searchscreen': dynamicSearchScreen,
|
|
30
|
+
'ct-searchtable': dynamicSearchTable,
|
|
31
|
+
'ct-progress': progress,
|
|
32
|
+
'ct-searchcategory': dynamicSearchCategory
|
|
33
|
+
},
|
|
34
|
+
props: {
|
|
35
|
+
vmodel: Object,
|
|
36
|
+
searchCategoryApi: String,
|
|
37
|
+
searchConditionApi: String,
|
|
38
|
+
searchDataApi: String,
|
|
39
|
+
searchDataStatisticsApi: String,
|
|
40
|
+
pageHeight: String,
|
|
41
|
+
apiParam: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default: () => { }
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
created() {
|
|
47
|
+
this.model = this.vmodel;
|
|
48
|
+
this.screenPara=this.apiParam;
|
|
49
|
+
if(this.searchCategoryApi){
|
|
50
|
+
this.loaded.categoryLoaded=false;
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
computed: {
|
|
54
|
+
searchListStyle: function() {
|
|
55
|
+
if (this.pageHeight) {
|
|
56
|
+
return { 'height': this.pageHeight };
|
|
57
|
+
}
|
|
58
|
+
return {};
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
data() {
|
|
62
|
+
return {
|
|
63
|
+
loaded: {
|
|
64
|
+
screenLoaded: false,
|
|
65
|
+
tableLoaded: false,
|
|
66
|
+
categoryLoaded: true,
|
|
67
|
+
},
|
|
68
|
+
title:'',
|
|
69
|
+
showTitle:false,
|
|
70
|
+
screenPara:null,
|
|
71
|
+
reloadKey:0,
|
|
72
|
+
reloadKeyScreen:'s0',
|
|
73
|
+
reloadKeyTable:'t0',
|
|
74
|
+
isReload:false,
|
|
75
|
+
pageDisabled:false,
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
methods: {
|
|
79
|
+
screenLoaded(defaultSearch) {
|
|
80
|
+
this.loaded.screenLoaded = true;
|
|
81
|
+
this.$refs.table.searchComplate(this.$refs.screen.model, defaultSearch);
|
|
82
|
+
this.$emit('loaded', this.$refs.screen.model);
|
|
83
|
+
},
|
|
84
|
+
categoryLoaded(param) {
|
|
85
|
+
this.loaded.categoryLoaded = true;
|
|
86
|
+
if(param)this.screenPara=param;
|
|
87
|
+
this.$refs.screen.searchComplate();
|
|
88
|
+
},
|
|
89
|
+
categorychange(param) {
|
|
90
|
+
if(param)this.screenPara=param;
|
|
91
|
+
this.reloadKey = this.reloadKey+1;
|
|
92
|
+
this.reloadKeyScreen='s'+this.reloadKey;
|
|
93
|
+
this.reloadKeyTable='t'+this.reloadKey;
|
|
94
|
+
},
|
|
95
|
+
search(btn) {
|
|
96
|
+
if (this.$refs.table.model) {
|
|
97
|
+
this.pageDisabled=true;
|
|
98
|
+
this.$refs.table.getPage(1);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
this.$refs.table.searchComplate(this.$refs.screen.model);
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
searchComplate() {
|
|
105
|
+
this.pageDisabled=false;
|
|
106
|
+
},
|
|
107
|
+
toolbarClickHandler(field, submitData) {
|
|
108
|
+
if (field.isExport) {
|
|
109
|
+
this.$refs.screen.model.export(field, submitData);
|
|
110
|
+
}
|
|
111
|
+
else if (field.isRefreshParent) {
|
|
112
|
+
this.isRefreshParent();
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
refreshParentHandler() {
|
|
116
|
+
this.$emit('refreshParent');
|
|
117
|
+
},
|
|
118
|
+
resize() {
|
|
119
|
+
this.$refs.table.setTableHeight();
|
|
120
|
+
},
|
|
121
|
+
showTitleHandler() {
|
|
122
|
+
if (this.$refs.table.model && this.$refs.table.model.flagShowTitle) {
|
|
123
|
+
this.title=this.$refs.table.model.title;
|
|
124
|
+
this.showTitle=this.$refs.table.model.flagShowTitle;
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
showTitleScreenHandler() {
|
|
128
|
+
if (this.$refs.screen.model && this.$refs.screen.model.flagShowTitle) {
|
|
129
|
+
this.title=this.$refs.screen.model.title;
|
|
130
|
+
this.showTitle=this.$refs.screen.model.flagShowTitle;
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
</script>
|