Commit 03b1c304 by chehuidong

bug

parent c8c52399
......@@ -86,7 +86,7 @@
<el-button type="info" @click="addDialog(2)">重置密码</el-button>
</el-form-item>-->
</el-form>
<div class="table_wrap">
<div class="table_wrap" v-loading="loading">
<table-vue
:sourceData="sourceData"
ref="multipleTable"
......@@ -311,6 +311,7 @@ export default {
total: 0,
pageSize: 100,
currentPage: 1,
loading: false,
}
},
created() {
......@@ -377,73 +378,25 @@ export default {
width: '',
render: (item) => (
<div>
{item.loginName !== 'admin' && (
<span
title="编辑"
class="icon-view icon-edit-view"
>
<i
class="el-icon-edit"
onClick={(e) =>
this.addDialog(2, item, e)
}
></i>
</span>
)}
{
<span
title="重置密码"
class="icon-view icon-tools-view"
>
<i
class="el-icon-refresh-left"
onClick={(e) => this.resetPwd(e, item)}
></i>
</span>
}
</div>
),
},
]
},
tableColumns() {
return [
{ label: '访问IP', key: 'ip' },
{ label: '设备名称', key: 'deviceName' },
{ label: '授权状态', key: 'auditStatusTxt' },
{ label: '授权类型', key: 'authTypeTxt' },
{
label: '最后登录时间',
key: 'lastLoginTime',
width: 130,
},
{
label: '操作',
key: '',
render: (item) => (
<div>
{item.auditStatus === 0 && (
<span
class="icon-view icon-tools-view"
title="授权"
>
<i
class="el-icon-s-check"
onClick={(e) =>
this.authorization(item, e)
}
></i>
</span>
)}
<span
class="icon-view icon-del-view"
title="删除"
>
<span title="编辑" class="icon-view ">
<i
class="el-icon-edit-outline"
onClick={(e) =>
this.addDialog(2, item, e)
}
></i>
</span>
<span title="重置密码" class="icon-view ">
<i
class="el-icon-refresh-left"
onClick={(e) => this.resetPwd(e, item)}
></i>
</span>
<span title="删除" class="icon-view ">
<i
class="el-icon-delete"
onClick={(e) =>
this.authorizationDel(item, e)
this.deleteSection(item)
}
></i>
</span>
......@@ -452,6 +405,7 @@ export default {
},
]
},
funcRoleList() {
if (this.roleList.length > 0) {
return this.roleList.filter(
......@@ -576,8 +530,10 @@ export default {
return this.$message('请勾选至少一条记录')
}
axios
.get('platform/user/axios.get', {
id: v.id,
.get('platform/user/get', {
params: {
id: v.id,
},
})
.then((res) => {
const funcRoleIds = []
......@@ -633,6 +589,7 @@ export default {
},
// 查询
getList() {
this.loading = true
const { pageSize, currentPage } =
this.paginationOptions
axios
......@@ -642,6 +599,7 @@ export default {
...this.searchForm,
})
.then((res) => {
this.loading = false
if (res.code === 200) {
this.sourceData = res.data.records
this.paginationOptions.total = res.data.total
......@@ -738,7 +696,9 @@ export default {
.then(() => {
axios
.get('platform/user/delete', {
ids: ids,
params: {
ids: ids,
},
})
.then((res) => {
if (res.code === 200) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment