fix:增加项目共享文档,项目审核意见

This commit is contained in:
wyx
2022-12-05 22:55:39 +08:00
parent 9d91607314
commit 1f9345ec35

View File

@@ -1088,6 +1088,12 @@
> >
</div> </div>
</div> </div>
<div class="set_content" v-if="isPass">
<div class="setc_name"><span>审核意见:</span></div>
<div class="setc_main">
<span style="color: #333333">{{passInfo}}</span>
</div>
</div>
</div> </div>
</div> </div>
</a-tab-pane> </a-tab-pane>
@@ -1100,7 +1106,7 @@
<div class="box"></div> <div class="box"></div>
<div class="onetitle">上传共享文档</div> <div class="onetitle">上传共享文档</div>
<div class="oneedi"> <div class="oneedi">
<a-switch v-model:checked="docChecked"></a-switch> <a-switch v-model:checked="docChecked" @change="checkedClose"></a-switch>
</div> </div>
</div> </div>
<div class="btnbox" style="margin: 20px"> <div class="btnbox" style="margin: 20px">
@@ -2419,6 +2425,10 @@ export default {
authClassify: 3, authClassify: 3,
addAuthList: [], addAuthList: [],
switchopen: true,
isPass:false, // 是否审核未通过
passInfo:null, // 审核未通过原因说明
}); });
const levelList = reactive({ const levelList = reactive({
@@ -3341,6 +3351,19 @@ export default {
}).then((res) => { }).then((res) => {
console.log("get task", res.data.data); console.log("get task", res.data.data);
if (res.data.code === 200) { if (res.data.code === 200) {
// 判断当前审核是否通过
if(res.data.data.projectAuditLogDtoList!==null){
console.log('审核信息是什么',res.data.data.projectAuditLogDtoList)
let dataset = res.data.data.projectAuditLogDtoList
for(let i=0;i<dataset.length;i++){
if(dataset[i].status==-5){
state.isPass = true
state.passInfo = dataset[i].description
}
// isPass passInfo
}
}
let info = res.data.data.projectInfo; let info = res.data.data.projectInfo;
// let start = toDate(info.beginTime / 1000, "Y-M-D h:m"); // let start = toDate(info.beginTime / 1000, "Y-M-D h:m");
let start = info.beginTime; let start = info.beginTime;
@@ -3370,6 +3393,9 @@ export default {
state.type = info.type; state.type = info.type;
state.category = info.category; state.category = info.category;
state.noticeFlag = info.noticeFlag; state.noticeFlag = info.noticeFlag;
state.switchopen = info.attachSwitch==1?true:false
state.docChecked = info.attachSwitch==1?true:false;
// state.attach = info.attach; // state.attach = info.attach;
// state.templateId = info.templateId; // state.templateId = info.templateId;
state.sourceBelong = info.sourceBelongName; state.sourceBelong = info.sourceBelongName;
@@ -3525,6 +3551,41 @@ export default {
}; };
//end---------项目概览 //end---------项目概览
// 设置上传图片开关
const checkedClose = (data, a) => {
console.log(data, a);
state.docChecked = data;
state.switchopen = data
// 更新开关状态
editProj({
attachSwitch:state.switchopen?1:-1,
boeFlag: state.boeFlag,
category: state.category,
courseSyncFlag: state.courseSyncFlag,
level: state.tlevel,
manager: state.manager,
managerId: state.managerId,
name: state.name,
notice: state.notice,
noticeFlag: state.noticeFlag,
parentId: state.parentId,
picUrl: state.picUrl,
projectId: Number(state.projectId),
remark: state.remark,
sourceBelongId: Number(state.tsourceBelong),
status: state.status,
systemId: state.tsystemId,
templateId: state.templateId || 0,
type: state.type,
})
.then((res) => {
console.log("上传成功", res);
})
.catch((err) => {
console.log("上传失败了", err);
});
};
const handleChange = ({file, fileList}) => { const handleChange = ({file, fileList}) => {
let list = []; let list = [];
if (file.status !== "uploading") { if (file.status !== "uploading") {
@@ -3535,13 +3596,13 @@ export default {
let str = JSON.stringify(list); let str = JSON.stringify(list);
console.log("str", str); console.log("str", str);
//要编辑项目 //要编辑项目
editProj({ console.log('编辑的项目信息',{
attach: str, attach: str,
beginTime: state.tstartTime.slice(0, 10), // beginTime: state.tstartTime.slice(0, 10),
boeFlag: state.boeFlag, boeFlag: state.boeFlag,
category: state.category, category: state.category,
courseSyncFlag: state.courseSyncFlag, courseSyncFlag: state.courseSyncFlag,
endTime: state.tendTime.slice(0, 10), // endTime: state.tendTime.slice(0, 10),
level: state.tlevel, level: state.tlevel,
manager: state.manager, manager: state.manager,
managerId: state.managerId, managerId: state.managerId,
@@ -3550,7 +3611,29 @@ export default {
noticeFlag: state.noticeFlag, noticeFlag: state.noticeFlag,
parentId: state.parentId, parentId: state.parentId,
picUrl: state.picUrl, picUrl: state.picUrl,
projectId: state.projectId, projectId: Number(state.projectId),
remark: state.remark,
sourceBelongId: Number(state.tsourceBelong),
status: state.status,
systemId: state.tsystemId,
templateId: state.templateId || 0,
type: state.type,
})
editProj({
attachSwitch:state.switchopen?1:-1,
attach: str,
boeFlag: state.boeFlag,
category: state.category,
courseSyncFlag: state.courseSyncFlag,
level: state.tlevel,
manager: state.manager,
managerId: state.managerId,
name: state.name,
notice: state.notice,
noticeFlag: state.noticeFlag,
parentId: state.parentId,
picUrl: state.picUrl,
projectId: Number(state.projectId),
remark: state.remark, remark: state.remark,
sourceBelongId: Number(state.tsourceBelong), sourceBelongId: Number(state.tsourceBelong),
status: state.status, status: state.status,
@@ -3926,6 +4009,7 @@ export default {
deFile, deFile,
toDate, toDate,
routered, routered,
checkedClose
}; };
}, },
}; };