大屏页面初始化

This commit is contained in:
2026-03-13 09:34:22 +08:00
parent 69c1447568
commit be0a64e7bb
2 changed files with 13 additions and 6 deletions

View File

@@ -169,6 +169,10 @@ import CSearch from '@/components/Search/proSearch.vue'
import PDialog from '@/components/Dialog/proDialog.vue'
import VForm from './form.vue'
import { useUserStore } from '@/stores/user'
const userStore = useUserStore()
const formComponentRef = ref(null)
const saveLoading = ref(false)
const loading = ref(false)
@@ -240,10 +244,11 @@ async function getDataList() {
loading.value = true
try {
const reqParams = {
pageNum: pagination.pageNum,
pageSize: pagination.pageSize,
type: activeTag.value,
...searchForm,
...searchForm,
pageNum: pagination.pageNum,
pageSize: pagination.pageSize,
type: activeTag.value,
createUser: userStore.loginUser.userName,
}
const res = await getNotesList(reqParams);
pagination.total = res.total;
@@ -341,7 +346,8 @@ const handleSave = async () => {
const reqParams = {
...formData.value,
isEdit: isEdit.value,
id: currentRow.value?.id
id: currentRow.value?.id,
createUser: userStore.loginUser.userName,
}
const res = await getNotesSave(reqParams);
saveLoading.value = false