Commit becc6221 by lichengming

修改了报告管理

parent 2e75f2b5
...@@ -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) {
......
...@@ -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',
......
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