2828 />
2929 </div >
3030
31- <div style =" display : flex ; " >
31+ <div style =" display : flex " >
3232 <div class =" flex-between complex-search" >
3333 <el-select
3434 v-model =" filter_type"
6767 clearable
6868 />
6969 </div >
70- <el-button @click =" exportLog" style =" margin-left : 10px ;" >{{ $t('common.export') }}</el-button >
70+ <el-button @click =" exportLog" style =" margin-left : 10px " >{{
71+ $t('common.export')
72+ }}</el-button >
7173 </div >
7274 </div >
7375
99101 <div class =" filter" >
100102 <div class =" form-item mb-16" >
101103 <div @click.stop >
102- <el-scrollbar height =" 300" style =" margin : 0 0 0 10px ;" >
103- <el-checkbox-group v-model =" operateTypeArr" style =" display : flex ; flex-direction : column ;" >
104- <el-checkbox v-for =" item in operateOptions"
104+ <el-scrollbar height =" 300" style =" margin : 0 0 0 10px " >
105+ <el-checkbox-group
106+ v-model =" operateTypeArr"
107+ style =" display : flex ; flex-direction : column "
108+ >
109+ <el-checkbox
110+ v-for =" item in operateOptions"
105111 :key =" item.value"
106112 :label =" item.label"
107- :value =" item.value" />
113+ :value =" item.value"
114+ />
108115 </el-checkbox-group >
109116 </el-scrollbar >
110117 </div >
122129 </div >
123130 </template >
124131 </el-table-column >
125- <el-table-column prop =" operate" :label =" $t('views.operateLog.table.operate.label ')" />
132+ <el-table-column prop =" operate" :label =" $t('views.operateLog.table.operate.detail ')" />
126133 <el-table-column
127134 width =" 120"
128135 prop =" user.username"
@@ -289,7 +296,7 @@ function getRequestParams() {
289296 if (filter_type .value === ' status' ) {
290297 obj [' status' ] = filter_status .value
291298 }
292- if (operateTypeArr .value .length > 0 ) {
299+ if (operateTypeArr .value .length > 0 ) {
293300 obj [' menu' ] = JSON .stringify (operateTypeArr .value )
294301 }
295302 return obj
@@ -305,12 +312,12 @@ function getList() {
305312function getMenuList() {
306313 return operateLog .getMenuList ().then ((res ) => {
307314 let arr: any [] = res .data
308- arr . filter (( item , index , self ) =>
309- index === self .findIndex ((i ) => i [' menu' ] === item [' menu' ])
310- ) .forEach (ele => {
311- operateOptions .value .push ({label:ele .menu_label , value:ele .menu })
312- })
313- })
315+ arr
316+ . filter (( item , index , self ) => index === self .findIndex ((i ) => i [' menu' ] === item [' menu' ]) )
317+ .forEach (( ele ) => {
318+ operateOptions .value .push ({ label: ele .menu_label , value: ele .menu })
319+ })
320+ })
314321}
315322
316323const exportLog = () => {
0 commit comments