Commit cbcd1f68 authored by 黄奎's avatar 黄奎

新增日志

parent c7d568bc
......@@ -483,12 +483,22 @@ export function saveAccountRemark(data) {
/**
* 获取行政备注分页列表
*/
export function queryRemarkPage(data)
{
*/
export function queryRemarkPage(data) {
return request({
url: '/user/GetAccountRemarkPageList',
method: 'post',
data
});
}
/**
* 获取用户修改日志
*/
export function queryEmpChangeLog(data) {
return request({
url: '/user/GetEmpChangeLog',
method: 'post',
data
});
}
<template>
<div class="EmployeeLog">
日志
<div v-for="(item,index) in LogList">
<span>{{item.NewTime}} {{item.WeekStr}}</span>
<q-timeline>
<template v-for="(subItem,subIndex) in item.LogList">
<q-timeline-entry>
<template v-slot:title>
{{subItem.TimeStr}}
<q-avatar rounded size="sm" v-if="subItem.UserIcon">
<img :src="subItem.UserIcon" />
</q-avatar>
{{subItem.CreateName}}
</template>
<div>
{{subItem.LogContent}}
</div>
</q-timeline-entry>
</template>
</q-timeline>
</div>
</div>
</template>
<script>
import {
queryEmpChangeLog
} from '../../../api/school/index'
export default {
props: {
saveObj: {
......@@ -15,17 +37,32 @@
name: "EmployeeLog",
data() {
return {
qMsg: {
AccountId: 0, //账号表中的AccountId
AccountType: 0, //账号表中的AccountType
},
LogList: [], //日志列表
}
},
created() {
if (this.saveObj) {
this.qMsg.AccountId = this.saveObj.AccountId;
this.qMsg.AccountType = this.saveObj.AccountType;
}
},
mounted() {
this.getEmpLog();
},
methods: {
//获取员工修改日志
getEmpLog() {
queryEmpChangeLog(this.qMsg).then(res => {
console.log("res", res);
if (res.Code == 1) {
this.LogList = res.Data;
}
});
}
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment