caffac19 by renchao@pashanhoo.com

style:系统监控

1 parent 813788fb
......@@ -277,5 +277,4 @@ export default {
max-height: 400px;
min-height: 160px;
overflow-y: scroll;
}
</style>
}</style>
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-13 10:22:36
*/
import filter from '@/utils/filter.js'
let vm = null
const sendThis = (_this) => {
......@@ -70,9 +75,8 @@ class data extends filter {
{
label: '操作',
align: 'center',
fixed: 'right',
render: (h, scope) => {
return <div>
return <div>
<el-button type="text" icon="el-icon-view" onClick={() => { vm.openDialog(scope.row) }}>查看</el-button>
</div>
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-13 10:24:49
-->
<template>
<div>
<el-row :gutter="8">
<el-col :span="16">
api接口地址:
<el-input v-model="formData.item.apiUri"></el-input>
</el-col>
api接口地址:
<el-input v-model="formData.apiUri" class="width100"></el-input>
</el-row>
<el-row :gutter="8">
<el-col :span="24" class="margin-top-middle">
传入参数:
<el-input type="textarea" :rows="4" v-model="formData.item.crcs"></el-input>
</el-col>
<el-col :span="24" class="margin-top-middle">
传入参数:
<el-input type="textarea" :rows="4" v-model="formData.crcs"></el-input>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24" class="margin-top-middle">
错误内容:
<el-input type="textarea" :rows="10" v-model="formData.item.cwnr"></el-input>
</el-col>
<el-col :span="24" class="margin-top-middle">
错误内容:
<el-input type="textarea" :rows="10" v-model="formData.cwnr"></el-input>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24" class="margin-top-middle">
错误位置:
<el-input type="textarea" :rows="10" v-model="formData.item.cwdmwz"></el-input>
</el-col>
<el-col :span="24" class="margin-top-middle">
错误位置:
<el-input type="textarea" :rows="10" v-model="formData.cwdmwz"></el-input>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
data () {
return {
};
},
components: { },
props: {
formData: {
type: Object,
default: () => {}
default: () => { }
},
},
created(){
console.log(this.formData);
},
computed: {
},
methods: {
created () {
console.log(this.formData);
},
};
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
.margin-top-middle {
margin-top:10px
margin-top: 10px
}
</style>
\ No newline at end of file
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-13 10:32:28
-->
<template>
<div class="from-clues">
<!-- 表单部分 -->
......@@ -25,9 +30,9 @@
</el-form>
</div>
<div class="from-clues-content">
<lb-table :page-size="pageData.size" border :current-page.sync="pageData.currentPage"
:heightNum="300" :total="tableData.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
<lb-table :page-size="pageData.size" border :current-page.sync="pageData.currentPage" :heightNum="300"
:total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
:column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
</div>
......@@ -38,7 +43,7 @@ import { datas, sendThis } from "./cwrzdata"
import { getErrorLogList } from "@/api/xtjk.js"
export default {
name: "cwrz",
components: { },
components: {},
mixins: [table],
mounted () {
sendThis(this);
......@@ -63,24 +68,20 @@ export default {
};
},
methods: {
queryClick(){
queryClick () {
getErrorLogList({ ...this.queryForm, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total;
this.tableData.data = records
this.tableData.data.forEach((item,index) => {
item.cwdmwz = item.cwdmwz.replace(/\\n/g, '\n')
this.tableData.data.forEach((item, index) => {
item.cwdmwz = item.cwdmwz.replace(/\\n/g, '\n')
})
}
})
},
viewDetail(e){
this.$popup("错误日志", "xtjk/cwrz/components/viewDialog", {
formData: {
item: e
}
})
viewDetail (e) {
this.$popupDialog("错误日志", "xtjk/cwrz/components/viewDialog", e, "50%")
}
}
};
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-13 10:22:16
*/
import filter from '@/utils/filter.js'
let vm = null
......@@ -48,14 +53,14 @@ class data extends filter {
prop: "cwnr",
label: "错误内容",
render: (h, scope) => {
return <div class="item-cwnr">{scope.row.cwnr}</div>
return <div class="item-cwnr">{scope.row.cwnr}</div>
}
},
{
//prop: "cwdmwz",
label: "错误位置",
render: (h, scope) => {
return <div class="item-cwnr" style="white-space: pre-wrap;">{scope.row.cwdmwz}</div>
return <div class="item-cwnr" style="white-space: pre-wrap;">{scope.row.cwdmwz}</div>
}
},
{
......@@ -71,10 +76,8 @@ class data extends filter {
{
label: '操作',
width: '80',
align: 'center',
fixed: 'right',
render: (h, scope) => {
return <el-button type="text" onClick={() => { vm.viewDetail(scope.row) }}>查看</el-button>
return <el-button type="text" icon="el-icon-view" onClick={() => { vm.viewDetail(scope.row) }}>查看</el-button>
}
}
]
......
<!--
* @Autor: renchao
* @LastEditTime: 2023-04-13 10:31:50
-->
<template>
<div>
<el-row :gutter="8">
<el-col :span="16">
api接口地址:
<el-input v-model="formData.item.apiUri"></el-input>
</el-col>
<el-col :span="16">
api接口地址:
<el-input v-model="formData.apiUri"></el-input>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24" class="margin-top-middle">
操作人员:
<el-input v-model="formData.item.creater"></el-input>
</el-col>
<el-col :span="24" class="margin-top-middle">
操作人员:
<el-input v-model="formData.creater"></el-input>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="24" class="margin-top-middle">
操作内容:
<el-input type="textarea" :rows="10" v-model="formData.item.cznr"></el-input>
</el-col>
<el-col :span="24" class="margin-top-middle">
操作内容:
<el-input type="textarea" :rows="10" v-model="formData.cznr"></el-input>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
data () {
return {
};
},
components: { },
props: {
formData: {
type: Object,
default: () => {}
},
},
created(){
console.log(this.formData);
},
computed: {
},
methods: {
},
};
default: () => { }
}
}
}
</script>
<style scoped lang='scss'>
@import "~@/styles/public.scss";
.margin-top-middle {
margin-top:10px
margin-top: 10px
}
</style>
\ No newline at end of file
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-13 10:31:33
-->
<template>
<div class="from-clues">
<!-- 表单部分 -->
......@@ -25,9 +30,9 @@
</el-form>
</div>
<div class="from-clues-content">
<lb-table :page-size="pageData.size" border :current-page.sync="pageData.currentPage"
:heightNum="300" :total="tableData.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
<lb-table :page-size="pageData.size" border :current-page.sync="pageData.currentPage" :heightNum="300"
:total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
:column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
</div>
......@@ -38,7 +43,7 @@ import { datas, sendThis } from "./czrzdata"
import { getOperationLogList } from "@/api/xtjk.js"
export default {
name: "czrz",
components: { },
components: {},
mixins: [table],
mounted () {
sendThis(this);
......@@ -63,7 +68,7 @@ export default {
};
},
methods: {
queryClick(){
queryClick () {
getOperationLogList({ ...this.queryForm, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
......@@ -72,12 +77,8 @@ export default {
}
})
},
viewDetail(e){
this.$popup("操作日志", "xtjk/czrz/components/viewDialog", {
formData: {
item: e
}
})
viewDetail (e) {
this.$popupDialog("操作日志", "xtjk/czrz/components/viewDialog", e, "50%")
}
}
};
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-13 10:28:20
*/
import filter from '@/utils/filter.js'
let vm = null
......@@ -25,7 +30,7 @@ class data extends filter {
{
prop: "czlx",
label: "操作类型",
width: '100'
width: '90'
},
{
prop: "apiUri",
......@@ -45,27 +50,25 @@ class data extends filter {
{
prop: "czfs",
label: "操作方式",
width: '100'
width: '90'
},
{
prop: "czywbh",
label: "操作业务编号",
width: '150'
width: '112'
},
{
prop: "cznr",
label: "操作内容",
render: (h, scope) => {
return <div class="item-cwnr">{scope.row.cznr}</div>
return <div class="item-cwnr">{scope.row.cznr}</div>
}
},
{
label: '操作',
width: '80',
align: 'center',
fixed: 'right',
render: (h, scope) => {
return <el-button type="text" onClick={() => { vm.viewDetail(scope.row) }}>查看</el-button>
return <el-button type="text" icon="el-icon-view" onClick={() => { vm.viewDetail(scope.row) }}>查看</el-button>
}
}
]
......