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