mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
fix:修改案例无法显示问题
This commit is contained in:
@@ -1087,11 +1087,11 @@
|
||||
><span style="color: #333333">BOEU实施</span></a-radio
|
||||
>
|
||||
</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>
|
||||
<span style="color: #333333">{{ passInfo }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1106,7 +1106,10 @@
|
||||
<div class="box"></div>
|
||||
<div class="onetitle">上传共享文档</div>
|
||||
<div class="oneedi">
|
||||
<a-switch v-model:checked="docChecked" @change="checkedClose"></a-switch>
|
||||
<a-switch
|
||||
v-model:checked="docChecked"
|
||||
@change="checkedClose"
|
||||
></a-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnbox" style="margin: 20px">
|
||||
@@ -2435,9 +2438,8 @@ export default {
|
||||
authClassify: 3,
|
||||
addAuthList: [],
|
||||
switchopen: true,
|
||||
isPass:false, // 是否审核未通过
|
||||
passInfo:null, // 审核未通过原因说明
|
||||
|
||||
isPass: false, // 是否审核未通过
|
||||
passInfo: null, // 审核未通过原因说明
|
||||
});
|
||||
|
||||
const levelList = reactive({
|
||||
@@ -2511,10 +2513,10 @@ export default {
|
||||
let leng = res.data.data.stageList.length;
|
||||
if (leng > 0) {
|
||||
let taskarr = res.data.data.stageList;
|
||||
console.log('11-22-33',taskarr)
|
||||
if(taskarr.length==1){
|
||||
if(taskarr[0].stageId == '0'){
|
||||
taskarr[0].name = '无阶段任务'
|
||||
console.log("11-22-33", taskarr);
|
||||
if (taskarr.length == 1) {
|
||||
if (taskarr[0].stageId == "0") {
|
||||
taskarr[0].name = "无阶段任务";
|
||||
}
|
||||
}
|
||||
state.taskSyllabus = taskarr;
|
||||
@@ -3370,13 +3372,13 @@ export default {
|
||||
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
|
||||
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
|
||||
}
|
||||
@@ -3411,9 +3413,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.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;
|
||||
@@ -3483,11 +3485,13 @@ export default {
|
||||
// projectGroupId: 0,
|
||||
projectId: state.projectId,
|
||||
};
|
||||
console.log("小组创建obj", obj);
|
||||
editGroup(obj)
|
||||
.then((res) => {
|
||||
console.log("小组创建成功", res);
|
||||
message.success("小组创建成功");
|
||||
getGroup();
|
||||
getStu();
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("小组创建失败", err);
|
||||
@@ -3569,40 +3573,39 @@ export default {
|
||||
};
|
||||
//end---------项目概览
|
||||
|
||||
|
||||
// 设置上传图片开关
|
||||
const checkedClose = (data, a) => {
|
||||
// 设置上传图片开关
|
||||
const checkedClose = (data, a) => {
|
||||
console.log(data, a);
|
||||
state.docChecked = data;
|
||||
state.switchopen = 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,
|
||||
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);
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("上传成功", res);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("上传失败了", err);
|
||||
});
|
||||
.catch((err) => {
|
||||
console.log("上传失败了", err);
|
||||
});
|
||||
};
|
||||
|
||||
const handleChange = ({ file, fileList }) => {
|
||||
@@ -3615,7 +3618,7 @@ export default {
|
||||
let str = JSON.stringify(list);
|
||||
console.log("str", str);
|
||||
//要编辑项目
|
||||
console.log('编辑的项目信息',{
|
||||
console.log("编辑的项目信息", {
|
||||
attach: str,
|
||||
// beginTime: state.tstartTime.slice(0, 10),
|
||||
boeFlag: state.boeFlag,
|
||||
@@ -3637,9 +3640,9 @@ export default {
|
||||
systemId: state.tsystemId,
|
||||
templateId: state.templateId || 0,
|
||||
type: state.type,
|
||||
})
|
||||
});
|
||||
editProj({
|
||||
attachSwitch:state.switchopen?1:-1,
|
||||
attachSwitch: state.switchopen ? 1 : -1,
|
||||
attach: str,
|
||||
boeFlag: state.boeFlag,
|
||||
category: state.category,
|
||||
@@ -4028,7 +4031,7 @@ export default {
|
||||
deFile,
|
||||
toDate,
|
||||
routered,
|
||||
checkedClose
|
||||
checkedClose,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user