Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-web-back-soil
Commits
3dead99c
Commit
3dead99c
authored
Jan 15, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了试验检测打开新页面查看GDS数据
parent
f34695aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
1 deletions
+106
-1
defaultGds.vue
layouts/defaultGds.vue
+91
-0
ViewGdsData.vue
pages/soil-test-manage/test-input/ViewGdsData.vue
+15
-1
No files found.
layouts/defaultGds.vue
0 → 100644
View file @
3dead99c
<
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
>
pages/soil-test-manage/test-input/ViewGdsData.vue
View file @
3dead99c
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment