feat:增加项目审核及撤回审核弹窗

This commit is contained in:
lixg
2022-11-23 15:41:55 +08:00
parent 44e1dfaac8
commit 059f1b3a54
2 changed files with 101 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com * @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-21 14:32:52 * @Date: 2022-11-21 14:32:52
* @LastEditors: lixg lixg@dongwu-inc.com * @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2022-11-22 20:17:22 * @LastEditTime: 2022-11-23 09:59:26
* @FilePath: /fe-manage/src/api/config.js * @FilePath: /fe-manage/src/api/config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
@@ -26,7 +26,7 @@ http.interceptors.request.use(
const token = localStorage.getItem("token"); const token = localStorage.getItem("token");
if (token) { if (token) {
// config.headers.token = token; // config.headers.token = token;
config.headers.token = 123456; //测试1111 config.headers.token = token; //测试1111
} else { } else {
console.log("当前请求页面无token,请执行操作!!!"); console.log("当前请求页面无token,请执行操作!!!");

View File

@@ -1055,6 +1055,68 @@
</div> </div>
</div> </div>
</a-modal> </a-modal>
<!-- 项目提交审核弹窗 -->
<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="reviewProject">
<div class="btnText">确定</div>
</div>
</div>
</div>
</div>
</a-modal>
<!-- 项目撤回审核弹窗 -->
<a-modal
v-model:visible="recallReviewModal"
: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="closeRecallReviewModal"></div>
</div>
<div class="body">
<span>您确定要撤回审核吗</span>
<div class="back"></div>
</div>
<div class="del_btnbox">
<div class="del_btn btn1" @click="closeRecallReviewModal">
<div class="btnText">取消</div>
</div>
<div class="del_btn btn2" @click="recallReviewProject">
<div class="btnText">确定</div>
</div>
</div>
</div>
</div>
</a-modal>
<!-- 归属权抽屉 --> <!-- 归属权抽屉 -->
<proj-owner-ship v-model:ProjOwnervisible="ProjOwnervisible" /> <proj-owner-ship v-model:ProjOwnervisible="ProjOwnervisible" />
@@ -1102,6 +1164,9 @@ export default {
backModal: false, //撤回弹窗 backModal: false, //撤回弹窗
closeBack: false, //撤回弹窗关闭图标 closeBack: false, //撤回弹窗关闭图标
reminderModal: false, //温馨提示弹窗 reminderModal: false, //温馨提示弹窗
reviewModal: false, //提交审核
recallReviewModal: false, //撤回审核
ProjOwnervisible: false, ProjOwnervisible: false,
ProjPvisible: false, ProjPvisible: false,
ProjCheckvisible: false, ProjCheckvisible: false,
@@ -2000,6 +2065,28 @@ export default {
}); });
}; };
//打开提交审核弹窗
const showReviewModal = () => {
state.reviewModal = true;
};
//确认提交审核
const reviewProject = () => {};
//关闭提交审核弹窗
const closeReviewModal = () => {
state.reviewModal = false;
};
//打开撤回审核弹窗
const showRecallReviewModal = () => {
state.recallReviewModal = true;
};
//确认提交审核
const recallReviewProject = () => {};
//关闭提交审核弹窗
const closeRecallReviewModal = () => {
state.recallReviewModal = false;
};
// 数据接入 - end - // 数据接入 - end -
onMounted(() => { onMounted(() => {
@@ -2853,7 +2940,9 @@ export default {
</div> </div>
{value.record.status === 0 || value.record.status === -2 ? ( {value.record.status === 0 || value.record.status === -2 ? (
<span <span
onClick={() => {}} onClick={() => {
showReviewModal();
}}
style="cursor:pointer" style="cursor:pointer"
class="operation3" class="operation3"
> >
@@ -2861,7 +2950,9 @@ export default {
</span> </span>
) : value.record.status === 1 ? ( ) : value.record.status === 1 ? (
<span <span
onClick={() => {}} onClick={() => {
showRecallReviewModal();
}}
style="cursor:pointer" style="cursor:pointer"
class="operation3" class="operation3"
> >
@@ -3205,6 +3296,12 @@ export default {
showProjCheck, showProjCheck,
showProjManage, showProjManage,
closeProjectPub, closeProjectPub,
showReviewModal,
reviewProject,
closeReviewModal,
showRecallReviewModal,
recallReviewProject,
closeRecallReviewModal,
tableData, tableData,
columns, columns,