This commit is contained in:
2025-07-28 18:46:48 +08:00
parent 09c8cf2333
commit ab8fb27e23
5 changed files with 20 additions and 13 deletions

View File

@ -5,7 +5,7 @@ VITE_APP_TITLE = 新能源项目管理平台
VITE_APP_ENV = 'development' VITE_APP_ENV = 'development'
# 开发环境 # 开发环境
VITE_APP_BASE_API = 'http://192.168.110.119:8899' VITE_APP_BASE_API = 'http://192.168.110.110:8899'
# 无人机接口地址 # 无人机接口地址

View File

@ -253,16 +253,6 @@ const handleDelete = async (row?: EnterRoadVO) => {
await getList(); await getList();
}; };
/** 导出按钮操作 */
const handleExport = () => {
proxy?.download(
'land/enterRoad/export',
{
...queryParams.value
},
`enterRoad_${new Date().getTime()}.xlsx`
);
};
//监听项目id刷新数据 //监听项目id刷新数据
const listeningProject = watch( const listeningProject = watch(
() => currentProject.value.id, () => currentProject.value.id,

View File

@ -323,7 +323,6 @@ const submitForm = () => {
} }
}); });
}; };
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = async (row?: LandTransferLedgerVO) => { const handleDelete = async (row?: LandTransferLedgerVO) => {
const _ids = row?.id || ids.value; const _ids = row?.id || ids.value;
@ -334,7 +333,6 @@ const handleDelete = async (row?: LandTransferLedgerVO) => {
}; };
// 选择地块 // 选择地块
const handleLandBlockChange = (val) => { const handleLandBlockChange = (val) => {
console.log(val);
getListRoad(); getListRoad();
}; };
/** 查询地块信息列表 */ /** 查询地块信息列表 */

View File

@ -292,6 +292,19 @@ const handleLandBlockChange = (val) => {
console.log(val); console.log(val);
getListRoad(); getListRoad();
}; };
//监听项目id刷新数据
const listeningProject = watch(
() => currentProject.value.id,
(nid, oid) => {
queryParams.value.projectId = nid;
getListLand();
getList();
}
);
onUnmounted(() => {
listeningProject();
});
onMounted(() => { onMounted(() => {
getListLand(); getListLand();
getList(); getList();

View File

@ -47,6 +47,12 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '') rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
},
'/auth': {
target: env.VITE_APP_BASE_API,
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
} }
} }
}, },