centaline-data-driven 1.3.44 → 1.3.47
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/src/Detail.vue +1 -1
- package/src/Form.vue +2 -2
- package/src/SearchList.vue +4 -4
- package/src/centaline/css/max.css +5 -1
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +11 -0
- package/src/centaline/dynamicContact/src/dynamicContact.vue +7 -5
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +10 -4
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +1 -5
- package/src/centaline/dynamicFile/src/dynamicFile.vue +1 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +10 -6
- package/src/centaline/dynamicLayout/src/dynamicLayout.vue +2 -5
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildren.vue +2 -3
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildrenFor.vue +2 -2
- package/src/centaline/dynamicLayout/src/dynamicLayoutImage.vue +13 -4
- package/src/centaline/dynamicRepeat/src/dynamicRepeat.vue +1 -3
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +27 -44
- package/src/centaline/loader/src/ctl/File.js +3 -0
- package/src/centaline/loader/src/ctl/Mo.js +2 -1
- package/src/centaline/loader/src/ctl/Router.js +3 -3
- package/src/centaline/loader/src/ctl/So.js +2 -1
- package/src/centaline/selectOption/src/selectOptionVertical.vue +3 -1
- package/src/main.js +4 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Detail.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="appDetail" style="height:100%;">
|
|
3
|
-
<ct-Detail :api="'
|
|
3
|
+
<ct-Detail :api="'PropertyRET/readDetailForBrowse'" :apiParam="apiParam" :pageType="'PropertyDetailRET'"></ct-Detail>
|
|
4
4
|
<ct-dialog-list></ct-dialog-list>
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
package/src/Form.vue
CHANGED
package/src/SearchList.vue
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
:searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
|
|
9
9
|
:searchDataApi="'/ProfileWorklistList/getListOfSearchModel'" :apiParam="para"></ct-searchlist> -->
|
|
10
10
|
|
|
11
|
-
<ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'"
|
|
11
|
+
<!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'"
|
|
12
12
|
:searchDataApi="'/api/third-dept-tran/tran-list'">
|
|
13
|
-
</ct-searchlist>
|
|
13
|
+
</ct-searchlist> -->
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
<ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
|
16
16
|
:searchDataApi="'/PropertyRETList/getListOfSearchModel'"
|
|
17
17
|
:searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
|
|
18
18
|
:searchStatsApi="'/exampleList/getListStats'">
|
|
19
|
-
</ct-searchlist>
|
|
19
|
+
</ct-searchlist>
|
|
20
20
|
|
|
21
21
|
<ct-dialog-list></ct-dialog-list>
|
|
22
22
|
</div>
|
|
@@ -153,6 +153,7 @@
|
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
callTelClick(data){
|
|
156
|
+
var self=this;
|
|
156
157
|
this.message='';
|
|
157
158
|
this.qrCode='';
|
|
158
159
|
this.tellImgUrl='';
|
|
@@ -169,6 +170,16 @@
|
|
|
169
170
|
if(data.content.height)this.height=data.content.height;
|
|
170
171
|
if(data.content.imgUrl)this.tellImgUrl=data.content.imgUrl;
|
|
171
172
|
}
|
|
173
|
+
else if(data.content.actionType=='提示确认'){
|
|
174
|
+
this.$common.confirm(data.content.message, data.content.actionType, {
|
|
175
|
+
confirmButtonText: '确定',
|
|
176
|
+
cancelButtonText: '取消',
|
|
177
|
+
center: true
|
|
178
|
+
}).then(() => {
|
|
179
|
+
self.$emit('click',self.model,self.rowData,self.rowindex,true);
|
|
180
|
+
}).catch(() => {
|
|
181
|
+
});
|
|
182
|
+
}
|
|
172
183
|
},
|
|
173
184
|
closeCallTel(){
|
|
174
185
|
if(this.model.isCallTel){
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<div ref="routers" style="margin-right: 5px;" id="routersWidth">
|
|
25
25
|
<component v-for="(router, index) in model.rowRouter" :key="index" :ref="'router' + router.id"
|
|
26
26
|
v-if="!router.rightField || model.listData[model.value][router.rightField] == 1" :is="router.is"
|
|
27
|
-
:vmodel="router" :api="model.optionApi" @click="fieldClickHandler
|
|
27
|
+
:vmodel="router" :api="model.optionApi" @click="fieldClickHandler">
|
|
28
28
|
</component>
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
@@ -97,7 +97,6 @@ export default {
|
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
},
|
|
100
|
-
|
|
101
100
|
focusHandle: function () {
|
|
102
101
|
this.$refs['ct-input'].focus();
|
|
103
102
|
this.$set(this, 'focus', true);
|
|
@@ -150,7 +149,7 @@ export default {
|
|
|
150
149
|
this.changeHandler(self.model.value);
|
|
151
150
|
if (this.model.autoSearch) this.$emit('click');
|
|
152
151
|
},
|
|
153
|
-
fieldClickHandler(field) {
|
|
152
|
+
fieldClickHandler(field, rowData,rowindex,flagHaveAlert) {
|
|
154
153
|
var self = this;
|
|
155
154
|
let submitData = {};
|
|
156
155
|
var router = this.model.buttons.find((v) => {
|
|
@@ -185,6 +184,9 @@ export default {
|
|
|
185
184
|
});
|
|
186
185
|
}
|
|
187
186
|
}
|
|
187
|
+
if(field.isCallTel){
|
|
188
|
+
submitData.flagHaveAlert=flagHaveAlert||false;
|
|
189
|
+
}
|
|
188
190
|
|
|
189
191
|
this.routerClickHandler(router, submitData);
|
|
190
192
|
},
|
|
@@ -278,10 +280,10 @@ export default {
|
|
|
278
280
|
if (callBack) {
|
|
279
281
|
callBack();
|
|
280
282
|
}
|
|
281
|
-
if
|
|
283
|
+
if(field.isRefersh){
|
|
282
284
|
self.loaderObj.Contact(data, null, self.load);
|
|
283
285
|
}
|
|
284
|
-
else if (field.
|
|
286
|
+
else if (field.isCallTel){
|
|
285
287
|
self.$refs['router' + field.id][0].callTelClick(data);
|
|
286
288
|
}
|
|
287
289
|
})
|
|
@@ -268,12 +268,15 @@
|
|
|
268
268
|
|
|
269
269
|
return true;
|
|
270
270
|
},
|
|
271
|
-
rolRouterClickHandler(field, rowData,rowindex) {
|
|
271
|
+
rolRouterClickHandler(field, rowData,rowindex,flagHaveAlert) {
|
|
272
272
|
field.rowindex=rowindex;
|
|
273
273
|
var submitData = {};
|
|
274
274
|
field.submitListField.forEach((k) => {
|
|
275
275
|
submitData[k] = rowData[k];
|
|
276
276
|
});
|
|
277
|
+
if(field.isCallTel){
|
|
278
|
+
submitData.flagHaveAlert=flagHaveAlert||false;
|
|
279
|
+
}
|
|
277
280
|
this.routerClickHandler(field, submitData, null);
|
|
278
281
|
},
|
|
279
282
|
fieldClickHandler(field) {
|
|
@@ -407,23 +410,26 @@
|
|
|
407
410
|
}
|
|
408
411
|
else{
|
|
409
412
|
field.doAction(submitData, (data) => {
|
|
410
|
-
self.model.doAction(data,field);
|
|
411
413
|
if(callBack){
|
|
412
414
|
callBack();
|
|
413
415
|
}
|
|
414
|
-
if(field.
|
|
416
|
+
if(field.isRefersh){
|
|
415
417
|
data.apiRouter=self.model.apiRouter;
|
|
416
418
|
data.rowMergedColumns=self.model.rowMergedColumns;
|
|
417
419
|
self.loaderObj.ContactList(data,null,self.load);
|
|
418
420
|
self.$forceUpdate();
|
|
419
421
|
}
|
|
420
|
-
else if(field.
|
|
422
|
+
else if (field.isCallTel) {
|
|
423
|
+
self.model.doAction(data, field);
|
|
421
424
|
if(self.model.currentCallTel){
|
|
422
425
|
self.$refs[self.model.currentCallTel][0].closeCallTel()
|
|
423
426
|
}
|
|
424
427
|
self.model.currentCallTel='router'+field.id+field.rowindex;
|
|
425
428
|
self.$refs['router'+field.id+field.rowindex][0].callTelClick(data);
|
|
426
429
|
}
|
|
430
|
+
else{
|
|
431
|
+
self.model.doAction(data, field);
|
|
432
|
+
}
|
|
427
433
|
})
|
|
428
434
|
}
|
|
429
435
|
}
|
|
@@ -155,11 +155,7 @@
|
|
|
155
155
|
</div>
|
|
156
156
|
</div>
|
|
157
157
|
<div class="contacts-info base-box">
|
|
158
|
-
<ct-contactList
|
|
159
|
-
v-if="model.contactApiRouter !== null"
|
|
160
|
-
:apiRouter="model.contactApiRouter"
|
|
161
|
-
:key="'contact' + refershKey"
|
|
162
|
-
></ct-contactList>
|
|
158
|
+
<ct-contactList v-if="model.contactApiRouter !== null" :apiRouter="model.contactApiRouter" :key="'contact' + refershKey"></ct-contactList>
|
|
163
159
|
</div>
|
|
164
160
|
<div class="tablist-info base-box">
|
|
165
161
|
<div class="details-tabs-box">
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
@tableButtonClick="clickHandler"></component>
|
|
64
64
|
</el-col>
|
|
65
65
|
</el-row>
|
|
66
|
-
<el-row v-if="model.links.findIndex((v)=>{return v.show})
|
|
66
|
+
<el-row v-if="model.links.findIndex((v)=>{return v.show}) > -1" style="margin-top: 8px;">
|
|
67
67
|
<el-col :span="24" style="text-align:left">
|
|
68
68
|
<component v-for="(btn, index) in model.links" :key="index" :is="btn.is" :vmodel="btn" @click="clickHandler" v-if="btn.show"></component>
|
|
69
69
|
</el-col>
|
|
70
70
|
</el-row>
|
|
71
71
|
<el-row v-if="model.buttons.findIndex((v)=>{return v.show}) > -1" :class="isScroll?'ccai button-absolute':'button-initial'"
|
|
72
72
|
:style="{'max-width':pageWidth?(pageWidth-20)+'px':'100%'}">
|
|
73
|
-
<el-col :span="24" style="text-align:center">
|
|
73
|
+
<el-col :span="24" style="text-align:center;padding-bottom: 1px;">
|
|
74
74
|
<component v-for="(btn, index) in model.buttons" :key="index" :is="btn.is" :vmodel="btn" @click="clickHandler" v-if="btn.show"></component>
|
|
75
75
|
</el-col>
|
|
76
76
|
</el-row>
|
|
@@ -722,13 +722,13 @@
|
|
|
722
722
|
self.$refs.Fields.forEach((f) => {
|
|
723
723
|
if (f.model && typeof f.validExcute !== 'undefined') {
|
|
724
724
|
if (!f.validExcute()) {
|
|
725
|
-
if(i===0
|
|
725
|
+
if(i===0){
|
|
726
726
|
if(f.model.is=="ct-file"){
|
|
727
727
|
self.$message.error(f.validMessage);
|
|
728
728
|
}
|
|
729
729
|
else{
|
|
730
730
|
if(f.validMessage){
|
|
731
|
-
if(f.validMessage=='必填'){
|
|
731
|
+
if(f.validMessage=='必填' && f.model.label){
|
|
732
732
|
self.$message.error('【'+f.model.label+'】'+f.validMessage);
|
|
733
733
|
}
|
|
734
734
|
else{
|
|
@@ -736,7 +736,9 @@
|
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
else{
|
|
739
|
-
|
|
739
|
+
if(f.model.label){
|
|
740
|
+
self.$message.error('【'+f.model.label+'】不能为空!');
|
|
741
|
+
}
|
|
740
742
|
}
|
|
741
743
|
}
|
|
742
744
|
}
|
|
@@ -837,7 +839,9 @@
|
|
|
837
839
|
}
|
|
838
840
|
.button-absolute{
|
|
839
841
|
z-index: 100;
|
|
840
|
-
bottom: 6px;
|
|
842
|
+
/* bottom: 6px; */
|
|
843
|
+
bottom: 0;
|
|
844
|
+
border-radius: 0 0 4px 4px;
|
|
841
845
|
position: absolute;
|
|
842
846
|
line-height: 34px;
|
|
843
847
|
background-color: #fff;
|
|
@@ -157,7 +157,6 @@
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
|
-
|
|
161
160
|
xmlToJson(xml) {
|
|
162
161
|
var self = this;
|
|
163
162
|
// Create the return object
|
|
@@ -218,13 +217,11 @@
|
|
|
218
217
|
}
|
|
219
218
|
return obj;
|
|
220
219
|
},
|
|
221
|
-
clickHandler(routerKey, rowindex, forname, forrowindex) {
|
|
222
|
-
this.$emit('click', routerKey, rowindex, forname, forrowindex);
|
|
220
|
+
clickHandler(routerKey, rowindex, forname, forrowindex,flagHaveAlert) {
|
|
221
|
+
this.$emit('click', routerKey, rowindex, forname, forrowindex,flagHaveAlert);
|
|
223
222
|
},
|
|
224
|
-
|
|
225
223
|
},
|
|
226
224
|
mounted() {
|
|
227
|
-
|
|
228
225
|
},
|
|
229
226
|
beforeDestroy() {
|
|
230
227
|
this.Layout = [];
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
rowindex: Number,
|
|
26
26
|
forname: String,
|
|
27
27
|
forrowindex: String,
|
|
28
|
-
|
|
29
28
|
},
|
|
30
29
|
data() {
|
|
31
30
|
return {
|
|
@@ -36,8 +35,8 @@
|
|
|
36
35
|
this.model = this.loaderObj.CellLayout(this.vmodel);
|
|
37
36
|
},
|
|
38
37
|
methods: {
|
|
39
|
-
clickHandler(routerKey, rowindex, forname, forrowindex) {
|
|
40
|
-
this.$emit('click', routerKey, rowindex, forname, forrowindex);
|
|
38
|
+
clickHandler(routerKey, rowindex, forname, forrowindex,flagHaveAlert) {
|
|
39
|
+
this.$emit('click', routerKey, rowindex, forname, forrowindex,flagHaveAlert);
|
|
41
40
|
}
|
|
42
41
|
},
|
|
43
42
|
mounted() {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
this.model = this.loaderObj.CellLayout(this.vmodel);
|
|
28
28
|
},
|
|
29
29
|
methods: {
|
|
30
|
-
clickHandler(routerKey, rowindex, forname, forrowindex) {
|
|
31
|
-
this.$emit('click', routerKey, rowindex, forname, forrowindex);
|
|
30
|
+
clickHandler(routerKey, rowindex, forname, forrowindex,flagHaveAlert) {
|
|
31
|
+
this.$emit('click', routerKey, rowindex, forname, forrowindex,flagHaveAlert);
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
mounted() {
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
if (typeof this.vmodel !== 'undefined') {
|
|
52
52
|
this.model = this.loaderObj.CellLayout(this.vmodel, this.actionRouter, this.rowdata, this.forname, this.forrowindex);
|
|
53
53
|
}
|
|
54
|
-
},
|
|
55
|
-
|
|
54
|
+
},
|
|
56
55
|
methods: {
|
|
57
56
|
clickHandler(ev) {
|
|
58
57
|
if (!this.visible) {
|
|
@@ -61,10 +60,10 @@
|
|
|
61
60
|
else {
|
|
62
61
|
this.visible = false;
|
|
63
62
|
this.tellImgUrl = '';
|
|
64
|
-
}
|
|
65
|
-
|
|
63
|
+
}
|
|
66
64
|
},
|
|
67
65
|
callTelClick(data) {
|
|
66
|
+
var self=this;
|
|
68
67
|
this.message = '';
|
|
69
68
|
this.qrCode = '';
|
|
70
69
|
this.tellImgUrl = '';
|
|
@@ -81,6 +80,16 @@
|
|
|
81
80
|
if (data.content.height) this.height = data.content.height;
|
|
82
81
|
if (data.content.imgUrl) this.tellImgUrl = data.content.imgUrl;
|
|
83
82
|
}
|
|
83
|
+
else if(data.content.actionType=='提示确认'){
|
|
84
|
+
this.$common.confirm(data.content.message, data.content.actionType, {
|
|
85
|
+
confirmButtonText: '确定',
|
|
86
|
+
cancelButtonText: '取消',
|
|
87
|
+
center: true
|
|
88
|
+
}).then(() => {
|
|
89
|
+
self.$emit('click',self.model.routerKey,self.rowindex,self.forname,self.forrowindex,true);
|
|
90
|
+
}).catch(() => {
|
|
91
|
+
});
|
|
92
|
+
}
|
|
84
93
|
},
|
|
85
94
|
closeCallTel() {
|
|
86
95
|
if (this.visible) {
|
|
@@ -129,13 +129,11 @@
|
|
|
129
129
|
var self = this;
|
|
130
130
|
this.model.input = field.input;//当前小组件事件作为大组件事件
|
|
131
131
|
self.$emit('input');
|
|
132
|
-
|
|
133
132
|
},
|
|
134
133
|
}
|
|
135
134
|
}
|
|
136
135
|
</script>
|
|
137
|
-
<style>
|
|
138
|
-
|
|
136
|
+
<style>
|
|
139
137
|
.ct-form-repeat {
|
|
140
138
|
display: table;
|
|
141
139
|
background: aliceblue;
|
|
@@ -1116,7 +1116,7 @@ export default {
|
|
|
1116
1116
|
clickAcion();
|
|
1117
1117
|
}
|
|
1118
1118
|
},
|
|
1119
|
-
rolRouterCellClickHandler(routerKey, rowindex, forname, forrowindex) {
|
|
1119
|
+
rolRouterCellClickHandler(routerKey, rowindex, forname, forrowindex,flagHaveAlert) {
|
|
1120
1120
|
var self = this;
|
|
1121
1121
|
var submitData = {};
|
|
1122
1122
|
var rowData = self.model.listData[rowindex];
|
|
@@ -1128,33 +1128,23 @@ export default {
|
|
|
1128
1128
|
field.submitListField.forEach((k) => {
|
|
1129
1129
|
submitData[k] = rowData[forname][forrowindex][k];
|
|
1130
1130
|
});
|
|
1131
|
-
}
|
|
1131
|
+
}
|
|
1132
|
+
else {
|
|
1132
1133
|
field.submitListField.forEach((k) => {
|
|
1133
1134
|
submitData[k] = rowData[k];
|
|
1134
1135
|
});
|
|
1135
1136
|
}
|
|
1137
|
+
if(field.isCallTel){
|
|
1138
|
+
submitData.flagHaveAlert=flagHaveAlert||false;
|
|
1139
|
+
}
|
|
1136
1140
|
let action = field.action;
|
|
1137
1141
|
if (field.actionField) {
|
|
1138
1142
|
action = rowData[field.actionField];
|
|
1139
1143
|
}
|
|
1140
1144
|
self.model.selectIndex = rowindex;
|
|
1141
|
-
this.routerCellClickHandler(
|
|
1142
|
-
field,
|
|
1143
|
-
submitData,
|
|
1144
|
-
action,
|
|
1145
|
-
rowindex,
|
|
1146
|
-
forname,
|
|
1147
|
-
forrowindex
|
|
1148
|
-
);
|
|
1145
|
+
this.routerCellClickHandler(field, submitData, action, rowindex, forname, forrowindex);
|
|
1149
1146
|
},
|
|
1150
|
-
routerCellClickHandler(
|
|
1151
|
-
field,
|
|
1152
|
-
submitData,
|
|
1153
|
-
action,
|
|
1154
|
-
rowindex,
|
|
1155
|
-
forname,
|
|
1156
|
-
forrowindex
|
|
1157
|
-
) {
|
|
1147
|
+
routerCellClickHandler( field, submitData, action,rowindex, forname, forrowindex) {
|
|
1158
1148
|
let self = this;
|
|
1159
1149
|
action = action || field.action;
|
|
1160
1150
|
|
|
@@ -1176,24 +1166,25 @@ export default {
|
|
|
1176
1166
|
self.model,
|
|
1177
1167
|
field.dialogWidth
|
|
1178
1168
|
);
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1169
|
+
}
|
|
1170
|
+
else if (field.isSearchPageInTab) {// 外部框架tab页打开
|
|
1181
1171
|
submitData = field.getActionPara(submitData).para;
|
|
1182
1172
|
self.$common
|
|
1183
1173
|
.getDataDrivenOpts()
|
|
1184
1174
|
.handler.openTabSearch(field, submitData);
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1175
|
+
}
|
|
1176
|
+
else if (field.isBrowserNewTab) {// 浏览器打开
|
|
1187
1177
|
submitData = field.getActionPara(submitData).para;
|
|
1188
1178
|
let query = self.$common.objectToQueryStr(submitData);
|
|
1189
1179
|
window.open(action + query, "_blank");
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1180
|
+
}
|
|
1181
|
+
else if (field.isOpenUrlInBrowse) {// 浏览器打开
|
|
1192
1182
|
window.open(submitData[field.submitFormField], "_blank");
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1183
|
+
}
|
|
1184
|
+
else if (field.isSeeVoice) {//看视频
|
|
1195
1185
|
self.$common.browseVideo(field, submitData);
|
|
1196
|
-
}
|
|
1186
|
+
}
|
|
1187
|
+
else {
|
|
1197
1188
|
//self.operationLoading = true;
|
|
1198
1189
|
|
|
1199
1190
|
//Form
|
|
@@ -1286,24 +1277,17 @@ export default {
|
|
|
1286
1277
|
],
|
|
1287
1278
|
};
|
|
1288
1279
|
self.$common.openDialog(dialogOption);
|
|
1289
|
-
}
|
|
1280
|
+
}
|
|
1281
|
+
else {
|
|
1290
1282
|
field.doAction(submitData, (data) => {
|
|
1291
1283
|
self.model.doAction(data, field);
|
|
1292
|
-
if (field.
|
|
1284
|
+
if (field.isCallTel) {
|
|
1293
1285
|
if (self.model.currentCallTellayout) {
|
|
1294
|
-
self.closeCallTel(
|
|
1295
|
-
self.$refs[self.model.currentCallTellayout][0]
|
|
1296
|
-
);
|
|
1286
|
+
self.closeCallTel(self.$refs[self.model.currentCallTellayout][0]);
|
|
1297
1287
|
}
|
|
1298
1288
|
self.model.currentCallTellayout = "layout" + rowindex;
|
|
1299
|
-
self.model.currentCallTelrouter =
|
|
1300
|
-
|
|
1301
|
-
self.callTelClick(
|
|
1302
|
-
self.$refs["layout" + rowindex][0],
|
|
1303
|
-
data,
|
|
1304
|
-
forname,
|
|
1305
|
-
forrowindex
|
|
1306
|
-
);
|
|
1289
|
+
self.model.currentCallTelrouter = "router" + forname + forrowindex;
|
|
1290
|
+
self.callTelClick(self.$refs["layout" + rowindex][0], data, forname, forrowindex);
|
|
1307
1291
|
}
|
|
1308
1292
|
});
|
|
1309
1293
|
}
|
|
@@ -1335,15 +1319,14 @@ export default {
|
|
|
1335
1319
|
clickAcion();
|
|
1336
1320
|
})
|
|
1337
1321
|
.catch(() => {});
|
|
1338
|
-
}
|
|
1322
|
+
}
|
|
1323
|
+
else {
|
|
1339
1324
|
clickAcion();
|
|
1340
1325
|
}
|
|
1341
1326
|
},
|
|
1342
1327
|
callTelClick(VueCom, data, forname, forrowindex) {
|
|
1343
1328
|
var self = this;
|
|
1344
|
-
if (
|
|
1345
|
-
typeof VueCom.$refs["router" + forname + forrowindex] !== "undefined"
|
|
1346
|
-
) {
|
|
1329
|
+
if ( typeof VueCom.$refs["router" + forname + forrowindex] !== "undefined") {
|
|
1347
1330
|
VueCom.callTelClick(data);
|
|
1348
1331
|
return true;
|
|
1349
1332
|
}
|
|
@@ -38,9 +38,6 @@ const Router = function (source) {
|
|
|
38
38
|
get isDropdown() {
|
|
39
39
|
return source.buttonType === Enum.ButtonType.Dropdown;
|
|
40
40
|
},
|
|
41
|
-
get isCallTel() {
|
|
42
|
-
return source.actionType === Enum.ActionType.CallTel;
|
|
43
|
-
},
|
|
44
41
|
get alert() {
|
|
45
42
|
return source.flagAlert === true;
|
|
46
43
|
},
|
|
@@ -116,6 +113,9 @@ const Router = function (source) {
|
|
|
116
113
|
get isRefersh() {
|
|
117
114
|
return source.actionType === Enum.ActionType.Refersh;
|
|
118
115
|
},
|
|
116
|
+
get isCallTel() {
|
|
117
|
+
return source.actionType === Enum.ActionType.CallTel;
|
|
118
|
+
},
|
|
119
119
|
//打开页面(1Form,2SearchList(弹在tab),3Tab,4执行客户端脚本,5SearchList(弹出))
|
|
120
120
|
get navToNewPage() {
|
|
121
121
|
return source.navToNewPage;
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
<ul>
|
|
4
4
|
<li v-for="(op, index) in model.options" :key="index" :class="[getOptionSelect(op[model.optionAttrs.value])?'select':'']"
|
|
5
5
|
@click="selectOption(op[model.optionAttrs.value],op[model.optionAttrs.label])">
|
|
6
|
-
<
|
|
6
|
+
<el-tooltip :disabled="!op[model.optionAttrs.toolTip]" :content="op[model.optionAttrs.toolTip]" placement="right">
|
|
7
|
+
<div v-html="op[model.optionAttrs.displayLabel]||op[model.optionAttrs.label]"></div>
|
|
8
|
+
</el-tooltip>
|
|
7
9
|
</li>
|
|
8
10
|
</ul>
|
|
9
11
|
</div>
|
package/src/main.js
CHANGED
|
@@ -12,11 +12,11 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
15
|
+
// baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
16
|
// baseUrl: "http://10.88.23.22:9999/v1/form/router",
|
|
17
|
-
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
18
17
|
// baseUrl: "http://10.88.22.40:8080/",
|
|
19
|
-
|
|
18
|
+
baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
19
|
+
flagRouterSelf: true,
|
|
20
20
|
zindex: 999,
|
|
21
21
|
showRequestSuccessMessage: true,
|
|
22
22
|
showRequestErrorMessage: true,
|
|
@@ -41,7 +41,7 @@ Vue.use(centaline, {
|
|
|
41
41
|
// 获取请求头
|
|
42
42
|
getRequestHeaders: function () {
|
|
43
43
|
return {
|
|
44
|
-
oldToken: '
|
|
44
|
+
oldToken: '8ce4e917-2183-40d9-8b87-53ae45e1fc59',
|
|
45
45
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
46
46
|
EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|
|
47
47
|
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE2OGI1YThjLThiZTUtNDQyZi04NTA4LWMyODY4N2NkYmEzMSJ9.Rk26QdZSUzDVdjdRxGxDApOt5W6KYjmyjmsXpWeZb5E5NwZjpXnHYwhYkKjNxIeyg--OV2UrzFa2SxGzZ-Wneg',
|