Merge branch 'refs/heads/master' into dev

# Conflicts:
#	src/views/system/user/index.vue
This commit is contained in:
zc
2026-03-06 18:06:34 +08:00
8 changed files with 461 additions and 100 deletions

View File

@@ -13,7 +13,7 @@
</template>
<script setup lang="ts">
import { Message, type TreeNodeData } from '@arco-design/web-vue'
import { Message } from '@arco-design/web-vue'
import { useWindowSize } from '@vueuse/core'
import { addUser, getUser, updateUser } from '@/apis/system/user'
import { type ColumnItem, GiForm } from '@/components/GiForm'

View File

@@ -123,7 +123,7 @@ const queryFormColumns: ColumnItem[] = reactive([
hideLabel: true,
},
props: {
placeholder: '搜索用户名/昵称/描述',
placeholder: '搜索用户名',
showWordLimit: false,
},
},
@@ -168,7 +168,7 @@ const columns: TableInstanceColumns[] = [
fixed: !isMobile() ? 'left' : undefined,
},
{ title: '用户名', dataIndex: 'username', slotName: 'username', minWidth: 100, ellipsis: true, tooltip: true },
{ title:'卡号', dataIndex: 'cardNo', slotName: 'cardNo' },
{ title: '卡号', dataIndex: 'cardNo', slotName: 'cardNo' },
{ title: '状态', dataIndex: 'status', slotName: 'status', align: 'center' },
{ title: '性别', dataIndex: 'gender', slotName: 'gender', align: 'center' },
{ title: '角色', dataIndex: 'roleNames', slotName: 'roleNames', minWidth: 165 },
@@ -204,7 +204,7 @@ const reset = () => {
const onDelete = (record: UserResp) => {
return handleDelete(() => deleteUser(record.id), {
content: `是否确定删除用户「${record.nickname}(${record.username})」?`,
content: `是否确定删除用户「${record.username}」?`,
showModal: true,
})
}
@@ -227,11 +227,6 @@ const onUpdate = (record: UserResp) => {
UserAddDrawerRef.value?.onUpdate(record.id)
}
const UserDetailDrawerRef = ref<InstanceType<typeof UserDetailDrawer>>()
const onDetail = (record: UserResp) => {
UserDetailDrawerRef.value?.onOpen(record.id)
}
const UserResetPwdModalRef = ref<InstanceType<typeof UserResetPwdModal>>()
const onResetPwd = (record: UserResp) => {
UserResetPwdModalRef.value?.onOpen(record.id)