feat:endpoint 接口调整 以及 ptoject 样式调整

This commit is contained in:
zhangyu
2021-04-16 15:02:40 +08:00
parent 1cbf048150
commit 6f26ba3d03
15 changed files with 1555 additions and 415 deletions

View File

@@ -1,6 +1,6 @@
<template>
<el-table
id="userTable"
id="endpointTable"
ref="dataTable"
:data="tableData"
:height="height"
@@ -64,7 +64,7 @@
</div>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="['edit', scope.row]"><i class="nz-icon nz-icon-edit"></i><span class="operation-dropdown-text">{{$t('overall.edit')}}</span></el-dropdown-item>
<el-dropdown-item :command="['delete', scope.row, `sys/user?ids=${scope.row.id}`]" :disabled="scope.row.id === 1"><i class="nz-icon nz-icon-delete"></i><span class="operation-dropdown-text">{{$t('overall.delete')}}</span></el-dropdown-item>
<el-dropdown-item :command="['delete', scope.row, `sys/endpoint?ids=${scope.row.id}`]" :disabled="scope.row.id === 1"><i class="nz-icon nz-icon-delete"></i><span class="operation-dropdown-text">{{$t('overall.delete')}}</span></el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
@@ -75,7 +75,7 @@
<script>
import table from '@/components/common/mixin/table'
export default {
name: 'userTable',
name: 'endpointTable',
mixins: [table],
data () {
return {
@@ -126,12 +126,6 @@ export default {
this.$store.commit('currentProjectChange', project)
}
},
computed: {
isCurrentUser () {
return function (username) {
return localStorage.getItem('nz-username') === username
}
}
}
computed: {}
}
</script>