合并
This commit is contained in:
@ -120,7 +120,7 @@ const dialog = reactive<DialogOption>({
|
||||
|
||||
const initFormData: EnterRoadForm = {
|
||||
id: undefined,
|
||||
projectId: currentProject.value.id,
|
||||
projectId: currentProject.value?.id,
|
||||
roadCode: undefined,
|
||||
roadName: undefined,
|
||||
designCreateLength: undefined,
|
||||
@ -134,7 +134,7 @@ const data = reactive<PageData<EnterRoadForm, EnterRoadQuery>>({
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
projectId: currentProject.value.id,
|
||||
projectId: currentProject.value?.id,
|
||||
roadCode: undefined,
|
||||
roadName: undefined,
|
||||
designCreateLength: undefined,
|
||||
@ -167,7 +167,7 @@ const getListLand = async () => {
|
||||
const res = await listLandBlock({
|
||||
pageNum: 1,
|
||||
pageSize: 10000,
|
||||
projectId: currentProject.value.id
|
||||
projectId: currentProject.value?.id
|
||||
});
|
||||
landBlockList.value = res.rows;
|
||||
};
|
||||
@ -247,7 +247,7 @@ const handleDelete = async (row?: EnterRoadVO) => {
|
||||
|
||||
//监听项目id刷新数据
|
||||
const listeningProject = watch(
|
||||
() => currentProject.value.id,
|
||||
() => currentProject.value?.id,
|
||||
(nid, oid) => {
|
||||
queryParams.value.projectId = nid;
|
||||
getListLand();
|
||||
|
Reference in New Issue
Block a user