Commit becc6221 by lichengming

修改了报告管理

parent 2e75f2b5
......@@ -328,30 +328,31 @@ export default {
this.$refs.refModal._open(id)
},
_viewReport(id) {
this.$store.dispatch('FoodSampleReport/viewReport', id).then(() => {
const data = this.$store.state.FoodSampleReport.page
if (data !== undefined) {
// 查询token,后台使用pageoffice调接口查询数据,需要token,否则提示未登录
this.$store.dispatch('Redirect/getAccessToken').then(() => {
const token = this.$store.state.Redirect.str
if (token) {
if (localStorage.getItem('reportReadOnly')) {
// 只读
this.$openWindowModeless({ objectKey: data.objectKey, id: id })
} else {
// 编辑
this.$openWindowModeless({
objectKey: data.objectKey,
id: id,
isReport: 1,
token: token,
reportStatus: this.reportStatus
})
}
}
})
}
})
this.$openWindowModeless({ id: id })
// this.$store.dispatch('FoodSampleReport/viewReport', id).then(() => {
// const data = this.$store.state.FoodSampleReport.page
// if (data !== undefined) {
// // 查询token,后台使用pageoffice调接口查询数据,需要token,否则提示未登录
// this.$store.dispatch('Redirect/getAccessToken').then(() => {
// const token = this.$store.state.Redirect.str
// if (token) {
// if (localStorage.getItem('reportReadOnly')) {
// // 只读
// this.$openWindowModeless({ objectKey: data.objectKey, id: id })
// } else {
// // 编辑
// this.$openWindowModeless({
// objectKey: data.objectKey,
// id: id,
// isReport: 1,
// token: token,
// reportStatus: this.reportStatus
// })
// }
// }
// })
// }
// })
},
_tableResultChange(msg, data) {
switch (msg) {
......
......@@ -117,11 +117,11 @@ export default {
id: '',
name: '管理样品和报告'
},
{
type: 'ios-document-outline',
id: '',
name: '检测项目'
},
// {
// type: 'ios-document-outline',
// id: '',
// name: '检测项目'
// },
{ type: 'ios-cloud-outline', id: '', name: '附件' },
{
type: 'ios-clock-outline',
......
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