centaline-data-driven 1.3.19 → 1.3.20
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/centaline/common/index.js +12 -0
- package/src/centaline/css/common.css +4 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +57 -64
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +13 -2
- package/src/centaline/dynamicForm/src/dynamicForm.vue +3 -8
- package/src/centaline/dynamicLayout/src/dynamicLayout.vue +5 -2
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildren.vue +9 -3
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildrenFor.vue +7 -2
- package/src/centaline/dynamicLayout/src/dynamicLayoutImage.vue +13 -2
- package/src/centaline/dynamicLayout/src/dynamicLayoutLabel.vue +7 -2
- package/src/centaline/dynamicLayout/src/dynamicLayoutLine.vue +4 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +26 -0
- package/src/centaline/loader/src/ctl/CellLayout.js +13 -1
- package/src/centaline/loader/src/ctl/Contact.js +1 -1
- package/src/centaline/loader/src/ctl/ContactList.js +1 -1
- package/src/centaline/loader/src/ctl/Detail.js +22 -0
- package/src/centaline/loader/src/ctl/SearchTable.js +1 -1
- package/src/centaline/quickInputSos/src/quickInput.vue +16 -28
- 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
|
@@ -687,6 +687,18 @@ const common = {
|
|
|
687
687
|
str = charUpper + str.slice(1);
|
|
688
688
|
return str;
|
|
689
689
|
},
|
|
690
|
+
getDataOfUpperLower(model,key){
|
|
691
|
+
if(model[key]){
|
|
692
|
+
return model[key];
|
|
693
|
+
}
|
|
694
|
+
else if(model[this.initialsToUpperCase(key)]){
|
|
695
|
+
return model[this.initialsToUpperCase(key)];
|
|
696
|
+
}
|
|
697
|
+
else if(model[this.initialsToLowerCase(key)]){
|
|
698
|
+
return model[this.initialsToLowerCase(key)];
|
|
699
|
+
}
|
|
700
|
+
return '';
|
|
701
|
+
},
|
|
690
702
|
|
|
691
703
|
/**
|
|
692
704
|
* @method
|
|
@@ -10,30 +10,13 @@
|
|
|
10
10
|
<span>{{ model.fields1Dic.EstateName.value }}</span>
|
|
11
11
|
<span> {{ model.fields1Dic.BuildingName.value }}</span>
|
|
12
12
|
<span>{{ model.fields1Dic.RoomNo.value }}</span>
|
|
13
|
-
<img
|
|
14
|
-
:src="model.fields1Dic.FavoriteUrl.value"
|
|
15
|
-
alt=""
|
|
16
|
-
class="collection"
|
|
17
|
-
/>
|
|
13
|
+
<img :src="model.fields1Dic.FavoriteUrl.value" alt="" class="collection"/>
|
|
18
14
|
</div>
|
|
19
15
|
<div class="title-other">
|
|
20
|
-
<span
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<span
|
|
25
|
-
>{{ model.fields1Dic.GovNo.label
|
|
26
|
-
}}{{ model.fields1Dic.GovNo.value }}</span
|
|
27
|
-
>
|
|
28
|
-
<span class="mr10">{{
|
|
29
|
-
model.fields1Dic["DistrictName"].value +
|
|
30
|
-
model.fields1Dic.AreaName.value
|
|
31
|
-
}}</span>
|
|
32
|
-
<img
|
|
33
|
-
:src="model.fields1Dic.LocationUrl.value"
|
|
34
|
-
alt=""
|
|
35
|
-
class="location"
|
|
36
|
-
/>
|
|
16
|
+
<span>{{ model.fields1Dic.PropertyNo.label }}{{ model.fields1Dic.PropertyNo.value }}</span>
|
|
17
|
+
<span>{{ model.fields1Dic.GovNo.label}}{{ model.fields1Dic.GovNo.value }}</span>
|
|
18
|
+
<span class="mr10">{{model.fields1Dic["DistrictName"].value +model.fields1Dic.AreaName.value}}</span>
|
|
19
|
+
<img :src="model.fields1Dic.LocationUrl.value" alt="" class="location"/>
|
|
37
20
|
</div>
|
|
38
21
|
<div class="title-tags">
|
|
39
22
|
<div
|
|
@@ -280,20 +263,10 @@
|
|
|
280
263
|
</div>
|
|
281
264
|
</div>
|
|
282
265
|
</div>
|
|
283
|
-
<div
|
|
284
|
-
v-for="(col, index) in collapse"
|
|
285
|
-
:key="index"
|
|
286
|
-
class="info-conten-b"
|
|
287
|
-
v-show="allInfo"
|
|
288
|
-
>
|
|
266
|
+
<div v-for="(col, index) in collapse" :key="index" class="info-conten-b" v-show="allInfo">
|
|
289
267
|
<div class="info-row mb20">
|
|
290
|
-
<div
|
|
291
|
-
|
|
292
|
-
:key="i"
|
|
293
|
-
:class="c.singleLine === true ? 'row-i100' : 'row-i'"
|
|
294
|
-
>
|
|
295
|
-
<span>{{ c.label }}</span
|
|
296
|
-
><span>{{ c.value }}</span>
|
|
268
|
+
<div v-for="(c, i) in col" :key="i" :class="c.singleLine === true ? 'row-i100' : 'row-i'">
|
|
269
|
+
<span>{{ c.label }}</span><span>{{ c.value }}</span>
|
|
297
270
|
</div>
|
|
298
271
|
</div>
|
|
299
272
|
</div>
|
|
@@ -724,31 +697,28 @@ export default {
|
|
|
724
697
|
}
|
|
725
698
|
);
|
|
726
699
|
this.$nextTick(function () {
|
|
727
|
-
if (
|
|
728
|
-
self.parentModel &&
|
|
729
|
-
self.parentModel.$refs &&
|
|
730
|
-
self.parentModel.$refs.table
|
|
731
|
-
) {
|
|
700
|
+
if ( self.parentModel && self.parentModel.$refs && self.parentModel.$refs.table ) {
|
|
732
701
|
if (self.parentModel.$refs.table.model.selectIndex <= 0) {
|
|
733
702
|
self.flagDisabledPrev = true;
|
|
734
703
|
}
|
|
735
|
-
if (
|
|
736
|
-
|
|
737
|
-
self.parentModel.$refs.table.model.selectIndex ===
|
|
738
|
-
self.parentModel.$refs.table.model.listData.length - 1
|
|
704
|
+
if ( self.parentModel.$refs.table.model.listData
|
|
705
|
+
&& self.parentModel.$refs.table.model.selectIndex === self.parentModel.$refs.table.model.listData.length - 1
|
|
739
706
|
) {
|
|
740
707
|
self.flagDisabledNext = true;
|
|
741
708
|
}
|
|
742
|
-
}
|
|
709
|
+
}
|
|
710
|
+
else {
|
|
743
711
|
self.flagDisabledPrev = true;
|
|
744
712
|
self.flagDisabledNext = true;
|
|
745
713
|
}
|
|
746
714
|
|
|
747
715
|
if (self.vmodel) {
|
|
748
716
|
self.load(self.vmodel);
|
|
749
|
-
}
|
|
717
|
+
}
|
|
718
|
+
else if (typeof self.source !== "undefined") {
|
|
750
719
|
self.loaderObj.Detail(self.source, null, self.load);
|
|
751
|
-
}
|
|
720
|
+
}
|
|
721
|
+
else if (typeof self.api !== "undefined") {
|
|
752
722
|
self.loaderObj.Detail(self.api, self.apiParam, self.load);
|
|
753
723
|
}
|
|
754
724
|
});
|
|
@@ -847,7 +817,8 @@ export default {
|
|
|
847
817
|
if (v.type === 13) {
|
|
848
818
|
collapseItemArr = [];
|
|
849
819
|
col = 0;
|
|
850
|
-
}
|
|
820
|
+
}
|
|
821
|
+
else if (v.singleLine) {
|
|
851
822
|
if (collapseItemArr.length > 0) {
|
|
852
823
|
self.collapse.push(collapseItemArr);
|
|
853
824
|
collapseItemArr = [];
|
|
@@ -856,7 +827,8 @@ export default {
|
|
|
856
827
|
self.collapse.push(collapseItemArr);
|
|
857
828
|
collapseItemArr = [];
|
|
858
829
|
col = 0;
|
|
859
|
-
}
|
|
830
|
+
}
|
|
831
|
+
else if (v.spanCols) {
|
|
860
832
|
collapseItemArr.push(v);
|
|
861
833
|
col = col + v.spanCols;
|
|
862
834
|
if (col === colCount || index === self.model.fields2Dic.length - 1) {
|
|
@@ -864,7 +836,8 @@ export default {
|
|
|
864
836
|
collapseItemArr = [];
|
|
865
837
|
col = 0;
|
|
866
838
|
}
|
|
867
|
-
}
|
|
839
|
+
}
|
|
840
|
+
else {
|
|
868
841
|
collapseItemArr.push(v);
|
|
869
842
|
col = col + 1;
|
|
870
843
|
if (col === colCount || index === self.model.fields2Dic.length - 1) {
|
|
@@ -886,6 +859,9 @@ export default {
|
|
|
886
859
|
lookOwner() {
|
|
887
860
|
this.codeOwner = true;
|
|
888
861
|
},
|
|
862
|
+
loadBaseInfo() {
|
|
863
|
+
this.model.loadBaseInfo();
|
|
864
|
+
},
|
|
889
865
|
handleClick(tab, event) {
|
|
890
866
|
let i = tab.index;
|
|
891
867
|
if (this.model.tags2 && this.model.tags2[i]) {
|
|
@@ -964,16 +940,26 @@ export default {
|
|
|
964
940
|
router.submitFormField.forEach((v) => {
|
|
965
941
|
submitData[v] = field.list[field.listIndex].code;
|
|
966
942
|
});
|
|
967
|
-
}
|
|
943
|
+
}
|
|
944
|
+
else {
|
|
968
945
|
router.submitFormField.forEach((v) => {
|
|
969
946
|
submitData[v] = self.model.fields1Dic[v].value;
|
|
970
947
|
});
|
|
971
948
|
}
|
|
949
|
+
if(router.id=="PropertyEdit"){
|
|
950
|
+
callBack="loadBaseInfo"
|
|
951
|
+
}
|
|
972
952
|
}
|
|
973
953
|
|
|
974
|
-
if (callBack
|
|
975
|
-
|
|
976
|
-
|
|
954
|
+
if (callBack) {
|
|
955
|
+
if(callBack=='loadOperation'){
|
|
956
|
+
this.routerClickHandler(router, submitData, self.loadOperation);
|
|
957
|
+
}
|
|
958
|
+
else if(callBack=='loadBaseInfo'){
|
|
959
|
+
this.routerClickHandler(router, submitData, self.loadBaseInfo);
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
else {
|
|
977
963
|
this.routerClickHandler(router, submitData);
|
|
978
964
|
}
|
|
979
965
|
},
|
|
@@ -1021,7 +1007,8 @@ export default {
|
|
|
1021
1007
|
],
|
|
1022
1008
|
};
|
|
1023
1009
|
self.$common.openDialog(dialogOption);
|
|
1024
|
-
}
|
|
1010
|
+
}
|
|
1011
|
+
else if (field.isOpenList) {
|
|
1025
1012
|
var dialogOption = {
|
|
1026
1013
|
title: field.pageTitle,
|
|
1027
1014
|
pane: self.$common.getParentPane(self),
|
|
@@ -1049,7 +1036,8 @@ export default {
|
|
|
1049
1036
|
],
|
|
1050
1037
|
};
|
|
1051
1038
|
self.$common.openDialog(dialogOption);
|
|
1052
|
-
}
|
|
1039
|
+
}
|
|
1040
|
+
else if (field.isFormPageInTab) {
|
|
1053
1041
|
// 外部框架tab页打开
|
|
1054
1042
|
submitData = field.getActionPara(submitData).para;
|
|
1055
1043
|
self.$common
|
|
@@ -1061,24 +1049,29 @@ export default {
|
|
|
1061
1049
|
self.model,
|
|
1062
1050
|
field.dialogWidth
|
|
1063
1051
|
);
|
|
1064
|
-
}
|
|
1052
|
+
}
|
|
1053
|
+
else if (field.isSearchPageInTab) {
|
|
1065
1054
|
// 外部框架tab页打开
|
|
1066
1055
|
submitData = field.getActionPara(submitData).para;
|
|
1067
1056
|
self.$common
|
|
1068
1057
|
.getDataDrivenOpts()
|
|
1069
1058
|
.handler.openTabSearch(field, submitData);
|
|
1070
|
-
}
|
|
1059
|
+
}
|
|
1060
|
+
else if (field.isBrowserNewTab) {
|
|
1071
1061
|
// 浏览器打开
|
|
1072
1062
|
submitData = field.getActionPara(submitData).para;
|
|
1073
1063
|
let query = self.$common.objectToQueryStr(submitData);
|
|
1074
1064
|
window.open(field.action + query, "_blank");
|
|
1075
|
-
}
|
|
1065
|
+
}
|
|
1066
|
+
else if (field.isOpenUrlInBrowse) {
|
|
1076
1067
|
// 浏览器打开
|
|
1077
1068
|
window.open(submitData[field.submitFormField], "_blank");
|
|
1078
|
-
}
|
|
1069
|
+
}
|
|
1070
|
+
else if (field.isSeeVoice) {
|
|
1079
1071
|
//看视频
|
|
1080
1072
|
self.$common.browseVideo(field, submitData);
|
|
1081
|
-
}
|
|
1073
|
+
}
|
|
1074
|
+
else {
|
|
1082
1075
|
field.doAction(submitData, (data) => {
|
|
1083
1076
|
self.model.doAction(data, field);
|
|
1084
1077
|
if (callBack) {
|
|
@@ -1103,8 +1096,7 @@ export default {
|
|
|
1103
1096
|
}
|
|
1104
1097
|
|
|
1105
1098
|
if (field.alert) {
|
|
1106
|
-
self.$common
|
|
1107
|
-
.confirm(field.alertMsg, field.alertCaption, {
|
|
1099
|
+
self.$common.confirm(field.alertMsg, field.alertCaption, {
|
|
1108
1100
|
confirmButtonText: field.alertOKButtonText,
|
|
1109
1101
|
cancelButtonText: field.alertCancelButtonText,
|
|
1110
1102
|
//type: 'warning'
|
|
@@ -1114,7 +1106,8 @@ export default {
|
|
|
1114
1106
|
clickAcion(field, submitData);
|
|
1115
1107
|
})
|
|
1116
1108
|
.catch(() => {});
|
|
1117
|
-
}
|
|
1109
|
+
}
|
|
1110
|
+
else {
|
|
1118
1111
|
clickAcion(field, submitData);
|
|
1119
1112
|
}
|
|
1120
1113
|
},
|
|
@@ -254,6 +254,9 @@
|
|
|
254
254
|
this.model._operationRouters=[];
|
|
255
255
|
this.model.getOperationList();
|
|
256
256
|
},
|
|
257
|
+
loadBaseInfo() {
|
|
258
|
+
this.model.loadBaseInfo();
|
|
259
|
+
},
|
|
257
260
|
handleClick(tab, event) {
|
|
258
261
|
let i=tab.index;
|
|
259
262
|
if(this.model.tags2 && this.model.tags2[i]){
|
|
@@ -310,10 +313,18 @@
|
|
|
310
313
|
submitData[v] = self.model.fields1Dic[v].value;
|
|
311
314
|
});
|
|
312
315
|
}
|
|
316
|
+
if(router.id=="PropertyEdit"){
|
|
317
|
+
callBack="loadBaseInfo"
|
|
318
|
+
}
|
|
313
319
|
}
|
|
314
320
|
|
|
315
|
-
if(callBack
|
|
316
|
-
|
|
321
|
+
if(callBack){
|
|
322
|
+
if(callBack=='loadOperation'){
|
|
323
|
+
this.routerClickHandler(router, submitData, self.loadOperation);
|
|
324
|
+
}
|
|
325
|
+
else if(callBack=='loadBaseInfo'){
|
|
326
|
+
this.routerClickHandler(router, submitData, self.loadBaseInfo);
|
|
327
|
+
}
|
|
317
328
|
}
|
|
318
329
|
else{
|
|
319
330
|
this.routerClickHandler(router,submitData);
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
submitData = {};
|
|
429
429
|
var tempFormData = self.model.getFormObj();
|
|
430
430
|
field.submitFormField.forEach((v) => {
|
|
431
|
-
submitData[v] = tempFormData
|
|
431
|
+
submitData[v] = self.$common.getDataOfUpperLower(tempFormData,v);
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
434
|
submitData = field.getActionPara(submitData).para;
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
var check = true;
|
|
540
540
|
var checkMsg;
|
|
541
541
|
router.submitFormField.forEach((v) => {
|
|
542
|
-
submitData[v] = tempFormData
|
|
542
|
+
submitData[v] = self.$common.getDataOfUpperLower(tempFormData,v);
|
|
543
543
|
if (typeof tempFormData[v] === "undefined") {
|
|
544
544
|
if (self.model.fieldsDic[v]) {
|
|
545
545
|
checkMsg = "请先录入" + self.model.fieldsDic[v].label;
|
|
@@ -681,12 +681,7 @@
|
|
|
681
681
|
else{
|
|
682
682
|
if(field.submitFormField){
|
|
683
683
|
field.submitFormField.forEach((v) => {
|
|
684
|
-
|
|
685
|
-
submitData[v] = tempFormData[v];
|
|
686
|
-
}
|
|
687
|
-
else{
|
|
688
|
-
submitData[v] = tempFormData[self.$common.initialsToUpperCase(v)];
|
|
689
|
-
}
|
|
684
|
+
submitData[v] = self.$common.getDataOfUpperLower(tempFormData,v);
|
|
690
685
|
});
|
|
691
686
|
}
|
|
692
687
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-loading="loading" class="ct-Layout" v-if="Layout !== null && !loading">
|
|
3
|
-
<ct-layoutchildren :rowindex="rowindex" :vmodel="Layout" @click="clickHandler"></ct-layoutchildren>
|
|
3
|
+
<ct-layoutchildren :rowindex="rowindex" :actionRouter="actionRouter" :rowdata="vmodel" :vmodel="Layout" @click="clickHandler"></ct-layoutchildren>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
@@ -225,7 +225,10 @@
|
|
|
225
225
|
},
|
|
226
226
|
mounted() {
|
|
227
227
|
|
|
228
|
-
}
|
|
228
|
+
},
|
|
229
|
+
beforeDestroy() {
|
|
230
|
+
this.Layout = [];
|
|
231
|
+
},
|
|
229
232
|
}
|
|
230
233
|
</script>
|
|
231
234
|
<style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container v-if="model.visibility!='0'" :direction="model.orientation" :style="model.styleObject" ref="layoutchildren">
|
|
3
|
-
<component v-for="(item, index) in model.fields" :key="index" :is="item.is" :vmodel="item" :rowindex="rowindex" :forname="forname" :forrowindex="forrowindex" @click="clickHandler"></component>
|
|
3
|
+
<component v-for="(item, index) in model.fields" :actionRouter="actionRouter" :rowdata="rowdata" :key="index" :is="item.is" :vmodel="item" :rowindex="rowindex" :forname="forname" :forrowindex="forrowindex" @click="clickHandler"></component>
|
|
4
4
|
</el-container>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
@@ -20,9 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
props: {
|
|
22
22
|
vmodel: Object,
|
|
23
|
+
rowdata: Object,
|
|
24
|
+
actionRouter: Array,
|
|
23
25
|
rowindex: Number,
|
|
24
26
|
forname: String,
|
|
25
|
-
forrowindex: String
|
|
27
|
+
forrowindex: String,
|
|
28
|
+
|
|
26
29
|
},
|
|
27
30
|
data() {
|
|
28
31
|
return {
|
|
@@ -39,7 +42,10 @@
|
|
|
39
42
|
},
|
|
40
43
|
mounted() {
|
|
41
44
|
|
|
42
|
-
}
|
|
45
|
+
},
|
|
46
|
+
beforeDestroy() {
|
|
47
|
+
this.model = {};
|
|
48
|
+
},
|
|
43
49
|
}
|
|
44
50
|
</script>
|
|
45
51
|
<style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container v-if="model.visibility!='0'" :direction="model.orientation" :style="model.styleObject">
|
|
3
|
-
<ct-layoutchildren v-for="(item, index) in model.fields" :key="index" :rowindex="rowindex" :forrowindex="model.forrowindex" :vmodel="item" :forname="model.forname" @click="clickHandler"></ct-layoutchildren>
|
|
3
|
+
<ct-layoutchildren v-for="(item, index) in model.fields" :rowdata="rowdata" :actionRouter="actionRouter" :key="index" :rowindex="rowindex" :forrowindex="model.forrowindex" :vmodel="item" :forname="model.forname" @click="clickHandler"></ct-layoutchildren>
|
|
4
4
|
</el-container>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
props: {
|
|
15
15
|
vmodel: Object,
|
|
16
|
+
rowdata: Object,
|
|
17
|
+
actionRouter: Array,
|
|
16
18
|
rowindex: Number
|
|
17
19
|
},
|
|
18
20
|
data() {
|
|
@@ -31,7 +33,10 @@
|
|
|
31
33
|
},
|
|
32
34
|
mounted() {
|
|
33
35
|
|
|
34
|
-
}
|
|
36
|
+
},
|
|
37
|
+
beforeDestroy() {
|
|
38
|
+
this.model = {};
|
|
39
|
+
},
|
|
35
40
|
}
|
|
36
41
|
</script>
|
|
37
42
|
<style>
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
mixins: [dynamicElement],
|
|
25
25
|
props: {
|
|
26
26
|
vmodel: Object,
|
|
27
|
+
rowdata: Object,
|
|
28
|
+
actionRouter: Array,
|
|
27
29
|
rowindex: Number,
|
|
28
30
|
forname: String,
|
|
29
31
|
forrowindex: String
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
},
|
|
48
50
|
created() {
|
|
49
51
|
if (typeof this.vmodel !== 'undefined') {
|
|
50
|
-
this.model = this.loaderObj.CellLayout(this.vmodel);
|
|
52
|
+
this.model = this.loaderObj.CellLayout(this.vmodel, this.actionRouter, this.rowdata, this.forname, this.forrowindex);
|
|
51
53
|
}
|
|
52
54
|
},
|
|
53
55
|
|
|
@@ -80,9 +82,18 @@
|
|
|
80
82
|
if (data.content.imgUrl) this.tellImgUrl = data.content.imgUrl;
|
|
81
83
|
}
|
|
82
84
|
},
|
|
85
|
+
closeCallTel() {
|
|
86
|
+
if (this.visible) {
|
|
87
|
+
this.visible = false;
|
|
88
|
+
this.tellImgUrl = '';
|
|
89
|
+
}
|
|
90
|
+
},
|
|
83
91
|
},
|
|
84
92
|
computed: {
|
|
85
93
|
|
|
86
|
-
}
|
|
94
|
+
},
|
|
95
|
+
beforeDestroy() {
|
|
96
|
+
this.model = {};
|
|
97
|
+
},
|
|
87
98
|
}
|
|
88
99
|
</script>
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
mixins: [dynamicElement],
|
|
18
18
|
props: {
|
|
19
19
|
vmodel: Object,
|
|
20
|
+
actionRouter: Array,
|
|
20
21
|
rowindex: Number,
|
|
21
22
|
forname: String,
|
|
22
23
|
forrowindex: String
|
|
@@ -26,7 +27,8 @@
|
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
29
|
created() {
|
|
29
|
-
this.model = this.loaderObj.CellLayout(this.vmodel);
|
|
30
|
+
this.model = this.loaderObj.CellLayout(this.vmodel, this.actionRouter, this.rowdata, this.forname, this.forrowindex);
|
|
31
|
+
|
|
30
32
|
},
|
|
31
33
|
|
|
32
34
|
methods: {
|
|
@@ -36,7 +38,10 @@
|
|
|
36
38
|
},
|
|
37
39
|
computed: {
|
|
38
40
|
|
|
39
|
-
}
|
|
41
|
+
},
|
|
42
|
+
beforeDestroy() {
|
|
43
|
+
this.model = {};
|
|
44
|
+
},
|
|
40
45
|
}
|
|
41
46
|
</script>
|
|
42
47
|
<style>
|
|
@@ -1084,6 +1084,11 @@
|
|
|
1084
1084
|
field.doAction(submitData, (data) => {
|
|
1085
1085
|
self.model.doAction(data, field);
|
|
1086
1086
|
if (field.actionType === 19) {
|
|
1087
|
+
if (self.model.currentCallTellayout) {
|
|
1088
|
+
self.closeCallTel(self.$refs[self.model.currentCallTellayout][0]);
|
|
1089
|
+
}
|
|
1090
|
+
self.model.currentCallTellayout = 'layout' + rowindex;
|
|
1091
|
+
self.model.currentCallTelrouter = 'router' + forname + forrowindex;
|
|
1087
1092
|
self.callTelClick(self.$refs['layout' + rowindex][0], data, forname, forrowindex)
|
|
1088
1093
|
}
|
|
1089
1094
|
})
|
|
@@ -1119,6 +1124,7 @@
|
|
|
1119
1124
|
}
|
|
1120
1125
|
},
|
|
1121
1126
|
callTelClick(VueCom, data, forname, forrowindex) {
|
|
1127
|
+
var self = this;
|
|
1122
1128
|
if (typeof VueCom.$refs['router' + forname + forrowindex] !== "undefined") {
|
|
1123
1129
|
VueCom.callTelClick(data);
|
|
1124
1130
|
return true;
|
|
@@ -1133,6 +1139,26 @@
|
|
|
1133
1139
|
}
|
|
1134
1140
|
}
|
|
1135
1141
|
},
|
|
1142
|
+
closeCallTel(VueCom) {
|
|
1143
|
+
var self = this;
|
|
1144
|
+
if (self.model.currentCallTelrouter) {
|
|
1145
|
+
if (typeof VueCom.$refs[self.model.currentCallTelrouter] !== "undefined") {
|
|
1146
|
+
console.log(VueCom);
|
|
1147
|
+
VueCom.closeCallTel();
|
|
1148
|
+
return true;
|
|
1149
|
+
}
|
|
1150
|
+
if (VueCom.$children.length > 0) {
|
|
1151
|
+
for (var i = 0; i < VueCom.$children.length; i++) {
|
|
1152
|
+
var item = VueCom.$children[i];
|
|
1153
|
+
var result = this.closeCallTel(item);
|
|
1154
|
+
if (result) {
|
|
1155
|
+
return result;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
},
|
|
1136
1162
|
selectAll($ev) {
|
|
1137
1163
|
this.model.listData.forEach((ro) => {
|
|
1138
1164
|
if (!this.model.rightMulti || ro[this.model.rightMulti] == 1) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
2
|
import Enum from './lib/Enum';
|
|
3
3
|
import common from '../../../common';
|
|
4
|
-
const CellLayout = function (source) {
|
|
4
|
+
const CellLayout = function (source, actionRouter,rowdata, forname, forrowindex) {
|
|
5
5
|
var rtn = {
|
|
6
6
|
get fields() {
|
|
7
7
|
return source.fields;
|
|
@@ -49,6 +49,18 @@ const CellLayout = function (source) {
|
|
|
49
49
|
return source.forrowindex;
|
|
50
50
|
},
|
|
51
51
|
get rightRouter() {
|
|
52
|
+
if (forname) {
|
|
53
|
+
var forrightRouter = false;
|
|
54
|
+
let field = actionRouter.find(b => {
|
|
55
|
+
return b.id === source.routerKey;
|
|
56
|
+
});
|
|
57
|
+
if (typeof field !== "undefined") {
|
|
58
|
+
if (!field.rightField || rowdata[forname][forrowindex][field.rightField] == 1) {
|
|
59
|
+
forrightRouter=true;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return forrightRouter;
|
|
63
|
+
}
|
|
52
64
|
return source.rightRouter;
|
|
53
65
|
},
|
|
54
66
|
_styleObject: {},
|
|
@@ -65,9 +65,15 @@ const Detail = function (source, para, callBack) {
|
|
|
65
65
|
get fields1() {
|
|
66
66
|
return data.fields1;
|
|
67
67
|
},
|
|
68
|
+
set fields1(v) {
|
|
69
|
+
data.fields1=v;
|
|
70
|
+
},
|
|
68
71
|
get fields2() {
|
|
69
72
|
return data.fields2;
|
|
70
73
|
},
|
|
74
|
+
set fields2(v) {
|
|
75
|
+
data.fields2=v;
|
|
76
|
+
},
|
|
71
77
|
get labels() {
|
|
72
78
|
return data.labels;
|
|
73
79
|
},
|
|
@@ -245,6 +251,9 @@ const Detail = function (source, para, callBack) {
|
|
|
245
251
|
get tags1() {
|
|
246
252
|
return data.tags1;
|
|
247
253
|
},
|
|
254
|
+
set tags1(v) {
|
|
255
|
+
data.tags1 = v;
|
|
256
|
+
},
|
|
248
257
|
get searchConditionApiTags1() {
|
|
249
258
|
if (rtn._searchConditionApiTags1 !== null) {
|
|
250
259
|
return rtn._searchConditionApiTags1;
|
|
@@ -440,6 +449,19 @@ const Detail = function (source, para, callBack) {
|
|
|
440
449
|
}
|
|
441
450
|
return rtn;
|
|
442
451
|
},
|
|
452
|
+
loadBaseInfo(){
|
|
453
|
+
Vue.prototype.$api.postHandler(common.globalUri(), { action: source, para: para }).then(
|
|
454
|
+
function (response) {
|
|
455
|
+
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
456
|
+
rtn._fields1Dic=null;
|
|
457
|
+
rtn._fields2Dic=null;
|
|
458
|
+
rtn.fields1=response.content.fields1;
|
|
459
|
+
rtn.fields2=response.content.fields2;
|
|
460
|
+
rtn.$vue.loadFields();
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
);
|
|
464
|
+
},
|
|
443
465
|
};
|
|
444
466
|
return rtn;
|
|
445
467
|
}
|