【modify】使用ESLint格式化代码

This commit is contained in:
zer0Black
2023-03-01 09:33:58 +08:00
parent 694855ae8b
commit 63369b8b87
400 changed files with 42942 additions and 43132 deletions
+85 -85
View File
@@ -61,98 +61,98 @@
<script>
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeroListMixin } from '@/mixins/JeroListMixin'
import { forceLogout } from '@/api/login'
import {filterDictTextByCache} from '@/components/dict/JDictSelectUtil'
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeroListMixin } from '@/mixins/JeroListMixin'
import { forceLogout } from '@/api/login'
import { filterDictTextByCache } from '@/components/dict/JDictSelectUtil'
import {getFileAccessHttpUrl} from '@/api/manage';
import { getFileAccessHttpUrl } from '@/api/manage'
export default {
name: "SysUserOnlineList",
mixins:[JeroListMixin, mixinDevice],
components: {},
data () {
return {
description: '在线用户管理页面',
queryParam: {
username: ''
},
// 表头
columns: [
{
title:'用户账号',
align:"center",
dataIndex: 'username'
},{
title:'用户姓名',
align:"center",
dataIndex: 'realname'
},{
title: '头像',
align: "center",
width: 120,
dataIndex: 'avatar',
scopedSlots: {customRender: "avatarslot"}
},{
title:'生日',
align:"center",
dataIndex: 'birthday'
},{
title: '性别',
align: "center",
dataIndex: 'sex',
customRender: (text) => {
//字典值翻译通用方法
return filterDictTextByCache('sex', text);
}
},{
title:'手机号',
align:"center",
dataIndex: 'phone'
},{
title: '操作',
dataIndex: 'action',
scopedSlots: {customRender: 'action'},
align: "center",
width: 170
export default {
name: 'SysUserOnlineList',
mixins: [JeroListMixin, mixinDevice],
components: {},
data () {
return {
description: '在线用户管理页面',
queryParam: {
username: ''
},
// 表头
columns: [
{
title: '用户账号',
align: 'center',
dataIndex: 'username'
}, {
title: '用户姓名',
align: 'center',
dataIndex: 'realname'
}, {
title: '头像',
align: 'center',
width: 120,
dataIndex: 'avatar',
scopedSlots: { customRender: 'avatarslot' }
}, {
title: '生日',
align: 'center',
dataIndex: 'birthday'
}, {
title: '性别',
align: 'center',
dataIndex: 'sex',
customRender: (text) => {
// 字典值翻译通用方法
return filterDictTextByCache('sex', text)
}
],
url: {
list: "/sys/online/list"
},
dictOptions:{},
}
},
created() {
},
computed: {
importExcelUrl: function(){
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
},
},
methods: {
getAvatarView: function (avatar) {
return getFileAccessHttpUrl(avatar)
},
handleForce(record) {
let that = this;
let forceParam = {
token: record.token
}, {
title: '手机号',
align: 'center',
dataIndex: 'phone'
}, {
title: '操作',
dataIndex: 'action',
scopedSlots: { customRender: 'action' },
align: 'center',
width: 170
}
return forceLogout(forceParam).then((res) => {
if (res.success) {
that.loadData();
this.$message.success('强制退出用户”'+record.realname+'“成功!');
} else {
that.$message.warning(res.message);
}
})
],
url: {
list: '/sys/online/list'
},
dictOptions: {}
}
},
created () {
},
computed: {
importExcelUrl: function () {
return `${window._CONFIG.domianURL}/${this.url.importExcelUrl}`
}
},
methods: {
getAvatarView: function (avatar) {
return getFileAccessHttpUrl(avatar)
},
handleForce (record) {
const that = this
const forceParam = {
token: record.token
}
return forceLogout(forceParam).then((res) => {
if (res.success) {
that.loadData()
this.$message.success('强制退出用户”' + record.realname + '“成功!')
} else {
that.$message.warning(res.message)
}
})
}
}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>
</style>