Commit cb704f58 by xinla

--no commit message

1 parent 0f184b37
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label> <el-form-item label>
<el-button type="primary" @click="getList(1)">查询</el-button> <el-button type="primary" @click="getList(1, true)">查询</el-button>
<el-button @click="resetFn()">重置</el-button> <el-button @click="resetFn()">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
query: { query: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
deptId: 1, deptId: '',
roleId: '', roleId: '',
userName: '', userName: '',
checkIsRoot: true, checkIsRoot: true,
...@@ -366,11 +366,13 @@ export default { ...@@ -366,11 +366,13 @@ export default {
this.defaultShowNodes.push(this.query.deptId) this.defaultShowNodes.push(this.query.deptId)
}) })
}, },
getList(page) { getList(page, isSarch) {
page && (this.query.pageNum = page) page && (this.query.pageNum = page)
this.loading = true this.loading = true
let query = JSON.parse(JSON.stringify(this.query))
isSarch && delete query.deptId
api api
.getDeptUser(this.query) .getDeptUser(query)
.then(({ rows, total }) => { .then(({ rows, total }) => {
this.userList = rows this.userList = rows
this.total = +total this.total = +total
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!