centaline-data-driven 1.3.13 → 1.3.16
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/README.md +21 -0
- package/package.json +1 -1
- package/src/Form.vue +2 -6
- package/src/centaline/css/common.css +3 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +744 -614
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +277 -42
- package/src/centaline/dynamicForm/src/dynamicForm.vue +10 -8
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +3 -1
- package/src/centaline/dynamicSearchList/src/dynamicTableStats.vue +21 -2
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +12 -12
- package/src/centaline/loader/src/ctl/Form.js +112 -2
- package/src/centaline/loader/src/ctl/FormList.js +21 -2
- package/src/centaline/quickInputSos/src/quickInput.vue +119 -82
- 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
|
@@ -76,13 +76,7 @@
|
|
|
76
76
|
@click="fieldClickHandler(model.otherTradeActionRouter, $event)"
|
|
77
77
|
></component>
|
|
78
78
|
<img
|
|
79
|
-
|
|
80
|
-
:class="{
|
|
81
|
-
domDisabled:
|
|
82
|
-
parentModel &&
|
|
83
|
-
parentModel.$refs.table &&
|
|
84
|
-
parentModel.$refs.table.model.selectIndex <= 0,
|
|
85
|
-
}"
|
|
79
|
+
:class="{ domDisabled: flagDisabledPrev }"
|
|
86
80
|
@click="clickPrevHandler"
|
|
87
81
|
src="../../../assets/T.png"
|
|
88
82
|
alt=""
|
|
@@ -95,15 +89,7 @@
|
|
|
95
89
|
"
|
|
96
90
|
/>
|
|
97
91
|
<img
|
|
98
|
-
|
|
99
|
-
:class="{
|
|
100
|
-
domDisabled:
|
|
101
|
-
parentModel &&
|
|
102
|
-
parentModel.$refs.table &&
|
|
103
|
-
parentModel.$refs.table.model.listData &&
|
|
104
|
-
parentModel.$refs.table.model.selectIndex ===
|
|
105
|
-
parentModel.$refs.table.model.listData.length - 1,
|
|
106
|
-
}"
|
|
92
|
+
:class="{ domDisabled: flagDisabledNext }"
|
|
107
93
|
@click="clickNextHandler"
|
|
108
94
|
src="../../../assets/B.png"
|
|
109
95
|
alt=""
|
|
@@ -184,7 +170,10 @@
|
|
|
184
170
|
</div>
|
|
185
171
|
</div>
|
|
186
172
|
</div>
|
|
187
|
-
<div
|
|
173
|
+
<div
|
|
174
|
+
ref="detail"
|
|
175
|
+
class="details-mid y-auto"
|
|
176
|
+
@scroll="scrollHandle($event)"
|
|
188
177
|
:style="{
|
|
189
178
|
height: model.detailHeight ? model.detailHeight + 'px' : '780px',
|
|
190
179
|
}"
|
|
@@ -335,24 +324,93 @@
|
|
|
335
324
|
</div>
|
|
336
325
|
<div class="tablist-info base-box">
|
|
337
326
|
<div class="details-tabs-box">
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
327
|
+
<!--计算占用宽度-->
|
|
328
|
+
<div style="position: relative">
|
|
329
|
+
<div ref="tabsbox" style="position: absolute; left: -10000px">
|
|
330
|
+
<el-tabs>
|
|
331
|
+
<el-tab-pane
|
|
332
|
+
v-for="(col, index) in model.tags1"
|
|
333
|
+
:key="col.appID"
|
|
334
|
+
:index="index.toString()"
|
|
335
|
+
:name="index.toString()"
|
|
336
|
+
>
|
|
337
|
+
<div
|
|
338
|
+
slot="label"
|
|
339
|
+
v-html="col.appName"
|
|
340
|
+
:ref="'StatisticsItem' + index"
|
|
341
|
+
></div>
|
|
342
|
+
</el-tab-pane>
|
|
343
|
+
</el-tabs>
|
|
344
|
+
</div>
|
|
345
|
+
</div>
|
|
346
|
+
<!--展示-->
|
|
347
|
+
<div>
|
|
348
|
+
<div v-if="showData.length === 1">
|
|
349
|
+
<el-tabs
|
|
350
|
+
:value="model.activeIndex1"
|
|
351
|
+
@tab-click="handleSelect"
|
|
352
|
+
>
|
|
353
|
+
<el-tab-pane
|
|
354
|
+
v-for="(col, index) in showData[0]"
|
|
355
|
+
:key="col.appID"
|
|
356
|
+
:index="index.toString()"
|
|
357
|
+
:name="index.toString()"
|
|
358
|
+
>
|
|
359
|
+
<div slot="label" v-html="col.appName"></div>
|
|
360
|
+
</el-tab-pane>
|
|
361
|
+
</el-tabs>
|
|
362
|
+
</div>
|
|
363
|
+
<div v-if="showData.length > 1" style="position: relative">
|
|
364
|
+
<el-tabs
|
|
365
|
+
:value="model.activeIndex1"
|
|
366
|
+
@tab-click="handleSelect"
|
|
367
|
+
>
|
|
368
|
+
<el-tab-pane
|
|
369
|
+
v-for="(col, index) in showData[0]"
|
|
370
|
+
:key="col.appID"
|
|
371
|
+
:index="index.toString()"
|
|
372
|
+
:name="index.toString()"
|
|
373
|
+
>
|
|
374
|
+
<div slot="label" v-html="col.appName"></div>
|
|
375
|
+
</el-tab-pane>
|
|
376
|
+
</el-tabs>
|
|
377
|
+
<div class="more-dropdown">
|
|
378
|
+
<el-dropdown trigger="click" placement="bottom">
|
|
379
|
+
<span class="el-dropdown-link">
|
|
380
|
+
<div class="my-icon-more"></div>
|
|
381
|
+
</span>
|
|
382
|
+
<el-dropdown-menu slot="dropdown" class="tabsMore">
|
|
383
|
+
<el-dropdown-item
|
|
384
|
+
v-for="(col, index) in showData[1]"
|
|
385
|
+
:key="col.appID"
|
|
386
|
+
:index="index.toString()"
|
|
387
|
+
:name="index.toString()"
|
|
388
|
+
:class="{
|
|
389
|
+
'is-active':
|
|
390
|
+
showData[0].length + index == model.activeIndex1,
|
|
391
|
+
}"
|
|
392
|
+
>
|
|
393
|
+
<span
|
|
394
|
+
@click="handleDropDown(col, index)"
|
|
395
|
+
:value="model.activeIndex1"
|
|
396
|
+
>{{ col.appName }}</span
|
|
397
|
+
></el-dropdown-item
|
|
398
|
+
>
|
|
399
|
+
</el-dropdown-menu>
|
|
400
|
+
</el-dropdown>
|
|
401
|
+
</div>
|
|
402
|
+
</div>
|
|
403
|
+
<ct-searchlist
|
|
404
|
+
v-if="model.searchConditionApiTags1"
|
|
405
|
+
:key="'list' + listKey.toString() + refershKey"
|
|
406
|
+
style="min-height: 420px"
|
|
407
|
+
:apiParam="model.paramDataTags1"
|
|
408
|
+
:flagFocus="false"
|
|
409
|
+
:searchConditionApi="model.searchConditionApiTags1"
|
|
410
|
+
:searchDataApi="model.searchDataApiTags1"
|
|
344
411
|
>
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
</el-tabs>
|
|
348
|
-
<ct-searchlist
|
|
349
|
-
v-if="model.searchConditionApiTags1"
|
|
350
|
-
:key="'list' + listKey.toString() + refershKey"
|
|
351
|
-
:apiParam="model.paramDataTags1"
|
|
352
|
-
:flagFocus="false"
|
|
353
|
-
:searchConditionApi="model.searchConditionApiTags1"
|
|
354
|
-
:searchDataApi="model.searchDataApiTags1"
|
|
355
|
-
></ct-searchlist>
|
|
412
|
+
</ct-searchlist>
|
|
413
|
+
</div>
|
|
356
414
|
</div>
|
|
357
415
|
</div>
|
|
358
416
|
<div
|
|
@@ -657,11 +715,48 @@ export default {
|
|
|
657
715
|
allIn: false,
|
|
658
716
|
refershKey: 0,
|
|
659
717
|
listKey: 0,
|
|
718
|
+
flagDisabledPrev: false,
|
|
719
|
+
flagDisabledNext: false,
|
|
720
|
+
showData: [],
|
|
721
|
+
FlagStatistics: false,
|
|
722
|
+
dropDownSelected: false,
|
|
660
723
|
};
|
|
661
724
|
},
|
|
662
725
|
mounted() {
|
|
663
726
|
var self = this;
|
|
727
|
+
this.$watch(
|
|
728
|
+
"$refs.main.model.midlWidth",
|
|
729
|
+
function (newVal, oldVal) {
|
|
730
|
+
// 做点什么
|
|
731
|
+
if (oldVal != undefined) {
|
|
732
|
+
self.showStats();
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
deep: true,
|
|
737
|
+
}
|
|
738
|
+
);
|
|
664
739
|
this.$nextTick(function () {
|
|
740
|
+
if (
|
|
741
|
+
self.parentModel &&
|
|
742
|
+
self.parentModel.$refs &&
|
|
743
|
+
self.parentModel.$refs.table
|
|
744
|
+
) {
|
|
745
|
+
if (self.parentModel.$refs.table.model.selectIndex <= 0) {
|
|
746
|
+
self.flagDisabledPrev = true;
|
|
747
|
+
}
|
|
748
|
+
if (
|
|
749
|
+
self.parentModel.$refs.table.model.listData &&
|
|
750
|
+
self.parentModel.$refs.table.model.selectIndex ===
|
|
751
|
+
self.parentModel.$refs.table.model.listData.length - 1
|
|
752
|
+
) {
|
|
753
|
+
self.flagDisabledNext = true;
|
|
754
|
+
}
|
|
755
|
+
} else {
|
|
756
|
+
self.flagDisabledPrev = true;
|
|
757
|
+
self.flagDisabledNext = true;
|
|
758
|
+
}
|
|
759
|
+
|
|
665
760
|
if (self.vmodel) {
|
|
666
761
|
self.load(self.vmodel);
|
|
667
762
|
} else if (typeof self.source !== "undefined") {
|
|
@@ -677,6 +772,47 @@ export default {
|
|
|
677
772
|
});
|
|
678
773
|
},
|
|
679
774
|
methods: {
|
|
775
|
+
showStats() {
|
|
776
|
+
var self = this;
|
|
777
|
+
this.$nextTick(function () {
|
|
778
|
+
if (self.model.tags1.length > 0) {
|
|
779
|
+
var showIndex = 0;
|
|
780
|
+
var sumWidth = 0;
|
|
781
|
+
for (var i = 0; i < self.model.tags1.length; i++) {
|
|
782
|
+
var moreWidth = 22;
|
|
783
|
+
|
|
784
|
+
sumWidth =
|
|
785
|
+
sumWidth +
|
|
786
|
+
self.$refs["StatisticsItem" + i][0].offsetParent.offsetWidth;
|
|
787
|
+
var nextWidth = 0;
|
|
788
|
+
if (i + 1 < self.model.tags1.length) {
|
|
789
|
+
try {
|
|
790
|
+
nextWidth =
|
|
791
|
+
self.$refs["StatisticsItem" + (i + 1)][0].offsetParent
|
|
792
|
+
.offsetWidth;
|
|
793
|
+
} catch (e) {}
|
|
794
|
+
} else {
|
|
795
|
+
moreWidth = 0;
|
|
796
|
+
}
|
|
797
|
+
if (self.model.midlWidth - 42 < sumWidth + moreWidth) {
|
|
798
|
+
showIndex = i;
|
|
799
|
+
break;
|
|
800
|
+
} else if (self.model.midlWidth - 42 < nextWidth + moreWidth) {
|
|
801
|
+
showIndex = i + 1;
|
|
802
|
+
break;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
if (showIndex > 0) {
|
|
806
|
+
self.showData = [
|
|
807
|
+
self.model.tags1.slice(0, showIndex),
|
|
808
|
+
self.model.tags1.slice(showIndex),
|
|
809
|
+
];
|
|
810
|
+
} else {
|
|
811
|
+
self.showData = [self.model.tags1];
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
},
|
|
680
816
|
load(data) {
|
|
681
817
|
var self = this;
|
|
682
818
|
this.model = data;
|
|
@@ -702,6 +838,7 @@ export default {
|
|
|
702
838
|
}
|
|
703
839
|
}
|
|
704
840
|
}
|
|
841
|
+
|
|
705
842
|
this.loadOperation();
|
|
706
843
|
this.loadCommission();
|
|
707
844
|
this.setDetailHeight();
|
|
@@ -779,6 +916,7 @@ export default {
|
|
|
779
916
|
var w1 = this.$refs.detail.clientWidth | 0;
|
|
780
917
|
var w2 = this.$refs.midr.clientWidth | 0;
|
|
781
918
|
this.model.midlWidth = w1 - w2 - 10;
|
|
919
|
+
this.showStats();
|
|
782
920
|
}
|
|
783
921
|
});
|
|
784
922
|
},
|
|
@@ -795,6 +933,21 @@ export default {
|
|
|
795
933
|
window.localStorage.setItem("detailtagkey", this.model.tags1[i].appID); //存储
|
|
796
934
|
}
|
|
797
935
|
},
|
|
936
|
+
handleDropDown(key, index) {
|
|
937
|
+
let i = index;
|
|
938
|
+
this.model.activeIndex1 = (this.showData[0].length + i).toString();
|
|
939
|
+
let dropDownData = this.showData[1];
|
|
940
|
+
|
|
941
|
+
this.dropDownSelected = true;
|
|
942
|
+
if (dropDownData && dropDownData[i]) {
|
|
943
|
+
this.listKey = this.listKey + 1;
|
|
944
|
+
this.model.searchConditionApiTags1 =
|
|
945
|
+
dropDownData[i].searchConditionApiUrl || "";
|
|
946
|
+
this.model.searchDataApiTags1 = dropDownData[i].searchDataApiUrl || "";
|
|
947
|
+
this.model.paramDataTags1 = dropDownData[i].paramData || "";
|
|
948
|
+
window.localStorage.setItem("detailtagkey", dropDownData[i].appID); //存储
|
|
949
|
+
}
|
|
950
|
+
},
|
|
798
951
|
fieldClickHandler(field) {
|
|
799
952
|
var self = this;
|
|
800
953
|
var callBack = null;
|
|
@@ -981,37 +1134,58 @@ export default {
|
|
|
981
1134
|
clickNextHandler() {
|
|
982
1135
|
let key = "chanceID";
|
|
983
1136
|
if (this.parentModel && this.parentModel.$refs.table) {
|
|
984
|
-
let oldValue =
|
|
1137
|
+
let oldValue =
|
|
1138
|
+
this.parentModel.$refs.table.model.listData[
|
|
1139
|
+
this.parentModel.$refs.table.model.selectIndex
|
|
1140
|
+
][key];
|
|
985
1141
|
this.parentModel.$refs.table.rowKeyDownHandle(null, 1);
|
|
986
|
-
let newValue =
|
|
1142
|
+
let newValue =
|
|
1143
|
+
this.parentModel.$refs.table.model.listData[
|
|
1144
|
+
this.parentModel.$refs.table.model.selectIndex
|
|
1145
|
+
][key];
|
|
987
1146
|
if (oldValue !== newValue) {
|
|
988
1147
|
let parm = this.$common.cloneObject(this.apiParam);
|
|
989
1148
|
parm[key] = newValue;
|
|
990
1149
|
// this.loaderObj.Detail(this.api, parm, this.load);
|
|
991
|
-
this.$common
|
|
1150
|
+
this.$common
|
|
1151
|
+
.getDataDrivenOpts()
|
|
1152
|
+
.handler.refreshPropertyDetail(parm, this.parentModel,"PropertyDetailRET");
|
|
992
1153
|
}
|
|
993
1154
|
}
|
|
994
1155
|
},
|
|
995
1156
|
clickPrevHandler() {
|
|
996
1157
|
let key = "chanceID";
|
|
997
1158
|
if (this.parentModel && this.parentModel.$refs.table) {
|
|
998
|
-
let oldValue =
|
|
1159
|
+
let oldValue =
|
|
1160
|
+
this.parentModel.$refs.table.model.listData[
|
|
1161
|
+
this.parentModel.$refs.table.model.selectIndex
|
|
1162
|
+
][key];
|
|
999
1163
|
this.parentModel.$refs.table.rowKeyDownHandle(null, -1);
|
|
1000
|
-
let newValue =
|
|
1164
|
+
let newValue =
|
|
1165
|
+
this.parentModel.$refs.table.model.listData[
|
|
1166
|
+
this.parentModel.$refs.table.model.selectIndex
|
|
1167
|
+
][key];
|
|
1001
1168
|
if (oldValue !== newValue) {
|
|
1002
1169
|
let parm = this.$common.cloneObject(this.apiParam);
|
|
1003
1170
|
parm[key] = newValue;
|
|
1004
1171
|
// this.loaderObj.Detail(this.api, parm, this.load);
|
|
1005
|
-
this.$common
|
|
1172
|
+
this.$common
|
|
1173
|
+
.getDataDrivenOpts()
|
|
1174
|
+
.handler.refreshPropertyDetail(parm, this.parentModel,"PropertyDetailRET");
|
|
1006
1175
|
}
|
|
1007
1176
|
}
|
|
1008
1177
|
},
|
|
1009
|
-
scrollHandle(ev) {
|
|
1010
|
-
this.$emit(
|
|
1178
|
+
scrollHandle(ev) {
|
|
1179
|
+
this.$emit(
|
|
1180
|
+
"scrollHandle",
|
|
1181
|
+
this.$refs.detail.scrollTop,
|
|
1182
|
+
this.$refs.detail.scrollLeft
|
|
1183
|
+
);
|
|
1011
1184
|
ev.cancelBubble = true;
|
|
1012
1185
|
ev.stopPropagation();
|
|
1013
1186
|
},
|
|
1014
1187
|
},
|
|
1188
|
+
watch: {},
|
|
1015
1189
|
};
|
|
1016
1190
|
</script>
|
|
1017
1191
|
<style lang="scss" scoped>
|
|
@@ -1722,6 +1896,67 @@ export default {
|
|
|
1722
1896
|
.r {
|
|
1723
1897
|
float: right;
|
|
1724
1898
|
}
|
|
1899
|
+
.my-icon-more {
|
|
1900
|
+
width: 14px;
|
|
1901
|
+
height: 15px;
|
|
1902
|
+
border-top: 3px solid rgb(153, 153, 153);
|
|
1903
|
+
border-bottom: 3px solid rgb(153, 153, 153);
|
|
1904
|
+
background-color: rgb(153, 153, 153);
|
|
1905
|
+
padding: 3px 0;
|
|
1906
|
+
background-clip: content-box;
|
|
1907
|
+
}
|
|
1908
|
+
// .popovertablf span {
|
|
1909
|
+
// display: inline-block;
|
|
1910
|
+
// }
|
|
1911
|
+
// .popoverbtnTab {
|
|
1912
|
+
// font-size: 14px !important;
|
|
1913
|
+
// font-weight: bold;
|
|
1914
|
+
// cursor: pointer;
|
|
1915
|
+
// float: left;
|
|
1916
|
+
// list-style-type: none;
|
|
1917
|
+
// padding: 0px 20px 0px 20px;
|
|
1918
|
+
// }
|
|
1919
|
+
// .popoverbtnTab:hover,
|
|
1920
|
+
// .popovertablf:hover {
|
|
1921
|
+
// color: #ee5d56;
|
|
1922
|
+
// }
|
|
1923
|
+
>>> .el-tabs__nav-prev {
|
|
1924
|
+
display: none;
|
|
1925
|
+
}
|
|
1926
|
+
>>> .el-tabs__nav-next {
|
|
1927
|
+
display: none;
|
|
1928
|
+
}
|
|
1929
|
+
.more-dropdown {
|
|
1930
|
+
position: absolute;
|
|
1931
|
+
width: 16px;
|
|
1932
|
+
height: 20px;
|
|
1933
|
+
text-align: left;
|
|
1934
|
+
top: 13px;
|
|
1935
|
+
right: -2px;
|
|
1936
|
+
}
|
|
1937
|
+
.el-dropdown-menu--mini .el-dropdown-menu__item {
|
|
1938
|
+
font-size: 14px;
|
|
1939
|
+
font-weight: 700;
|
|
1940
|
+
color: #303133;
|
|
1941
|
+
}
|
|
1942
|
+
.el-dropdown-menu__item:focus,
|
|
1943
|
+
.el-dropdown-menu__item:not(.is-disabled):hover {
|
|
1944
|
+
background-color: #fff;
|
|
1945
|
+
color: #ff503f;
|
|
1946
|
+
border-bottom: 3px solid #ff503f;
|
|
1947
|
+
}
|
|
1948
|
+
.tabsMore .is-active {
|
|
1949
|
+
cursor: pointer;
|
|
1950
|
+
background-color: #fff;
|
|
1951
|
+
color: #ff503f;
|
|
1952
|
+
border-bottom: 3px solid #ff503f;
|
|
1953
|
+
}
|
|
1954
|
+
>>> .el-tabs--bottom .el-tabs__item.is-bottom:last-child,
|
|
1955
|
+
>>> .el-tabs--bottom .el-tabs__item.is-top:last-child,
|
|
1956
|
+
>>> .el-tabs--top .el-tabs__item.is-bottom:last-child,
|
|
1957
|
+
>>> .el-tabs--top .el-tabs__item.is-top:last-child {
|
|
1958
|
+
padding-right: 15px;
|
|
1959
|
+
}
|
|
1725
1960
|
</style>
|
|
1726
1961
|
|
|
1727
1962
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<!--头部元素-->
|
|
11
11
|
<el-row v-if="collapseFieldsRow.length > 0">
|
|
12
12
|
<el-col v-for="(col, index) in collapseFieldsRow[0]" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
|
|
13
|
-
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :from="'form'"
|
|
13
|
+
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
|
|
14
14
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
15
15
|
@input="inputHandler(col,$event)"
|
|
16
16
|
@popupSearchList="popupSearchListHandler"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
v-for="(item, index) in collapse" v-if="item.show !== false" :key="index">
|
|
25
25
|
<el-row>
|
|
26
26
|
<el-col v-for="(col, index) in collapseFieldsRow[index + 1]" :key="index" :span="col.colspan" v-if="col.show !== false" style="padding:5px">
|
|
27
|
-
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :fileData="getFileData(col)"
|
|
27
|
+
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara" :fileData="getFileData(col)"
|
|
28
28
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
29
29
|
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
30
30
|
@popupSearchList="popupSearchListHandler"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</el-tabs>
|
|
36
36
|
|
|
37
37
|
<!--分组-->
|
|
38
|
-
<el-collapse v-else v-model="collapseActiveNames" @change="collapseHandleChange">
|
|
38
|
+
<el-collapse v-else v-model="collapseActiveNames" @change="collapseHandleChange" :class="model.flagHideSaveLine?'el-collapse-saveLine':''">
|
|
39
39
|
<el-collapse-item v-for="(item, index) in collapse" v-if="item.show !== false" :key="index" :title="item.label" :name="index" :disabled="item.lock" :class="item.lock?'ct-collapse-item-title':''">
|
|
40
40
|
<template slot="title">
|
|
41
41
|
<i class="sign"></i>
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</template>
|
|
44
44
|
<el-row>
|
|
45
45
|
<el-col v-for="(col, index) in collapseFieldsRow[index + 1]" :key="index" :span="col.colspan" v-if="col.show !== false" style="padding:5px">
|
|
46
|
-
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
|
|
46
|
+
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
|
|
47
47
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
|
|
48
48
|
@input="inputHandler(col,$event)" @importComplete="importComplete"
|
|
49
49
|
@popupSearchList="popupSearchListHandler"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<!--尾部元素-->
|
|
57
57
|
<el-row v-if="independentItem.length > 0" style="margin-top: 20px;">
|
|
58
58
|
<el-col v-for="(col, index) in independentItem" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
|
|
59
|
-
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara"
|
|
59
|
+
<component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :fileData="getFileData(col)"
|
|
60
60
|
@click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)"
|
|
61
61
|
@input="inputHandler(col,$event)"
|
|
62
62
|
@popupSearchList="popupSearchListHandler"
|
|
@@ -681,7 +681,7 @@
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
return submitData;
|
|
684
|
-
},
|
|
684
|
+
},
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
</script>
|
|
@@ -689,8 +689,10 @@
|
|
|
689
689
|
.el-collapse{
|
|
690
690
|
border-top: none;
|
|
691
691
|
}
|
|
692
|
-
.ct-collapse-item-title .el-collapse-item__header
|
|
693
|
-
{
|
|
692
|
+
.ct-collapse-item-title .el-collapse-item__header{
|
|
694
693
|
color:#303133 !important;
|
|
695
694
|
}
|
|
695
|
+
.el-collapse-saveLine .ct-collapse-item-title:last-child .el-collapse-item__wrap{
|
|
696
|
+
border-bottom:none;
|
|
697
|
+
}
|
|
696
698
|
</style>
|
|
@@ -94,7 +94,8 @@
|
|
|
94
94
|
},
|
|
95
95
|
props: {
|
|
96
96
|
vmodel: Object,
|
|
97
|
-
api: String
|
|
97
|
+
api: String,
|
|
98
|
+
parentModel: Object,
|
|
98
99
|
},
|
|
99
100
|
data() {
|
|
100
101
|
return {
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
let self = this;
|
|
108
109
|
this.model = this.vmodel;
|
|
109
110
|
this.model.OptApi = this.api;
|
|
111
|
+
this.model.$self=self;
|
|
110
112
|
|
|
111
113
|
this.$nextTick(function () {
|
|
112
114
|
self.model.refField = this.$refs.Fields;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
</div>
|
|
70
70
|
<el-popover
|
|
71
71
|
:append-to-table="option.appendId ? option.appendId : ''"
|
|
72
|
-
class="Stats-popover"
|
|
72
|
+
class="Stats-popover more-dropdown"
|
|
73
73
|
popper-class="el-popover1"
|
|
74
74
|
:placement="option.placement ? option.placement : 'left'"
|
|
75
75
|
:trigger="option.trigger ? option.trigger : ''"
|
|
@@ -107,7 +107,12 @@
|
|
|
107
107
|
<br />
|
|
108
108
|
</div>
|
|
109
109
|
</div>
|
|
110
|
-
<span slot="reference" class="icon-more"></span>
|
|
110
|
+
<!-- <span slot="reference" class="icon-more"></span> -->
|
|
111
|
+
<span
|
|
112
|
+
slot="reference"
|
|
113
|
+
style="font-family: Comic Sans MS; font-size: 14px"
|
|
114
|
+
><div class="my-icon-more"></div
|
|
115
|
+
></span>
|
|
111
116
|
</el-popover>
|
|
112
117
|
</template>
|
|
113
118
|
</div>
|
|
@@ -346,6 +351,20 @@ export default {
|
|
|
346
351
|
margin-left: 4px;
|
|
347
352
|
height: 16px;
|
|
348
353
|
}
|
|
354
|
+
.more-dropdown {
|
|
355
|
+
position: absolute;
|
|
356
|
+
top: 2px;
|
|
357
|
+
}
|
|
358
|
+
.my-icon-more {
|
|
359
|
+
width: 14px;
|
|
360
|
+
height: 15px;
|
|
361
|
+
border-top: 3px solid rgb(153, 153, 153);
|
|
362
|
+
border-bottom: 3px solid rgb(153, 153, 153);
|
|
363
|
+
background-color: rgb(153, 153, 153);
|
|
364
|
+
padding: 3px 0;
|
|
365
|
+
background-clip: content-box;
|
|
366
|
+
margin-left: 5px;
|
|
367
|
+
}
|
|
349
368
|
</style>
|
|
350
369
|
<style>
|
|
351
370
|
.el-popover1 {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
<div
|
|
24
24
|
style="
|
|
25
25
|
padding: 0 10px !important;
|
|
26
|
-
height: 30px;
|
|
27
|
-
line-height: 30px;
|
|
26
|
+
height: 30px !important;
|
|
27
|
+
line-height: 30px !important;
|
|
28
28
|
"
|
|
29
29
|
>
|
|
30
30
|
{{ group.albumName }}
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
>
|
|
52
52
|
<!--VR-->
|
|
53
53
|
<template v-if="itemFile.mediaTypeID == '1'">
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
<iframe
|
|
55
|
+
:src="resultObject"
|
|
56
|
+
:height="displayAreaHeight - 80 + 'px'"
|
|
57
|
+
:width="displayAreaWidth + 'px'"
|
|
58
|
+
>
|
|
59
|
+
</iframe>
|
|
60
60
|
</template>
|
|
61
61
|
<!--Photo-->
|
|
62
62
|
<template v-else-if="itemFile.mediaTypeID == '2'">
|
|
@@ -460,13 +460,13 @@ html {
|
|
|
460
460
|
.magnify-btn-close:hover {
|
|
461
461
|
color: #fff;
|
|
462
462
|
}
|
|
463
|
-
.viewerMenu{
|
|
463
|
+
.viewerMenu {
|
|
464
464
|
border-right: solid 2px #e6e6e6 !important;
|
|
465
465
|
}
|
|
466
466
|
.viewerMenu .el-submenu__title,
|
|
467
|
-
.viewerMenu .el-
|
|
468
|
-
height: 30px;
|
|
469
|
-
line-height: 30px;
|
|
467
|
+
.viewerMenu .el-menu-item {
|
|
468
|
+
height: 30px !important;
|
|
469
|
+
line-height: 30px !important;
|
|
470
470
|
}
|
|
471
471
|
.viewerMenu .el-menu-item-group__title {
|
|
472
472
|
line-height: 1px;
|