Commit 7983b8d22f5b878e5a1766fa6bb4305dd6fb8f86

Authored by YunaiV
1 parent f894085c

vue3【operatelog】:1)测试操作日志;2)调整 table 的展示列

yudao-ui-admin-vue3/src/views/system/operatelog/index.vue
@@ -74,6 +74,7 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) => { @@ -74,6 +74,7 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) => {
74 74
75 // 导出操作 75 // 导出操作
76 const handleExport = async () => { 76 const handleExport = async () => {
  77 + // TODO 星语:缺少 await 噢
77 exportList(xGrid, '岗位列表.xls') 78 exportList(xGrid, '岗位列表.xls')
78 } 79 }
79 </script> 80 </script>
yudao-ui-admin-vue3/src/views/system/operatelog/operatelog.data.ts
@@ -25,11 +25,13 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({ @@ -25,11 +25,13 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
25 }, 25 },
26 { 26 {
27 title: '请求方法名', 27 title: '请求方法名',
28 - field: 'requestMethod' 28 + field: 'requestMethod',
  29 + isTable: false
29 }, 30 },
30 { 31 {
31 title: '请求地址', 32 title: '请求地址',
32 - field: 'requestUrl' 33 + field: 'requestUrl',
  34 + isTable: false
33 }, 35 },
34 { 36 {
35 title: '操作人员', 37 title: '操作人员',
@@ -57,7 +59,8 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({ @@ -57,7 +59,8 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
57 slots: { 59 slots: {
58 default: 'resultCode' 60 default: 'resultCode'
59 } 61 }
60 - } 62 + },
  63 + isSearch: true // TODO 星语:这里可能有点特殊,不确定好不好处理哈。管理后台返回的是错误码,最终前台展示的是 成功 or 失败,然后筛选页是这样的
61 }, 64 },
62 { 65 {
63 title: '操作日期', 66 title: '操作日期',