Skip to content

Commit

Permalink
feat(压测报告): 报告查询
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Jun 13, 2022
1 parent 86dd1ef commit 06608f7
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/views/CloudPressure/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,13 @@
</template>

<script>
import { delDevice, postDevice, putDevice, queryDevice } from '@/api/Device'
import {
delDevice,
postDevice,
putDevice,
queryDevice,
getDevice,
} from '@/api/Device'
import { queryProduct } from '@/api/Product'
import { queryProductTemplet } from '@/api/ProductTemplet'
import TableEdit from '@/views/DeviceCloud/empty/tableEdit'
Expand Down Expand Up @@ -579,15 +585,16 @@
beforeClose() {
this.fetchData()
},
showDocxInfo(info) {
const _docxInfo = info.basedata.docxInfo
async showDocxInfo(info) {
const res = await getDevice(info.objectId)
const _docxInfo = res.basedata.docxInfo
_docxInfo.forEach((i) => {
i.timestamp = this.$moment
.unix(i.timestamp)
.format('YYYY-MM-DD HH:mm:ss')
})
this.details = info
console.log(info)
this.details = res
console.log(res)
this.report = true
},
async generateReport(row) {
Expand All @@ -607,6 +614,7 @@
},
withCredentials: true,
})
console.log(res)
this.$baseMessage(this.$translateTitle('pressure.报告生成成功'))
},
async preview(fileurl) {
Expand Down

0 comments on commit 06608f7

Please sign in to comment.