Commit 03b1c304 by chehuidong

bug

parent c8c52399
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<el-button type="info" @click="addDialog(2)">重置密码</el-button> <el-button type="info" @click="addDialog(2)">重置密码</el-button>
</el-form-item>--> </el-form-item>-->
</el-form> </el-form>
<div class="table_wrap"> <div class="table_wrap" v-loading="loading">
<table-vue <table-vue
:sourceData="sourceData" :sourceData="sourceData"
ref="multipleTable" ref="multipleTable"
...@@ -311,6 +311,7 @@ export default { ...@@ -311,6 +311,7 @@ export default {
total: 0, total: 0,
pageSize: 100, pageSize: 100,
currentPage: 1, currentPage: 1,
loading: false,
} }
}, },
created() { created() {
...@@ -377,73 +378,25 @@ export default { ...@@ -377,73 +378,25 @@ export default {
width: '', width: '',
render: (item) => ( render: (item) => (
<div> <div>
{item.loginName !== 'admin' && ( <span title="编辑" class="icon-view ">
<span <i
title="编辑" class="el-icon-edit-outline"
class="icon-view icon-edit-view" onClick={(e) =>
> this.addDialog(2, item, e)
<i }
class="el-icon-edit" ></i>
onClick={(e) => </span>
this.addDialog(2, item, e) <span title="重置密码" class="icon-view ">
} <i
></i> class="el-icon-refresh-left"
</span> onClick={(e) => this.resetPwd(e, item)}
)} ></i>
{ </span>
<span <span title="删除" class="icon-view ">
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="删除"
>
<i <i
class="el-icon-delete" class="el-icon-delete"
onClick={(e) => onClick={(e) =>
this.authorizationDel(item, e) this.deleteSection(item)
} }
></i> ></i>
</span> </span>
...@@ -452,6 +405,7 @@ export default { ...@@ -452,6 +405,7 @@ export default {
}, },
] ]
}, },
funcRoleList() { funcRoleList() {
if (this.roleList.length > 0) { if (this.roleList.length > 0) {
return this.roleList.filter( return this.roleList.filter(
...@@ -576,8 +530,10 @@ export default { ...@@ -576,8 +530,10 @@ export default {
return this.$message('请勾选至少一条记录') return this.$message('请勾选至少一条记录')
} }
axios axios
.get('platform/user/axios.get', { .get('platform/user/get', {
id: v.id, params: {
id: v.id,
},
}) })
.then((res) => { .then((res) => {
const funcRoleIds = [] const funcRoleIds = []
...@@ -633,6 +589,7 @@ export default { ...@@ -633,6 +589,7 @@ export default {
}, },
// 查询 // 查询
getList() { getList() {
this.loading = true
const { pageSize, currentPage } = const { pageSize, currentPage } =
this.paginationOptions this.paginationOptions
axios axios
...@@ -642,6 +599,7 @@ export default { ...@@ -642,6 +599,7 @@ export default {
...this.searchForm, ...this.searchForm,
}) })
.then((res) => { .then((res) => {
this.loading = false
if (res.code === 200) { if (res.code === 200) {
this.sourceData = res.data.records this.sourceData = res.data.records
this.paginationOptions.total = res.data.total this.paginationOptions.total = res.data.total
...@@ -738,7 +696,9 @@ export default { ...@@ -738,7 +696,9 @@ export default {
.then(() => { .then(() => {
axios axios
.get('platform/user/delete', { .get('platform/user/delete', {
ids: ids, params: {
ids: ids,
},
}) })
.then((res) => { .then((res) => {
if (res.code === 200) { 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