帮扶token修改
This commit is contained in:
@@ -229,8 +229,7 @@ onMounted(async () => {
|
||||
// await loadLevelData('201');
|
||||
});
|
||||
onLoad(async () => {
|
||||
let token=uni.getStorageSync('Padmin-Token')
|
||||
console.log("token",token)
|
||||
let token=uni.getStorageSync('fourLevelLinkage-token')
|
||||
if(token){
|
||||
await loadLevelData('201');
|
||||
getDictionary()
|
||||
@@ -238,19 +237,6 @@ onLoad(async () => {
|
||||
}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) => {
|
||||
@@ -275,7 +261,7 @@ function getTaskTypeLabelByValue(value) {
|
||||
// 加载某一级的数据(parentId 为空表示根)
|
||||
async function loadLevelData(parentId) {
|
||||
let header = {
|
||||
'Authorization': uni.getStorageSync('Padmin-Token'),
|
||||
'Authorization': uni.getStorageSync('fourLevelLinkage-token'),
|
||||
'Content-Type': "application/x-www-form-urlencoded"
|
||||
};
|
||||
let params = { parentId };
|
||||
@@ -355,7 +341,7 @@ function findNodeByValue(nodes, value) {
|
||||
}
|
||||
function getDeptOptions(){
|
||||
let header={
|
||||
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||
'Authorization':uni.getStorageSync('fourLevelLinkage-token'),
|
||||
'Content-Type': "application/x-www-form-urlencoded"
|
||||
}
|
||||
let params={
|
||||
@@ -368,7 +354,7 @@ function getDataList(type = 'add') {
|
||||
let maxPage=Math.ceil(totalNum.value/pageSize.value)
|
||||
let params=({...formData})
|
||||
let header={
|
||||
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||
'Authorization':uni.getStorageSync('fourLevelLinkage-token'),
|
||||
'Content-Type': "application/x-www-form-urlencoded"
|
||||
}
|
||||
if (type === 'refresh') {
|
||||
|
||||
@@ -161,7 +161,7 @@ const onDateChange = ( e) => {
|
||||
}
|
||||
function getFollowList(){
|
||||
let header={
|
||||
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||
'Authorization':uni.getStorageSync('fourLevelLinkage-token'),
|
||||
'Content-Type': "application/x-www-form-urlencoded"
|
||||
}
|
||||
let params={
|
||||
@@ -209,7 +209,7 @@ const handleSubmit = () => {
|
||||
formRef.value?.validate()
|
||||
.then(() => {
|
||||
let header={
|
||||
'Authorization':uni.getStorageSync('Padmin-Token')
|
||||
'Authorization':uni.getStorageSync('fourLevelLinkage-token')
|
||||
}
|
||||
formData.goalPersonId=personInfo.value.goalPersonId
|
||||
$api.myRequest('/dispatch/assist/records/addRecords', formData,'post',9100,header).then((resData) => {
|
||||
|
||||
Reference in New Issue
Block a user