centaline-data-driven 1.6.44 → 1.6.45
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/.vscode/settings.json +5 -0
- package/build/centaline/centaline.path.js +2 -0
- package/centaline-data-driven-1.6.45.tgz +0 -0
- package/package.json +1 -1
- package/release-log.md +9 -0
- package/src/Detail.vue +2 -2
- package/src/Form.vue +2 -2
- package/src/SearchList.vue +3 -2
- package/src/centaline/css/common.css +28 -2
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +1 -1
- package/src/centaline/dynamicSosNew/index.js +14 -0
- package/src/centaline/dynamicSosNew/src/dynamicSosNew.vue +164 -0
- package/src/centaline/dynamicTagsNew/index.js +13 -0
- package/src/centaline/dynamicTagsNew/src/dynamicTagsNew.vue +336 -0
- package/src/centaline/loader/src/ctl/Form.js +15 -0
- package/src/centaline/loader/src/ctl/SosNew.js +101 -0
- package/src/centaline/loader/src/ctl/TagsNew.js +222 -0
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +10 -4
- package/src/centaline/loader/src/ctl.js +2 -0
- package/src/main.js +4 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +3446 -2465
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -14,10 +14,12 @@ const paths = {
|
|
|
14
14
|
"dynamicMt": "./src/centaline/dynamicMt/index.js", //多行文本组件
|
|
15
15
|
"dynamicSo": "./src/centaline/dynamicSo/index.js", //单选下拉菜单
|
|
16
16
|
"dynamicSos": "./src/centaline/dynamicSos/index.js", //单选搜索下拉菜单
|
|
17
|
+
"dynamicSosNew": "./src/centaline/dynamicSosNew/index.js", //单选搜索下拉菜单
|
|
17
18
|
"dynamicSosTt": "./src/centaline/dynamicSosTt/index.js", //电话号码编辑框
|
|
18
19
|
"dynamicT": "./src/centaline/dynamicT/index.js", //文本input组件
|
|
19
20
|
"dynamicL": "./src/centaline/dynamicL/index.js", //文本label组件
|
|
20
21
|
"dynamicTags": "./src/centaline/dynamicTags/index.js", //多选搜索下拉菜单组件
|
|
22
|
+
"dynamicTagsNew": "./src/centaline/dynamicTagsNew/index.js", //多选搜索下拉菜单组件
|
|
21
23
|
"dynamicForm": "./src/centaline/dynamicForm/index.js", //表单组件
|
|
22
24
|
"dynamicDrop": "./src/centaline/dynamicDrop/index.js", //快捷下拉输入组件
|
|
23
25
|
"dynamicSearchList": "./src/centaline/dynamicSearchList/index.js", //查询表单组件
|
|
Binary file
|
package/package.json
CHANGED
package/release-log.md
CHANGED
package/src/Detail.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="appDetail" style="height:100%;">
|
|
3
3
|
<!-- <ct-Detail :api="'PropertyOFI/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailOFI'"></ct-Detail> -->
|
|
4
|
-
<ct-Detail :api="'
|
|
4
|
+
<ct-Detail :api="'PropertyOFI/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailOFI'"></ct-Detail>
|
|
5
5
|
<!-- <ct-Detail :api="'Estate/readDetailForBrowse'" :apiParam="apiParam" :pageType="'EstateDetail'"></ct-Detail> -->
|
|
6
6
|
<!-- <ct-Detail :api="'EstateBuilding/readDetailForBrowse'" :apiParam="apiParam" :pageType="'EstateBuildingDetail'"></ct-Detail> -->
|
|
7
7
|
<ct-dialog-list></ct-dialog-list>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
return {
|
|
16
16
|
apiParam: {
|
|
17
17
|
actionType: 1,
|
|
18
|
-
chanceID: "
|
|
18
|
+
chanceID: "20227983",
|
|
19
19
|
estateID:'',
|
|
20
20
|
buildingID:'9717',
|
|
21
21
|
} ,
|
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="'/estatemanage/estate/getEstateInfo'" :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
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/UrgentResponsiblePersonList/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/UrgentResponsiblePersonList/getList'"></ct-searchlist> -->
|
|
26
26
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/ProjectCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/ProjectCustomerList/getList'"></ct-searchlist> -->
|
|
27
27
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/MyCustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/MyCustomerList/getList'"></ct-searchlist> -->
|
|
28
|
-
|
|
29
|
-
<ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/customerfollowlist/getLayoutOfSearch'" :searchDataApi="'/customermanage/customerfollowlist/getList'"></ct-searchlist>
|
|
28
|
+
<ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/CustomerList/getLayoutOfSearch'" :searchDataApi="'/customermanage/CustomerList/getList'"></ct-searchlist>
|
|
29
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customermanage/customerfollowlist/getLayoutOfSearch'" :searchDataApi="'/customermanage/customerfollowlist/getList'"></ct-searchlist> -->
|
|
30
30
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
|
|
31
31
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/customerquery/publiccustcalltaskreferrallist/getLayoutOfSearch'" :searchDataApi="'/customerquery/publiccustcalltaskreferrallist/getList'"></ct-searchlist> -->
|
|
32
32
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/salemattersmanage/agentuserlist/getLayoutOfSearch'" :searchDataApi="'/salemattersmanage/agentuserlist/getList'"></ct-searchlist> -->
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/employeelist/getLayoutOfSearch'" :searchDataApi="'/employeelist/getList'"></ct-searchlist> -->
|
|
36
36
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/estatemanage/estatlist/getLayoutOfSearch'" :searchDataApi="'/estatemanage/estatlist/getList'"></ct-searchlist> -->
|
|
37
37
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/system/AreaList/getLayoutOfSearch'" :searchDataApi="'/system/AreaList/getList'"></ct-searchlist> -->
|
|
38
|
+
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/roomtypelist/getLayoutOfSearch'" :searchDataApi="'/roomtypelist/getList'"></ct-searchlist> -->
|
|
38
39
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/selectionactivitymanage/EvaluationActWorksList/getLayoutOfSearch'" :searchDataApi="'/selectionactivitymanage/EvaluationActWorksList/getListOfSearchModel'"></ct-searchlist> -->
|
|
39
40
|
<!-- CCES -->
|
|
40
41
|
|
|
@@ -54,13 +54,31 @@ html {
|
|
|
54
54
|
z-index: 2000;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
.ct-so .el-input__inner {
|
|
58
|
+
padding: 0 30px 0 5px;
|
|
59
|
+
}
|
|
60
|
+
.ct-so .el-select {
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
|
|
57
64
|
.ct-so .ct-input_inner::-webkit-input-placeholder, .ct-so .ct-input_inner::-moz-placeholder,
|
|
58
65
|
.ct-so .ct-input_inner:-ms-input-placeholder, .ct-so .ct-input_inner:hover, .ct-tags .ct-input_inner::-webkit-input-placeholder,
|
|
59
|
-
.ct-tags .ct-input_inner::-moz-placeholder, .ct-tags .ct-input_inner:-ms-input-placeholder, .ct-tags .ct-input_inner:hover
|
|
66
|
+
.ct-tags .ct-input_inner::-moz-placeholder, .ct-tags .ct-input_inner:-ms-input-placeholder, .ct-tags .ct-input_inner:hover,
|
|
67
|
+
.ct-so .el-input__inner:hover {
|
|
60
68
|
color: var(--bagGray);
|
|
61
69
|
}
|
|
62
70
|
|
|
63
|
-
.ct-so:hover .ct-input_inner:hover,
|
|
71
|
+
.ct-so:hover .ct-input_inner:hover,
|
|
72
|
+
.ct-so:hover .ct-input_inner,
|
|
73
|
+
.ct-so.isfocus .ct-input_inner:hover,
|
|
74
|
+
.ct-so.isfocus .ct-input_inner,
|
|
75
|
+
.ct-tags.isfocus .ct-input_inner:hover,
|
|
76
|
+
.ct-tags.isfocus .ct-input_inner,
|
|
77
|
+
.ct-so:hover .el-input__inner:hover,
|
|
78
|
+
.ct-so:hover .el-input__inner,
|
|
79
|
+
.ct-so.isfocus .el-input__inner:hover,
|
|
80
|
+
.ct-so.isfocus .el-input__inner,
|
|
81
|
+
.el-input-group--prepend .el-select .el-input.is-focus .el-input__inner,
|
|
64
82
|
.ct-iti .isfocus{
|
|
65
83
|
border-color: var(--centalineBlue); /*border-color:#c0c4cc*/
|
|
66
84
|
}
|
|
@@ -356,6 +374,7 @@ html {
|
|
|
356
374
|
.spanMessage {
|
|
357
375
|
font-size: 12px;
|
|
358
376
|
padding: 0px 2px;
|
|
377
|
+
line-height: 26px;
|
|
359
378
|
}
|
|
360
379
|
.el-input__icon {
|
|
361
380
|
height:initial;
|
|
@@ -822,6 +841,10 @@ color: var(--centalinePlaceholder);
|
|
|
822
841
|
height: 24px!important;
|
|
823
842
|
line-height: 24px!important;
|
|
824
843
|
}
|
|
844
|
+
.field-top-noimportant .el-input--mini .el-input__inner{
|
|
845
|
+
height: 26px;
|
|
846
|
+
line-height: 26px;
|
|
847
|
+
}
|
|
825
848
|
.el-input--mini .el-input__inner{
|
|
826
849
|
height: 26px;
|
|
827
850
|
line-height: 26px;
|
|
@@ -958,3 +981,6 @@ border-bottom-left-radius: 6px;
|
|
|
958
981
|
font-weight: 800;
|
|
959
982
|
}
|
|
960
983
|
|
|
984
|
+
.h26{
|
|
985
|
+
height: 26px;
|
|
986
|
+
}
|
|
@@ -1714,7 +1714,7 @@ export default {
|
|
|
1714
1714
|
// var fun = self.model.scripts.formData[action];
|
|
1715
1715
|
// fun(submitData,field);
|
|
1716
1716
|
let title = field.pageTitle == undefined ? field.label : field.pageTitle;
|
|
1717
|
-
submitData
|
|
1717
|
+
submitData = field.getActionPara(submitData).para;
|
|
1718
1718
|
var fun = self.$common.getDataDrivenOpts().handler[action];
|
|
1719
1719
|
if (self.isIframe) {
|
|
1720
1720
|
submitData.isIframe = self.isIframe;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import dynamicSosNew from './src/dynamicSosNew';
|
|
2
|
+
import api from '../api/index'
|
|
3
|
+
|
|
4
|
+
dynamicSosNew.install = function (Vue) {
|
|
5
|
+
Vue.component(dynamicSosNew.name, dynamicSosNew);
|
|
6
|
+
|
|
7
|
+
Vue.use(api);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
11
|
+
window.Vue.use(dynamicSosNew);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default dynamicSosNew;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="field-top">
|
|
3
|
+
<div style="width:100%;display:flex">
|
|
4
|
+
<div style="flex:1;" class="ct-so" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-so-'+model.attrs.size:''
|
|
5
|
+
]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
6
|
+
<div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
|
|
7
|
+
<div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
|
|
8
|
+
{{model.label}}
|
|
9
|
+
</div>
|
|
10
|
+
<el-select ref="refselect" :key="model.itemKey" v-model="model.value" :no-data-text="nodatatext"
|
|
11
|
+
:disabled="model.locked" :placeholder="soPlaceholder" :clearable="model.clearable"
|
|
12
|
+
:filter-method="getOptions" :filterable="model.filterable" :multiple="model.multiple"
|
|
13
|
+
@change="soChange" @clear="clearClickHandle" @focus="clickHandle" @visible-change="visibleChange"
|
|
14
|
+
@compositionstart="handleCompositionStart" @compositionend="handleCompositionEnd">
|
|
15
|
+
<el-option v-for="item in model.options" :key="item.value" :label="item.label" :value="item.value">
|
|
16
|
+
<el-tooltip :disabled="!item.toolTip" :content="item.toolTip" placement="right">
|
|
17
|
+
<span v-html="item.displayName || item.name"></span>
|
|
18
|
+
</el-tooltip>
|
|
19
|
+
</el-option>
|
|
20
|
+
</el-select>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
|
|
24
|
+
<transition name="el-fade-in">
|
|
25
|
+
<span v-show="!valid" class="errorMessage">
|
|
26
|
+
{{validMessage}}
|
|
27
|
+
</span>
|
|
28
|
+
</transition>
|
|
29
|
+
<div v-if="!model.lock && model.popupSearchListType === 1">
|
|
30
|
+
<el-button v-if="!model.moreActionBtnName" size="mini" class="h26" type="primary" icon="el-icon-search" @click="popupSearchListHandle"></el-button>
|
|
31
|
+
<el-button v-else size="mini" type="primary" class="h26" @click="popupSearchListHandle">{{model.moreActionBtnName}}</el-button>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
import dynamicElement from '../../mixins/dynamicElement'
|
|
39
|
+
export default {
|
|
40
|
+
name: 'ct-sosNew',
|
|
41
|
+
mixins: [dynamicElement],
|
|
42
|
+
components: {
|
|
43
|
+
},
|
|
44
|
+
props: {
|
|
45
|
+
api: String,
|
|
46
|
+
vmodel: Object,
|
|
47
|
+
popShow: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
focus: false,
|
|
55
|
+
showDrop: false,
|
|
56
|
+
showClear: false,
|
|
57
|
+
nodatatext:' ',
|
|
58
|
+
open:false,
|
|
59
|
+
isComposing: false,
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
created() {
|
|
63
|
+
if (typeof this.vmodel === 'undefined') {
|
|
64
|
+
this.model = this.loaderObj.SosNew(this.source);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
this.model = this.vmodel;
|
|
68
|
+
}
|
|
69
|
+
this.model.$self=this;
|
|
70
|
+
},
|
|
71
|
+
destroyed (){
|
|
72
|
+
this.model = null;
|
|
73
|
+
this.$el = null;
|
|
74
|
+
},
|
|
75
|
+
computed: {
|
|
76
|
+
soPlaceholder: {
|
|
77
|
+
get: function () {
|
|
78
|
+
if (this.model.value !== '') {
|
|
79
|
+
return '';
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
return this.model.attrs.placeholder;
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
set: function (v) {
|
|
86
|
+
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
mounted() {
|
|
91
|
+
},
|
|
92
|
+
methods: {
|
|
93
|
+
getOptions: function (query) {
|
|
94
|
+
if(!this.isComposing){
|
|
95
|
+
this.model.getOptions(this.api, query);
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
handleCompositionStart() {
|
|
99
|
+
this.isComposing = true;
|
|
100
|
+
},
|
|
101
|
+
handleCompositionEnd() {
|
|
102
|
+
this.isComposing = false;
|
|
103
|
+
},
|
|
104
|
+
visibleChange() {
|
|
105
|
+
if (this.model.popupSearchListType === 1){
|
|
106
|
+
this.$refs.refselect.popperElm.hidden = true
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
soChange: function (value) {
|
|
110
|
+
this.inputHandler(this.model.value);
|
|
111
|
+
this.changeHandler(this.model.value);
|
|
112
|
+
if(this.model.autoSearch) this.$emit('click');
|
|
113
|
+
},
|
|
114
|
+
clickHandle: function () {
|
|
115
|
+
if (this.model.lock) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
if (this.model.paramName) {
|
|
119
|
+
this.getOptions();
|
|
120
|
+
}
|
|
121
|
+
else if (this.model.popupSearchListType === 1) {
|
|
122
|
+
this.popupSearchListHandle();
|
|
123
|
+
}
|
|
124
|
+
else if ((this.model.popupSearchListType === 0)) {
|
|
125
|
+
this.$message({
|
|
126
|
+
message: "请配置参数paramName1",
|
|
127
|
+
type: 'warning',
|
|
128
|
+
showClose:true,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
popupSearchListHandle: function () {
|
|
133
|
+
var self = this;
|
|
134
|
+
|
|
135
|
+
self.$emit('popupSearchList', true, self.model, self.model.moreActionRouter, (option) => {
|
|
136
|
+
if (option) {
|
|
137
|
+
self.model.code1 = option.code;
|
|
138
|
+
self.model.name1 = option.name;
|
|
139
|
+
option.value=option.code;
|
|
140
|
+
option.label=self.model.prefix +option.name;
|
|
141
|
+
self.model.options.push(option);
|
|
142
|
+
|
|
143
|
+
self.soChange();
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
},
|
|
147
|
+
clearClickHandle: function (event) {
|
|
148
|
+
this.model.reset();
|
|
149
|
+
this.soChange();
|
|
150
|
+
},
|
|
151
|
+
mouseOverHandle: function () {
|
|
152
|
+
if (this.model.value !== '' && this.model.clearable) {
|
|
153
|
+
this.$set(this, 'showClear', true);
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
mouseOutHandle: function () {
|
|
157
|
+
this.$set(this, 'showClear', false);
|
|
158
|
+
},
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
</script>
|
|
162
|
+
<style>
|
|
163
|
+
|
|
164
|
+
</style>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import dynamicTagsNew from './src/dynamicTagsNew'
|
|
2
|
+
import api from '../api/index'
|
|
3
|
+
|
|
4
|
+
dynamicTagsNew.install = function (Vue) {
|
|
5
|
+
Vue.component(dynamicTagsNew.name, dynamicTagsNew);
|
|
6
|
+
Vue.use(api);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
10
|
+
window.Vue.use(dynamicTagsNew);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default dynamicTagsNew;
|