|
@@ -3,7 +3,7 @@ import { AppDispatch } from "..";
|
|
import { A2Tab1Type, A2Tab1_1 } from "@/types/api/A2Dict";
|
|
import { A2Tab1Type, A2Tab1_1 } from "@/types/api/A2Dict";
|
|
import { A5TableType } from "@/types";
|
|
import { A5TableType } from "@/types";
|
|
/**
|
|
/**
|
|
- * 获取项目属性 职能,状态,签订主体,业务部门
|
|
|
|
|
|
+ * 获取项目属性:职能,状态,签订主体,业务部门,业务类型,项目范围,客户端
|
|
*/
|
|
*/
|
|
export const A2_APIgetList1 = () => {
|
|
export const A2_APIgetList1 = () => {
|
|
return async (dispatch: AppDispatch) => {
|
|
return async (dispatch: AppDispatch) => {
|
|
@@ -16,12 +16,18 @@ export const A2_APIgetList1 = () => {
|
|
const arr2: A2Tab1_1[] = [];
|
|
const arr2: A2Tab1_1[] = [];
|
|
const arrMain: A2Tab1_1[] = []; // 签订主体
|
|
const arrMain: A2Tab1_1[] = []; // 签订主体
|
|
const arrDept: A2Tab1_1[] = []; // 业务部门
|
|
const arrDept: A2Tab1_1[] = []; // 业务部门
|
|
|
|
+ const arrProjectBusiness: A2Tab1_1[] = []; // 业务类型
|
|
|
|
+ const arrProjectScope: A2Tab1_1[] = []; // 项目范围
|
|
|
|
+ const arrProjectApp: A2Tab1_1[] = []; // 客户端
|
|
|
|
|
|
arrTemp.forEach((v) => {
|
|
arrTemp.forEach((v) => {
|
|
if (v.type === "job") arr1.push(v);
|
|
if (v.type === "job") arr1.push(v);
|
|
else if (v.type === "status") arr2.push(v);
|
|
else if (v.type === "status") arr2.push(v);
|
|
else if (v.type === "main") arrMain.push(v);
|
|
else if (v.type === "main") arrMain.push(v);
|
|
else if (v.type === "dept") arrDept.push(v);
|
|
else if (v.type === "dept") arrDept.push(v);
|
|
|
|
+ else if (v.type === "projectBusiness") arrProjectBusiness.push(v);
|
|
|
|
+ else if (v.type === "projectScope") arrProjectScope.push(v);
|
|
|
|
+ else if (v.type === "projectApp") arrProjectApp.push(v);
|
|
});
|
|
});
|
|
|
|
|
|
const obj: A2Tab1Type = {
|
|
const obj: A2Tab1Type = {
|
|
@@ -29,6 +35,9 @@ export const A2_APIgetList1 = () => {
|
|
status: arr2,
|
|
status: arr2,
|
|
main: arrMain,
|
|
main: arrMain,
|
|
dept: arrDept,
|
|
dept: arrDept,
|
|
|
|
+ projectBusiness: arrProjectBusiness,
|
|
|
|
+ projectScope: arrProjectScope,
|
|
|
|
+ projectApp: arrProjectApp,
|
|
};
|
|
};
|
|
dispatch({ type: "A2/getInfo1_1", payload: obj });
|
|
dispatch({ type: "A2/getInfo1_1", payload: obj });
|
|
}
|
|
}
|