Browse Source

添加bug监控功能

noToken 截止此版本为没有token和权限版本
安虹睿 1 year ago
parent
commit
24bc589181
  1. 26
      PC/InterFace.Dash/src/components/ErrorLog/index.vue
  2. 1
      PC/InterFace.Dash/src/icons/svg/svg_bug.svg
  3. 4
      PC/InterFace.Dash/src/layout/components/Navbar.vue
  4. 2
      PC/InterFace.Dash/src/settings.js
  5. 26
      PC/UI.WinIn.FasterZ.Job/src/components/ErrorLog/index.vue
  6. 1
      PC/UI.WinIn.FasterZ.Job/src/icons/svg/svg_bug.svg
  7. 2
      PC/UI.WinIn.FasterZ.Job/src/settings.js
  8. 26
      PC/UI.WinIn.FasterZ.Store/src/components/ErrorLog/index.vue
  9. 1
      PC/UI.WinIn.FasterZ.Store/src/icons/svg/svg_bug.svg
  10. 2
      PC/UI.WinIn.FasterZ.Store/src/settings.js

26
PC/InterFace.Dash/src/components/ErrorLog/index.vue

@ -1,15 +1,31 @@
<template>
<div v-if="errorLogs.length>0">
<el-badge :is-dot="true" style="line-height: 25px;margin-top: -5px;" @click.native="dialogTableVisible=true">
<el-button style="padding: 8px 10px;" size="small" type="danger">
<svg-icon icon-class="bug" />
<el-badge
:is-dot="true"
style="line-height: 10px;"
@click.native="dialogTableVisible=true"
>
<el-button style="padding: 4px" size="small" type="danger">
<svg-icon icon-class="svg_bug" style="font-size: 16px;"/>
</el-button>
</el-badge>
<el-dialog :visible.sync="dialogTableVisible" width="80%" append-to-body>
<el-dialog
:visible.sync="dialogTableVisible"
width="80%"
append-to-body
:close-on-click-modal="true"
:show-close="true"
>
<div slot="title">
<span style="padding-right: 10px;">Error Log</span>
<el-button size="mini" type="primary" icon="el-icon-delete" @click="clearAll">Clear All</el-button>
<el-button
size="mini"
type="primary"
icon="el-icon-delete"
@click="clearAll"
style="float: right;margin-right: 30px;"
>清除全部</el-button>
</div>
<el-table :data="errorLogs" border>
<el-table-column label="Message">

1
PC/InterFace.Dash/src/icons/svg/svg_bug.svg

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1693207492058" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1464" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M969.142857 548.571429c0 20.004571-16.566857 36.571429-36.571428 36.571428H804.571429c0 71.424-15.433143 125.147429-38.290286 165.705143l118.857143 119.442286a36.205714 36.205714 0 0 1 0 51.419428c-6.838857 7.424-16.566857 10.861714-25.709715 10.861715s-18.870857-3.437714-25.709714-10.861715l-113.152-112.566857S645.705143 877.714286 548.571429 877.714286V365.714286h-73.142858v512c-103.424 0-178.870857-75.446857-178.870857-75.446857L192 920.539429a37.558857 37.558857 0 0 1-52.004571 2.852571c-14.848-13.714286-16.018286-36.571429-2.852572-52.004571l115.419429-129.718858C232.557714 702.244571 219.428571 651.373714 219.428571 585.106286H91.428571c-20.004571 0-36.571429-16.566857-36.571428-36.571429s16.566857-36.571429 36.571428-36.571428H219.428571V343.954286L120.576 245.101714c-14.299429-14.299429-14.299429-37.156571 0-51.419428s37.156571-14.299429 51.419429 0l98.852571 98.852571h482.304l98.852571-98.852571c14.299429-14.299429 37.156571-14.299429 51.419429 0s14.299429 37.156571 0 51.419428L804.571429 343.954286v168.009143h128c20.004571 0 36.571429 16.566857 36.571428 36.571428zM694.857143 219.428571H329.142857c0-101.156571 81.700571-182.857143 182.857143-182.857142s182.857143 81.700571 182.857143 182.857142z" fill="" p-id="1465"></path></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

