From 69a1b3bf45738f048361ee4ccb6bdc64fce35720 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 12 三月 2025 11:31:46 +0800
Subject: [PATCH] 更新
---
admin/src/views/system/InterfaceLog.vue | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 159 insertions(+), 0 deletions(-)
diff --git a/admin/src/views/system/InterfaceLog.vue b/admin/src/views/system/InterfaceLog.vue
new file mode 100644
index 0000000..46e5bdf
--- /dev/null
+++ b/admin/src/views/system/InterfaceLog.vue
@@ -0,0 +1,159 @@
+<template>
+ <div class="main_app">
+ <QueryForm
+ v-model="filters"
+ :query-form-config="queryFormConfig"
+ @handleQuery="getList(1)"
+ @clear="clear"
+ @changeForm='changeForm'
+ >
+ <template #fastdate>
+ <el-radio-group
+ v-model="filters.fastdate"
+ size="small"
+ @input="changeRadio"
+ >
+ <el-radio-button label="0">褰撳ぉ</el-radio-button>
+ <el-radio-button label="6">杩�7澶�</el-radio-button>
+ <el-radio-button label="29">杩�30澶�</el-radio-button>
+ </el-radio-group>
+ </template>
+ </QueryForm>
+ <el-table v-loading="loading" :data="list" stripe>
+ <el-table-column
+ prop="name"
+ label="鎺ュ彛鍚嶇О"
+ min-width="100"
+ show-overflow-tooltip
+ />
+ <el-table-column
+ prop="name"
+ label="鍦板潃淇℃伅"
+ min-width="100"
+ show-overflow-tooltip
+ />
+ <el-table-column
+ prop="name"
+ label="绫诲瀷"
+ min-width="100"
+ show-overflow-tooltip
+ />
+ <el-table-column
+ prop="name"
+ label="骞冲彴"
+ min-width="100"
+ show-overflow-tooltip
+ />
+ <el-table-column
+ prop="name"
+ label="璇锋眰鍙傛暟"
+ min-width="100"
+ show-overflow-tooltip
+ />
+ <el-table-column
+ prop="name"
+ label="鐩稿簲鍙傛暟"
+ min-width="100"
+ show-overflow-tooltip
+ />
+ <el-table-column
+ prop="name"
+ label="鍒涘缓鏃堕棿"
+ min-width="100"
+ show-overflow-tooltip
+ />
+ </el-table>
+ <pagination
+ @size-change="handleSizeChange"
+ @current-change="getList"
+ :pagination="pagination"
+ />
+ </div>
+</template>
+
+<script>
+import Pagination from '@/components/common/Pagination'
+import QueryForm from '@/components/common/QueryForm'
+import dayjs from 'dayjs'
+export default {
+ components: {
+ Pagination,
+ QueryForm
+ },
+ data () {
+ return {
+ loading: false,
+ pagination: {
+ capacity: 10,
+ page: 1
+ },
+ filters: {
+ fastdate: '0'
+ },
+ list: [],
+ total: 0,
+ queryFormConfig: {
+ formItems: [
+ {
+ filed: 'aaaa',
+ type: 'input',
+ label: '鎺ュ彛鍚嶇О'
+ },
+ {
+ filed: 'bbb',
+ type: 'select',
+ label: '绫诲瀷',
+ options: []
+ },
+ {
+ filed: 'selTime',
+ type: 'datetimerange',
+ label: '璧锋鏃堕棿'
+ },
+ {
+ type: 'slot',
+ filed: 'fastdate',
+ label: ''
+ }
+ ],
+ online: true
+ }
+ }
+ },
+ created () {
+ this.changeRadio('0')
+ },
+ methods: {
+ changeRadio (day) {
+ const arr = [dayjs().subtract(day, 'day').format('YYYY-MM-DD') + ' 00:00:00', dayjs().format('YYYY-MM-DD') + ' 23:59:59']
+ this.$set(this.filters, 'selTime', arr)
+ this.getList()
+ },
+ changeForm (str) {
+ if (str === 'selTime') {
+ this.$set(this.filters, 'fastdate', null)
+ this.getList()
+ }
+ },
+ handleSub () {
+ this.$refs.ruleForm.validate((valid) => {
+ if (valid) {
+ alert('submit!')
+ }
+ })
+ },
+ getList (page) { },
+ clear () {
+ this.filters = { fastdate: '0' }
+ this.getList(1)
+ },
+ handleSizeChange (capacity) {
+ this.pagination.capacity = capacity
+ this.getList(1)
+ }
+ }
+}
+</script>
+
+<style>
+</style>
--
Gitblit v1.9.3