日志bug修改

This commit is contained in:
851673013@qq.com 2022-07-11 18:53:42 +08:00
parent a44cce5492
commit 71b6b2edd7
2 changed files with 56 additions and 3 deletions

View File

@ -163,7 +163,13 @@
width="150" width="150"
align="center" align="center"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> >
<template slot-scope="scope">
<div class="blue-font-color" @click="copyFunction(scope.row)">
复制
</div>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
:current-page="page" :current-page="page"
@ -221,6 +227,21 @@ export default {
} }
}, },
methods: { methods: {
copyFunction (row) {
var data = row.resultData
var oInput = document.createElement('input')
oInput.value = data
document.body.appendChild(oInput)
oInput.select()
document.execCommand('Copy')
oInput.className = 'oInput'
oInput.style.display = 'none'
this.$message({
type: 'success',
message: this.$t('复制成功')
})
},
// //
resetFunction () { resetFunction () {
const params = { const params = {
@ -299,3 +320,9 @@ export default {
} }
} }
</script> </script>
<style scoped lang="scss">
.blue-font-color:hover {
color: #0058e1;
cursor: pointer;
}
</style>

View File

@ -117,13 +117,18 @@
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="resultData"
label="返回结果" label="返回结果"
header-align="center" header-align="center"
width="150" width="150"
align="center" align="center"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> >
<template slot-scope="scope">
<div class="blue-font-color" @click="copyFunction(scope.row)">
复制
</div>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="requestTime" prop="requestTime"
:label="$t('logOperation.requestTime')" :label="$t('logOperation.requestTime')"
@ -204,6 +209,21 @@ export default {
} }
}, },
methods: { methods: {
//
copyFunction (row) {
var data = row.resultData
var oInput = document.createElement('input')
oInput.value = data
document.body.appendChild(oInput)
oInput.select()
document.execCommand('Copy')
oInput.className = 'oInput'
oInput.style.display = 'none'
this.$message({
type: 'success',
message: this.$t('复制成功')
})
},
// //
resetFunction () { resetFunction () {
const params = { const params = {
@ -260,3 +280,9 @@ export default {
} }
} }
</script> </script>
<style scoped lang="scss">
.blue-font-color:hover {
color: #0058e1;
cursor: pointer;
}
</style>