大屏页面初始化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user