|
|
@@ -36,7 +36,7 @@
|
|
|
{{ tool.formatDate(scope.row.UPDATED_AT) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" :label="$t('table.actions')" width="180">
|
|
|
+ <el-table-column :fixed="fixedColumn" :label="$t('table.actions')" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<el-dropdown v-if="scope.row.DONT_DEL==='0'&&(permission.hasPermission(`admin/role-permission`)||permission.hasPermission(`admin/role-edit`)||permission.hasPermission(`admin/role-delete`))" size="small" trigger="click" @command="handleRow" @click.stop="">
|
|
|
<el-button type="primary" size="small">
|
|
|
@@ -74,13 +74,15 @@ import tool from '@/utils/tool'
|
|
|
import FilterUser from '@/components/FilterUser'
|
|
|
import permission from '@/utils/permission'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
-import filterHelper from '../../utils/filterHelper'
|
|
|
+import filterHelper from '@/utils/filterHelper'
|
|
|
+import {getOperatingSystem} from "@/utils"
|
|
|
|
|
|
export default {
|
|
|
name: 'Role',
|
|
|
components: { FilterUser, Pagination },
|
|
|
data() {
|
|
|
return {
|
|
|
+ fixedColumn:false, // 固定,当手机端不固定,pc固定
|
|
|
tableData: null,
|
|
|
loading: true,
|
|
|
multipleSelection: [],
|
|
|
@@ -107,6 +109,12 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getData()
|
|
|
+ let system = getOperatingSystem()
|
|
|
+ if (system == "Android" || system == 'ios') {
|
|
|
+ this.fixedColumn = false
|
|
|
+ } else {
|
|
|
+ this.fixedColumn = 'right'
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
handleSelectionChange(val) {
|