Merge branch 'dev' into test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-17 20:10:00 +08:00
5 changed files with 8 additions and 3 deletions

View File

@@ -122,6 +122,7 @@ export const usePermissionStore = defineStore('permission', {
generateRoutes() { generateRoutes() {
const menus = JSON.parse(localStorage.getItem('menu')) const menus = JSON.parse(localStorage.getItem('menu'))
const accessRoutes = filterAsyncRoutes(menus) const accessRoutes = filterAsyncRoutes(menus)
// console.log(accessRoutes)
window.localStorage.setItem('roles', JSON.stringify(findType3Routes(menus))) window.localStorage.setItem('roles', JSON.stringify(findType3Routes(menus)))
this.accessRoutes = accessRoutes this.accessRoutes = accessRoutes
return accessRoutes return accessRoutes

View File

@@ -41,6 +41,7 @@
:pagination="pagination" :pagination="pagination"
:bordered="false" :bordered="false"
:row-key="(row) => row.gid" :row-key="(row) => row.gid"
:checked-row-keys="queryParams.checkedRowKeysRef"
remote remote
@update:checked-row-keys="handleCheck" @update:checked-row-keys="handleCheck"
/> />
@@ -525,6 +526,8 @@ const clear = () => {
isDzModel.value = false isDzModel.value = false
notesVal.value = '' notesVal.value = ''
nowRow.value = {} nowRow.value = {}
queryParams.value.word = ''
getList()
} }
const veeify = async () => { const veeify = async () => {

View File

@@ -5,7 +5,7 @@
<img src="@/assets/images/404.webp" width="500" /> <img src="@/assets/images/404.webp" width="500" />
</template> </template>
<template #footer> <template #footer>
<n-button @click="replace('/')">返回首页</n-button> <n-button @click="replace('/workbench')">返回首页</n-button>
</template> </template>
</n-result> </n-result>
</AppPage> </AppPage>

View File

@@ -114,7 +114,7 @@ async function handleLogin() {
Reflect.deleteProperty(query, 'redirect') Reflect.deleteProperty(query, 'redirect')
router.push({ path, query }) router.push({ path, query })
} else { } else {
router.push('/') router.push('/workbench')
} }
} catch (error) { } catch (error) {
$message.removeMessage() $message.removeMessage()

View File

@@ -101,6 +101,7 @@
:pagination="pagination" :pagination="pagination"
:bordered="false" :bordered="false"
:row-key="rowKey" :row-key="rowKey"
:checked-row-keys="checkedRowKeysRef"
remote remote
@update:checked-row-keys="handleCheck" @update:checked-row-keys="handleCheck"
/> />
@@ -425,6 +426,7 @@ const handleclear = () => {
pulse: null, pulse: null,
activate_status: 2, activate_status: 2,
} }
checkedRowKeysRef.value = []
} }
const modalType = ref(null) const modalType = ref(null)
@@ -458,7 +460,6 @@ const handleValidateClick = (e) => {
...formValue.value, ...formValue.value,
}) })
} }
$message.success('成功')
handleclear() handleclear()
getList() getList()
} catch (error) { } catch (error) {