mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 16:26:45 +08:00
fix:增加项目创建任务界面提交审核按钮
This commit is contained in:
@@ -32,11 +32,51 @@
|
|||||||
<div
|
<div
|
||||||
class="pub"
|
class="pub"
|
||||||
style="width: 28px"
|
style="width: 28px"
|
||||||
v-if="action == 0"
|
v-if="(action == 2)"
|
||||||
@click="showProjectPub"
|
@click="showProjectPub"
|
||||||
>
|
>
|
||||||
{{ act }}
|
{{ act }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="pub"
|
||||||
|
style="width: 56px"
|
||||||
|
v-if="action == 0"
|
||||||
|
@click="submitExamine"
|
||||||
|
>
|
||||||
|
{{ act }}
|
||||||
|
</div>
|
||||||
|
<!-- 项目提交审核弹窗 -->
|
||||||
|
<a-modal
|
||||||
|
v-model:visible="reviewModal"
|
||||||
|
:footer="null"
|
||||||
|
:closable="false"
|
||||||
|
wrapClassName="CopyModal"
|
||||||
|
centered="true"
|
||||||
|
>
|
||||||
|
<div class="delete">
|
||||||
|
<div class="del_header"></div>
|
||||||
|
<div class="del_main">
|
||||||
|
<div class="header">
|
||||||
|
<div class="icon"></div>
|
||||||
|
<span>提示</span>
|
||||||
|
<div class="close_exit" @click="closeReviewModal"></div>
|
||||||
|
</div>
|
||||||
|
<div class="body">
|
||||||
|
<span>您确定要提交审核吗</span>
|
||||||
|
<div class="back"></div>
|
||||||
|
</div>
|
||||||
|
<div class="del_btnbox">
|
||||||
|
<div class="del_btn btn1" @click="closeReviewModal">
|
||||||
|
<div class="btnText">取消</div>
|
||||||
|
</div>
|
||||||
|
<div class="del_btn btn2" @click="recallReviewProject">
|
||||||
|
<div class="btnText">确定</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a-modal>
|
||||||
<!-- 已结束的显示 -->
|
<!-- 已结束的显示 -->
|
||||||
<!-- <div class="pub" style="width: 28px" v-if="action == -1">
|
<!-- <div class="pub" style="width: 28px" v-if="action == -1">
|
||||||
{{ act }}
|
{{ act }}
|
||||||
@@ -1768,6 +1808,7 @@ import NoticeHis from "../../components/drawers/NoticeHis";
|
|||||||
import TaskImpStu from "../../components/drawers/TaskFaceIn";
|
import TaskImpStu from "../../components/drawers/TaskFaceIn";
|
||||||
import { storage } from "../../api/storage";
|
import { storage } from "../../api/storage";
|
||||||
import * as api from "../../api/index1";
|
import * as api from "../../api/index1";
|
||||||
|
import * as apis from "../../api/index";
|
||||||
import * as apiproj from "../../api/index";
|
import * as apiproj from "../../api/index";
|
||||||
import {
|
import {
|
||||||
getProjStu,
|
getProjStu,
|
||||||
@@ -2437,7 +2478,7 @@ export default {
|
|||||||
switchopen: true,
|
switchopen: true,
|
||||||
isPass:false, // 是否审核未通过
|
isPass:false, // 是否审核未通过
|
||||||
passInfo:null, // 审核未通过原因说明
|
passInfo:null, // 审核未通过原因说明
|
||||||
|
reviewModal:false
|
||||||
});
|
});
|
||||||
|
|
||||||
const levelList = reactive({
|
const levelList = reactive({
|
||||||
@@ -2809,6 +2850,35 @@ export default {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 提交审核
|
||||||
|
const submitExamine = () => {
|
||||||
|
state.reviewModal = true
|
||||||
|
}
|
||||||
|
|
||||||
|
const recallReviewProject = () => {
|
||||||
|
let obj = {
|
||||||
|
projectId: state.projectId,
|
||||||
|
type: 3,
|
||||||
|
};
|
||||||
|
console.log("提交审核obj", obj);
|
||||||
|
apis
|
||||||
|
.handleProject(obj)
|
||||||
|
.then((res) => {
|
||||||
|
console.log("提交成功", res);
|
||||||
|
message.destroy();
|
||||||
|
message.success("提交成功");
|
||||||
|
state.reviewModal = false;
|
||||||
|
getTaskInfo();
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log("提交失败", err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
//关闭提交审核弹窗
|
||||||
|
const closeReviewModal = () => {
|
||||||
|
state.reviewModal = false;
|
||||||
|
};
|
||||||
//学员管理列表操作
|
//学员管理列表操作
|
||||||
// const studentData = () => {
|
// const studentData = () => {
|
||||||
// let arr = state.tabledata;
|
// let arr = state.tabledata;
|
||||||
@@ -3715,8 +3785,10 @@ export default {
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
state.action = res.data.data.projectInfo.status;
|
state.action = res.data.data.projectInfo.status;
|
||||||
state.act =
|
state.act =
|
||||||
state.action == 0
|
state.action == 2
|
||||||
? "发布"
|
? "发布"
|
||||||
|
: state.action == 0
|
||||||
|
? "提交审核"
|
||||||
: state.action == 1
|
: state.action == 1
|
||||||
? "撤回"
|
? "撤回"
|
||||||
: state.action == -1
|
: state.action == -1
|
||||||
@@ -4028,7 +4100,10 @@ export default {
|
|||||||
deFile,
|
deFile,
|
||||||
toDate,
|
toDate,
|
||||||
routered,
|
routered,
|
||||||
checkedClose
|
checkedClose,
|
||||||
|
submitExamine,
|
||||||
|
closeReviewModal,
|
||||||
|
recallReviewProject
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user