用户列表

This commit is contained in:
仲么了
2024-01-19 16:30:46 +08:00
parent f8d9dd4183
commit ac96d0365a
4 changed files with 280 additions and 5 deletions

View File

@@ -36,6 +36,8 @@
</template>
</TableHeader>
<Table ref="tableRef" />
<PopupEdit ref="popupEditRef"></PopupEdit>
<PopupPwd ref="popupPwdRef"></PopupPwd>
</div>
</template>
<script setup lang="ts">
@@ -44,10 +46,14 @@ import { ref, onMounted, provide } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import PopupEdit from './popupEdit.vue'
import PopupPwd from './popupPwd.vue'
defineOptions({
name: 'auth/userlist'
})
const popupEditRef = ref()
const popupPwdRef = ref()
const tableStore = new TableStore({
url: '/user-boot/user/list',
method: 'POST',
@@ -76,7 +82,9 @@ const tableStore = new TableStore({
disabled: row => {
return row.state !== 1
},
click: row => {}
click: row => {
popupEditRef.value.open('编辑用户', row)
}
},
{
name: 'edit',
@@ -87,7 +95,9 @@ const tableStore = new TableStore({
disabled: row => {
return row.state !== 1
},
click: row => {}
click: row => {
popupPwdRef.value.open('修改密码', row)
}
},
{
name: 'edit',
@@ -178,5 +188,7 @@ onMounted(() => {
tableStore.index()
})
const addUser = () => {}
const addUser = () => {
popupEditRef.value.open('新增用户')
}
</script>