diff --git a/src/api/project/demand.ts b/src/api/project/demand.ts index 94ac8f7b..966b406b 100644 --- a/src/api/project/demand.ts +++ b/src/api/project/demand.ts @@ -14,6 +14,11 @@ const PREFIX = env.VITE_API_PREFIX_PROJECT; export const addDemandApi = (params: any) => { return post(`${PREFIX}demand/addDemand`, params); }; + +// 新增需求(不鉴权) +export const addDemandNoPermissionApi = (params: any) => { + return post(`${PREFIX}demand/addDemandNoPermission`, params); +}; /** * * @param type 0 新增待办 1是我确认的 diff --git a/src/views/task/simulationTask/newDemand/index.vue b/src/views/task/simulationTask/newDemand/index.vue index eb594b09..3b48547e 100644 --- a/src/views/task/simulationTask/newDemand/index.vue +++ b/src/views/task/simulationTask/newDemand/index.vue @@ -101,7 +101,12 @@ import { nextTick, reactive, ref } from 'vue'; import Dialog from '@/components/common/dialog/index.vue'; import TableForm from '@/components/common/table/tableForm.vue'; -import { addDemandApi, deleteDemandApi, demandListApi, editDemandApi } from '@/api/project/demand'; +import { + addDemandNoPermissionApi, + deleteDemandApi, + demandListApi, + editDemandApi, +} from '@/api/project/demand'; import { getChildrenNodeList } from '../../projectDetail/components/projectApi'; import { NODE_TYPE } from '@/utils/enum/node'; // import { upload } from '@/api/request'; @@ -386,7 +391,7 @@ const createDemandApiFun = async (fromData: any) => { }; // console.log('params', params, editFormInfo.value); // return; - const res: any = await addDemandApi(params); + const res: any = await addDemandNoPermissionApi(params); if (res.code === 200) { formVisible.value = false; ElMessage.success('创建成功');