设备、供应商

This commit is contained in:
shilixia 2021-08-12 10:31:38 +08:00
parent a976780c23
commit b6d7650b1b
2 changed files with 30 additions and 6 deletions

View File

@ -18,7 +18,7 @@
"dependencies": { "dependencies": {
"@riophae/vue-treeselect": "^0.4.0", "@riophae/vue-treeselect": "^0.4.0",
"axios": "0.18.1", "axios": "0.18.1",
"element-ui": "2.13.0", "element-ui": "^2.15.5",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"js-cookie": "2.2.0", "js-cookie": "2.2.0",
"normalize.css": "7.0.0", "normalize.css": "7.0.0",

View File

@ -151,11 +151,24 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="filepath" fixed="right"
label="查看详情"> label="操作"
</el-table-column> width="100">
<template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="text" size="small">查看详情</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<el-dialog
:visible.sync="dialogVisible"
width="80%"
:before-close="handleClose">
<el-descriptions title="日志信息">
<el-descriptions-item> {{logdec}}</el-descriptions-item>
</el-descriptions>
</el-dialog>
</el-card> </el-card>
</div> </div>
@ -175,6 +188,8 @@ export default {
cpuData:[], cpuData:[],
diskData:[], diskData:[],
memoryData:[], memoryData:[],
dialogVisible: false,
logdec:"",
}; };
}, },
computed: {}, computed: {},
@ -202,7 +217,16 @@ export default {
}); });
}, },
handleClick(row){
this.dialogVisible = true;
getLog(row.name).then((response) => {
if (response.data) {
this.logdec=response.data
}
});
},
}, },
}; };
</script> </script>