Commit 4744ce26 by wangweidong

Merge remote-tracking branch 'origin/dev' into dev

parents f44b54c1 a796258f
...@@ -232,7 +232,7 @@ export default { ...@@ -232,7 +232,7 @@ export default {
this.$refs.refModal._open(data) this.$refs.refModal._open(data)
break break
case '预览/编辑报告': case '预览/编辑报告':
this._viewReport(data.id) this._viewReport(data)
break break
case '操作记录': case '操作记录':
this._record(data.id) this._record(data.id)
...@@ -258,32 +258,15 @@ export default { ...@@ -258,32 +258,15 @@ export default {
_upload(id) { _upload(id) {
this.$refs.refModal._open(id) this.$refs.refModal._open(id)
}, },
_viewReport(id) { _viewReport(data) {
this.$openWindowModeless({ id: id }) if (data) {
// this.$store.dispatch('FoodSampleReport/viewReport', id).then(() => { this.$openWindowModeless({
// const data = this.$store.state.FoodSampleReport.page objectKey: data.objectKey,
// if (data !== undefined) { idType: 10,
// // 查询token,后台使用pageoffice调接口查询数据,需要token,否则提示未登录 id: data.id,
// this.$store.dispatch('Redirect/getAccessToken').then(() => { isReport: 4
// 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) { _tableResultChange(msg, data) {
switch (msg) { switch (msg) {
...@@ -304,6 +287,7 @@ export default { ...@@ -304,6 +287,7 @@ export default {
this._iconClick(data.name, data.rowData, data.componentName) this._iconClick(data.name, data.rowData, data.componentName)
break break
case 'table-col': case 'table-col':
console.log('table-col', data)
this.userColumns = data this.userColumns = data
break break
case 'changeSize': case 'changeSize':
......
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