|
|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div class="mod-user"> |
|
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> |
|
|
|
<el-form :inline="true" :model="searchData" @keyup.enter.native="getDataList()"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="searchData.userName" placeholder="用户账号" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -1435,37 +1435,37 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
closeUpdateModel(){ |
|
|
|
this.addOrUpdateVisible=false; |
|
|
|
this.addOrUpdateVisible = false; |
|
|
|
}, |
|
|
|
// 获取数据列表 |
|
|
|
// getDataList: throttle(function () { |
|
|
|
getDataList () { |
|
|
|
this.selectUser={ |
|
|
|
getDataList () { |
|
|
|
this.selectUser = { |
|
|
|
username:'', |
|
|
|
userDisplay:'', |
|
|
|
} |
|
|
|
this.dataListLoading = true |
|
|
|
this.$http({ |
|
|
|
url: this.$http.adornUrl('/sys/user/list'), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams({ |
|
|
|
'page': this.pageIndex, |
|
|
|
'limit': this.pageSize, |
|
|
|
'username': this.searchData.userName, |
|
|
|
'userDisplay': this.searchData.userDisplay, |
|
|
|
'domainControlAccount': this.searchData.domainControlAccount, |
|
|
|
}) |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.dataList = data.page.list |
|
|
|
this.totalPage = data.page.totalCount |
|
|
|
} else { |
|
|
|
this.dataList = [] |
|
|
|
this.totalPage = 0 |
|
|
|
} |
|
|
|
this.dataListLoading = false |
|
|
|
this.dataListLoading = true |
|
|
|
this.$http({ |
|
|
|
url: this.$http.adornUrl('/sys/user/list'), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams({ |
|
|
|
'page': this.pageIndex, |
|
|
|
'limit': this.pageSize, |
|
|
|
'username': this.searchData.userName, |
|
|
|
'userDisplay': this.searchData.userDisplay, |
|
|
|
'domainControlAccount': this.searchData.domainControlAccount, |
|
|
|
}) |
|
|
|
}, |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.dataList = data.page.list |
|
|
|
this.totalPage = data.page.totalCount |
|
|
|
} else { |
|
|
|
this.dataList = [] |
|
|
|
this.totalPage = 0 |
|
|
|
} |
|
|
|
this.dataListLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
// }, 1000), |
|
|
|
// 每页数 |
|
|
|
sizeChangeHandle(val) { |
|
|
|
@ -1550,10 +1550,10 @@ export default { |
|
|
|
}, |
|
|
|
// 新增 / 修改 |
|
|
|
addOrUpdateHandle(id) { |
|
|
|
this.addOrUpdateVisible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.addOrUpdate.init(id) |
|
|
|
}) |
|
|
|
this.addOrUpdateVisible = true |
|
|
|
}, |
|
|
|
// 删除 |
|
|
|
deleteHandle(row) { |
|
|
|
|