This commit is contained in:
qingyu 2025-07-01 17:50:02 +08:00
parent 2b839595d7
commit f980db53c7
2 changed files with 34 additions and 5 deletions

View File

@ -12,8 +12,8 @@ VITE_ROUTER_BASE=/
VITE_ROUTER_HISTORY=hash
# api
#VITE_API_BASIC=https://api.hailin-keji.com
VITE_API_BASIC=http://10.10.1.6:8060
VITE_API_BASIC=https://api.hailin-keji.com
#VITE_API_BASIC=http://10.10.1.6:8060
VITE_API_HTTP=/api/v1/
# storage
VITE_STORAGE_NAMESPACE = gin-admin_local_

View File

@ -110,7 +110,13 @@ const columns = [
{ title: '状态', dataIndex: 'status',width:80 , align: 'center'},
{ title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' },
]
const areaList = ref([]); //
const editDialogVisible = ref(false); //
const editForm = reactive({
name: '',
sequence: 0,
status: 'disabled',
});
const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } =
usePagination()
@ -205,9 +211,32 @@ async function onOk() {
/**
* 编辑基地
*/
function handleCreateJD() {
console.log('createJD')
async function handleCreateJD() {
console.log('createJD');
try {
showLoading();
const { pageSize, current } = paginationState;
const { success, data, total } = await apis.recruitment
.getAreasList({
pageSize,
current: current,
...searchFormData.value,
})
.catch(() => {
throw new Error();
});
hideLoading();
if (config('http.code.success') === success) {
areaList.value = data;
console.log(areaList.value);
paginationState.total = total;
}
} catch (error) {
hideLoading();
console.error('Error in handleCreateJD:', error);
}
}
</script>
<style lang="less" scoped></style>