4
PC/InterFace.Dash/src/layout/components/Navbar.vue

@ -16,9 +16,9 @@
<!-- <screenfull id="screenfull" class="right-menu-item hover-effect" /> -->
<el-tooltip content="Global Size" effect="dark" placement="bottom">
<!-- <el-tooltip content="Global Size" effect="dark" placement="bottom">
<size-select id="size-select" class="right-menu-item hover-effect" />
</el-tooltip>
</el-tooltip> -->
</template>
<el-dropdown

2
PC/InterFace.Dash/src/settings.js

@ -32,5 +32,5 @@ module.exports = {
* The default is only used in the production env
* If you want to also use it in dev, you can pass ['production', 'development']
*/
errorLog: 'production'
errorLog: ['production', 'development']
}

26
PC/UI.WinIn.FasterZ.Job/src/components/ErrorLog/index.vue

@ -1,15 +1,31 @@
<template>
<div v-if="errorLogs.length>0">
<el-badge :is-dot="true" style="line-height: 25px;margin-top: -5px;" @click.native="dialogTableVisible=true">
<el-button style="padding: 8px 10px;" size="small" type="danger">
<svg-icon icon-class="bug" />
<el-badge
:is-dot="true"
style="line-height: 10px;"
@click.native="dialogTableVisible=true"
>
<el-button style="padding: 4px" size="small" type="danger">
<svg-icon icon-class="svg_bug" style="font-size: 16px;"/>
</el-button>
</el-badge>
<el-dialog :visible.sync="dialogTableVisible" width="80%" append-to-body>
<el-dialog
:visible.sync="dialogTableVisible"
width="80%"
append-to-body
:close-on-click-modal="true"
:show-close="true"
>
<div slot="title">
<span style="padding-right: 10px;">Error Log</span>
<el-button size="mini" type="primary" icon="el-icon-delete" @click="clearAll">Clear All</el-button>
<el-button
size="mini"
type="primary"
icon="el-icon-delete"
@click="clearAll"
style="float: right;margin-right: 30px;"
>清除全部</el-button>
</div>
<el-table :data="errorLogs" border>
<el-table-column label="Message">

1
PC/UI.WinIn.FasterZ.Job/src/icons/svg/svg_bug.svg

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1693207492058" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1464" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M969.142857 548.571429c0 20.004571-16.566857 36.571429-36.571428 36.571428H804.571429c0 71.424-15.433143 125.147429-38.290286 165.705143l118.857143 119.442286a36.205714 36.205714 0 0 1 0 51.419428c-6.838857 7.424-16.566857 10.861714-25.709715 10.861715s-18.870857-3.437714-25.709714-10.861715l-113.152-112.566857S645.705143 877.714286 548.571429 877.714286V365.714286h-73.142858v512c-103.424 0-178.870857-75.446857-178.870857-75.446857L192 920.539429a37.558857 37.558857 0 0 1-52.004571 2.852571c-14.848-13.714286-16.018286-36.571429-2.852572-52.004571l115.419429-129.718858C232.557714 702.244571 219.428571 651.373714 219.428571 585.106286H91.428571c-20.004571 0-36.571429-16.566857-36.571428-36.571429s16.566857-36.571429 36.571428-36.571428H219.428571V343.954286L120.576 245.101714c-14.299429-14.299429-14.299429-37.156571 0-51.419428s37.156571-14.299429 51.419429 0l98.852571 98.852571h482.304l98.852571-98.852571c14.299429-14.299429 37.156571-14.299429 51.419429 0s14.299429 37.156571 0 51.419428L804.571429 343.954286v168.009143h128c20.004571 0 36.571429 16.566857 36.571428 36.571428zM694.857143 219.428571H329.142857c0-101.156571 81.700571-182.857143 182.857143-182.857142s182.857143 81.700571 182.857143 182.857142z" fill="" p-id="1465"></path></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

