Merge branch 'master' of http://git.umayle.com:2023/liulonglong/shuinichang_
This commit is contained in:
commit
360ece6eb7
21
src/App.vue
21
src/App.vue
|
|
@ -15,13 +15,20 @@ export default {
|
||||||
addMessageListener() {
|
addMessageListener() {
|
||||||
let that = this;
|
let that = this;
|
||||||
window.vuplex.addEventListener("message", function (event) {
|
window.vuplex.addEventListener("message", function (event) {
|
||||||
let json = event.data;
|
if (that.$route.path == "/area/nyjcd/pds") {
|
||||||
that.$router.push({
|
let json = event.data;
|
||||||
name: "pds1",
|
if (json == "无操作标识") {
|
||||||
query: {
|
that.$store.commit("SetNoOperation", json);
|
||||||
type: json,
|
} else {
|
||||||
},
|
that.$store.commit("SetNoOperation", "无操作标识");
|
||||||
});
|
}
|
||||||
|
that.$router.push({
|
||||||
|
name: "pds1",
|
||||||
|
query: {
|
||||||
|
type: json,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,15 @@ import Vuex from "vuex";
|
||||||
Vue.use(Vuex);
|
Vue.use(Vuex);
|
||||||
|
|
||||||
export default new Vuex.Store({
|
export default new Vuex.Store({
|
||||||
state: {},
|
state: {
|
||||||
|
NoOperation: "",
|
||||||
|
},
|
||||||
getters: {},
|
getters: {},
|
||||||
mutations: {},
|
mutations: {
|
||||||
|
SetNoOperation(state, a) {
|
||||||
|
state.NoOperation = a;
|
||||||
|
},
|
||||||
|
},
|
||||||
actions: {},
|
actions: {},
|
||||||
modules: {},
|
modules: {},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@
|
||||||
alt=""
|
alt=""
|
||||||
class="img1"
|
class="img1"
|
||||||
@click="
|
@click="
|
||||||
this.sendMessageToCSharp({
|
sendMessageToCSharp({
|
||||||
type: 'video',
|
type: 'video',
|
||||||
message: '余热发电动画',
|
message: '余热发电动画',
|
||||||
})
|
})
|
||||||
|
|
@ -140,7 +140,7 @@
|
||||||
alt=""
|
alt=""
|
||||||
class="img1"
|
class="img1"
|
||||||
@click="
|
@click="
|
||||||
this.sendMessageToCSharp({
|
sendMessageToCSharp({
|
||||||
type: 'video',
|
type: 'video',
|
||||||
message: '垃圾发电动画',
|
message: '垃圾发电动画',
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<img src="../../assets/img/pdsbg.png" alt="" class="bgt" />
|
<img src="../../assets/img/pdsbg.png" v-if="falg" alt="" class="bgt" />
|
||||||
|
|
||||||
|
<div class="boxLeft" v-if="falg"></div>
|
||||||
|
<div class="boxRight" v-if="falg"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -38,12 +41,23 @@ export default {
|
||||||
arr: [],
|
arr: [],
|
||||||
list: [],
|
list: [],
|
||||||
res: "",
|
res: "",
|
||||||
|
falg: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList(this.$route.query.type);
|
this.getList(this.$route.query.type);
|
||||||
this.changeArr(this.$route.query.type);
|
this.changeArr(this.$route.query.type);
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
//长时间不操作返回首页
|
||||||
|
"$store.state.NoOperation": {
|
||||||
|
handler(newValue, oldValue) {
|
||||||
|
if (newValue == "无操作标识") {
|
||||||
|
this.$router.push("/");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initViewer() {
|
initViewer() {
|
||||||
this.viewer = new Viewer(this.$el, {
|
this.viewer = new Viewer(this.$el, {
|
||||||
|
|
@ -80,6 +94,7 @@ export default {
|
||||||
this.list = list;
|
this.list = list;
|
||||||
},
|
},
|
||||||
sendMessageToCSharp(name) {
|
sendMessageToCSharp(name) {
|
||||||
|
this.falg = true;
|
||||||
let that = this;
|
let that = this;
|
||||||
window.vuplex.postMessage({
|
window.vuplex.postMessage({
|
||||||
type: that.$route.query.type,
|
type: that.$route.query.type,
|
||||||
|
|
@ -211,6 +226,7 @@ export default {
|
||||||
this.initViewer();
|
this.initViewer();
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
this.falg = false;
|
||||||
if (this.viewer) {
|
if (this.viewer) {
|
||||||
this.viewer.destroy();
|
this.viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
@ -227,6 +243,7 @@ export default {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: url(../../assets/img/左遮罩.png);
|
background-image: url(../../assets/img/左遮罩.png);
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
width: 1237px;
|
width: 1237px;
|
||||||
|
|
@ -328,9 +345,25 @@ export default {
|
||||||
width: 317px;
|
width: 317px;
|
||||||
height: 485px;
|
height: 485px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 52.5%;
|
left: 52%;
|
||||||
top: 50%;
|
top: 75%;
|
||||||
// border: 2px solid #20d6fe;
|
// border: 2px solid #20d6fe;
|
||||||
transform: translate(50%, -50%);
|
transform: translate(50%, -50%);
|
||||||
}
|
}
|
||||||
|
.boxLeft {
|
||||||
|
width: 1089px;
|
||||||
|
height: 1468px;
|
||||||
|
background-color: red;
|
||||||
|
position: absolute;
|
||||||
|
left: 2237px;
|
||||||
|
top: 1200px;
|
||||||
|
}
|
||||||
|
.boxRight {
|
||||||
|
width: 1089px;
|
||||||
|
height: 1317px;
|
||||||
|
background-color: red;
|
||||||
|
position: absolute;
|
||||||
|
left: 5400px;
|
||||||
|
top: 1200px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue