日志异常详情加入代码高亮显示

This commit is contained in:
dqjdda
2019-11-26 13:59:25 +08:00
parent 3f257081f4
commit 7387842ac7
7 changed files with 30 additions and 12 deletions

View File

@@ -55,9 +55,7 @@
</el-table-column>
</el-table>
<el-dialog :visible.sync="errorDialog" append-to-body title="异常详情" width="85%">
<pre>
{{ errorInfo }}
</pre>
<pre v-highlightjs="errorInfo"><code class="java" /></pre>
</el-dialog>
<!--分页组件-->
<el-pagination
@@ -106,3 +104,13 @@ export default {
}
}
</script>
<style scoped>
.java.hljs{
color: #444;
background: #ffffff !important;
}
/deep/ .el-dialog__body{
padding: 0 20px 10px 20px !important;
}
</style>

View File

@@ -75,7 +75,7 @@
/>
</el-select>
</el-form-item>
<el-form-item style="margin-bottom: 0px;" label="角色" prop="roles">
<el-form-item style="margin-bottom: 0;" label="角色" prop="roles">
<el-select v-model="form.roles" style="width: 450px;" multiple placeholder="请选择">
<el-option
v-for="item in roles"