mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
fix:增加项目共享文档,项目审核意见
This commit is contained in:
@@ -1087,6 +1087,12 @@
|
||||
><span style="color: #333333">BOEU实施</span></a-radio
|
||||
>
|
||||
</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>
|
||||
@@ -1100,7 +1106,7 @@
|
||||
<div class="box"></div>
|
||||
<div class="onetitle">上传共享文档</div>
|
||||
<div class="oneedi">
|
||||
<a-switch v-model:checked="docChecked"></a-switch>
|
||||
<a-switch v-model:checked="docChecked" @change="checkedClose"></a-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnbox" style="margin: 20px">
|
||||
@@ -2419,6 +2425,10 @@ export default {
|
||||
|
||||
authClassify: 3,
|
||||
addAuthList: [],
|
||||
switchopen: true,
|
||||
isPass:false, // 是否审核未通过
|
||||
passInfo:null, // 审核未通过原因说明
|
||||
|
||||
});
|
||||
|
||||
const levelList = reactive({
|
||||
@@ -3341,6 +3351,19 @@ export default {
|
||||
}).then((res) => {
|
||||
console.log("get task", res.data.data);
|
||||
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 start = toDate(info.beginTime / 1000, "Y-M-D h:m");
|
||||
let start = info.beginTime;
|
||||
@@ -3370,6 +3393,9 @@ 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.attach = info.attach;
|
||||
// state.templateId = info.templateId;
|
||||
state.sourceBelong = info.sourceBelongName;
|
||||
@@ -3525,6 +3551,41 @@ export default {
|
||||
};
|
||||
//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}) => {
|
||||
let list = [];
|
||||
if (file.status !== "uploading") {
|
||||
@@ -3535,13 +3596,13 @@ export default {
|
||||
let str = JSON.stringify(list);
|
||||
console.log("str", str);
|
||||
//要编辑项目
|
||||
editProj({
|
||||
console.log('编辑的项目信息',{
|
||||
attach: str,
|
||||
beginTime: state.tstartTime.slice(0, 10),
|
||||
// beginTime: state.tstartTime.slice(0, 10),
|
||||
boeFlag: state.boeFlag,
|
||||
category: state.category,
|
||||
courseSyncFlag: state.courseSyncFlag,
|
||||
endTime: state.tendTime.slice(0, 10),
|
||||
// endTime: state.tendTime.slice(0, 10),
|
||||
level: state.tlevel,
|
||||
manager: state.manager,
|
||||
managerId: state.managerId,
|
||||
@@ -3550,7 +3611,29 @@ export default {
|
||||
noticeFlag: state.noticeFlag,
|
||||
parentId: state.parentId,
|
||||
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,
|
||||
sourceBelongId: Number(state.tsourceBelong),
|
||||
status: state.status,
|
||||
@@ -3926,6 +4009,7 @@ export default {
|
||||
deFile,
|
||||
toDate,
|
||||
routered,
|
||||
checkedClose
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user