update:创建需求放开权限

This commit is contained in:
2026-02-05 17:37:17 +08:00
parent 196e739f0a
commit 0a0f6db1e3
2 changed files with 12 additions and 2 deletions

View File

@@ -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是我确认的

View File

@@ -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('创建成功');