|
|
@ -84,7 +84,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script lang="ts"> |
|
|
|
import { reactive, toRefs } from 'vue'; |
|
|
|
import {onMounted, reactive, toRefs} from 'vue'; |
|
|
|
import { post } from "../uilts/axios"; |
|
|
|
import { ElMessage } from 'element-plus' |
|
|
|
import { format } from '../uilts/String'; |
|
|
@ -109,22 +109,22 @@ export default { |
|
|
|
}, |
|
|
|
tableData:[] |
|
|
|
}) |
|
|
|
const findAllUser= ()=>{ |
|
|
|
return post("user/findAllUser",{ |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
findAllUser(); |
|
|
|
}) |
|
|
|
|
|
|
|
const findAllUser = ()=>{ |
|
|
|
return post("user/findUserByUserName",{ |
|
|
|
userName: option.state1.trim(), |
|
|
|
current:option.current, |
|
|
|
size:option.size |
|
|
|
}).then((res:any)=>{ |
|
|
|
console.log(res,'1111') |
|
|
|
// option.tableData=res.data |
|
|
|
option.tableData= res.data.records; |
|
|
|
option.total = res.data.total; |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
post('user/findUserCount',{ |
|
|
|
}).then((res :any)=>{ |
|
|
|
option.total=res.data |
|
|
|
findAllUser() |
|
|
|
}) |
|
|
|
|
|
|
|
//添加用户 |
|
|
|
const onAddClick = ()=> { |
|
|
|
option.isDisabled=false |
|
|
@ -171,11 +171,13 @@ export default { |
|
|
|
|
|
|
|
//图片搜索 |
|
|
|
const onSearch = ()=> { |
|
|
|
post("user/findUserByUserAccountNumber",{ |
|
|
|
post("user/findUserByUserName",{ |
|
|
|
current: option.current, |
|
|
|
size: option.size, |
|
|
|
userName: option.state1 |
|
|
|
}).then((res:any)=>{ |
|
|
|
option.tableData=[] |
|
|
|
option.tableData = option.tableData.concat(res.data) |
|
|
|
}).then((res:any) => { |
|
|
|
option.tableData= res.data.records; |
|
|
|
option.total = res.data.total; |
|
|
|
console.log(res) |
|
|
|
}) |
|
|
|
} |
|
|
@ -190,8 +192,8 @@ export default { |
|
|
|
findAllUser() |
|
|
|
} |
|
|
|
|
|
|
|
const changEnum =(e)=>{ |
|
|
|
option.current= e |
|
|
|
const changEnum = (e)=> { |
|
|
|
option.current = e; |
|
|
|
findAllUser() |
|
|
|
} |
|
|
|
|
|
|
|