mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 22:06:45 +08:00
feat:审核项目 项目审核日志 面授 上传
This commit is contained in:
@@ -11,3 +11,9 @@ export const listView = (obj) => http.post('/admin/project/listView', obj)
|
||||
|
||||
//获取面授课已审核列表
|
||||
export const courseListView = (obj) => http.post('/admin/offcourse/listReview', obj)
|
||||
|
||||
//项目审核日志
|
||||
export const auditList = (obj) => http.post('/admin/project/auditList', obj)
|
||||
|
||||
//项目审核
|
||||
export const auditView = (obj) => http.post('/admin/project/auditView', obj)
|
||||
@@ -2,3 +2,6 @@ import http from "./config";
|
||||
|
||||
// 获取路径图概览
|
||||
export const getRouterOverview = (routerId) => http.get(`/admin/router/overview?routerId=${routerId}`)
|
||||
|
||||
//新建或编辑路径图
|
||||
export const editRoutered = (obj) => http.post('/admin/router/edit', obj)
|
||||
@@ -118,6 +118,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="detaile" @click="subMit">
|
||||
<button class="debtn">提交</button>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="修改记录"> </a-tab-pane>
|
||||
</a-tabs>
|
||||
@@ -130,6 +133,8 @@
|
||||
import { toRefs, reactive } from "vue";
|
||||
import { getTask } from "../../api/indexTaskadd";
|
||||
import { toDate } from "../../api/method";
|
||||
import { auditView } from "../../api/indexAudit";
|
||||
import { message } from "ant-design-vue";
|
||||
export default {
|
||||
name: "ProjectAudit",
|
||||
components: {},
|
||||
@@ -138,10 +143,18 @@ export default {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
projectId: {
|
||||
chooseProject: {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
chooseCreateId: {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
chooseCreater: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
|
||||
setup(props, ctx) {
|
||||
@@ -256,6 +269,25 @@ export default {
|
||||
const changeDe = () => {
|
||||
state.showDetail = !state.showDetail;
|
||||
};
|
||||
const subMit = () => {
|
||||
auditView({
|
||||
createId: props.chooseCreateId,
|
||||
createName: props.chooseCreater,
|
||||
description: state.valueSuggest,
|
||||
pass: state.valuePass == "1" ? 1 : -1,
|
||||
projectId: props.chooseProject,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("提交成功", res);
|
||||
message.destroy();
|
||||
message.success("提交成功");
|
||||
closeDrawer();
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
message.warning("提交失败");
|
||||
});
|
||||
};
|
||||
|
||||
return {
|
||||
...toRefs(state),
|
||||
@@ -263,6 +295,7 @@ export default {
|
||||
afterVisibleChange,
|
||||
getTaskInfo,
|
||||
changeDe,
|
||||
subMit,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
@@ -113,6 +113,7 @@
|
||||
:closable="closeBack"
|
||||
wrapClassName="projAuditModal"
|
||||
centered="true"
|
||||
@after-visible-change="changeAu"
|
||||
>
|
||||
<div class="delete">
|
||||
<div class="del_header"></div>
|
||||
@@ -148,7 +149,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs, onMounted } from "vue";
|
||||
import { listView } from "../../api/indexAudit";
|
||||
import { listView, auditList } from "../../api/indexAudit";
|
||||
import { toDate } from "@/api/method";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
@@ -234,12 +235,12 @@ export default {
|
||||
dataIndex: "opt",
|
||||
key: "opt",
|
||||
align: "center",
|
||||
customRender: () => {
|
||||
customRender: (value) => {
|
||||
return (
|
||||
<div>
|
||||
<span
|
||||
onClick={() => {
|
||||
showProjAuditModal();
|
||||
showProjAuditModal(value.record.id);
|
||||
}}
|
||||
style="cursor:pointer"
|
||||
>
|
||||
@@ -334,6 +335,7 @@ export default {
|
||||
creater: item.createName,
|
||||
time: toDate(item.beginTime, "Y-M-D h-m"),
|
||||
msg: item.description,
|
||||
id: item.projectId,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
@@ -411,9 +413,46 @@ export default {
|
||||
const closeProjAuditModal = () => {
|
||||
state.projAuditModal = false;
|
||||
};
|
||||
const showProjAuditModal = () => {
|
||||
const showProjAuditModal = (id) => {
|
||||
state.projAuditModal = true;
|
||||
auditList({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
project_id: id,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("获取到了审核日志列表", res);
|
||||
let result = res.data.data;
|
||||
if (result.total > 0) {
|
||||
setAudit(result.rows);
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("审核日志列表获取失败", err);
|
||||
});
|
||||
};
|
||||
const setAudit = (table) => {
|
||||
let data = table;
|
||||
let array = [];
|
||||
data.map((item) => {
|
||||
let obj = {
|
||||
name: item.create_name,
|
||||
belong:
|
||||
item.status == 1
|
||||
? "提交待审核"
|
||||
: item.status == 2
|
||||
? "通过"
|
||||
: item.status == 3
|
||||
? "拒绝"
|
||||
: "-",
|
||||
time: item.createTime,
|
||||
description: item.description,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
state.tableDataAudit = array;
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
getProjList();
|
||||
});
|
||||
@@ -429,6 +468,7 @@ export default {
|
||||
reset,
|
||||
closeProjAuditModal,
|
||||
showProjAuditModal,
|
||||
setAudit,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
@@ -101,7 +101,9 @@
|
||||
<!-- 审核项目页面 -->
|
||||
<project-audit
|
||||
v-model:ProjAuditvisible="ProjAuditvisible"
|
||||
v-model:projectId="projectId"
|
||||
v-model:chooseProject="chooseProject"
|
||||
v-model:chooseCreateId="chooseCreateId"
|
||||
v-model:chooseCreater="chooseCreater"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -134,6 +136,9 @@ export default {
|
||||
currentPage: 1,
|
||||
total: null,
|
||||
pageSize: 10,
|
||||
chooseProject: null, //要审核的项目
|
||||
chooseCreateId: null,
|
||||
chooseCreater: null,
|
||||
columns1: [
|
||||
{
|
||||
title: "序号",
|
||||
@@ -185,13 +190,17 @@ export default {
|
||||
dataIndex: "opt",
|
||||
key: "opt",
|
||||
align: "center",
|
||||
customRender: () => {
|
||||
customRender: (value) => {
|
||||
return (
|
||||
<div>
|
||||
<span
|
||||
style="cursor:pointer"
|
||||
onClick={() => {
|
||||
showProjAudit();
|
||||
showProjAudit(
|
||||
value.record.projectId,
|
||||
value.record.createId,
|
||||
value.record.creater
|
||||
);
|
||||
}}
|
||||
>
|
||||
审核
|
||||
@@ -213,8 +222,11 @@ export default {
|
||||
},
|
||||
],
|
||||
});
|
||||
const showProjAudit = () => {
|
||||
const showProjAudit = (id, createId, creater) => {
|
||||
state.ProjAuditvisible = true;
|
||||
state.chooseProject = id;
|
||||
state.chooseCreateId = createId;
|
||||
state.chooseCreater = creater;
|
||||
};
|
||||
const getProjList = (obj) => {
|
||||
let objn = obj || {
|
||||
@@ -252,6 +264,8 @@ export default {
|
||||
status: "待审核",
|
||||
creater: item.createName,
|
||||
time: toDate(item.createTime, "Y-M-D h-m"),
|
||||
projectId: item.projectId,
|
||||
createId: item.createId,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6115,6 +6115,11 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.btnbox{
|
||||
.ant-upload-list{
|
||||
display:none !important;
|
||||
}
|
||||
}
|
||||
.onemain {
|
||||
margin-top: 20px;
|
||||
margin-left: 55px;
|
||||
|
||||
Reference in New Issue
Block a user