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
becc6221
Commit
becc6221
authored
Oct 13, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了报告管理
parent
2e75f2b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
29 deletions
+30
-29
ReportInfoMake.vue
pages/soil-report-manage/report-make/tabs/ReportInfoMake.vue
+25
-24
ReportMakeByEntrust.vue
...il-report-manage/report-make/tabs/ReportMakeByEntrust.vue
+5
-5
No files found.
pages/soil-report-manage/report-make/tabs/ReportInfoMake.vue
View file @
becc6221
...
@@ -328,30 +328,31 @@ export default {
...
@@ -328,30 +328,31 @@ export default {
this
.
$refs
.
refModal
.
_open
(
id
)
this
.
$refs
.
refModal
.
_open
(
id
)
},
},
_viewReport
(
id
)
{
_viewReport
(
id
)
{
this
.
$store
.
dispatch
(
'FoodSampleReport/viewReport'
,
id
).
then
(()
=>
{
this
.
$openWindowModeless
({
id
:
id
})
const
data
=
this
.
$store
.
state
.
FoodSampleReport
.
page
// this.$store.dispatch('FoodSampleReport/viewReport', id).then(() => {
if
(
data
!==
undefined
)
{
// const data = this.$store.state.FoodSampleReport.page
// 查询token,后台使用pageoffice调接口查询数据,需要token,否则提示未登录
// if (data !== undefined) {
this
.
$store
.
dispatch
(
'Redirect/getAccessToken'
).
then
(()
=>
{
// // 查询token,后台使用pageoffice调接口查询数据,需要token,否则提示未登录
const
token
=
this
.
$store
.
state
.
Redirect
.
str
// this.$store.dispatch('Redirect/getAccessToken').then(() => {
if
(
token
)
{
// const token = this.$store.state.Redirect.str
if
(
localStorage
.
getItem
(
'reportReadOnly'
))
{
// if (token) {
// 只读
// if (localStorage.getItem('reportReadOnly')) {
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
id
:
id
})
// // 只读
}
else
{
// this.$openWindowModeless({ objectKey: data.objectKey, id: id })
// 编辑
// } else {
this
.
$openWindowModeless
({
// // 编辑
objectKey
:
data
.
objectKey
,
// this.$openWindowModeless({
id
:
id
,
// objectKey: data.objectKey,
isReport
:
1
,
// id: id,
token
:
token
,
// isReport: 1,
reportStatus
:
this
.
reportStatus
// token: token,
})
// reportStatus: this.reportStatus
}
// })
}
// }
})
// }
}
// })
})
// }
// })
},
},
_tableResultChange
(
msg
,
data
)
{
_tableResultChange
(
msg
,
data
)
{
switch
(
msg
)
{
switch
(
msg
)
{
...
...
pages/soil-report-manage/report-make/tabs/ReportMakeByEntrust.vue
View file @
becc6221
...
@@ -117,11 +117,11 @@ export default {
...
@@ -117,11 +117,11 @@ export default {
id
:
''
,
id
:
''
,
name
:
'管理样品和报告'
name
:
'管理样品和报告'
},
},
{
//
{
type
:
'ios-document-outline'
,
//
type: 'ios-document-outline',
id
:
''
,
//
id: '',
name
:
'检测项目'
//
name: '检测项目'
},
//
},
{
type
:
'ios-cloud-outline'
,
id
:
''
,
name
:
'附件'
},
{
type
:
'ios-cloud-outline'
,
id
:
''
,
name
:
'附件'
},
{
{
type
:
'ios-clock-outline'
,
type
:
'ios-clock-outline'
,
...
...
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