sunyize 2 лет назад
Родитель
Сommit
e2b7b9b967
1 измененных файлов с 69 добавлено и 1 удалено
  1. 69 1
      src/views/customer/CustomerHistorys.vue

+ 69 - 1
src/views/customer/CustomerHistorys.vue

@@ -48,6 +48,36 @@
         </div>
         </div>
       </a-card>
       </a-card>
 
 
+      <!--   操作日志   -->
+      <a-card :bordered="false" title="操作日志" style="margin-top: 10px;">
+
+        <div>
+          <a-table
+            ref="table"
+            size="middle"
+            :scroll="{x:true}"
+            bordered
+            rowKey="id"
+            :columns="columnsLog"
+            :dataSource="dataSourceLog"
+            :pagination="ipaginationLog"
+            class="j-table-force-nowrap"
+            @change="handleTableChange">
+
+             <span slot="action" slot-scope="text, record">
+               <a @click="showByCardNo(record)">查看</a>
+             </span>
+            <template v-slot:numberResults="text, record">
+              <a-badge :status="text | statusTypeFilter" :text="text | statusFilter"/>
+            </template>
+
+            <template v-slot:status="text, record">
+              <a-badge :color="record | statusEscalationColor"  :text="record | escalationFilter"/>
+            </template>
+
+          </a-table>
+        </div>
+      </a-card>
     </a-page-header>
     </a-page-header>
 
 
   </div>
   </div>
@@ -180,6 +210,23 @@ export default {
           text: '上报紫名单',
           text: '上报紫名单',
           value: '4',
           value: '4',
         }],
         }],
+      columnsLog: [
+        {
+          title: '操作时间',
+          align: "center",
+          dataIndex: 'updateTime',
+        },
+        {
+          title: '操作人',
+          align: "center",
+          dataIndex: 'updateBy',
+        },
+        {
+          title: '操作类型',
+          align: "center",
+          dataIndex: 'operateType',
+        },
+      ],
       array:[],  //创建一个数组
       array:[],  //创建一个数组
       form:{
       form:{
         value:[]  //接收每个input框的值
         value:[]  //接收每个input框的值
@@ -262,7 +309,17 @@ export default {
         }
         }
       ],
       ],
       description: '稽核业务列表',
       description: '稽核业务列表',
-
+      ipaginationLog:{
+        current: 1,
+        pageSize: 10,
+        pageSizeOptions: ['10', '20', '30'],
+        showTotal: (total, range) => {
+          return range[0] + "-" + range[1] + " 共" + total + "条"
+        },
+        showQuickJumper: true,
+        showSizeChanger: true,
+        total: 0
+      },
       dataSourceLog:[],
       dataSourceLog:[],
       sysBusinessHallList: "",
       sysBusinessHallList: "",
       labelCol: { span: 1 },
       labelCol: { span: 1 },
@@ -281,6 +338,17 @@ export default {
   },
   },
   methods:{
   methods:{
     init(){
     init(){
+
+      let queryTable={
+        //businessReminderCardId:this.customer.info.id,
+        cardNo :this.customer.info.cardNo,
+        cardName :this.customer.info.cardName
+      }
+      getAction("/businessReminderCard/getBusinessReminderCardLogs",queryTable).then(resp=>{
+        if(resp.success){
+          this.dataSourceLog=resp.result
+        }
+      })
     },
     },
     initTable(){
     initTable(){
       let queryTable={
       let queryTable={