Browse Source

日志查询优化

董玉雪 7 months ago
parent
commit
f86595f741
1 changed files with 8 additions and 6 deletions
  1. 8 6
      src_product/iam/audit/operationLog/xm-operation-log-list.vue

+ 8 - 6
src_product/iam/audit/operationLog/xm-operation-log-list.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <a-col :span="10" style="z-index:100">
+    <a-col :span="10" style="z-index: 100">
       <a-form-model v-bind="{ wrapperCol: { span: 24 } }">
         <a-form-model-item>
           <AuditGroupPicker
@@ -13,7 +13,7 @@
         </a-form-model-item>
       </a-form-model>
     </a-col>
-    <a-col :span="5" style="z-index:100">
+    <a-col :span="5" style="z-index: 100">
       <a-form-model v-bind="{ wrapperCol: { span: 24 } }">
         <a-form-model-item>
           <SdUserPicker
@@ -26,7 +26,7 @@
         </a-form-model-item>
       </a-form-model>
     </a-col>
-    <a-col :span="20" style="z-index:100">
+    <a-col :span="20" style="z-index: 100">
       <a-form-model v-bind="{ wrapperCol: { span: 24 } }">
         <a-form-model-item>
           日志时间:
@@ -48,6 +48,7 @@
           <a-button @click="changDate('day', -7)">近七天</a-button>
           <a-button @click="changDate('month', -1)">近一个月</a-button>
           <a-button @click="changDate('month', -3)">近三个月</a-button>
+          <a-button>导出数据</a-button>
         </a-form-model-item>
       </a-form-model>
     </a-col>
@@ -98,11 +99,11 @@ export default {
   },
   mounted() {
     this.columns.push({ title: '姓名', dataIndex: 'userName', width: '120px' })
-    this.columns.push({ title: '公司', dataIndex: 'unitName' })
+    this.columns.push({ title: '公司', dataIndex: 'parentCompanyName' })
     this.columns.push({ title: '操作时间', dataIndex: 'time' })
     this.columns.push({ title: '操作模块', dataIndex: 'menuName' })
     this.columns.push({ title: '使用时长', dataIndex: 'holderDesc' })
-    // this.initAuditUnit()
+    this.initAuditUnit()
   },
   methods: {
     changeParam(param) {
@@ -111,9 +112,10 @@ export default {
       param.endDateRange = this.endDate
       if (this.unit.length !== 0) {
         param.unitCode = this.unit[0].code
+        param.unitId = this.unit[0].id
       }
       if (this.user.length !== 0) {
-        param.account = this.user[0].account
+        param.account = this.user[0].code
       }
     },
     chang() {