开放日志修改
deploy-userbase-front / build-and-deploy (push) Successful in 3m1s

This commit is contained in:
chenxing
2026-08-20 12:17:29 +08:00
parent 049965f51b
commit f5c1289681
2 changed files with 4 additions and 28 deletions
+2 -19
View File
@@ -19,9 +19,8 @@
<FormItem label="调用参数:">
<pre class="json-pre">{{ formatJson(row?.requestParams) }}</pre>
</FormItem>
<FormItem label="数据:">
<a v-if="row?.id" href="javascript:;" class="download-link" @click.prevent="handleDownload">下载</a>
<span v-else>-</span>
<FormItem label="响应结果:">
<pre class="json-pre">{{ formatJson(row?.responseData) }}</pre>
</FormItem>
<FormItem label="创建时间:">
<span>{{ formatTime(row?.createTime) }}</span>
@@ -36,7 +35,6 @@
<script setup lang="ts">
import { computed } from 'vue';
import useCurrentInstance from '@/utils/hook/useCurrentInstance';
import Utils from '@/utils';
interface Props {
@@ -55,8 +53,6 @@ const show = computed({
set: val => emit('update:modelValue', val),
});
const { $conf } = useCurrentInstance();
const appText = computed(() => {
if (!props.row?.callerAppName && !props.row?.callerAppKey) return '-';
const name = props.row.callerAppName || '-';
@@ -85,11 +81,6 @@ function formatTime(val: any): string {
if (!val) return '-';
return Utils.dateFormat(val, 'yyyy-MM-dd HH:mm:ss');
}
function handleDownload() {
if (!props.row?.id) return;
location.href = `${$conf.serviceHost}/api/oapilog/Download/${props.row.id}`;
}
</script>
<style lang="scss" scoped>
@@ -124,13 +115,5 @@ function handleDownload() {
font-size: 13px;
line-height: 1.6;
}
.download-link {
color: #577afb;
&:hover {
color: #3d5afe;
}
}
}
</style>
+2 -9
View File
@@ -2,11 +2,8 @@
<div class="main-wrapper">
<div class="main-container">
<div class="search-wrap fix">
<Input v-model="dataParams.keyword" placeholder="接口名称 / 应用名" clearable suffix="ios-search"
style="width: 220px" @on-search="handleSearch" @on-clear="handleSearch" />
<Input v-model="dataParams.callerAppKey" placeholder="应用Key" clearable style="width: 130px"
@on-enter="handleSearch" @on-clear="handleSearch" />
<Input v-model="dataParams.keyword" placeholder="输入接口名/应用名/appKey搜索" clearable suffix="ios-search"
style="width: 280px" @on-search="handleSearch" @on-clear="handleSearch" />
<Select v-model="dataParams.success" class="ml-12" clearable placeholder="调用结果" style="width: 120px"
@on-change="handleSearch">
@@ -18,7 +15,6 @@
@on-change="handleSearch">
<Option :value="1">重要</Option>
<Option :value="2">次要</Option>
<Option :value="3">一般</Option>
</Select>
<DatePicker v-model="startDate" type="date" placeholder="开始时间" format="yyyy-MM-dd" :editable="false"
@@ -52,7 +48,6 @@ const tableRef = ref<InstanceType<typeof TablePageAlovaNew> | null>(null);
interface DataParams {
keyword?: string;
callerAppKey?: number;
success?: string;
logLevel?: number;
startTime?: string;
@@ -61,7 +56,6 @@ interface DataParams {
const dataParams = ref<DataParams>({
keyword: undefined,
callerAppKey: undefined,
success: undefined,
logLevel: undefined,
startTime: undefined,
@@ -93,7 +87,6 @@ const tableApi = (params: { pageIndex: number; pageSize: number }) => {
return (Apis as any).SysOapiLog.oapiLogList({
params: clean({
keyword: dataParams.value.keyword?.trim() || undefined,
callerAppKey: dataParams.value.callerAppKey,
success: dataParams.value.success,
logLevel: dataParams.value.logLevel,
startTime: dataParams.value.startTime,