2
PC/UI.WinIn.FasterZ.Job/src/settings.js

@ -32,5 +32,5 @@ module.exports = {
* The default is only used in the production env
* If you want to also use it in dev, you can pass ['production', 'development']
*/
errorLog: 'production'
errorLog: ['production', 'development']
}

26
PC/UI.WinIn.FasterZ.Store/src/components/ErrorLog/index.vue

@ -1,15 +1,31 @@
<template>
<div v-if="errorLogs.length>0">
<el-badge :is-dot="true" style="line-height: 25px;margin-top: -5px;" @click.native="dialogTableVisible=true">
<el-button style="padding: 8px 10px;" size="small" type="danger">
<svg-icon icon-class="bug" />
<el-badge
:is-dot="true"
style="line-height: 10px;"
@click.native="dialogTableVisible=true"
>
<el-button style="padding: 4px" size="small" type="danger">
<svg-icon icon-class="svg_bug" style="font-size: 16px;"/>
</el-button>
</el-badge>
<el-dialog :visible.sync="dialogTableVisible" width="80%" append-to-body>
<el-dialog
:visible.sync="dialogTableVisible"
width="80%"
append-to-body
:close-on-click-modal="true"
:show-close="true"
>
<div slot="title">
<span style="padding-right: 10px;">Error Log</span>
<el-button size="mini" type="primary" icon="el-icon-delete" @click="clearAll">Clear All</el-button>
<el-button
size="mini"
type="primary"
icon="el-icon-delete"
@click="clearAll"
style="float: right;margin-right: 30px;"
>清除全部</el-button>
</div>
<el-table :data="errorLogs" border>
<el-table-column label="Message">

1
PC/UI.WinIn.FasterZ.Store/src/icons/svg/svg_bug.svg

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1693207492058" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1464" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M969.142857 548.571429c0 20.004571-16.566857 36.571429-36.571428 36.571428H804.571429c0 71.424-15.433143 125.147429-38.290286 165.705143l118.857143 119.442286a36.205714 36.205714 0 0 1 0 51.419428c-6.838857 7.424-16.566857 10.861714-25.709715 10.861715s-18.870857-3.437714-25.709714-10.861715l-113.152-112.566857S645.705143 877.714286 548.571429 877.714286V365.714286h-73.142858v512c-103.424 0-178.870857-75.446857-178.870857-75.446857L192 920.539429a37.558857 37.558857 0 0 1-52.004571 2.852571c-14.848-13.714286-16.018286-36.571429-2.852572-52.004571l115.419429-129.718858C232.557714 702.244571 219.428571 651.373714 219.428571 585.106286H91.428571c-20.004571 0-36.571429-16.566857-36.571428-36.571429s16.566857-36.571429 36.571428-36.571428H219.428571V343.954286L120.576 245.101714c-14.299429-14.299429-14.299429-37.156571 0-51.419428s37.156571-14.299429 51.419429 0l98.852571 98.852571h482.304l98.852571-98.852571c14.299429-14.299429 37.156571-14.299429 51.419429 0s14.299429 37.156571 0 51.419428L804.571429 343.954286v168.009143h128c20.004571 0 36.571429 16.566857 36.571428 36.571428zM694.857143 219.428571H329.142857c0-101.156571 81.700571-182.857143 182.857143-182.857142s182.857143 81.700571 182.857143 182.857142z" fill="" p-id="1465"></path></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

2
PC/UI.WinIn.FasterZ.Store/src/settings.js

@ -32,5 +32,5 @@ module.exports = {
* The default is only used in the production env
* If you want to also use it in dev, you can pass ['production', 'development']
*/
errorLog: 'production'
errorLog: ['production', 'development']
}

Loading…
Cancel
Save