update:审批跳转
This commit is contained in:
@@ -244,11 +244,10 @@ export const taskAdjust = async (item: any, readType: number = MessageRead.READ)
|
||||
});
|
||||
}
|
||||
} else if (item.msgCategory === MessageCategory.SPDM) { // SPDM CODE
|
||||
localStorage.setItem('SPDM_MSG_TASK_TYPE', 'flow');
|
||||
localStorage.setItem('SPDM_MSG_TASK_ID', params.taskId);
|
||||
router.push({
|
||||
path: TaskLink.Pending,
|
||||
query: {
|
||||
taskType: 'flow'
|
||||
},
|
||||
});
|
||||
} else {
|
||||
router.push({
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
export const SPDM_URL = 'http://192.168.65.161:3000'; // SPDM项目地址
|
||||
export const BASE_URL = '/spdmApi/honeycom-spdm'; // baseUrl
|
||||
|
||||
// // 利元亨内网环境
|
||||
// export const SPDM_URL = 'http://192.168.30.147:7115'; // SPDM项目地址
|
||||
// export const BASE_URL = '/spdmApi/honeycom-spdm'; // baseUrl
|
||||
|
||||
// // 本地环境
|
||||
// export const SPDM_URL = 'http://192.168.65.64:3001'; // SPDM项目地址
|
||||
// export const BASE_URL = '/spdmApi/honeycom-spdm'; // baseUrl
|
||||
@@ -51,8 +51,8 @@ import { queryProjectMineTask } from '/@/api/flow/task';
|
||||
import dayjs from '/@/utils/dayjs';
|
||||
import { dateStr } from '/@/utils/formatTime';
|
||||
|
||||
const route = useRoute(); // SPDM CODE
|
||||
const taskType = ref(route.query.taskType || 'project');
|
||||
// SPDM CODE
|
||||
const taskType = ref(localStorage.getItem('SPDM_MSG_TASK_TYPE') || 'project');
|
||||
|
||||
enum EnumTaskStatus {
|
||||
all = 1,
|
||||
|
||||
@@ -197,6 +197,12 @@ const refuseTask = () => {
|
||||
};
|
||||
onMounted(() => {
|
||||
getDataList();
|
||||
// SPDM CODE
|
||||
if (localStorage.getItem('SPDM_MSG_TASK_ID')) {
|
||||
// deal({ taskId: localStorage.getItem('SPDM_MSG_TASK_ID') }); // TODO
|
||||
localStorage.removeItem('SPDM_MSG_TASK_TYPE');
|
||||
localStorage.removeItem('SPDM_MSG_TASK_ID');
|
||||
}
|
||||
});
|
||||
|
||||
const formValue = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user