|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<!-- 菜单弹窗 -->
|
|
<!-- 菜单弹窗 -->
|
|
- <div>
|
|
|
|
|
|
+ <div v-if="resizablePinnedDetail.detailMessageList.length">
|
|
<div
|
|
<div
|
|
class="x-window synopkg-window sds-window-v5 x-resizable-pinned"
|
|
class="x-window synopkg-window sds-window-v5 x-resizable-pinned"
|
|
style="
|
|
style="
|
|
@@ -23,9 +23,7 @@
|
|
detailMessage, detailMessageIndex
|
|
detailMessage, detailMessageIndex
|
|
) in resizablePinnedDetail.detailMessageList"
|
|
) in resizablePinnedDetail.detailMessageList"
|
|
:key="detailMessage.id"
|
|
:key="detailMessage.id"
|
|
- @click="
|
|
|
|
- changeDialogWindow(detailMessage.titleImgUrl, detailMessageIndex)
|
|
|
|
- "
|
|
|
|
|
|
+ @click="changeDialogMenuWindow(detailMessage.title)"
|
|
>
|
|
>
|
|
<div class="x-dlg-focus tjCenter" tabindex="0" role="application"></div>
|
|
<div class="x-dlg-focus tjCenter" tabindex="0" role="application"></div>
|
|
<div class="x-window-tl" @click="moveWindowPosition">
|
|
<div class="x-window-tl" @click="moveWindowPosition">
|
|
@@ -54,7 +52,7 @@
|
|
<div
|
|
<div
|
|
class="x-tool x-tool-maximize"
|
|
class="x-tool x-tool-maximize"
|
|
role="option"
|
|
role="option"
|
|
- @click.stop="maxMizeWindow(detailMessageIndex)"
|
|
|
|
|
|
+ @click.stop="maxiSizeWindow(detailMessageIndex)"
|
|
:style="{ display: `${detailMessage.iconMaximize}` }"
|
|
:style="{ display: `${detailMessage.iconMaximize}` }"
|
|
>
|
|
>
|
|
|
|
|
|
@@ -62,7 +60,7 @@
|
|
<div
|
|
<div
|
|
class="x-tool x-tool-minimize"
|
|
class="x-tool x-tool-minimize"
|
|
role="option"
|
|
role="option"
|
|
- @click.stop="minMizeWindow(detailMessageIndex)"
|
|
|
|
|
|
+ @click.stop="miniMizeWindow(detailMessageIndex)"
|
|
>
|
|
>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -218,84 +216,84 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
export default {
|
|
export default {
|
|
- props: ["defaultZIndex"],
|
|
|
|
|
|
+ props: ["defaultZIndex",'detailMessageList'],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
resizablePinnedDetail: {
|
|
resizablePinnedDetail: {
|
|
detailMessageList: [
|
|
detailMessageList: [
|
|
- {
|
|
|
|
- id: "0",
|
|
|
|
- width: "1254px",
|
|
|
|
- height: "calc(100vh - 80px)",
|
|
|
|
- minHeight: "560px",
|
|
|
|
- title: "套件中心",
|
|
|
|
- spacialCls: "tjCenter",
|
|
|
|
- cls: "deactive-win",
|
|
|
|
- titleImgUrl: "../../../../public/image/index/tjCenter.png",
|
|
|
|
- display: "none",
|
|
|
|
- zIndex: 9053,
|
|
|
|
- iconRestore: "none",
|
|
|
|
- iconMaximize: "block",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: "1",
|
|
|
|
- width: "1150px",
|
|
|
|
- height: "calc(100vh - 120px)",
|
|
|
|
- minHeight: "520px",
|
|
|
|
- title: "控制中心",
|
|
|
|
- spacialCls: "controlCenter",
|
|
|
|
- cls: "deactive-win",
|
|
|
|
- titleImgUrl: "../../../../public/image/index/controlCenter.png",
|
|
|
|
- display: "none",
|
|
|
|
- zIndex: 9053,
|
|
|
|
- iconRestore: "none",
|
|
|
|
- iconMaximize: "block",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: "2",
|
|
|
|
- width: "1010px",
|
|
|
|
- height: "calc(100vh - 200px)",
|
|
|
|
- minHeight: "440px",
|
|
|
|
- title: "File Station",
|
|
|
|
- spacialCls: "file",
|
|
|
|
- cls: "deactive-win",
|
|
|
|
- titleImgUrl: "../../../../public/image/index/file.png",
|
|
|
|
- display: "none",
|
|
|
|
- zIndex: 9053,
|
|
|
|
- iconRestore: "none",
|
|
|
|
- iconMaximize: "block",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: "3",
|
|
|
|
- width: "1010px",
|
|
|
|
- height: "calc(100vh - 220px)",
|
|
|
|
- minHeight: "420px",
|
|
|
|
- title: "DSM 说明",
|
|
|
|
- spacialCls: "question",
|
|
|
|
- cls: "deactive-win",
|
|
|
|
- titleImgUrl: "../../../../public/image/index/question.png",
|
|
|
|
- display: "none",
|
|
|
|
- zIndex: 9053,
|
|
|
|
- iconRestore: "none",
|
|
|
|
- iconMaximize: "block",
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // id: "0",
|
|
|
|
+ // width: "1254px",
|
|
|
|
+ // height: "calc(100vh - 80px)",
|
|
|
|
+ // minHeight: "560px",
|
|
|
|
+ // title: "套件中心",
|
|
|
|
+ // spacialCls: "tjCenter",
|
|
|
|
+ // cls: "deactive-win",
|
|
|
|
+ // titleImgUrl: "../../../../public/image/index/tjCenter.png",
|
|
|
|
+ // display: "none",
|
|
|
|
+ // zIndex: 9053,
|
|
|
|
+ // iconRestore: "none",
|
|
|
|
+ // iconMaximize: "block",
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // id: "1",
|
|
|
|
+ // width: "1150px",
|
|
|
|
+ // height: "calc(100vh - 120px)",
|
|
|
|
+ // minHeight: "520px",
|
|
|
|
+ // title: "控制中心",
|
|
|
|
+ // spacialCls: "controlCenter",
|
|
|
|
+ // cls: "deactive-win",
|
|
|
|
+ // titleImgUrl: "../../../../public/image/index/controlCenter.png",
|
|
|
|
+ // display: "none",
|
|
|
|
+ // zIndex: 9053,
|
|
|
|
+ // iconRestore: "none",
|
|
|
|
+ // iconMaximize: "block",
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // id: "2",
|
|
|
|
+ // width: "1010px",
|
|
|
|
+ // height: "calc(100vh - 200px)",
|
|
|
|
+ // minHeight: "440px",
|
|
|
|
+ // title: "File Station",
|
|
|
|
+ // spacialCls: "file",
|
|
|
|
+ // cls: "deactive-win",
|
|
|
|
+ // titleImgUrl: "../../../../public/image/index/file.png",
|
|
|
|
+ // display: "none",
|
|
|
|
+ // zIndex: 9053,
|
|
|
|
+ // iconRestore: "none",
|
|
|
|
+ // iconMaximize: "block",
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // id: "3",
|
|
|
|
+ // width: "1010px",
|
|
|
|
+ // height: "calc(100vh - 220px)",
|
|
|
|
+ // minHeight: "420px",
|
|
|
|
+ // title: "DSM 说明",
|
|
|
|
+ // spacialCls: "question",
|
|
|
|
+ // cls: "deactive-win",
|
|
|
|
+ // titleImgUrl: "../../../../public/image/index/question.png",
|
|
|
|
+ // display: "none",
|
|
|
|
+ // zIndex: 9053,
|
|
|
|
+ // iconRestore: "none",
|
|
|
|
+ // iconMaximize: "block",
|
|
|
|
+ // },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
lastCheckIndex: -1,
|
|
lastCheckIndex: -1,
|
|
openWindowNum: 0,
|
|
openWindowNum: 0,
|
|
detailMessageWidthList: [
|
|
detailMessageWidthList: [
|
|
- {
|
|
|
|
- width: "1254px",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- width: "1150px",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- width: "1010px",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- width: "1010px",
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // width: "1254px",
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // width: "1150px",
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // width: "1010px",
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // width: "1010px",
|
|
|
|
+ // },
|
|
],
|
|
],
|
|
fixWindowZIndedxIsMax: false,
|
|
fixWindowZIndedxIsMax: false,
|
|
};
|
|
};
|
|
@@ -303,11 +301,12 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
this.$bus.on("clickShortcutItem", this.clickShortcutItem);
|
|
this.$bus.on("clickShortcutItem", this.clickShortcutItem);
|
|
this.$bus.on("clickMenuItem", this.clickMenuItem);
|
|
this.$bus.on("clickMenuItem", this.clickMenuItem);
|
|
- // this.$bus.on("fixWindowZIndexMax", this.fixWindowZIndexMax);
|
|
|
|
- // this.$bus.on(
|
|
|
|
- // "changeMinDefaultZindexWindowCls",
|
|
|
|
- // this.changeMinDefaultZindexWindowCls
|
|
|
|
- // );
|
|
|
|
|
|
+ this.$bus.on("openDSMWindow", this.openDSMWindow);
|
|
|
|
+ this.$bus.on("changeDialogMenuWindow", this.changeDialogMenuWindow);
|
|
|
|
+ this.resizablePinnedDetail.detailMessageList = JSON.parse(JSON.stringify(this.detailMessageList))
|
|
|
|
+ JSON.parse(JSON.stringify(this.detailMessageList)).forEach((item,index)=>{
|
|
|
|
+ this.detailMessageWidthList[index] = item.width
|
|
|
|
+ })
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 点击大菜单图标
|
|
// 点击大菜单图标
|
|
@@ -321,74 +320,83 @@ export default {
|
|
this.resizablePinnedDetail.detailMessageList.findIndex((item) => {
|
|
this.resizablePinnedDetail.detailMessageList.findIndex((item) => {
|
|
return item.titleImgUrl == imgUrl;
|
|
return item.titleImgUrl == imgUrl;
|
|
});
|
|
});
|
|
- this.openDialogWindow(detailMessageIndex);
|
|
|
|
|
|
+ if (detailMessageIndex != -1) {
|
|
|
|
+ this.openDialogWindow(detailMessageIndex);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 打开弹出窗口
|
|
// 打开弹出窗口
|
|
openDialogWindow(detailMessageIndex) {
|
|
openDialogWindow(detailMessageIndex) {
|
|
- this.resizablePinnedDetail.detailMessageList[detailMessageIndex].display =
|
|
|
|
- "block";
|
|
|
|
- this.resizablePinnedDetail.detailMessageList[detailMessageIndex].cls =
|
|
|
|
- "active-win";
|
|
|
|
- this.$bus.emit("changeFixWindowZIndex");
|
|
|
|
-
|
|
|
|
|
|
+ console.log(detailMessageIndex);
|
|
|
|
+ if (
|
|
|
|
+ (!detailMessageIndex && detailMessageIndex != 0) ||
|
|
|
|
+ detailMessageIndex == -1
|
|
|
|
+ ) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
- this.lastCheckIndex == detailMessageIndex &&
|
|
|
|
- this.zIndex >= this.defaultZIndex
|
|
|
|
|
|
+ this.lastCheckIndex == detailMessageIndex ||
|
|
|
|
+ this.resizablePinnedDetail.detailMessageList[detailMessageIndex].cls === 'active-win'
|
|
) {
|
|
) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ this.resizablePinnedDetail.detailMessageList[detailMessageIndex].display =
|
|
|
|
+ "block";
|
|
|
|
+ this.resizablePinnedDetail.detailMessageList[detailMessageIndex].cls =
|
|
|
|
+ "active-win";
|
|
|
|
+ // this.$bus.emit("changeFixWindowZIndex");
|
|
|
|
+
|
|
|
|
+ console.log('1121')
|
|
this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
item.cls = "deactive-win";
|
|
item.cls = "deactive-win";
|
|
});
|
|
});
|
|
this.resizablePinnedDetail.detailMessageList[detailMessageIndex].cls =
|
|
this.resizablePinnedDetail.detailMessageList[detailMessageIndex].cls =
|
|
"active-win";
|
|
"active-win";
|
|
let defaultZIndex = this.defaultZIndex + 10;
|
|
let defaultZIndex = this.defaultZIndex + 10;
|
|
|
|
+ this.resizablePinnedDetail.detailMessageList[detailMessageIndex].zIndex =
|
|
|
|
+ defaultZIndex;
|
|
this.$bus.emit("changeDefaultZIndex", this.defaultZIndex + 10);
|
|
this.$bus.emit("changeDefaultZIndex", this.defaultZIndex + 10);
|
|
- // this.defaultZIndex = this.defaultZIndex + 10
|
|
|
|
this.resizablePinnedDetail.detailMessageList[detailMessageIndex].zIndex =
|
|
this.resizablePinnedDetail.detailMessageList[detailMessageIndex].zIndex =
|
|
defaultZIndex;
|
|
defaultZIndex;
|
|
this.lastCheckIndex = detailMessageIndex;
|
|
this.lastCheckIndex = detailMessageIndex;
|
|
- this.$bus.emit(
|
|
|
|
- "changeDialogWindow",
|
|
|
|
- this.resizablePinnedDetail.detailMessageList[detailMessageIndex].titleImgUrl
|
|
|
|
- );
|
|
|
|
- // this.changeZIndexMaxMenuItemCls()
|
|
|
|
- // this.$bus.emit('dialogWindowZIndexIsMax',true)
|
|
|
|
- // this.$bus.emit("fixWindowZIndexMax", false);
|
|
|
|
},
|
|
},
|
|
- // 切换弹出窗口
|
|
|
|
- changeDialogWindow(imgUrl, menuIndex) {
|
|
|
|
- // let detailMessageList = this.resizablePinnedDetail.detailMessageList.filter(item=>{
|
|
|
|
- // return item.display == 'block'
|
|
|
|
- // })
|
|
|
|
- // detailMessageList = JSON.parse(JSON.stringify(this.arraySort (detailMessageList,'zIndex')))
|
|
|
|
- // if(this.resizablePinnedDetail.detailMessageList[menuIndex].title == detailMessageList[detailMessageList.length-1].title){
|
|
|
|
- // return
|
|
|
|
- // }
|
|
|
|
- this.$bus.emit("changeDialogWindow", imgUrl);
|
|
|
|
- this.openDialogWindow(menuIndex);
|
|
|
|
-
|
|
|
|
- // this.$bus.emit("fixWindowZIndexMax", false);
|
|
|
|
- // this.changeZIndexMaxMenuItemCls()
|
|
|
|
|
|
+ // 切换弹出的menu窗口
|
|
|
|
+ changeDialogMenuWindow(title) {
|
|
|
|
+ console.log(title)
|
|
|
|
+ let menuIndex = this.resizablePinnedDetail.detailMessageList.findIndex(item =>{
|
|
|
|
+ return item.title === title
|
|
|
|
+ })
|
|
|
|
+ if((menuIndex || menuIndex == 0) && menuIndex != -1){
|
|
|
|
+ this.openDialogWindow(menuIndex);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 打开DSM 说明
|
|
// 打开DSM 说明
|
|
openDSMWindow() {
|
|
openDSMWindow() {
|
|
- let detailMessageIndex =
|
|
|
|
- this.resizablePinnedDetail.detailMessageList.findIndex((item) => {
|
|
|
|
- return item.title === "DSM 说明";
|
|
|
|
- });
|
|
|
|
- this.openDialogWindow(detailMessageIndex);
|
|
|
|
- let imgUrl =
|
|
|
|
- this.resizablePinnedDetail.detailMessageList[detailMessageIndex]
|
|
|
|
- .titleImgUrl;
|
|
|
|
- let spacialCls =
|
|
|
|
|
|
+ let detailMessageIndex = this.resizablePinnedDetail.detailMessageList.findIndex(item =>{
|
|
|
|
+ return item.title === 'DSM 说明'
|
|
|
|
+ })
|
|
|
|
+ if(detailMessageIndex && detailMessageIndex != -1){
|
|
|
|
+ this.openDialogWindow(detailMessageIndex);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ console.log('title',this.resizablePinnedDetail.detailMessageList[detailMessageIndex]
|
|
|
|
+ .title)
|
|
|
|
+ let obj={
|
|
|
|
+ imgUrl:
|
|
this.resizablePinnedDetail.detailMessageList[detailMessageIndex]
|
|
this.resizablePinnedDetail.detailMessageList[detailMessageIndex]
|
|
- .spacialCls;
|
|
|
|
- let obj = { imgUrl, spacialCls };
|
|
|
|
- // this.$bus.emit("changeDialogWindow", obj);
|
|
|
|
|
|
+ .titleImgUrl,
|
|
|
|
+ spacialCls: this.resizablePinnedDetail.detailMessageList[detailMessageIndex]
|
|
|
|
+ .spacialCls,
|
|
|
|
+ title: this.resizablePinnedDetail.detailMessageList[detailMessageIndex]
|
|
|
|
+ .title,
|
|
|
|
+ zIndex: this.resizablePinnedDetail.detailMessageList[detailMessageIndex]
|
|
|
|
+ .zIndex
|
|
|
|
+ }
|
|
|
|
+ this.$bus.emit(
|
|
|
|
+ "changeDialogWindow",obj
|
|
|
|
+ );
|
|
},
|
|
},
|
|
// 最小化弹出框口
|
|
// 最小化弹出框口
|
|
- minMizeWindow(detailMessageIndex) {
|
|
|
|
|
|
+ miniMizeWindow(detailMessageIndex) {
|
|
this.resizablePinnedDetail.detailMessageList[detailMessageIndex].display =
|
|
this.resizablePinnedDetail.detailMessageList[detailMessageIndex].display =
|
|
"none";
|
|
"none";
|
|
this.countOpenWindowNum();
|
|
this.countOpenWindowNum();
|
|
@@ -404,16 +412,10 @@ export default {
|
|
detailMessageIndex
|
|
detailMessageIndex
|
|
].zIndex = this.defaultZIndex - 10;
|
|
].zIndex = this.defaultZIndex - 10;
|
|
this.$bus.emit("changeDefaultZIndex", this.defaultZIndex - 10);
|
|
this.$bus.emit("changeDefaultZIndex", this.defaultZIndex - 10);
|
|
- let index = this.resizablePinnedDetail.detailMessageList.findIndex(item=>{
|
|
|
|
- return item.title === detailMessageList[detailMessageList.length - 1].title
|
|
|
|
- })
|
|
|
|
- if(index != -1){
|
|
|
|
- this.openDialogWindow(index);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//最大化弹出窗口
|
|
//最大化弹出窗口
|
|
- maxMizeWindow(detailMessageIndex) {
|
|
|
|
|
|
+ maxiSizeWindow(detailMessageIndex) {
|
|
this.resizablePinnedDetail.detailMessageList[detailMessageIndex].width =
|
|
this.resizablePinnedDetail.detailMessageList[detailMessageIndex].width =
|
|
"100%";
|
|
"100%";
|
|
this.resizablePinnedDetail.detailMessageList[
|
|
this.resizablePinnedDetail.detailMessageList[
|
|
@@ -423,21 +425,6 @@ export default {
|
|
detailMessageIndex
|
|
detailMessageIndex
|
|
].iconMaximize = "none";
|
|
].iconMaximize = "none";
|
|
this.openDialogWindow(detailMessageIndex);
|
|
this.openDialogWindow(detailMessageIndex);
|
|
-
|
|
|
|
- // let detailMessageList =
|
|
|
|
- // this.resizablePinnedDetail.detailMessageList.filter((item) => {
|
|
|
|
- // return item.display == "block";
|
|
|
|
- // });
|
|
|
|
- // if (detailMessageList.length) {
|
|
|
|
- // detailMessageList = JSON.parse(
|
|
|
|
- // JSON.stringify(this.arraySort(detailMessageList, "zIndex"))
|
|
|
|
- // );
|
|
|
|
- // // let index = this.resizablePinnedDetail.detailMessageList.findIndex(item=>{
|
|
|
|
- // // return item.title === detailMessageList[detailMessageList.length - 1].title
|
|
|
|
- // // })
|
|
|
|
- // // if(index != -1){
|
|
|
|
- // // }
|
|
|
|
- // }
|
|
|
|
},
|
|
},
|
|
//恢复弹出窗口宽度
|
|
//恢复弹出窗口宽度
|
|
restoreMizeWindow(detailMessageIndex) {
|
|
restoreMizeWindow(detailMessageIndex) {
|
|
@@ -448,7 +435,7 @@ export default {
|
|
].iconRestore = "none";
|
|
].iconRestore = "none";
|
|
this.resizablePinnedDetail.detailMessageList[
|
|
this.resizablePinnedDetail.detailMessageList[
|
|
detailMessageIndex
|
|
detailMessageIndex
|
|
- ].iconMaximize = "block";
|
|
|
|
|
|
+ ].iconMaximize = "block";
|
|
this.countOpenWindowNum();
|
|
this.countOpenWindowNum();
|
|
this.openDialogWindow(detailMessageIndex);
|
|
this.openDialogWindow(detailMessageIndex);
|
|
},
|
|
},
|
|
@@ -472,16 +459,6 @@ export default {
|
|
detailMessageIndex
|
|
detailMessageIndex
|
|
].zIndex = this.defaultZIndex - 10;
|
|
].zIndex = this.defaultZIndex - 10;
|
|
this.$bus.emit("changeDefaultZIndex", this.defaultZIndex - 10);
|
|
this.$bus.emit("changeDefaultZIndex", this.defaultZIndex - 10);
|
|
- // this.$bus.emit(
|
|
|
|
- // "changeDialogWindow",
|
|
|
|
- // detailMessageList[detailMessageList.length - 1].titleImgUrl
|
|
|
|
- // );
|
|
|
|
- let index = this.resizablePinnedDetail.detailMessageList.findIndex(item=>{
|
|
|
|
- return item.title === detailMessageList[detailMessageList.length - 1].title
|
|
|
|
- })
|
|
|
|
- if(index != -1){
|
|
|
|
- this.openDialogWindow(index);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
this.countOpenWindowNum();
|
|
this.countOpenWindowNum();
|
|
},
|
|
},
|
|
@@ -494,14 +471,9 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
if (this.openWindowNum == 0) {
|
|
if (this.openWindowNum == 0) {
|
|
- // this.$bus.emit('dialogWindowZIndexIsMax',false)
|
|
|
|
- // this.$bus.emit("fixWindowZIndexMax", true);
|
|
|
|
this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
item.zIndex = 9053;
|
|
item.zIndex = 9053;
|
|
});
|
|
});
|
|
-
|
|
|
|
- this.$bus.emit("changeDefaultZIndex", 9053);
|
|
|
|
- // this.defaultZIndex = 9053
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 按z-index 给menuItem排序
|
|
// 按z-index 给menuItem排序
|
|
@@ -514,81 +486,7 @@ export default {
|
|
},
|
|
},
|
|
// 移动弹出框窗口位置
|
|
// 移动弹出框窗口位置
|
|
moveWindowPosition(e) {
|
|
moveWindowPosition(e) {
|
|
- // var x = e.pageX;
|
|
|
|
- // var y = e.pageY;
|
|
|
|
- },
|
|
|
|
- //如果固定窗口的zindex是最大的
|
|
|
|
- // fixWindowZIndexMax(bol) {
|
|
|
|
- // this.fixWindowZIndedxIsMax = bol;
|
|
|
|
- // },
|
|
|
|
- //修改zIndex小于defaultZindex(公共z-index)窗口的类名使其变淡
|
|
|
|
- changeMinDefaultZindexWindowCls() {
|
|
|
|
- // this.changeZIndexMaxMenuItemCls()
|
|
|
|
- // this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
|
|
- // if (item.zIndex < this.defaultZIndex) {
|
|
|
|
- // item.cls = "deactive-win";
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
- // if (!this.fixWindowZIndedxIsMax) {
|
|
|
|
- // // 找有menuItem 等于 defaultZIndex的下标
|
|
|
|
- // let maxZIndexMenuItemIndex =
|
|
|
|
- // this.resizablePinnedDetail.detailMessageList.findIndex((item) => {
|
|
|
|
- // return item.zIndex >= this.defaultZIndex;
|
|
|
|
- // });
|
|
|
|
- // if (maxZIndexMenuItemIndex != -1) {
|
|
|
|
- // let detailMessageList =
|
|
|
|
- // this.resizablePinnedDetail.detailMessageList.filter((item) => {
|
|
|
|
- // return item.display == "block";
|
|
|
|
- // });
|
|
|
|
- // if (detailMessageList.length) {
|
|
|
|
- // detailMessageList = JSON.parse(
|
|
|
|
- // JSON.stringify(this.arraySort(detailMessageList, "zIndex"))
|
|
|
|
- // );
|
|
|
|
- // this.changeFoundMenuItemCls(
|
|
|
|
- // detailMessageList[detailMessageList.length - 1].title
|
|
|
|
- // );
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
},
|
|
},
|
|
- // 修改对应标题的menuItem的类名
|
|
|
|
- changeFoundMenuItemCls(title) {
|
|
|
|
- this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
|
|
- if (item.title === title) {
|
|
|
|
- item.cls = "active-win";
|
|
|
|
- } else {
|
|
|
|
- item.cls = "deactive-win";
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- //修改zIndex最大及其他的menuItem的类名
|
|
|
|
- changeZIndexMenuItemCls() {
|
|
|
|
- // if (this.dialogZIndexMaxIndex == -1) {
|
|
|
|
- // this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
|
|
- // item.cls = "deactive-win";
|
|
|
|
- // });
|
|
|
|
- // } else {
|
|
|
|
- // let maxZIndexMenuItemIndex =
|
|
|
|
- // this.resizablePinnedDetail.detailMessageList.findIndex((item) => {
|
|
|
|
- // return item.zIndex >= this.defaultZIndex;
|
|
|
|
- // });
|
|
|
|
- // if (maxZIndexMenuItemIndex != -1) {
|
|
|
|
- // let detailMessageList =
|
|
|
|
- // this.resizablePinnedDetail.detailMessageList.filter((item) => {
|
|
|
|
- // return item.display == "block";
|
|
|
|
- // });
|
|
|
|
- // if (detailMessageList.length) {
|
|
|
|
- // detailMessageList = JSON.parse(
|
|
|
|
- // JSON.stringify(this.arraySort(detailMessageList, "zIndex"))
|
|
|
|
- // );
|
|
|
|
- // this.changeFoundMenuItemCls(
|
|
|
|
- // detailMessageList[detailMessageList.length - 1].title
|
|
|
|
- // );
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- },
|
|
|
|
- //
|
|
|
|
},
|
|
},
|
|
|
|
|
|
watch: {
|
|
watch: {
|
|
@@ -597,10 +495,16 @@ export default {
|
|
this.resizablePinnedDetail.detailMessageList.findIndex((item) => {
|
|
this.resizablePinnedDetail.detailMessageList.findIndex((item) => {
|
|
return item.zIndex >= this.defaultZIndex && item.display === "block";
|
|
return item.zIndex >= this.defaultZIndex && item.display === "block";
|
|
});
|
|
});
|
|
|
|
+ console.log(this.dialogZIndexMaxIndex);
|
|
if (
|
|
if (
|
|
this.dialogZIndexMaxIndex != -1 &&
|
|
this.dialogZIndexMaxIndex != -1 &&
|
|
this.dialogZIndexMaxIndex != undefined
|
|
this.dialogZIndexMaxIndex != undefined
|
|
) {
|
|
) {
|
|
|
|
+ console.log(
|
|
|
|
+ this.resizablePinnedDetail.detailMessageList[
|
|
|
|
+ this.dialogZIndexMaxIndex
|
|
|
|
+ ].titleImgUrl
|
|
|
|
+ );
|
|
this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
if (item.cls === "active-win") {
|
|
if (item.cls === "active-win") {
|
|
item.cls = "deactive-win";
|
|
item.cls = "deactive-win";
|
|
@@ -609,6 +513,16 @@ export default {
|
|
this.resizablePinnedDetail.detailMessageList[
|
|
this.resizablePinnedDetail.detailMessageList[
|
|
this.dialogZIndexMaxIndex
|
|
this.dialogZIndexMaxIndex
|
|
].cls = "active-win";
|
|
].cls = "active-win";
|
|
|
|
+ console.log('title',this.resizablePinnedDetail.detailMessageList[this.dialogZIndexMaxIndex].title)
|
|
|
|
+ let obj = {
|
|
|
|
+ imgUrl: this.resizablePinnedDetail.detailMessageList[this.dialogZIndexMaxIndex].titleImgUrl,
|
|
|
|
+ zIndex: this.resizablePinnedDetail.detailMessageList[this.dialogZIndexMaxIndex].zIndex,
|
|
|
|
+ spacialCls: this.resizablePinnedDetail.detailMessageList[this.dialogZIndexMaxIndex].spacialCls,
|
|
|
|
+ title: this.resizablePinnedDetail.detailMessageList[this.dialogZIndexMaxIndex].title,
|
|
|
|
+ }
|
|
|
|
+ this.$bus.emit(
|
|
|
|
+ "changeDialogWindow",obj
|
|
|
|
+ );
|
|
} else {
|
|
} else {
|
|
this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
this.resizablePinnedDetail.detailMessageList.forEach((item) => {
|
|
if (item.cls === "active-win") {
|
|
if (item.cls === "active-win") {
|
|
@@ -626,5 +540,11 @@ export default {
|
|
name: "ResizablePinned",
|
|
name: "ResizablePinned",
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
-<style scope>
|
|
|
|
|
|
+<style scope lang="css">
|
|
|
|
+@media screen and (max-height: 600px){
|
|
|
|
+ .x-window.synopkg-window{
|
|
|
|
+ top:0 !important;
|
|
|
|
+ transform: translate(-50%,0px) !important;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|