| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <template>
- <div>
- <BaseDialog
- width="580px"
- :isShow.sync="isShow"
- title="操作记录"
- @close="close"
- :confirmStatus="false"
- >
- <el-timeline style="max-height: 600px;overflow: auto;">
- <el-timeline-item
- v-for="(item, index) in checkLogVos"
- :timestamp="$methodsTools.onlyForma(item.createTime)"
- placement="top"
- >
- <el-card>
- <h4>动作:{{ getlogAction(item.logAction) }}</h4>
- <p>操作人:{{ item.operName }}</p>
- <p>操作前:{{ item.oldContent }}</p>
- <p>操作后:{{ item.newContent }}</p>
- </el-card>
- </el-timeline-item>
- </el-timeline>
- </BaseDialog>
- </div>
- </template>
- <script>
- export default {
- name: "",
- props: {
- dialogVisible: {
- type: Boolean,
- default: false,
- },
- },
- data() {
- return {
- checkLogVos: [],
- };
- },
- mounted() {},
- methods: {
- getlogAction(i) {
- var a = "";
- switch (i) {
- case 1:
- a = "新增";
- break;
- case 2:
- a = "修改";
- break;
- case 3:
- a = "删除";
- break;
- default:
- break;
- }
- return a;
- },
- close() {},
- init() {
- this.$api.systemloglist().then((res) => {
- this.checkLogVos = res.rows;
- });
- },
- },
- computed: {
- isShow: {
- get() {
- if (this.dialogVisible) {
- this.init();
- }
- return this.dialogVisible;
- },
- set(val) {
- this.$emit("update:dialogVisible", false);
- },
- },
- },
- };
- </script>
- <style lang="scss" scoped></style>
|