CN-34 feat:添加操作日志列表页面

This commit is contained in:
zhangyu
2021-06-17 16:56:50 +08:00
parent 19090ceae6
commit 50e1d8f04b
18 changed files with 332 additions and 38 deletions

View File

@@ -24,7 +24,7 @@
<button type="button" class="nz-btn nz-btn-size-small-new nz-btn-style-light-new option-btn" @click="selectAllOrNone" :class="{'btn-active':selectAllFlag}"><span ><i class="nz-icon nz-icon-delete"></i></span></button>
</div>-->
<el-tree :data="menus" :default-expand-all="expandAllFlag" :props="{label:labelFormatter}" @check-change="selectChange" class="tree-border" node-key="id" ref="menuTree" show-checkbox id="role-box-input-menus">
<template #default="{ node, data }">
<template #default="{ data }">
<span>
<i v-if="data.type == '1'" class="el-icon-menu"></i>
<i v-if="data.type == '2'" class="el-icon-edit"></i>
@@ -48,8 +48,8 @@
</template>
<script>
import rightBoxMixin from '@/mixins/rightBox'
import { get, post, put } from '@/utils/http'
import rightBoxMixin from '@/mixins/rightBox'
import { get, post, put } from '@/utils/http'
export default {
name: 'userBox',
mixins: [rightBoxMixin],

View File

@@ -86,7 +86,6 @@
<script>
import rightBoxMixin from '@/mixins/rightBox'
import { onMounted } from "vue";
import { get, post, put } from '@/utils/http'
export default {
name: 'UserBox',
@@ -144,7 +143,7 @@ export default {
},
setup () {
},
mounted() {
mounted () {
this.getRoleData()
},
methods: {
@@ -190,8 +189,8 @@ export default {
}
})
},
getRoleData (){
get('sys/role?pageSize=-1').then(response => {
getRoleData () {
get('sys/role?pageSize=-1').then(response => {
if (response.code === 200) {
this.roleData = response.data.list
}
@@ -204,7 +203,7 @@ export default {
immediate: true,
handler (n) {
this.editObject = JSON.parse(JSON.stringify(n))
if ( !this.editObject.roleIds && this.editObject.roles ) {
if (!this.editObject.roleIds && this.editObject.roles) {
this.editObject.roleIds = this.editObject.roles[0].id
}
}