From ffd0af47ee31a9592cfab56a907e9841a9113c52 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期四, 20 七月 2023 10:37:17 +0800 Subject: [PATCH] 代码提交,前端代码打包 --- Source/UBCS-WEB/dist/src/page/logs/index.vue | 135 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 135 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/dist/src/page/logs/index.vue b/Source/UBCS-WEB/dist/src/page/logs/index.vue new file mode 100644 index 0000000..30c8cd6 --- /dev/null +++ b/Source/UBCS-WEB/dist/src/page/logs/index.vue @@ -0,0 +1,135 @@ +<template> + <avue-crud :data="logsList" + :option="option"> + <template slot="menuLeft"> + <el-button type="primary" + size="small" + icon="el-icon-upload" + @click="send">涓婁紶鏈嶅姟鍣�</el-button> + <el-button type="danger" + size="small" + icon="el-icon-delete" + @click="clear">娓呯┖鏈湴鏃ュ織</el-button> + </template> + <template slot-scope="scope" + slot="type"> + <el-tag type="danger" + size="small">{{scope.label}}</el-tag> + </template> + <template slot-scope="props" + slot="expand"> + <pre class="code"> + {{props.row.stack}} + </pre> + </template> + </avue-crud> +</template> + +<script> +import { mapGetters } from "vuex"; +export default { + name: "errLogs", + data() { + return { + option: { + menu: false, + addBtn: false, + page: false, + border: true, + expand: true, + refreshBtn: false, + headerAlign: "center", + column: [ + { + label: "绫诲瀷", + prop: "type", + width: 80, + align: "center", + slot: true, + dicData: [ + { + label: "bug", + value: "error" + } + ] + }, + { + label: "鍦板潃", + width: 200, + prop: "url", + overHidden: true + }, + { + label: "鍐呭", + prop: "message", + overHidden: true + }, + { + label: "閿欒鍫嗘爤", + prop: "stack", + hide: true + }, + { + label: "鏃堕棿", + align: "center", + prop: "time", + width: 200 + } + ] + } + }; + }, + created() {}, + mounted() {}, + computed: { + ...mapGetters(["logsList"]) + }, + props: [], + methods: { + send() { + this.$confirm("纭畾涓婁紶鏈湴鏃ュ織鍒版湇鍔″櫒?", "鎻愮ず", { + confirmButtonText: "纭畾", + cancelButtonText: "鍙栨秷", + type: "warning" + }) + .then(() => { + this.$store.dispatch("SendLogs").then(() => { + this.$parent.$parent.box = false; + this.$message({ + type: "success", + message: "鍙戦�佹垚鍔�!" + }); + }); + }) + .catch(() => {}); + }, + clear() { + this.$confirm("纭畾娓呯┖鏈湴鏃ュ織璁板綍?", "鎻愮ず", { + confirmButtonText: "纭畾", + cancelButtonText: "鍙栨秷", + type: "warning" + }) + .then(() => { + this.$store.commit("CLEAR_LOGS"); + window.console.log(this); + this.$parent.$parent.box = false; + this.$message({ + type: "success", + message: "娓呯┖鎴愬姛!" + }); + }) + .catch(() => {}); + } + } +}; +</script> + +<style lang="scss" scoped> +.code { + font-size: 12px; + display: block; + font-family: monospace; + white-space: pre; + margin: 1em 0px; +} +</style> -- Gitblit v1.9.3