feat: vxe demo

This commit is contained in:
xingyu4j 2022-11-02 11:12:47 +08:00
parent a33120c5d5
commit ad42eca847
2 changed files with 10 additions and 19 deletions

View File

@ -6,13 +6,13 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta <meta
name="keywords" name="keywords"
content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite + element plus 的后台开源免费管理系统!" content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite + element plus 的后台开源免费管理系统!"
/> />
<meta <meta
name="description" name="description"
content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite + element plus 的后台开源免费管理系统!" content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite + element plus 的后台开源免费管理系统!"
/> />
<title><%= title %></title> <title><%= title %></title>
</head> </head>
<body> <body>

View File

@ -34,9 +34,7 @@ const gridOptions = reactive<VxeGridProps>({
}, },
toolbarConfig: { toolbarConfig: {
custom: true, custom: true,
slots: { slots: { buttons: 'toolbar_buttons' }
buttons: 'toolbar_buttons'
}
}, },
printConfig: { printConfig: {
columns: [ columns: [
@ -124,10 +122,7 @@ const gridOptions = reactive<VxeGridProps>({
proxyConfig: { proxyConfig: {
seq: true, // seq: true, //
form: true, // reload form: true, // reload
props: { props: { result: 'list', total: 'total' },
result: 'list',
total: 'total'
},
ajax: { ajax: {
query: ({ page, form }) => { query: ({ page, form }) => {
const queryParams: PostPageReqVO = Object.assign({}, form) const queryParams: PostPageReqVO = Object.assign({}, form)
@ -142,11 +137,7 @@ const gridOptions = reactive<VxeGridProps>({
}) })
const formData = ref<PostVO>() const formData = ref<PostVO>()
const formItems = ref<VxeFormItemProps[]>([ const formItems = ref<VxeFormItemProps[]>([
{ { field: 'id', title: 'id', visible: false },
field: 'id',
title: 'id',
visible: false
},
{ {
field: 'name', field: 'name',
title: '岗位名称', title: '岗位名称',