mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
Merge branch 'develop' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage into develop
This commit is contained in:
@@ -3975,28 +3975,13 @@ export default {
|
||||
const getTaskInfo = () => {
|
||||
getTask({
|
||||
projectId: state.projectId,
|
||||
useTask: "N",
|
||||
}).then((res) => {
|
||||
console.log("get task", res.data.data);
|
||||
if (res.data.code === 200) {
|
||||
// 判断当前审核是否通过
|
||||
if (
|
||||
res.data.data.projectAuditLogDtoList &&
|
||||
res.data.data.projectAuditLogDtoList.length
|
||||
) {
|
||||
console.log("审核信息是什么", res.data.data.projectAuditLogDtoList);
|
||||
let dataset = res.data.data.projectAuditLogDtoList;
|
||||
state.passInfo = dataset[dataset.length - 1].description;
|
||||
|
||||
/**
|
||||
for (let i = 0; i < dataset.length; i++) {
|
||||
if (dataset[i].status == -5) {
|
||||
state.isPass = true;
|
||||
state.passInfo = dataset[i].description;
|
||||
}
|
||||
// isPass passInfo
|
||||
}
|
||||
*/
|
||||
}
|
||||
state.stage = res.data.data.stageList.map((e) => ({
|
||||
id: e.stageId,
|
||||
@@ -4004,9 +3989,7 @@ export default {
|
||||
}));
|
||||
let info = res.data.data.projectInfo;
|
||||
state.permissions = info.permissions;
|
||||
// let start = toDate(info.beginTime / 1000, "Y-M-D h:m");
|
||||
let start = info.beginTime;
|
||||
// let end = toDate(info.endTime / 1000, "Y-M-D h:m");
|
||||
let end = info.endTime;
|
||||
state.tstartTime = info.beginTime;
|
||||
state.tendTime = info.endTime;
|
||||
@@ -4022,9 +4005,9 @@ export default {
|
||||
state.tlevel = info.level;
|
||||
state.systemId = info.systemId;
|
||||
state.tsystemId = info.systemId;
|
||||
state.checkedSty = info.courseSyncFlag == 1 ? true : false;
|
||||
state.checkedSty = info.courseSyncFlag == 1;
|
||||
state.courseSyncFlag = info.courseSyncFlag;
|
||||
state.checkedBOEU = info.boeFlag == 1 ? true : false;
|
||||
state.checkedBOEU = info.boeFlag == 1;
|
||||
state.boeFlag = info.boeFlag;
|
||||
state.picUrl = info.picUrl;
|
||||
state.managerId = info.managerId;
|
||||
@@ -4033,34 +4016,16 @@ export default {
|
||||
state.type = info.type;
|
||||
state.category = info.category;
|
||||
state.noticeFlag = info.noticeFlag;
|
||||
state.switchopen = info.attachSwitch == 1 ? true : false;
|
||||
state.docChecked = info.attachSwitch == 1 ? true : false;
|
||||
state.switchopen = info.attachSwitch == 1;
|
||||
state.docChecked = info.attachSwitch === 1;
|
||||
state.hasTask = !!res.data.data?.stageList.some(
|
||||
({ taskList }) => taskList.length
|
||||
);
|
||||
// state.attach = info.attach;
|
||||
// state.templateId = info.templateId;
|
||||
state.sourceBelong =
|
||||
(info.sourceBelongFullName || "") + info.sourceBelongName;
|
||||
state.sourceBelong = (info.sourceBelongFullName || "") + info.sourceBelongName;
|
||||
// state.fileList=info.attach.split(",")
|
||||
let d = info.attach.indexOf(",");
|
||||
// console.log(info.attach, "xgo", info.attach.length);
|
||||
if (info.attach.length == 0) {
|
||||
return;
|
||||
} else if (info.attach.length !== 0 && d == -1) {
|
||||
return;
|
||||
} else {
|
||||
// console.log(info.attach, "xgo");
|
||||
// let str = JSON.parse(info.attach)
|
||||
// console.log("赚回来",str)
|
||||
// let luj = info.attach.split(",")
|
||||
let luj = info.attach;
|
||||
// console.log("lulj", luj);
|
||||
console.log("赚回来", JSON.parse(luj));
|
||||
state.fileList = JSON.parse(luj);
|
||||
// state.fileList = luj
|
||||
}
|
||||
}
|
||||
state.fileList = info.attach?JSON.parse(info.attach):[];
|
||||
});
|
||||
};
|
||||
//获取小组列表
|
||||
|
||||
Reference in New Issue
Block a user