@since2006/pages 2025.12.0 → 2026.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import o from "./AccessLogList.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-43cad169"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f67f4d15"]]);
5
5
  export {
6
- a as default
6
+ c as default
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as D, reactive as S, computed as F, resolveComponent as u, openBlock as p, createElementBlock as E, createElementVNode as g, createVNode as t, withCtx as l, createTextVNode as d, unref as x, createBlock as I, toDisplayString as v, normalizeStyle as $, createCommentVNode as J, nextTick as K } from "vue";
2
- import { message as R } from "ant-design-vue";
2
+ import { message as c } from "ant-design-vue";
3
3
  import { SearchOutlined as Q, RedoOutlined as W, GlobalOutlined as X, DownloadOutlined as Z } from "@ant-design/icons-vue";
4
4
  import { queryAccessLogs as ee } from "../api.js";
5
5
  import te from "./AccessLogDetail.vue.js";
@@ -7,7 +7,7 @@ import { FxCardTable as le } from "@since2006/components";
7
7
  const ae = { class: "access-log-list" }, oe = { class: "ant-pro-table" }, ne = { class: "ant-pro-table-search" }, de = { class: "text-ellipsis" }, se = { class: "text-ellipsis" }, re = { class: "text-ellipsis" }, ue = ["onClick"], Ie = /* @__PURE__ */ j({
8
8
  __name: "AccessLogList",
9
9
  setup(ie) {
10
- const w = D(), U = D(!1), C = D(!1), c = [
10
+ const w = D(), R = D(!1), C = D(!1), U = [
11
11
  {
12
12
  title: "追踪ID",
13
13
  dataIndex: "traceId",
@@ -74,8 +74,6 @@ const ae = { class: "access-log-list" }, oe = { class: "ant-pro-table" }, ne = {
74
74
  dateRange: void 0,
75
75
  query: void 0
76
76
  }, a = S({ ...P }), M = F(() => ({
77
- page: 1,
78
- pageSize: 20,
79
77
  userId: a.userId,
80
78
  method: a.method,
81
79
  responseStatus: a.responseStatus,
@@ -99,9 +97,9 @@ const ae = { class: "access-log-list" }, oe = { class: "ant-pro-table" }, ne = {
99
97
  }, L = async () => {
100
98
  C.value = !0;
101
99
  try {
102
- R.success("导出成功");
100
+ c.success("导出成功");
103
101
  } catch {
104
- R.error("导出失败");
102
+ c.error("导出失败");
105
103
  } finally {
106
104
  C.value = !1;
107
105
  }
@@ -328,7 +326,7 @@ const ae = { class: "access-log-list" }, oe = { class: "ant-pro-table" }, ne = {
328
326
  t(k, {
329
327
  onClick: m,
330
328
  type: "primary",
331
- loading: U.value
329
+ loading: R.value
332
330
  }, {
333
331
  default: l(() => [
334
332
  t(x(Q)),
@@ -357,9 +355,10 @@ const ae = { class: "access-log-list" }, oe = { class: "ant-pro-table" }, ne = {
357
355
  })
358
356
  ]),
359
357
  t(x(le), {
360
- columns: c,
358
+ columns: U,
361
359
  "load-data": x(ee),
362
360
  params: M.value,
361
+ "page-config": { pageSize: 20 },
363
362
  ref_key: "tableRef",
364
363
  ref: w,
365
364
  "row-key": "id"
@@ -1,7 +1,7 @@
1
1
  import o from "./AuditLogList.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-13310236"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2505b1db"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -54,8 +54,6 @@ const te = { class: "audit-log-list" }, ae = { class: "ant-pro-table" }, oe = {
54
54
  dateRange: void 0,
55
55
  query: void 0
56
56
  }, o = h({ ...D }), P = $(() => ({
57
- page: 1,
58
- pageSize: 20,
59
57
  operatorName: o.operatorName,
60
58
  action: o.action,
61
59
  ipAddress: o.ipAddress,
@@ -242,6 +240,7 @@ const te = { class: "audit-log-list" }, ae = { class: "ant-pro-table" }, oe = {
242
240
  columns: q,
243
241
  "load-data": v(X),
244
242
  params: P.value,
243
+ "page-config": { pageSize: 20 },
245
244
  ref_key: "tableRef",
246
245
  ref: w,
247
246
  "row-key": "id"
@@ -1,7 +1,7 @@
1
1
  import o from "./ErrorLogList.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-57854e76"]]);
4
+ const s = /* @__PURE__ */ r(o, [["__scopeId", "data-v-47610902"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };
@@ -60,8 +60,6 @@ const ae = { class: "error-log-list" }, oe = { class: "ant-pro-table" }, le = {
60
60
  dateRange: void 0,
61
61
  query: void 0
62
62
  }, o = h({ ...w }), D = z(() => ({
63
- page: 1,
64
- pageSize: 20,
65
63
  appName: o.appName,
66
64
  env: o.env,
67
65
  level: o.level,
@@ -229,6 +227,7 @@ const ae = { class: "error-log-list" }, oe = { class: "ant-pro-table" }, le = {
229
227
  columns: Y,
230
228
  "load-data": p(Z),
231
229
  params: D.value,
230
+ "page-config": { pageSize: 20 },
232
231
  ref_key: "tableRef",
233
232
  ref: v,
234
233
  "row-key": "id"
@@ -1,7 +1,7 @@
1
1
  import o from "./LoginLogList.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3744022f"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e0685b29"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -69,12 +69,12 @@ const ae = { class: "login-log-list" }, oe = { class: "ant-pro-table" }, ne = {
69
69
  }), p = () => {
70
70
  var n;
71
71
  (n = c.value) == null || n.refresh();
72
- }, q = async () => {
72
+ }, S = async () => {
73
73
  Object.assign(o, C), await h(), p();
74
- }, P = () => {
74
+ }, q = () => {
75
75
  var n;
76
76
  (n = c.value) == null || n.refresh();
77
- }, S = async (n) => {
77
+ }, P = async (n) => {
78
78
  o.status = n, await h(), p();
79
79
  }, U = async () => {
80
80
  x.value = !0;
@@ -150,7 +150,7 @@ const ae = { class: "login-log-list" }, oe = { class: "ant-pro-table" }, ne = {
150
150
  "onUpdate:value": e[2] || (e[2] = (l) => o.status = l),
151
151
  placeholder: "状态",
152
152
  allowClear: "",
153
- onChange: S
153
+ onChange: P
154
154
  }, {
155
155
  default: a(() => [
156
156
  t(b, { value: 1 }, {
@@ -203,7 +203,7 @@ const ae = { class: "login-log-list" }, oe = { class: "ant-pro-table" }, ne = {
203
203
  _: 1
204
204
  }, 8, ["loading"]),
205
205
  t(y, {
206
- onClick: q,
206
+ onClick: S,
207
207
  style: { "margin-left": "8px" }
208
208
  }, {
209
209
  default: a(() => e[8] || (e[8] = [
@@ -225,6 +225,7 @@ const ae = { class: "login-log-list" }, oe = { class: "ant-pro-table" }, ne = {
225
225
  columns: T,
226
226
  "load-data": i(X),
227
227
  params: M.value,
228
+ "page-config": { pageSize: 20 },
228
229
  ref_key: "tableRef",
229
230
  ref: c,
230
231
  "row-key": "id"
@@ -292,7 +293,7 @@ const ae = { class: "login-log-list" }, oe = { class: "ant-pro-table" }, ne = {
292
293
  open: u.open,
293
294
  "onUpdate:open": e[4] || (e[4] = (l) => u.open = l),
294
295
  "log-id": u.logId,
295
- onRefresh: P
296
+ onRefresh: q
296
297
  }, null, 8, ["open", "log-id"])
297
298
  ]);
298
299
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationLogList.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-044829f6"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d74ea79a"]]);
5
5
  export {
6
- e as default
6
+ p as default
7
7
  };
@@ -65,8 +65,6 @@ const le = { class: "operation-log-list" }, se = { class: "ant-pro-table" }, re
65
65
  status: void 0,
66
66
  dateRange: void 0
67
67
  }, n = R({ ...M }), O = $(() => ({
68
- page: 1,
69
- pageSize: 20,
70
68
  query: n.query,
71
69
  username: n.username,
72
70
  status: n.status,
@@ -240,6 +238,7 @@ const le = { class: "operation-log-list" }, se = { class: "ant-pro-table" }, re
240
238
  columns: T,
241
239
  "load-data": u(ae),
242
240
  params: O.value,
241
+ "page-config": { pageSize: 20 },
243
242
  ref_key: "tableRef",
244
243
  ref: y,
245
244
  "row-key": "id"
package/dist/es/style.css CHANGED
@@ -1 +1 @@
1
- .large-text[data-v-c5b4a14e]{font-size:16px}.float-right[data-v-c5b4a14e]{float:right}.margin-block[data-v-c5b4a14e]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-a47fcf40],.icon-selector deep(ul) li[data-v-a47fcf40]:hover{border-radius:2px;border-color:#4a4a48;background-color:#4a4a48;color:#fff;transition:all .3s;box-shadow:none}.icon-selector deep(ul) i[data-v-a47fcf40]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-233e6305]{padding-top:20px}.permission-tree[data-v-233e6305],.permission-tree[data-v-89600073]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-995a937c] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-dd4b2211]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-dd4b2211]{width:70px}.cron-detail .ant-input[data-v-dd4b2211]{width:280px}.cron-detail[data-v-3b943880]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-3b943880]{width:70px}.cron-detail .ant-input[data-v-3b943880]{width:280px}[data-v-418f353d] .ant-descriptions-item-label{width:140px}.text-ellipsis[data-v-c407c636]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-c407c636] .ant-descriptions-item-label{width:120px}.ua-icon[data-v-f846ecbb]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.login-log-list .text-ellipsis[data-v-3744022f]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.method-text[data-v-8d1c9637]{background:#f5f5f5;padding:2px 6px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.json-container[data-v-8d1c9637]{max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-8d1c9637]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}[data-v-8d1c9637] .ant-descriptions-item-label{width:120px}.operation-log-list .text-ellipsis[data-v-044829f6]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-bdeeb034] .ant-descriptions-item-label{width:120px}.audit-log-list .text-ellipsis[data-v-13310236]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.text-ellipsis[data-v-7436a600]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.performance-analysis[data-v-7436a600]{padding:16px;background:#fafafa;border-radius:6px}.performance-analysis[data-v-7436a600] .ant-statistic{text-align:center}[data-v-7436a600] .ant-descriptions-item-label{width:120px}.access-log-list .text-ellipsis[data-v-43cad169]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.json-container[data-v-793d348e]{max-height:200px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.stack-container[data-v-793d348e]{max-height:400px;overflow:auto;background:#fff2f0;border:1px solid #ffccc7;padding:12px;border-radius:4px}.stack-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px;line-height:1.4;color:#a8071a}[data-v-793d348e] .ant-descriptions-item-label{width:120px}.error-log-list .text-ellipsis[data-v-57854e76]{display:inline-block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.notice[data-v-864b567f]{color:#ff4d4f;font-size:18px}.table-operator[data-v-1cbc3d31]{margin:10px 14px 20px 0}[data-v-1cbc3d31] .ant-descriptions-item-label{width:140px}.tree-container[data-v-1cbc3d31] .ant-tree{max-height:520px;overflow:auto}
1
+ .large-text[data-v-c5b4a14e]{font-size:16px}.float-right[data-v-c5b4a14e]{float:right}.margin-block[data-v-c5b4a14e]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-a47fcf40],.icon-selector deep(ul) li[data-v-a47fcf40]:hover{border-radius:2px;border-color:#4a4a48;background-color:#4a4a48;color:#fff;transition:all .3s;box-shadow:none}.icon-selector deep(ul) i[data-v-a47fcf40]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-233e6305]{padding-top:20px}.permission-tree[data-v-233e6305],.permission-tree[data-v-89600073]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-995a937c] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-dd4b2211]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-dd4b2211]{width:70px}.cron-detail .ant-input[data-v-dd4b2211]{width:280px}.cron-detail[data-v-3b943880]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-3b943880]{width:70px}.cron-detail .ant-input[data-v-3b943880]{width:280px}[data-v-418f353d] .ant-descriptions-item-label{width:140px}.text-ellipsis[data-v-c407c636]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-c407c636] .ant-descriptions-item-label{width:120px}.ua-icon[data-v-f846ecbb]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.login-log-list .text-ellipsis[data-v-e0685b29]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.method-text[data-v-8d1c9637]{background:#f5f5f5;padding:2px 6px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.json-container[data-v-8d1c9637]{max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-8d1c9637]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}[data-v-8d1c9637] .ant-descriptions-item-label{width:120px}.operation-log-list .text-ellipsis[data-v-d74ea79a]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-bdeeb034] .ant-descriptions-item-label{width:120px}.audit-log-list .text-ellipsis[data-v-2505b1db]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.text-ellipsis[data-v-7436a600]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.performance-analysis[data-v-7436a600]{padding:16px;background:#fafafa;border-radius:6px}.performance-analysis[data-v-7436a600] .ant-statistic{text-align:center}[data-v-7436a600] .ant-descriptions-item-label{width:120px}.access-log-list .text-ellipsis[data-v-f67f4d15]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.json-container[data-v-793d348e]{max-height:200px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.stack-container[data-v-793d348e]{max-height:400px;overflow:auto;background:#fff2f0;border:1px solid #ffccc7;padding:12px;border-radius:4px}.stack-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px;line-height:1.4;color:#a8071a}[data-v-793d348e] .ant-descriptions-item-label{width:120px}.error-log-list .text-ellipsis[data-v-47610902]{display:inline-block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.notice[data-v-864b567f]{color:#ff4d4f;font-size:18px}.table-operator[data-v-1cbc3d31]{margin:10px 14px 20px 0}[data-v-1cbc3d31] .ant-descriptions-item-label{width:140px}.tree-container[data-v-1cbc3d31] .ant-tree{max-height:520px;overflow:auto}
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./AccessLogList.vue2.js");;/* empty css */const t=require("../../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-43cad169"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./AccessLogList.vue2.js");;/* empty css */const t=require("../../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-f67f4d15"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("ant-design-vue"),x=require("@ant-design/icons-vue"),M=require("../api.js"),R=require("./AccessLogDetail.vue.js"),U=require("@since2006/components"),q={class:"access-log-list"},Y={class:"ant-pro-table"},H={class:"ant-pro-table-search"},L={class:"text-ellipsis"},O={class:"text-ellipsis"},G={class:"text-ellipsis"},j=["onClick"],z=e.defineComponent({__name:"AccessLogList",setup(F){const c=e.ref(),g=e.ref(!1),f=e.ref(!1),_=[{title:"追踪ID",dataIndex:"traceId",width:"200px",fixed:"left"},{title:"用户ID",dataIndex:"userId",width:"120px"},{title:"请求方法",dataIndex:"method",width:"80px"},{title:"请求URI",dataIndex:"uri",width:"250px",ellipsis:!0},{title:"状态码",dataIndex:"responseStatus",width:"80px",sorter:!0},{title:"耗时",dataIndex:"latencyMs",width:"80px",sorter:!0},{title:"IP地址",dataIndex:"ipAddress",width:"140px"},{title:"User-Agent",dataIndex:"userAgent",width:"200px",ellipsis:!0},{title:"请求时间",dataIndex:"requestTime",width:"180px",sorter:!0},{title:"操作",dataIndex:"action",width:"80px",fixed:"right"}],V={userId:void 0,method:void 0,responseStatus:void 0,uri:void 0,ipAddress:void 0,dateRange:void 0,query:void 0},o=e.reactive({...V}),h=e.computed(()=>({page:1,pageSize:20,userId:o.userId,method:o.method,responseStatus:o.responseStatus,uri:o.uri,ipAddress:o.ipAddress,startDate:o.dateRange?o.dateRange[0].format("YYYY-MM-DD HH:mm:ss"):void 0,endDate:o.dateRange?o.dateRange[1].format("YYYY-MM-DD HH:mm:ss"):void 0,query:o.query,sorting:void 0})),u=e.reactive({open:!1,logId:""}),i=()=>{var a;(a=c.value)==null||a.refresh()},I=async()=>{Object.assign(o,V),await e.nextTick(),i()},y=()=>{var a;(a=c.value)==null||a.refresh()},T=async()=>{f.value=!0;try{w.message.success("导出成功")}catch{w.message.error("导出失败")}finally{f.value=!1}},k=a=>({GET:"green",POST:"blue",PUT:"orange",DELETE:"red",PATCH:"purple"})[a]||"default",D=a=>a>=200&&a<300?"green":a>=300&&a<400?"blue":a>=400&&a<500?"orange":a>=500?"red":"default",E=a=>a<100?"#52c41a":a<500?"#fa8c16":a<1e3?"#ff7875":"#ff4d4f",S=a=>{u.open=!0,u.logId=a.id};return(a,t)=>{const p=e.resolveComponent("a-input"),s=e.resolveComponent("a-form-item"),d=e.resolveComponent("a-col"),n=e.resolveComponent("a-select-option"),v=e.resolveComponent("a-select"),b=e.resolveComponent("a-range-picker"),C=e.resolveComponent("a-button"),P=e.resolveComponent("a-row"),A=e.resolveComponent("a-form"),B=e.resolveComponent("a-space"),N=e.resolveComponent("a-tag"),m=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",Y,[e.createElementVNode("div",H,[e.createVNode(A,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(P,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(d,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"用户ID"},{default:e.withCtx(()=>[e.createVNode(p,{value:o.userId,"onUpdate:value":t[0]||(t[0]=l=>o.userId=l),placeholder:"请输入用户ID",onPressEnter:i,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"150px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"请求方法"},{default:e.withCtx(()=>[e.createVNode(v,{value:o.method,"onUpdate:value":t[1]||(t[1]=l=>o.method=l),placeholder:"选择方法",allowClear:""},{default:e.withCtx(()=>[e.createVNode(n,{value:"GET"},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode("GET")])),_:1}),e.createVNode(n,{value:"POST"},{default:e.withCtx(()=>t[9]||(t[9]=[e.createTextVNode("POST")])),_:1}),e.createVNode(n,{value:"PUT"},{default:e.withCtx(()=>t[10]||(t[10]=[e.createTextVNode("PUT")])),_:1}),e.createVNode(n,{value:"DELETE"},{default:e.withCtx(()=>t[11]||(t[11]=[e.createTextVNode("DELETE")])),_:1}),e.createVNode(n,{value:"PATCH"},{default:e.withCtx(()=>t[12]||(t[12]=[e.createTextVNode("PATCH")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"150px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"状态码"},{default:e.withCtx(()=>[e.createVNode(v,{value:o.responseStatus,"onUpdate:value":t[2]||(t[2]=l=>o.responseStatus=l),placeholder:"选择状态码",allowClear:""},{default:e.withCtx(()=>[e.createVNode(n,{value:200},{default:e.withCtx(()=>t[13]||(t[13]=[e.createTextVNode("200")])),_:1}),e.createVNode(n,{value:201},{default:e.withCtx(()=>t[14]||(t[14]=[e.createTextVNode("201")])),_:1}),e.createVNode(n,{value:400},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode("400")])),_:1}),e.createVNode(n,{value:401},{default:e.withCtx(()=>t[16]||(t[16]=[e.createTextVNode("401")])),_:1}),e.createVNode(n,{value:403},{default:e.withCtx(()=>t[17]||(t[17]=[e.createTextVNode("403")])),_:1}),e.createVNode(n,{value:404},{default:e.withCtx(()=>t[18]||(t[18]=[e.createTextVNode("404")])),_:1}),e.createVNode(n,{value:500},{default:e.withCtx(()=>t[19]||(t[19]=[e.createTextVNode("500")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"请求URI"},{default:e.withCtx(()=>[e.createVNode(p,{value:o.uri,"onUpdate:value":t[3]||(t[3]=l=>o.uri=l),placeholder:"请输入请求URI",onPressEnter:i,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"IP地址"},{default:e.withCtx(()=>[e.createVNode(p,{value:o.ipAddress,"onUpdate:value":t[4]||(t[4]=l=>o.ipAddress=l),placeholder:"请输入IP地址",onPressEnter:i,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"300px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"时间范围"},{default:e.withCtx(()=>[e.createVNode(b,{value:o.dateRange,"onUpdate:value":t[5]||(t[5]=l=>o.dateRange=l),"show-time":"",format:"YYYY-MM-DD HH:mm:ss"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"240px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(p,{value:o.query,"onUpdate:value":t[6]||(t[6]=l=>o.query=l),placeholder:"追踪ID、User-Agent等",onPressEnter:i,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(C,{onClick:i,type:"primary",loading:g.value},{default:e.withCtx(()=>[e.createVNode(e.unref(x.SearchOutlined)),t[20]||(t[20]=e.createTextVNode(" 搜索 "))]),_:1},8,["loading"]),e.createVNode(C,{onClick:I,style:{"margin-left":"8px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(x.RedoOutlined)),t[21]||(t[21]=e.createTextVNode(" 重置 "))]),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(U.FxCardTable),{columns:_,"load-data":e.unref(M.queryAccessLogs),params:h.value,ref_key:"tableRef",ref:c,"row-key":"id"},{title:e.withCtx(()=>[e.createVNode(e.unref(x.GlobalOutlined)),t[22]||(t[22]=e.createTextVNode(" 访问日志 "))]),extra:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(C,{onClick:T,loading:f.value},{default:e.withCtx(()=>[e.createVNode(e.unref(x.DownloadOutlined)),t[23]||(t[23]=e.createTextVNode(" 导出 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:l,record:r})=>[l.dataIndex==="method"?(e.openBlock(),e.createBlock(N,{key:0,color:k(r.method)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.method),1)]),_:2},1032,["color"])):l.dataIndex==="responseStatus"?(e.openBlock(),e.createBlock(N,{key:1,color:D(r.responseStatus)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.responseStatus),1)]),_:2},1032,["color"])):l.dataIndex==="latencyMs"?(e.openBlock(),e.createElementBlock("span",{key:2,style:e.normalizeStyle({color:E(r.latencyMs)})},e.toDisplayString(r.latencyMs)+"ms ",5)):l.dataIndex==="uri"?(e.openBlock(),e.createBlock(m,{key:3,title:r.uri},{default:e.withCtx(()=>[e.createElementVNode("span",L,e.toDisplayString(r.uri),1)]),_:2},1032,["title"])):l.dataIndex==="userAgent"?(e.openBlock(),e.createBlock(m,{key:4,title:r.userAgent},{default:e.withCtx(()=>[e.createElementVNode("span",O,e.toDisplayString(r.userAgent),1)]),_:2},1032,["title"])):l.dataIndex==="traceId"?(e.openBlock(),e.createBlock(m,{key:5,title:r.traceId},{default:e.withCtx(()=>[e.createElementVNode("span",G,e.toDisplayString(r.traceId),1)]),_:2},1032,["title"])):l.dataIndex==="action"?(e.openBlock(),e.createElementBlock("a",{key:6,onClick:$=>S(r)},"详情",8,j)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(R.default,{open:u.open,"onUpdate:open":t[7]||(t[7]=l=>u.open=l),"log-id":u.logId,onRefresh:y},null,8,["open","log-id"])])}}});exports.default=z;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("ant-design-vue"),x=require("@ant-design/icons-vue"),M=require("../api.js"),R=require("./AccessLogDetail.vue.js"),U=require("@since2006/components"),q={class:"access-log-list"},Y={class:"ant-pro-table"},H={class:"ant-pro-table-search"},L={class:"text-ellipsis"},O={class:"text-ellipsis"},G={class:"text-ellipsis"},j=["onClick"],z=e.defineComponent({__name:"AccessLogList",setup(F){const c=e.ref(),g=e.ref(!1),f=e.ref(!1),_=[{title:"追踪ID",dataIndex:"traceId",width:"200px",fixed:"left"},{title:"用户ID",dataIndex:"userId",width:"120px"},{title:"请求方法",dataIndex:"method",width:"80px"},{title:"请求URI",dataIndex:"uri",width:"250px",ellipsis:!0},{title:"状态码",dataIndex:"responseStatus",width:"80px",sorter:!0},{title:"耗时",dataIndex:"latencyMs",width:"80px",sorter:!0},{title:"IP地址",dataIndex:"ipAddress",width:"140px"},{title:"User-Agent",dataIndex:"userAgent",width:"200px",ellipsis:!0},{title:"请求时间",dataIndex:"requestTime",width:"180px",sorter:!0},{title:"操作",dataIndex:"action",width:"80px",fixed:"right"}],V={userId:void 0,method:void 0,responseStatus:void 0,uri:void 0,ipAddress:void 0,dateRange:void 0,query:void 0},o=e.reactive({...V}),h=e.computed(()=>({userId:o.userId,method:o.method,responseStatus:o.responseStatus,uri:o.uri,ipAddress:o.ipAddress,startDate:o.dateRange?o.dateRange[0].format("YYYY-MM-DD HH:mm:ss"):void 0,endDate:o.dateRange?o.dateRange[1].format("YYYY-MM-DD HH:mm:ss"):void 0,query:o.query,sorting:void 0})),u=e.reactive({open:!1,logId:""}),i=()=>{var a;(a=c.value)==null||a.refresh()},I=async()=>{Object.assign(o,V),await e.nextTick(),i()},y=()=>{var a;(a=c.value)==null||a.refresh()},T=async()=>{f.value=!0;try{w.message.success("导出成功")}catch{w.message.error("导出失败")}finally{f.value=!1}},k=a=>({GET:"green",POST:"blue",PUT:"orange",DELETE:"red",PATCH:"purple"})[a]||"default",D=a=>a>=200&&a<300?"green":a>=300&&a<400?"blue":a>=400&&a<500?"orange":a>=500?"red":"default",E=a=>a<100?"#52c41a":a<500?"#fa8c16":a<1e3?"#ff7875":"#ff4d4f",S=a=>{u.open=!0,u.logId=a.id};return(a,t)=>{const p=e.resolveComponent("a-input"),s=e.resolveComponent("a-form-item"),d=e.resolveComponent("a-col"),n=e.resolveComponent("a-select-option"),v=e.resolveComponent("a-select"),b=e.resolveComponent("a-range-picker"),C=e.resolveComponent("a-button"),P=e.resolveComponent("a-row"),A=e.resolveComponent("a-form"),B=e.resolveComponent("a-space"),N=e.resolveComponent("a-tag"),m=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",Y,[e.createElementVNode("div",H,[e.createVNode(A,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(P,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(d,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"用户ID"},{default:e.withCtx(()=>[e.createVNode(p,{value:o.userId,"onUpdate:value":t[0]||(t[0]=l=>o.userId=l),placeholder:"请输入用户ID",onPressEnter:i,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"150px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"请求方法"},{default:e.withCtx(()=>[e.createVNode(v,{value:o.method,"onUpdate:value":t[1]||(t[1]=l=>o.method=l),placeholder:"选择方法",allowClear:""},{default:e.withCtx(()=>[e.createVNode(n,{value:"GET"},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode("GET")])),_:1}),e.createVNode(n,{value:"POST"},{default:e.withCtx(()=>t[9]||(t[9]=[e.createTextVNode("POST")])),_:1}),e.createVNode(n,{value:"PUT"},{default:e.withCtx(()=>t[10]||(t[10]=[e.createTextVNode("PUT")])),_:1}),e.createVNode(n,{value:"DELETE"},{default:e.withCtx(()=>t[11]||(t[11]=[e.createTextVNode("DELETE")])),_:1}),e.createVNode(n,{value:"PATCH"},{default:e.withCtx(()=>t[12]||(t[12]=[e.createTextVNode("PATCH")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"150px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"状态码"},{default:e.withCtx(()=>[e.createVNode(v,{value:o.responseStatus,"onUpdate:value":t[2]||(t[2]=l=>o.responseStatus=l),placeholder:"选择状态码",allowClear:""},{default:e.withCtx(()=>[e.createVNode(n,{value:200},{default:e.withCtx(()=>t[13]||(t[13]=[e.createTextVNode("200")])),_:1}),e.createVNode(n,{value:201},{default:e.withCtx(()=>t[14]||(t[14]=[e.createTextVNode("201")])),_:1}),e.createVNode(n,{value:400},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode("400")])),_:1}),e.createVNode(n,{value:401},{default:e.withCtx(()=>t[16]||(t[16]=[e.createTextVNode("401")])),_:1}),e.createVNode(n,{value:403},{default:e.withCtx(()=>t[17]||(t[17]=[e.createTextVNode("403")])),_:1}),e.createVNode(n,{value:404},{default:e.withCtx(()=>t[18]||(t[18]=[e.createTextVNode("404")])),_:1}),e.createVNode(n,{value:500},{default:e.withCtx(()=>t[19]||(t[19]=[e.createTextVNode("500")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"请求URI"},{default:e.withCtx(()=>[e.createVNode(p,{value:o.uri,"onUpdate:value":t[3]||(t[3]=l=>o.uri=l),placeholder:"请输入请求URI",onPressEnter:i,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"IP地址"},{default:e.withCtx(()=>[e.createVNode(p,{value:o.ipAddress,"onUpdate:value":t[4]||(t[4]=l=>o.ipAddress=l),placeholder:"请输入IP地址",onPressEnter:i,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"300px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"时间范围"},{default:e.withCtx(()=>[e.createVNode(b,{value:o.dateRange,"onUpdate:value":t[5]||(t[5]=l=>o.dateRange=l),"show-time":"",format:"YYYY-MM-DD HH:mm:ss"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"240px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(p,{value:o.query,"onUpdate:value":t[6]||(t[6]=l=>o.query=l),placeholder:"追踪ID、User-Agent等",onPressEnter:i,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(C,{onClick:i,type:"primary",loading:g.value},{default:e.withCtx(()=>[e.createVNode(e.unref(x.SearchOutlined)),t[20]||(t[20]=e.createTextVNode(" 搜索 "))]),_:1},8,["loading"]),e.createVNode(C,{onClick:I,style:{"margin-left":"8px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(x.RedoOutlined)),t[21]||(t[21]=e.createTextVNode(" 重置 "))]),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(U.FxCardTable),{columns:_,"load-data":e.unref(M.queryAccessLogs),params:h.value,"page-config":{pageSize:20},ref_key:"tableRef",ref:c,"row-key":"id"},{title:e.withCtx(()=>[e.createVNode(e.unref(x.GlobalOutlined)),t[22]||(t[22]=e.createTextVNode(" 访问日志 "))]),extra:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(C,{onClick:T,loading:f.value},{default:e.withCtx(()=>[e.createVNode(e.unref(x.DownloadOutlined)),t[23]||(t[23]=e.createTextVNode(" 导出 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:l,record:r})=>[l.dataIndex==="method"?(e.openBlock(),e.createBlock(N,{key:0,color:k(r.method)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.method),1)]),_:2},1032,["color"])):l.dataIndex==="responseStatus"?(e.openBlock(),e.createBlock(N,{key:1,color:D(r.responseStatus)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.responseStatus),1)]),_:2},1032,["color"])):l.dataIndex==="latencyMs"?(e.openBlock(),e.createElementBlock("span",{key:2,style:e.normalizeStyle({color:E(r.latencyMs)})},e.toDisplayString(r.latencyMs)+"ms ",5)):l.dataIndex==="uri"?(e.openBlock(),e.createBlock(m,{key:3,title:r.uri},{default:e.withCtx(()=>[e.createElementVNode("span",L,e.toDisplayString(r.uri),1)]),_:2},1032,["title"])):l.dataIndex==="userAgent"?(e.openBlock(),e.createBlock(m,{key:4,title:r.userAgent},{default:e.withCtx(()=>[e.createElementVNode("span",O,e.toDisplayString(r.userAgent),1)]),_:2},1032,["title"])):l.dataIndex==="traceId"?(e.openBlock(),e.createBlock(m,{key:5,title:r.traceId},{default:e.withCtx(()=>[e.createElementVNode("span",G,e.toDisplayString(r.traceId),1)]),_:2},1032,["title"])):l.dataIndex==="action"?(e.openBlock(),e.createElementBlock("a",{key:6,onClick:$=>S(r)},"详情",8,j)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(R.default,{open:u.open,"onUpdate:open":t[7]||(t[7]=l=>u.open=l),"log-id":u.logId,onRefresh:y},null,8,["open","log-id"])])}}});exports.default=z;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./AuditLogList.vue2.js");;/* empty css */const t=require("../../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-13310236"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./AuditLogList.vue2.js");;/* empty css */const t=require("../../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-2505b1db"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("ant-design-vue"),N=require("@ant-design/icons-vue"),S=require("../api.js"),E=require("./AuditLogDetail.vue.js"),A=require("@since2006/components"),P={class:"audit-log-list"},H={class:"ant-pro-table"},L={class:"ant-pro-table-search"},O={class:"text-ellipsis"},U={class:"text-ellipsis"},F=["onClick"],J=e.defineComponent({__name:"AuditLogList",setup(j){const u=e.ref(),w=e.ref(!1),f=e.ref(!1),V=[{title:"操作者",dataIndex:"operatorName",width:"120px",fixed:"left"},{title:"目标类型",dataIndex:"targetType",width:"140px"},{title:"操作动作",dataIndex:"action",width:"140px"},{title:"操作备注",dataIndex:"comment",width:"300px",ellipsis:!0},{title:"IP地址",dataIndex:"ipAddress",width:"140px"},{title:"记录时间",dataIndex:"auditTime",width:"180px",sorter:!0},{title:"操作",dataIndex:"op",width:"80px",fixed:"right"}],m={operatorName:void 0,action:void 0,ipAddress:void 0,dateRange:void 0,query:void 0},o=e.reactive({...m}),y=e.computed(()=>({page:1,pageSize:20,operatorName:o.operatorName,action:o.action,ipAddress:o.ipAddress,startDate:o.dateRange?o.dateRange[0].format("YYYY-MM-DD HH:mm")+":00":void 0,endDate:o.dateRange?o.dateRange[1].format("YYYY-MM-DD HH:mm")+":59":void 0,query:o.query,sorting:void 0})),r=e.reactive({open:!1,logId:""}),d=()=>{var a;(a=u.value)==null||a.refresh()},h=async a=>{o.action=a,await e.nextTick(),d()},k=async()=>{Object.assign(o,m),await e.nextTick(),d()},D=()=>{var a;(a=u.value)==null||a.refresh()},T=async()=>{f.value=!0;try{v.message.success("导出成功")}catch{v.message.error("导出失败")}finally{f.value=!1}},b=a=>({创建:"green",更新:"blue",删除:"red",查看:"default"})[a]||"default",s=a=>{try{const t=JSON.parse(a);return JSON.stringify(t,null,2)}catch{return a}},I=a=>{r.open=!0,r.logId=a.id};return(a,t)=>{const _=e.resolveComponent("a-input"),c=e.resolveComponent("a-form-item"),i=e.resolveComponent("a-col"),p=e.resolveComponent("a-select-option"),B=e.resolveComponent("a-select"),q=e.resolveComponent("a-range-picker"),x=e.resolveComponent("a-button"),R=e.resolveComponent("a-row"),Y=e.resolveComponent("a-form"),M=e.resolveComponent("a-space"),C=e.resolveComponent("a-tag"),g=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("div",H,[e.createElementVNode("div",L,[e.createVNode(Y,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(R,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(i,{flex:"240px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(_,{value:o.query,"onUpdate:value":t[0]||(t[0]=n=>o.query=n),placeholder:"目标类型、备注、IP等",onPressEnter:d,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(i,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"操作者"},{default:e.withCtx(()=>[e.createVNode(_,{value:o.operatorName,"onUpdate:value":t[1]||(t[1]=n=>o.operatorName=n),onPressEnter:d,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(i,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"操作动作"},{default:e.withCtx(()=>[e.createVNode(B,{value:o.action,"onUpdate:value":t[2]||(t[2]=n=>o.action=n),placeholder:"选择或输入",allowClear:"",onChange:h},{default:e.withCtx(()=>[e.createVNode(p,{value:"创建"},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("创建")])),_:1}),e.createVNode(p,{value:"更新"},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("更新")])),_:1}),e.createVNode(p,{value:"删除"},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("删除")])),_:1}),e.createVNode(p,{value:"查看"},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode("查看")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(i,{flex:"400px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"时间范围"},{default:e.withCtx(()=>[e.createVNode(q,{value:o.dateRange,"onUpdate:value":t[3]||(t[3]=n=>o.dateRange=n),"show-time":"",format:"YYYY-MM-DD HH:mm"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(x,{onClick:d,type:"primary",loading:w.value},{default:e.withCtx(()=>t[9]||(t[9]=[e.createTextVNode("搜索")])),_:1},8,["loading"]),e.createVNode(x,{onClick:k,style:{"margin-left":"8px"}},{default:e.withCtx(()=>t[10]||(t[10]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(A.FxCardTable),{columns:V,"load-data":e.unref(S.queryAuditLogs),params:y.value,ref_key:"tableRef",ref:u,"row-key":"id"},{title:e.withCtx(()=>[e.createVNode(e.unref(N.SafetyCertificateTwoTone)),t[11]||(t[11]=e.createTextVNode(" 审计日志 "))]),extra:e.withCtx(()=>[e.createVNode(M,null,{default:e.withCtx(()=>[e.createVNode(x,{onClick:T,loading:f.value},{default:e.withCtx(()=>[e.createVNode(e.unref(N.DownloadOutlined)),t[12]||(t[12]=e.createTextVNode(" 导出 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:n,record:l})=>[n.dataIndex==="action"?(e.openBlock(),e.createBlock(C,{key:0,color:b(l.action)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.action),1)]),_:2},1032,["color"])):n.dataIndex==="targetType"?(e.openBlock(),e.createBlock(C,{key:1,color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.targetType),1)]),_:2},1024)):n.dataIndex==="beforeData"?(e.openBlock(),e.createBlock(g,{key:2,title:s(l.beforeData)},{default:e.withCtx(()=>[e.createElementVNode("span",O,e.toDisplayString(s(l.beforeData)),1)]),_:2},1032,["title"])):n.dataIndex==="afterData"?(e.openBlock(),e.createBlock(g,{key:3,title:s(l.afterData)},{default:e.withCtx(()=>[e.createElementVNode("span",U,e.toDisplayString(s(l.afterData)),1)]),_:2},1032,["title"])):n.dataIndex==="comment"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode(e.toDisplayString(l.comment),1)],64)):n.dataIndex==="op"?(e.openBlock(),e.createElementBlock("a",{key:5,onClick:z=>I(l)},"详情",8,F)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(E.default,{open:r.open,"onUpdate:open":t[4]||(t[4]=n=>r.open=n),"log-id":r.logId,onRefresh:D},null,8,["open","log-id"])])}}});exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("ant-design-vue"),N=require("@ant-design/icons-vue"),S=require("../api.js"),E=require("./AuditLogDetail.vue.js"),A=require("@since2006/components"),P={class:"audit-log-list"},H={class:"ant-pro-table"},L={class:"ant-pro-table-search"},O={class:"text-ellipsis"},U={class:"text-ellipsis"},F=["onClick"],J=e.defineComponent({__name:"AuditLogList",setup(j){const u=e.ref(),w=e.ref(!1),f=e.ref(!1),V=[{title:"操作者",dataIndex:"operatorName",width:"120px",fixed:"left"},{title:"目标类型",dataIndex:"targetType",width:"140px"},{title:"操作动作",dataIndex:"action",width:"140px"},{title:"操作备注",dataIndex:"comment",width:"300px",ellipsis:!0},{title:"IP地址",dataIndex:"ipAddress",width:"140px"},{title:"记录时间",dataIndex:"auditTime",width:"180px",sorter:!0},{title:"操作",dataIndex:"op",width:"80px",fixed:"right"}],m={operatorName:void 0,action:void 0,ipAddress:void 0,dateRange:void 0,query:void 0},o=e.reactive({...m}),y=e.computed(()=>({operatorName:o.operatorName,action:o.action,ipAddress:o.ipAddress,startDate:o.dateRange?o.dateRange[0].format("YYYY-MM-DD HH:mm")+":00":void 0,endDate:o.dateRange?o.dateRange[1].format("YYYY-MM-DD HH:mm")+":59":void 0,query:o.query,sorting:void 0})),r=e.reactive({open:!1,logId:""}),d=()=>{var a;(a=u.value)==null||a.refresh()},h=async a=>{o.action=a,await e.nextTick(),d()},k=async()=>{Object.assign(o,m),await e.nextTick(),d()},D=()=>{var a;(a=u.value)==null||a.refresh()},T=async()=>{f.value=!0;try{v.message.success("导出成功")}catch{v.message.error("导出失败")}finally{f.value=!1}},b=a=>({创建:"green",更新:"blue",删除:"red",查看:"default"})[a]||"default",s=a=>{try{const t=JSON.parse(a);return JSON.stringify(t,null,2)}catch{return a}},I=a=>{r.open=!0,r.logId=a.id};return(a,t)=>{const _=e.resolveComponent("a-input"),c=e.resolveComponent("a-form-item"),i=e.resolveComponent("a-col"),p=e.resolveComponent("a-select-option"),B=e.resolveComponent("a-select"),q=e.resolveComponent("a-range-picker"),x=e.resolveComponent("a-button"),R=e.resolveComponent("a-row"),Y=e.resolveComponent("a-form"),M=e.resolveComponent("a-space"),C=e.resolveComponent("a-tag"),g=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("div",H,[e.createElementVNode("div",L,[e.createVNode(Y,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(R,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(i,{flex:"240px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(_,{value:o.query,"onUpdate:value":t[0]||(t[0]=n=>o.query=n),placeholder:"目标类型、备注、IP等",onPressEnter:d,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(i,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"操作者"},{default:e.withCtx(()=>[e.createVNode(_,{value:o.operatorName,"onUpdate:value":t[1]||(t[1]=n=>o.operatorName=n),onPressEnter:d,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(i,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"操作动作"},{default:e.withCtx(()=>[e.createVNode(B,{value:o.action,"onUpdate:value":t[2]||(t[2]=n=>o.action=n),placeholder:"选择或输入",allowClear:"",onChange:h},{default:e.withCtx(()=>[e.createVNode(p,{value:"创建"},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("创建")])),_:1}),e.createVNode(p,{value:"更新"},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("更新")])),_:1}),e.createVNode(p,{value:"删除"},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("删除")])),_:1}),e.createVNode(p,{value:"查看"},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode("查看")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(i,{flex:"400px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"时间范围"},{default:e.withCtx(()=>[e.createVNode(q,{value:o.dateRange,"onUpdate:value":t[3]||(t[3]=n=>o.dateRange=n),"show-time":"",format:"YYYY-MM-DD HH:mm"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(x,{onClick:d,type:"primary",loading:w.value},{default:e.withCtx(()=>t[9]||(t[9]=[e.createTextVNode("搜索")])),_:1},8,["loading"]),e.createVNode(x,{onClick:k,style:{"margin-left":"8px"}},{default:e.withCtx(()=>t[10]||(t[10]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(A.FxCardTable),{columns:V,"load-data":e.unref(S.queryAuditLogs),params:y.value,"page-config":{pageSize:20},ref_key:"tableRef",ref:u,"row-key":"id"},{title:e.withCtx(()=>[e.createVNode(e.unref(N.SafetyCertificateTwoTone)),t[11]||(t[11]=e.createTextVNode(" 审计日志 "))]),extra:e.withCtx(()=>[e.createVNode(M,null,{default:e.withCtx(()=>[e.createVNode(x,{onClick:T,loading:f.value},{default:e.withCtx(()=>[e.createVNode(e.unref(N.DownloadOutlined)),t[12]||(t[12]=e.createTextVNode(" 导出 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:n,record:l})=>[n.dataIndex==="action"?(e.openBlock(),e.createBlock(C,{key:0,color:b(l.action)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.action),1)]),_:2},1032,["color"])):n.dataIndex==="targetType"?(e.openBlock(),e.createBlock(C,{key:1,color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.targetType),1)]),_:2},1024)):n.dataIndex==="beforeData"?(e.openBlock(),e.createBlock(g,{key:2,title:s(l.beforeData)},{default:e.withCtx(()=>[e.createElementVNode("span",O,e.toDisplayString(s(l.beforeData)),1)]),_:2},1032,["title"])):n.dataIndex==="afterData"?(e.openBlock(),e.createBlock(g,{key:3,title:s(l.afterData)},{default:e.withCtx(()=>[e.createElementVNode("span",U,e.toDisplayString(s(l.afterData)),1)]),_:2},1032,["title"])):n.dataIndex==="comment"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode(e.toDisplayString(l.comment),1)],64)):n.dataIndex==="op"?(e.openBlock(),e.createElementBlock("a",{key:5,onClick:z=>I(l)},"详情",8,F)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(E.default,{open:r.open,"onUpdate:open":t[4]||(t[4]=n=>r.open=n),"log-id":r.logId,onRefresh:D},null,8,["open","log-id"])])}}});exports.default=J;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ErrorLogList.vue2.js");;/* empty css */const r=require("../../../../_virtual/_plugin-vue_export-helper.js"),t=r.default(e.default,[["__scopeId","data-v-57854e76"]]);exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ErrorLogList.vue2.js");;/* empty css */const r=require("../../../../_virtual/_plugin-vue_export-helper.js"),t=r.default(e.default,[["__scopeId","data-v-47610902"]]);exports.default=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("ant-design-vue"),d=require("@ant-design/icons-vue"),Y=require("../api.js"),O=require("@since2006/components"),S=require("./ErrorLogDetail.vue.js"),A={class:"error-log-list"},L={class:"ant-pro-table"},H={class:"ant-pro-table-search"},P={class:"text-ellipsis",style:{color:"#ff4d4f"}},F={class:"text-ellipsis"},U=["onClick"],W=e.defineComponent({__name:"ErrorLogList",setup(j){const i=e.ref(),C=e.ref(!1),c=e.ref(!1),N=[{title:"级别",dataIndex:"level",width:"80px"},{title:"错误消息",dataIndex:"message",width:"300px",ellipsis:!0},{title:"请求路径",dataIndex:"path",width:"200px",ellipsis:!0},{title:"堆栈信息",dataIndex:"stackTrace",width:"250px",ellipsis:!0},{title:"IP地址",dataIndex:"ipAddress",width:"140px"},{title:"发生时间",dataIndex:"occurTime",width:"180px",sorter:!0},{title:"操作",dataIndex:"action",width:"80px",fixed:"right"}],x={appName:void 0,env:void 0,level:void 0,path:void 0,ipAddress:void 0,dateRange:void 0,query:void 0},o=e.reactive({...x}),V=e.computed(()=>({page:1,pageSize:20,appName:o.appName,env:o.env,level:o.level,path:o.path,ipAddress:o.ipAddress,startDate:o.dateRange?o.dateRange[0].format("YYYY-MM-DD HH:mm:ss"):void 0,endDate:o.dateRange?o.dateRange[1].format("YYYY-MM-DD HH:mm:ss"):void 0,query:o.query,sorting:void 0})),r=e.reactive({open:!1,logId:""}),p=()=>{var a;(a=i.value)==null||a.refresh()},w=async()=>{Object.assign(o,x),await e.nextTick(),p()},h=()=>{var a;(a=i.value)==null||a.refresh()},k=async()=>{c.value=!0;try{g.message.success("导出成功")}catch{g.message.error("导出失败")}finally{c.value=!1}},y=a=>({ERROR:"red",WARN:"orange",INFO:"blue"})[a]||"default",R=a=>({dev:"green",test:"blue",staging:"orange",prod:"red"})[a]||"default",b=a=>({dev:"开发",test:"测试",staging:"预发布",prod:"生产"})[a]||a,I=a=>{r.open=!0,r.logId=a.id};return(a,t)=>{const T=e.resolveComponent("a-input"),u=e.resolveComponent("a-form-item"),s=e.resolveComponent("a-col"),m=e.resolveComponent("a-select-option"),E=e.resolveComponent("a-select"),D=e.resolveComponent("a-range-picker"),v=e.resolveComponent("a-button"),M=e.resolveComponent("a-row"),q=e.resolveComponent("a-form"),B=e.resolveComponent("a-space"),f=e.resolveComponent("a-tag"),_=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("div",L,[e.createElementVNode("div",H,[e.createVNode(q,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(M,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(s,{flex:"240px"},{default:e.withCtx(()=>[e.createVNode(u,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(T,{value:o.query,"onUpdate:value":t[0]||(t[0]=l=>o.query=l),placeholder:"错误消息、堆栈信息等",onPressEnter:p,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(s,{flex:"180px"},{default:e.withCtx(()=>[e.createVNode(u,{label:"日志级别"},{default:e.withCtx(()=>[e.createVNode(E,{value:o.level,"onUpdate:value":t[1]||(t[1]=l=>o.level=l),placeholder:"级别",allowClear:""},{default:e.withCtx(()=>[e.createVNode(m,{value:"ERROR"},{default:e.withCtx(()=>t[4]||(t[4]=[e.createTextVNode("ERROR")])),_:1}),e.createVNode(m,{value:"WARN"},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("WARN")])),_:1}),e.createVNode(m,{value:"INFO"},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("INFO")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(s,{flex:"400px"},{default:e.withCtx(()=>[e.createVNode(u,{label:"时间范围"},{default:e.withCtx(()=>[e.createVNode(D,{value:o.dateRange,"onUpdate:value":t[2]||(t[2]=l=>o.dateRange=l),"show-time":"",format:"YYYY-MM-DD HH:mm"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(v,{onClick:p,type:"primary",loading:C.value},{default:e.withCtx(()=>[e.createVNode(e.unref(d.SearchOutlined)),t[7]||(t[7]=e.createTextVNode(" 搜索 "))]),_:1},8,["loading"]),e.createVNode(v,{onClick:w,style:{"margin-left":"8px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(d.RedoOutlined)),t[8]||(t[8]=e.createTextVNode(" 重置 "))]),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(O.FxCardTable),{columns:N,"load-data":e.unref(Y.queryErrorLogs),params:V.value,ref_key:"tableRef",ref:i,"row-key":"id"},{title:e.withCtx(()=>[e.createVNode(e.unref(d.WarningTwoTone)),t[9]||(t[9]=e.createTextVNode(" 错误日志 "))]),extra:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(v,{onClick:k,loading:c.value},{default:e.withCtx(()=>[e.createVNode(e.unref(d.DownloadOutlined)),t[10]||(t[10]=e.createTextVNode(" 导出 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:l,record:n})=>[l.dataIndex==="level"?(e.openBlock(),e.createBlock(f,{key:0,color:y(n.level)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.level),1)]),_:2},1032,["color"])):l.dataIndex==="env"?(e.openBlock(),e.createBlock(f,{key:1,color:R(n.env)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b(n.env)),1)]),_:2},1032,["color"])):l.dataIndex==="message"?(e.openBlock(),e.createBlock(_,{key:2,title:n.message},{default:e.withCtx(()=>[e.createElementVNode("span",P,e.toDisplayString(n.message),1)]),_:2},1032,["title"])):l.dataIndex==="stackTrace"?(e.openBlock(),e.createBlock(_,{key:3,title:n.stackTrace},{default:e.withCtx(()=>[e.createElementVNode("span",F,e.toDisplayString(n.stackTrace),1)]),_:2},1032,["title"])):l.dataIndex==="action"?(e.openBlock(),e.createElementBlock("a",{key:4,onClick:z=>I(n)},"详情",8,U)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(S.default,{open:r.open,"onUpdate:open":t[3]||(t[3]=l=>r.open=l),"log-id":r.logId,onRefresh:h},null,8,["open","log-id"])])}}});exports.default=W;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("ant-design-vue"),d=require("@ant-design/icons-vue"),Y=require("../api.js"),O=require("@since2006/components"),S=require("./ErrorLogDetail.vue.js"),A={class:"error-log-list"},L={class:"ant-pro-table"},H={class:"ant-pro-table-search"},P={class:"text-ellipsis",style:{color:"#ff4d4f"}},F={class:"text-ellipsis"},U=["onClick"],W=e.defineComponent({__name:"ErrorLogList",setup(j){const i=e.ref(),C=e.ref(!1),c=e.ref(!1),N=[{title:"级别",dataIndex:"level",width:"80px"},{title:"错误消息",dataIndex:"message",width:"300px",ellipsis:!0},{title:"请求路径",dataIndex:"path",width:"200px",ellipsis:!0},{title:"堆栈信息",dataIndex:"stackTrace",width:"250px",ellipsis:!0},{title:"IP地址",dataIndex:"ipAddress",width:"140px"},{title:"发生时间",dataIndex:"occurTime",width:"180px",sorter:!0},{title:"操作",dataIndex:"action",width:"80px",fixed:"right"}],v={appName:void 0,env:void 0,level:void 0,path:void 0,ipAddress:void 0,dateRange:void 0,query:void 0},o=e.reactive({...v}),V=e.computed(()=>({appName:o.appName,env:o.env,level:o.level,path:o.path,ipAddress:o.ipAddress,startDate:o.dateRange?o.dateRange[0].format("YYYY-MM-DD HH:mm:ss"):void 0,endDate:o.dateRange?o.dateRange[1].format("YYYY-MM-DD HH:mm:ss"):void 0,query:o.query,sorting:void 0})),r=e.reactive({open:!1,logId:""}),p=()=>{var a;(a=i.value)==null||a.refresh()},w=async()=>{Object.assign(o,v),await e.nextTick(),p()},h=()=>{var a;(a=i.value)==null||a.refresh()},k=async()=>{c.value=!0;try{g.message.success("导出成功")}catch{g.message.error("导出失败")}finally{c.value=!1}},y=a=>({ERROR:"red",WARN:"orange",INFO:"blue"})[a]||"default",R=a=>({dev:"green",test:"blue",staging:"orange",prod:"red"})[a]||"default",b=a=>({dev:"开发",test:"测试",staging:"预发布",prod:"生产"})[a]||a,I=a=>{r.open=!0,r.logId=a.id};return(a,t)=>{const T=e.resolveComponent("a-input"),u=e.resolveComponent("a-form-item"),s=e.resolveComponent("a-col"),m=e.resolveComponent("a-select-option"),E=e.resolveComponent("a-select"),D=e.resolveComponent("a-range-picker"),f=e.resolveComponent("a-button"),M=e.resolveComponent("a-row"),q=e.resolveComponent("a-form"),B=e.resolveComponent("a-space"),x=e.resolveComponent("a-tag"),_=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("div",L,[e.createElementVNode("div",H,[e.createVNode(q,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(M,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(s,{flex:"240px"},{default:e.withCtx(()=>[e.createVNode(u,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(T,{value:o.query,"onUpdate:value":t[0]||(t[0]=l=>o.query=l),placeholder:"错误消息、堆栈信息等",onPressEnter:p,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(s,{flex:"180px"},{default:e.withCtx(()=>[e.createVNode(u,{label:"日志级别"},{default:e.withCtx(()=>[e.createVNode(E,{value:o.level,"onUpdate:value":t[1]||(t[1]=l=>o.level=l),placeholder:"级别",allowClear:""},{default:e.withCtx(()=>[e.createVNode(m,{value:"ERROR"},{default:e.withCtx(()=>t[4]||(t[4]=[e.createTextVNode("ERROR")])),_:1}),e.createVNode(m,{value:"WARN"},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("WARN")])),_:1}),e.createVNode(m,{value:"INFO"},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("INFO")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(s,{flex:"400px"},{default:e.withCtx(()=>[e.createVNode(u,{label:"时间范围"},{default:e.withCtx(()=>[e.createVNode(D,{value:o.dateRange,"onUpdate:value":t[2]||(t[2]=l=>o.dateRange=l),"show-time":"",format:"YYYY-MM-DD HH:mm"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(f,{onClick:p,type:"primary",loading:C.value},{default:e.withCtx(()=>[e.createVNode(e.unref(d.SearchOutlined)),t[7]||(t[7]=e.createTextVNode(" 搜索 "))]),_:1},8,["loading"]),e.createVNode(f,{onClick:w,style:{"margin-left":"8px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(d.RedoOutlined)),t[8]||(t[8]=e.createTextVNode(" 重置 "))]),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(O.FxCardTable),{columns:N,"load-data":e.unref(Y.queryErrorLogs),params:V.value,"page-config":{pageSize:20},ref_key:"tableRef",ref:i,"row-key":"id"},{title:e.withCtx(()=>[e.createVNode(e.unref(d.WarningTwoTone)),t[9]||(t[9]=e.createTextVNode(" 错误日志 "))]),extra:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(f,{onClick:k,loading:c.value},{default:e.withCtx(()=>[e.createVNode(e.unref(d.DownloadOutlined)),t[10]||(t[10]=e.createTextVNode(" 导出 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:l,record:n})=>[l.dataIndex==="level"?(e.openBlock(),e.createBlock(x,{key:0,color:y(n.level)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.level),1)]),_:2},1032,["color"])):l.dataIndex==="env"?(e.openBlock(),e.createBlock(x,{key:1,color:R(n.env)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b(n.env)),1)]),_:2},1032,["color"])):l.dataIndex==="message"?(e.openBlock(),e.createBlock(_,{key:2,title:n.message},{default:e.withCtx(()=>[e.createElementVNode("span",P,e.toDisplayString(n.message),1)]),_:2},1032,["title"])):l.dataIndex==="stackTrace"?(e.openBlock(),e.createBlock(_,{key:3,title:n.stackTrace},{default:e.withCtx(()=>[e.createElementVNode("span",F,e.toDisplayString(n.stackTrace),1)]),_:2},1032,["title"])):l.dataIndex==="action"?(e.openBlock(),e.createElementBlock("a",{key:4,onClick:z=>I(n)},"详情",8,U)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(S.default,{open:r.open,"onUpdate:open":t[3]||(t[3]=l=>r.open=l),"log-id":r.logId,onRefresh:h},null,8,["open","log-id"])])}}});exports.default=W;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./LoginLogList.vue2.js");;/* empty css */const t=require("../../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-3744022f"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./LoginLogList.vue2.js");;/* empty css */const t=require("../../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-e0685b29"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("ant-design-vue"),u=require("@ant-design/icons-vue"),Y=require("../api.js"),M=require("@since2006/components"),L=require("./LoginLogDetail.vue.js"),S=require("../ua-icons.vue.js"),E={class:"login-log-list"},P={class:"ant-pro-table"},O={class:"ant-pro-table-search"},H=["onClick"],U=e.defineComponent({__name:"LoginLogList",setup(A){const c=e.ref(),w=e.ref(!1),p=e.ref(!1),v=[{title:"用户名",dataIndex:"username",width:"120px"},{title:"登录方式",dataIndex:"loginType",width:"100px"},{title:"状态",dataIndex:"status",width:"80px"},{title:"IP地址",dataIndex:"ipAddress",width:"140px"},{title:"地理位置",dataIndex:"location",width:"200px",ellipsis:!0},{title:"User-Agent",dataIndex:"userAgent",width:"80px"},{title:"登录时间",dataIndex:"loginTime",width:"160px",sorter:!0},{title:"操作",dataIndex:"action",width:"80px",fixed:"right"}],f={query:void 0,username:void 0,status:void 0,dateRange:void 0},o=e.reactive({...f}),V=e.computed(()=>({query:o.query,username:o.username,status:o.status,startDate:o.dateRange?o.dateRange[0].format("YYYY-MM-DD HH:mm")+":00":void 0,endDate:o.dateRange?o.dateRange[1].format("YYYY-MM-DD HH:mm")+":59":void 0})),l=e.reactive({open:!1,logId:""}),r=()=>{var a;(a=c.value)==null||a.refresh()},N=async()=>{Object.assign(o,f),await e.nextTick(),r()},y=()=>{var a;(a=c.value)==null||a.refresh()},h=async a=>{o.status=a,await e.nextTick(),r()},k=async()=>{p.value=!0;try{_.message.success("导出成功")}catch{_.message.error("导出失败")}finally{p.value=!1}},T=a=>({password:"密码登录",oauth2:"OAuth2",sso:"SSO",sms:"短信验证",wechat:"微信登录",dingtalk:"钉钉登录"})[a]||a,b=a=>{l.open=!0,l.logId=a.id};return(a,t)=>{const g=e.resolveComponent("a-input"),i=e.resolveComponent("a-form-item"),s=e.resolveComponent("a-col"),C=e.resolveComponent("a-select-option"),I=e.resolveComponent("a-select"),q=e.resolveComponent("a-range-picker"),x=e.resolveComponent("a-button"),B=e.resolveComponent("a-row"),D=e.resolveComponent("a-form"),R=e.resolveComponent("a-space"),m=e.resolveComponent("a-tag");return e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",P,[e.createElementVNode("div",O,[e.createVNode(D,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(B,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(s,{flex:"240px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(g,{value:o.query,"onUpdate:value":t[0]||(t[0]=n=>o.query=n),placeholder:"登录方式、IP、位置等",onPressEnter:r,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(s,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"用户名"},{default:e.withCtx(()=>[e.createVNode(g,{value:o.username,"onUpdate:value":t[1]||(t[1]=n=>o.username=n),onPressEnter:r,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(s,{flex:"140px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(I,{value:o.status,"onUpdate:value":t[2]||(t[2]=n=>o.status=n),placeholder:"状态",allowClear:"",onChange:h},{default:e.withCtx(()=>[e.createVNode(C,{value:1},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("成功")])),_:1}),e.createVNode(C,{value:0},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("失败")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(s,{flex:"400px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"时间范围"},{default:e.withCtx(()=>[e.createVNode(q,{value:o.dateRange,"onUpdate:value":t[3]||(t[3]=n=>o.dateRange=n),"show-time":"",format:"YYYY-MM-DD HH:mm"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(x,{onClick:r,type:"primary",loading:w.value},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("搜索")])),_:1},8,["loading"]),e.createVNode(x,{onClick:N,style:{"margin-left":"8px"}},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(M.FxCardTable),{columns:v,"load-data":e.unref(Y.queryLoginLogs),params:V.value,ref_key:"tableRef",ref:c,"row-key":"id"},{title:e.withCtx(()=>[e.createVNode(e.unref(u.SecurityScanTwoTone)),t[9]||(t[9]=e.createTextVNode(" 登录日志 "))]),extra:e.withCtx(()=>[e.createVNode(R,null,{default:e.withCtx(()=>[e.createVNode(x,{onClick:k,loading:p.value},{default:e.withCtx(()=>[e.createVNode(e.unref(u.DownloadOutlined)),t[10]||(t[10]=e.createTextVNode(" 导出 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:n,record:d})=>[n.dataIndex==="status"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[d.status===1?(e.openBlock(),e.createBlock(m,{key:0,color:"green"},{default:e.withCtx(()=>[e.createVNode(e.unref(u.CheckCircleOutlined)),t[11]||(t[11]=e.createTextVNode(" 成功 "))]),_:1})):(e.openBlock(),e.createBlock(m,{key:1,color:"red"},{default:e.withCtx(()=>[e.createVNode(e.unref(u.CloseCircleOutlined)),t[12]||(t[12]=e.createTextVNode(" 失败 "))]),_:1}))],64)):n.dataIndex==="loginType"?(e.openBlock(),e.createBlock(m,{key:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T(d.loginType)),1)]),_:2},1024)):n.dataIndex==="userAgent"?(e.openBlock(),e.createBlock(S.default,{key:2,os:d.os,browser:d.browser},null,8,["os","browser"])):n.dataIndex==="action"?(e.openBlock(),e.createElementBlock("a",{key:3,onClick:j=>b(d)},"详情",8,H)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(L.default,{open:l.open,"onUpdate:open":t[4]||(t[4]=n=>l.open=n),"log-id":l.logId,onRefresh:y},null,8,["open","log-id"])])}}});exports.default=U;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("ant-design-vue"),u=require("@ant-design/icons-vue"),Y=require("../api.js"),M=require("@since2006/components"),L=require("./LoginLogDetail.vue.js"),S=require("../ua-icons.vue.js"),E={class:"login-log-list"},P={class:"ant-pro-table"},O={class:"ant-pro-table-search"},H=["onClick"],U=e.defineComponent({__name:"LoginLogList",setup(A){const c=e.ref(),w=e.ref(!1),p=e.ref(!1),v=[{title:"用户名",dataIndex:"username",width:"120px"},{title:"登录方式",dataIndex:"loginType",width:"100px"},{title:"状态",dataIndex:"status",width:"80px"},{title:"IP地址",dataIndex:"ipAddress",width:"140px"},{title:"地理位置",dataIndex:"location",width:"200px",ellipsis:!0},{title:"User-Agent",dataIndex:"userAgent",width:"80px"},{title:"登录时间",dataIndex:"loginTime",width:"160px",sorter:!0},{title:"操作",dataIndex:"action",width:"80px",fixed:"right"}],f={query:void 0,username:void 0,status:void 0,dateRange:void 0},o=e.reactive({...f}),V=e.computed(()=>({query:o.query,username:o.username,status:o.status,startDate:o.dateRange?o.dateRange[0].format("YYYY-MM-DD HH:mm")+":00":void 0,endDate:o.dateRange?o.dateRange[1].format("YYYY-MM-DD HH:mm")+":59":void 0})),l=e.reactive({open:!1,logId:""}),r=()=>{var a;(a=c.value)==null||a.refresh()},N=async()=>{Object.assign(o,f),await e.nextTick(),r()},y=()=>{var a;(a=c.value)==null||a.refresh()},h=async a=>{o.status=a,await e.nextTick(),r()},k=async()=>{p.value=!0;try{_.message.success("导出成功")}catch{_.message.error("导出失败")}finally{p.value=!1}},T=a=>({password:"密码登录",oauth2:"OAuth2",sso:"SSO",sms:"短信验证",wechat:"微信登录",dingtalk:"钉钉登录"})[a]||a,b=a=>{l.open=!0,l.logId=a.id};return(a,t)=>{const g=e.resolveComponent("a-input"),i=e.resolveComponent("a-form-item"),s=e.resolveComponent("a-col"),C=e.resolveComponent("a-select-option"),I=e.resolveComponent("a-select"),q=e.resolveComponent("a-range-picker"),x=e.resolveComponent("a-button"),B=e.resolveComponent("a-row"),D=e.resolveComponent("a-form"),R=e.resolveComponent("a-space"),m=e.resolveComponent("a-tag");return e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",P,[e.createElementVNode("div",O,[e.createVNode(D,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(B,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(s,{flex:"240px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(g,{value:o.query,"onUpdate:value":t[0]||(t[0]=n=>o.query=n),placeholder:"登录方式、IP、位置等",onPressEnter:r,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(s,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"用户名"},{default:e.withCtx(()=>[e.createVNode(g,{value:o.username,"onUpdate:value":t[1]||(t[1]=n=>o.username=n),onPressEnter:r,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(s,{flex:"140px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(I,{value:o.status,"onUpdate:value":t[2]||(t[2]=n=>o.status=n),placeholder:"状态",allowClear:"",onChange:h},{default:e.withCtx(()=>[e.createVNode(C,{value:1},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("成功")])),_:1}),e.createVNode(C,{value:0},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("失败")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(s,{flex:"400px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"时间范围"},{default:e.withCtx(()=>[e.createVNode(q,{value:o.dateRange,"onUpdate:value":t[3]||(t[3]=n=>o.dateRange=n),"show-time":"",format:"YYYY-MM-DD HH:mm"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(x,{onClick:r,type:"primary",loading:w.value},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("搜索")])),_:1},8,["loading"]),e.createVNode(x,{onClick:N,style:{"margin-left":"8px"}},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(M.FxCardTable),{columns:v,"load-data":e.unref(Y.queryLoginLogs),params:V.value,"page-config":{pageSize:20},ref_key:"tableRef",ref:c,"row-key":"id"},{title:e.withCtx(()=>[e.createVNode(e.unref(u.SecurityScanTwoTone)),t[9]||(t[9]=e.createTextVNode(" 登录日志 "))]),extra:e.withCtx(()=>[e.createVNode(R,null,{default:e.withCtx(()=>[e.createVNode(x,{onClick:k,loading:p.value},{default:e.withCtx(()=>[e.createVNode(e.unref(u.DownloadOutlined)),t[10]||(t[10]=e.createTextVNode(" 导出 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:n,record:d})=>[n.dataIndex==="status"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[d.status===1?(e.openBlock(),e.createBlock(m,{key:0,color:"green"},{default:e.withCtx(()=>[e.createVNode(e.unref(u.CheckCircleOutlined)),t[11]||(t[11]=e.createTextVNode(" 成功 "))]),_:1})):(e.openBlock(),e.createBlock(m,{key:1,color:"red"},{default:e.withCtx(()=>[e.createVNode(e.unref(u.CloseCircleOutlined)),t[12]||(t[12]=e.createTextVNode(" 失败 "))]),_:1}))],64)):n.dataIndex==="loginType"?(e.openBlock(),e.createBlock(m,{key:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T(d.loginType)),1)]),_:2},1024)):n.dataIndex==="userAgent"?(e.openBlock(),e.createBlock(S.default,{key:2,os:d.os,browser:d.browser},null,8,["os","browser"])):n.dataIndex==="action"?(e.openBlock(),e.createElementBlock("a",{key:3,onClick:j=>b(d)},"详情",8,H)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(L.default,{open:l.open,"onUpdate:open":t[4]||(t[4]=n=>l.open=n),"log-id":l.logId,onRefresh:y},null,8,["open","log-id"])])}}});exports.default=U;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./OperationLogList.vue2.js");;/* empty css */const t=require("../../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-044829f6"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./OperationLogList.vue2.js");;/* empty css */const t=require("../../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-d74ea79a"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("ant-design-vue"),c=require("@ant-design/icons-vue"),S=require("../api.js"),Y=require("@since2006/components"),O=require("./OperationLogDetail.vue.js"),U={class:"operation-log-list"},H={class:"ant-pro-table"},L={class:"ant-pro-table-search"},z={class:"text-ellipsis"},F=["onClick"],J=e.defineComponent({__name:"OperationLogList",setup(j){const p=e.ref(),w=e.ref(!1),x=e.ref(!1),V=[{title:"操作人",dataIndex:"username",width:"90px",fixed:"left"},{title:"模块",dataIndex:"module",width:"110px"},{title:"动作",dataIndex:"action",width:"160px",ellipsis:!0},{title:"请求",dataIndex:"requestMethod",width:"80px"},{title:"请求URI",dataIndex:"requestUri",width:"180px",ellipsis:!0},{title:"耗时",dataIndex:"costMs",width:"80px",sorter:!0},{title:"IP地址",dataIndex:"ipAddress",width:"120px"},{title:"操作时间",dataIndex:"operateTime",width:"140px",sorter:!0},{title:"操作",dataIndex:"op",width:"80px",fixed:"right"}],f={query:void 0,username:void 0,status:void 0,dateRange:void 0},a=e.reactive({...f}),N=e.computed(()=>({page:1,pageSize:20,query:a.query,username:a.username,status:a.status,startDate:a.dateRange?a.dateRange[0].format("YYYY-MM-DD HH:mm")+":00":void 0,endDate:a.dateRange?a.dateRange[1].format("YYYY-MM-DD HH:mm")+":59":void 0,sorting:void 0})),r=e.reactive({open:!1,logId:""}),s=()=>{var o;(o=p.value)==null||o.refresh()},h=async o=>{a.status=o,await e.nextTick(),s()},k=async()=>{Object.assign(a,f),await e.nextTick(),s()},y=()=>{var o;(o=p.value)==null||o.refresh()},I=async()=>{x.value=!0;try{v.message.success("导出成功")}catch{v.message.error("导出失败")}finally{x.value=!1}},T=o=>({GET:"green",POST:"blue",PUT:"orange",DELETE:"red"})[o]||"default",q=o=>o<100?"#52c41a":o<500?"#fa8c16":"#ff4d4f",C=o=>{try{const t=JSON.parse(o);return JSON.stringify(t,null,2)}catch{return o}},M=o=>{r.open=!0,r.logId=o.id};return(o,t)=>{const _=e.resolveComponent("a-input"),i=e.resolveComponent("a-form-item"),d=e.resolveComponent("a-col"),g=e.resolveComponent("a-select-option"),B=e.resolveComponent("a-select"),b=e.resolveComponent("a-range-picker"),m=e.resolveComponent("a-button"),D=e.resolveComponent("a-row"),E=e.resolveComponent("a-form"),R=e.resolveComponent("a-space"),u=e.resolveComponent("a-tag"),P=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",H,[e.createElementVNode("div",L,[e.createVNode(E,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(D,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(d,{flex:"240px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(_,{value:a.query,"onUpdate:value":t[0]||(t[0]=n=>a.query=n),placeholder:"模块、动作、URI、IP",onPressEnter:s,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"操作人"},{default:e.withCtx(()=>[e.createVNode(_,{value:a.username,"onUpdate:value":t[1]||(t[1]=n=>a.username=n),onPressEnter:s,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"140px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(B,{value:a.status,"onUpdate:value":t[2]||(t[2]=n=>a.status=n),placeholder:"状态",allowClear:"",onChange:h},{default:e.withCtx(()=>[e.createVNode(g,{value:1},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("成功")])),_:1}),e.createVNode(g,{value:0},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("失败")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"400px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"时间范围"},{default:e.withCtx(()=>[e.createVNode(b,{value:a.dateRange,"onUpdate:value":t[3]||(t[3]=n=>a.dateRange=n),"show-time":"",format:"YYYY-MM-DD HH:mm"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(m,{onClick:s,type:"primary",loading:w.value},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("搜索")])),_:1},8,["loading"]),e.createVNode(m,{onClick:k,style:{"margin-left":"8px"}},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(Y.FxCardTable),{columns:V,"load-data":e.unref(S.queryOperationLogs),params:N.value,ref_key:"tableRef",ref:p,"row-key":"id"},{title:e.withCtx(()=>[e.createVNode(e.unref(c.ToolTwoTone)),t[9]||(t[9]=e.createTextVNode(" 操作日志 "))]),extra:e.withCtx(()=>[e.createVNode(R,null,{default:e.withCtx(()=>[e.createVNode(m,{onClick:I,loading:x.value},{default:e.withCtx(()=>[e.createVNode(e.unref(c.DownloadOutlined)),t[10]||(t[10]=e.createTextVNode(" 导出 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:n,record:l})=>[n.dataIndex==="status"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.status===1?(e.openBlock(),e.createBlock(u,{key:0,color:"green"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.CheckCircleOutlined)),t[11]||(t[11]=e.createTextVNode(" 成功 "))]),_:1})):(e.openBlock(),e.createBlock(u,{key:1,color:"red"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.CloseCircleOutlined)),t[12]||(t[12]=e.createTextVNode(" 失败 "))]),_:1}))],64)):n.dataIndex==="module"?(e.openBlock(),e.createBlock(u,{key:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.module),1)]),_:2},1024)):n.dataIndex==="requestMethod"?(e.openBlock(),e.createBlock(u,{key:2,color:T(l.requestMethod)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.requestMethod),1)]),_:2},1032,["color"])):n.dataIndex==="costMs"?(e.openBlock(),e.createElementBlock("span",{key:3,style:e.normalizeStyle({color:q(l.costMs)})},e.toDisplayString(l.costMs)+"ms ",5)):n.dataIndex==="requestParams"?(e.openBlock(),e.createBlock(P,{key:4,title:C(l.requestParams)},{default:e.withCtx(()=>[e.createElementVNode("span",z,e.toDisplayString(C(l.requestParams)),1)]),_:2},1032,["title"])):n.dataIndex==="op"?(e.openBlock(),e.createElementBlock("a",{key:5,onClick:A=>M(l)},"详情",8,F)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(O.default,{open:r.open,"onUpdate:open":t[4]||(t[4]=n=>r.open=n),"log-id":r.logId,onRefresh:y},null,8,["open","log-id"])])}}});exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("ant-design-vue"),c=require("@ant-design/icons-vue"),S=require("../api.js"),Y=require("@since2006/components"),O=require("./OperationLogDetail.vue.js"),U={class:"operation-log-list"},H={class:"ant-pro-table"},L={class:"ant-pro-table-search"},z={class:"text-ellipsis"},F=["onClick"],J=e.defineComponent({__name:"OperationLogList",setup(j){const p=e.ref(),w=e.ref(!1),x=e.ref(!1),V=[{title:"操作人",dataIndex:"username",width:"90px",fixed:"left"},{title:"模块",dataIndex:"module",width:"110px"},{title:"动作",dataIndex:"action",width:"160px",ellipsis:!0},{title:"请求",dataIndex:"requestMethod",width:"80px"},{title:"请求URI",dataIndex:"requestUri",width:"180px",ellipsis:!0},{title:"耗时",dataIndex:"costMs",width:"80px",sorter:!0},{title:"IP地址",dataIndex:"ipAddress",width:"120px"},{title:"操作时间",dataIndex:"operateTime",width:"140px",sorter:!0},{title:"操作",dataIndex:"op",width:"80px",fixed:"right"}],f={query:void 0,username:void 0,status:void 0,dateRange:void 0},a=e.reactive({...f}),N=e.computed(()=>({query:a.query,username:a.username,status:a.status,startDate:a.dateRange?a.dateRange[0].format("YYYY-MM-DD HH:mm")+":00":void 0,endDate:a.dateRange?a.dateRange[1].format("YYYY-MM-DD HH:mm")+":59":void 0,sorting:void 0})),r=e.reactive({open:!1,logId:""}),s=()=>{var o;(o=p.value)==null||o.refresh()},h=async o=>{a.status=o,await e.nextTick(),s()},k=async()=>{Object.assign(a,f),await e.nextTick(),s()},y=()=>{var o;(o=p.value)==null||o.refresh()},I=async()=>{x.value=!0;try{v.message.success("导出成功")}catch{v.message.error("导出失败")}finally{x.value=!1}},T=o=>({GET:"green",POST:"blue",PUT:"orange",DELETE:"red"})[o]||"default",q=o=>o<100?"#52c41a":o<500?"#fa8c16":"#ff4d4f",C=o=>{try{const t=JSON.parse(o);return JSON.stringify(t,null,2)}catch{return o}},M=o=>{r.open=!0,r.logId=o.id};return(o,t)=>{const _=e.resolveComponent("a-input"),i=e.resolveComponent("a-form-item"),d=e.resolveComponent("a-col"),g=e.resolveComponent("a-select-option"),B=e.resolveComponent("a-select"),b=e.resolveComponent("a-range-picker"),m=e.resolveComponent("a-button"),D=e.resolveComponent("a-row"),E=e.resolveComponent("a-form"),R=e.resolveComponent("a-space"),u=e.resolveComponent("a-tag"),P=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",H,[e.createElementVNode("div",L,[e.createVNode(E,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(D,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(d,{flex:"240px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(_,{value:a.query,"onUpdate:value":t[0]||(t[0]=n=>a.query=n),placeholder:"模块、动作、URI、IP",onPressEnter:s,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"200px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"操作人"},{default:e.withCtx(()=>[e.createVNode(_,{value:a.username,"onUpdate:value":t[1]||(t[1]=n=>a.username=n),onPressEnter:s,allowClear:""},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"140px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(B,{value:a.status,"onUpdate:value":t[2]||(t[2]=n=>a.status=n),placeholder:"状态",allowClear:"",onChange:h},{default:e.withCtx(()=>[e.createVNode(g,{value:1},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("成功")])),_:1}),e.createVNode(g,{value:0},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("失败")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1}),e.createVNode(d,{flex:"400px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"时间范围"},{default:e.withCtx(()=>[e.createVNode(b,{value:a.dateRange,"onUpdate:value":t[3]||(t[3]=n=>a.dateRange=n),"show-time":"",format:"YYYY-MM-DD HH:mm"},null,8,["value"])]),_:1})]),_:1}),e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(m,{onClick:s,type:"primary",loading:w.value},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("搜索")])),_:1},8,["loading"]),e.createVNode(m,{onClick:k,style:{"margin-left":"8px"}},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(Y.FxCardTable),{columns:V,"load-data":e.unref(S.queryOperationLogs),params:N.value,"page-config":{pageSize:20},ref_key:"tableRef",ref:p,"row-key":"id"},{title:e.withCtx(()=>[e.createVNode(e.unref(c.ToolTwoTone)),t[9]||(t[9]=e.createTextVNode(" 操作日志 "))]),extra:e.withCtx(()=>[e.createVNode(R,null,{default:e.withCtx(()=>[e.createVNode(m,{onClick:I,loading:x.value},{default:e.withCtx(()=>[e.createVNode(e.unref(c.DownloadOutlined)),t[10]||(t[10]=e.createTextVNode(" 导出 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:n,record:l})=>[n.dataIndex==="status"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.status===1?(e.openBlock(),e.createBlock(u,{key:0,color:"green"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.CheckCircleOutlined)),t[11]||(t[11]=e.createTextVNode(" 成功 "))]),_:1})):(e.openBlock(),e.createBlock(u,{key:1,color:"red"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.CloseCircleOutlined)),t[12]||(t[12]=e.createTextVNode(" 失败 "))]),_:1}))],64)):n.dataIndex==="module"?(e.openBlock(),e.createBlock(u,{key:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.module),1)]),_:2},1024)):n.dataIndex==="requestMethod"?(e.openBlock(),e.createBlock(u,{key:2,color:T(l.requestMethod)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.requestMethod),1)]),_:2},1032,["color"])):n.dataIndex==="costMs"?(e.openBlock(),e.createElementBlock("span",{key:3,style:e.normalizeStyle({color:q(l.costMs)})},e.toDisplayString(l.costMs)+"ms ",5)):n.dataIndex==="requestParams"?(e.openBlock(),e.createBlock(P,{key:4,title:C(l.requestParams)},{default:e.withCtx(()=>[e.createElementVNode("span",z,e.toDisplayString(C(l.requestParams)),1)]),_:2},1032,["title"])):n.dataIndex==="op"?(e.openBlock(),e.createElementBlock("a",{key:5,onClick:A=>M(l)},"详情",8,F)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(O.default,{open:r.open,"onUpdate:open":t[4]||(t[4]=n=>r.open=n),"log-id":r.logId,onRefresh:y},null,8,["open","log-id"])])}}});exports.default=J;
@@ -1 +1 @@
1
- .large-text[data-v-c5b4a14e]{font-size:16px}.float-right[data-v-c5b4a14e]{float:right}.margin-block[data-v-c5b4a14e]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-a47fcf40],.icon-selector deep(ul) li[data-v-a47fcf40]:hover{border-radius:2px;border-color:#4a4a48;background-color:#4a4a48;color:#fff;transition:all .3s;box-shadow:none}.icon-selector deep(ul) i[data-v-a47fcf40]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-233e6305]{padding-top:20px}.permission-tree[data-v-233e6305],.permission-tree[data-v-89600073]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-995a937c] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-dd4b2211]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-dd4b2211]{width:70px}.cron-detail .ant-input[data-v-dd4b2211]{width:280px}.cron-detail[data-v-3b943880]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-3b943880]{width:70px}.cron-detail .ant-input[data-v-3b943880]{width:280px}[data-v-418f353d] .ant-descriptions-item-label{width:140px}.text-ellipsis[data-v-c407c636]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-c407c636] .ant-descriptions-item-label{width:120px}.ua-icon[data-v-f846ecbb]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.login-log-list .text-ellipsis[data-v-3744022f]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.method-text[data-v-8d1c9637]{background:#f5f5f5;padding:2px 6px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.json-container[data-v-8d1c9637]{max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-8d1c9637]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}[data-v-8d1c9637] .ant-descriptions-item-label{width:120px}.operation-log-list .text-ellipsis[data-v-044829f6]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-bdeeb034] .ant-descriptions-item-label{width:120px}.audit-log-list .text-ellipsis[data-v-13310236]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.text-ellipsis[data-v-7436a600]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.performance-analysis[data-v-7436a600]{padding:16px;background:#fafafa;border-radius:6px}.performance-analysis[data-v-7436a600] .ant-statistic{text-align:center}[data-v-7436a600] .ant-descriptions-item-label{width:120px}.access-log-list .text-ellipsis[data-v-43cad169]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.json-container[data-v-793d348e]{max-height:200px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.stack-container[data-v-793d348e]{max-height:400px;overflow:auto;background:#fff2f0;border:1px solid #ffccc7;padding:12px;border-radius:4px}.stack-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px;line-height:1.4;color:#a8071a}[data-v-793d348e] .ant-descriptions-item-label{width:120px}.error-log-list .text-ellipsis[data-v-57854e76]{display:inline-block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.notice[data-v-864b567f]{color:#ff4d4f;font-size:18px}.table-operator[data-v-1cbc3d31]{margin:10px 14px 20px 0}[data-v-1cbc3d31] .ant-descriptions-item-label{width:140px}.tree-container[data-v-1cbc3d31] .ant-tree{max-height:520px;overflow:auto}
1
+ .large-text[data-v-c5b4a14e]{font-size:16px}.float-right[data-v-c5b4a14e]{float:right}.margin-block[data-v-c5b4a14e]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-a47fcf40],.icon-selector deep(ul) li[data-v-a47fcf40]:hover{border-radius:2px;border-color:#4a4a48;background-color:#4a4a48;color:#fff;transition:all .3s;box-shadow:none}.icon-selector deep(ul) i[data-v-a47fcf40]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-233e6305]{padding-top:20px}.permission-tree[data-v-233e6305],.permission-tree[data-v-89600073]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-995a937c] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-dd4b2211]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-dd4b2211]{width:70px}.cron-detail .ant-input[data-v-dd4b2211]{width:280px}.cron-detail[data-v-3b943880]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-3b943880]{width:70px}.cron-detail .ant-input[data-v-3b943880]{width:280px}[data-v-418f353d] .ant-descriptions-item-label{width:140px}.text-ellipsis[data-v-c407c636]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-c407c636] .ant-descriptions-item-label{width:120px}.ua-icon[data-v-f846ecbb]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.login-log-list .text-ellipsis[data-v-e0685b29]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.method-text[data-v-8d1c9637]{background:#f5f5f5;padding:2px 6px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.json-container[data-v-8d1c9637]{max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-8d1c9637]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}[data-v-8d1c9637] .ant-descriptions-item-label{width:120px}.operation-log-list .text-ellipsis[data-v-d74ea79a]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-bdeeb034] .ant-descriptions-item-label{width:120px}.audit-log-list .text-ellipsis[data-v-2505b1db]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.text-ellipsis[data-v-7436a600]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.performance-analysis[data-v-7436a600]{padding:16px;background:#fafafa;border-radius:6px}.performance-analysis[data-v-7436a600] .ant-statistic{text-align:center}[data-v-7436a600] .ant-descriptions-item-label{width:120px}.access-log-list .text-ellipsis[data-v-f67f4d15]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.json-container[data-v-793d348e]{max-height:200px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.stack-container[data-v-793d348e]{max-height:400px;overflow:auto;background:#fff2f0;border:1px solid #ffccc7;padding:12px;border-radius:4px}.stack-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px;line-height:1.4;color:#a8071a}[data-v-793d348e] .ant-descriptions-item-label{width:120px}.error-log-list .text-ellipsis[data-v-47610902]{display:inline-block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.notice[data-v-864b567f]{color:#ff4d4f;font-size:18px}.table-operator[data-v-1cbc3d31]{margin:10px 14px 20px 0}[data-v-1cbc3d31] .ant-descriptions-item-label{width:140px}.tree-container[data-v-1cbc3d31] .ant-tree{max-height:520px;overflow:auto}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@since2006/pages",
3
3
  "private": false,
4
- "version": "2025.12.0",
4
+ "version": "2026.1.0",
5
5
  "description": "基于 Ant Design Vue 的页面库",
6
6
  "type": "module",
7
7
  "main": "dist/lib/index.js",