Commit 3dead99c by lichengming

修改了试验检测打开新页面查看GDS数据

parent f34695aa
<template>
<div >
<div :class="{'shrink-iview-layout-nuxt':isShrink}">
<nuxt v-if="isRouterAlive" />
</div>
</div>
</template>
<script>
// import Store from 'store2'
import Global from '../api/config'
export default {
components: {},
data() {
return {
isShrink: false,
crumbsList: [],
show: false,
isRouterAlive: false
}
},
watch: {
$route(newRoute) {
this._setBreadCrumb(newRoute)
}
},
mounted() {
// this.show = true
this._setBreadCrumb(this.$route)
this.$nextTick(() => {
this._initLoad()
})
},
methods: {
// 刷新
_reload() {
this.isRouterAlive = false
this.$nextTick(() => {
this.isRouterAlive = true
})
},
// 初始化加载
_initLoad() {
if (!Global.getLn()) {
// 暂时没有登录-跳到首页
window.location.href = Global.ssoURL
} else {
this._reload()
}
},
// 设置面包屑
_setBreadCrumb(route) {
this.crumbsList = this.$showBread(route)
this._onpopstate(route)
},
_headerMenuResult(data) {
this.isShrink = data
},
// 判断当前页面是否可以退回
_onpopstate(route) {
// 现在就剩如何获取上一个界面的路由???
window.onpopstate = () => {
history.go(1)
}
}
}
}
</script>
<style>
.iview-layout-nuxt {
position: absolute;
top: 100px;
left: 200px;
background: #fff;
width: -moz-calc(100% - 200px);
width: -webkit-calc(100% - 200px);
width: calc(100% - 200px);
height: -moz-calc(100% - 100px);
height: -webkit-calc(100% - 100px);
height: calc(100% - 100px);
overflow: auto;
padding: 10px;
}
.shrink-iview-layout-nuxt {
left: 60px;
width: -moz-calc(100% - 60px);
width: -webkit-calc(100% - 60px);
width: calc(100% - 60px);
}
</style>
...@@ -86,6 +86,19 @@ ...@@ -86,6 +86,19 @@
</Col> </Col>
<Col span="24"> <Col span="24">
<div> <div>
<!-- <element-table ref="pageTable" :tableHeight="500" @on-result-change="_tableResultChange" :getPage="getPage">-->
<!-- <el-table-column-->
<!-- :prop="item.key"-->
<!-- :label="item.title"-->
<!-- :width="item.width"-->
<!-- :fixed="item.fixed?item.fixed:undefined"-->
<!-- v-for="item in pageColumns"-->
<!-- :key="item.key" show-overflow-tooltip>-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{scope.row[item.key]}}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </element-table>-->
<PTVXETable <PTVXETable
ref="pageTable" ref="pageTable"
:form-id="formId" :form-id="formId"
...@@ -125,7 +138,8 @@ ...@@ -125,7 +138,8 @@
*/ */
import { soilTest } from '../../../api' import { soilTest } from '../../../api'
export default { export default {
layout: 'blank-layout', // layout: 'blank-layout',
layout: 'defaultGds',
components: {}, components: {},
data() { data() {
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment