This commit is contained in:
2025-12-15 16:27:23 +08:00
parent 2b0a0993c2
commit a88b3a84eb
4 changed files with 342 additions and 7 deletions

View File

@@ -226,12 +226,31 @@ const handleReset = () =>{
getDataList('refresh')
}
onMounted(async () => {
await loadLevelData('201');
// await loadLevelData('201');
});
onLoad(() => {
getDictionary()
// getDeptOptions()
getDataList('refresh');
onLoad(async () => {
let token=uni.getStorageSync('Padmin-Token')
console.log("token",token)
if(token){
await loadLevelData('201');
getDictionary()
getDataList('refresh');
}else{
navTo('/packageB/login2');
}
// if (resLogin.code=='200') {
// uni.setStorageSync('Padmin-Token', resLogin.data.access_token)
// return true;
// }else{
// uni.showToast({
// icon: 'none',
// title: '单点异常'
// })
// return false;
// }
// getDictionary()
// // getDeptOptions()
// getDataList('refresh');
});
function getDictionary(){
$api.myRequest('/system/public/dict/data/type/assist_task_type').then((resData) => {