mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56: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 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 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>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="detaile" @click="subMit">
|
||||||
|
<button class="debtn">提交</button>
|
||||||
|
</div>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="2" tab="修改记录"> </a-tab-pane>
|
<a-tab-pane key="2" tab="修改记录"> </a-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
@@ -130,6 +133,8 @@
|
|||||||
import { toRefs, reactive } from "vue";
|
import { toRefs, reactive } from "vue";
|
||||||
import { getTask } from "../../api/indexTaskadd";
|
import { getTask } from "../../api/indexTaskadd";
|
||||||
import { toDate } from "../../api/method";
|
import { toDate } from "../../api/method";
|
||||||
|
import { auditView } from "../../api/indexAudit";
|
||||||
|
import { message } from "ant-design-vue";
|
||||||
export default {
|
export default {
|
||||||
name: "ProjectAudit",
|
name: "ProjectAudit",
|
||||||
components: {},
|
components: {},
|
||||||
@@ -138,10 +143,18 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
projectId: {
|
chooseProject: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
|
chooseCreateId: {
|
||||||
|
type: Number,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
|
chooseCreater: {
|
||||||
|
type: String,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
@@ -256,6 +269,25 @@ export default {
|
|||||||
const changeDe = () => {
|
const changeDe = () => {
|
||||||
state.showDetail = !state.showDetail;
|
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 {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
@@ -263,6 +295,7 @@ export default {
|
|||||||
afterVisibleChange,
|
afterVisibleChange,
|
||||||
getTaskInfo,
|
getTaskInfo,
|
||||||
changeDe,
|
changeDe,
|
||||||
|
subMit,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -113,6 +113,7 @@
|
|||||||
:closable="closeBack"
|
:closable="closeBack"
|
||||||
wrapClassName="projAuditModal"
|
wrapClassName="projAuditModal"
|
||||||
centered="true"
|
centered="true"
|
||||||
|
@after-visible-change="changeAu"
|
||||||
>
|
>
|
||||||
<div class="delete">
|
<div class="delete">
|
||||||
<div class="del_header"></div>
|
<div class="del_header"></div>
|
||||||
@@ -148,7 +149,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { reactive, toRefs, onMounted } from "vue";
|
import { reactive, toRefs, onMounted } from "vue";
|
||||||
import { listView } from "../../api/indexAudit";
|
import { listView, auditList } from "../../api/indexAudit";
|
||||||
import { toDate } from "@/api/method";
|
import { toDate } from "@/api/method";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
|
||||||
@@ -234,12 +235,12 @@ export default {
|
|||||||
dataIndex: "opt",
|
dataIndex: "opt",
|
||||||
key: "opt",
|
key: "opt",
|
||||||
align: "center",
|
align: "center",
|
||||||
customRender: () => {
|
customRender: (value) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<span
|
<span
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
showProjAuditModal();
|
showProjAuditModal(value.record.id);
|
||||||
}}
|
}}
|
||||||
style="cursor:pointer"
|
style="cursor:pointer"
|
||||||
>
|
>
|
||||||
@@ -334,6 +335,7 @@ export default {
|
|||||||
creater: item.createName,
|
creater: item.createName,
|
||||||
time: toDate(item.beginTime, "Y-M-D h-m"),
|
time: toDate(item.beginTime, "Y-M-D h-m"),
|
||||||
msg: item.description,
|
msg: item.description,
|
||||||
|
id: item.projectId,
|
||||||
};
|
};
|
||||||
array.push(obj);
|
array.push(obj);
|
||||||
});
|
});
|
||||||
@@ -411,9 +413,46 @@ export default {
|
|||||||
const closeProjAuditModal = () => {
|
const closeProjAuditModal = () => {
|
||||||
state.projAuditModal = false;
|
state.projAuditModal = false;
|
||||||
};
|
};
|
||||||
const showProjAuditModal = () => {
|
const showProjAuditModal = (id) => {
|
||||||
state.projAuditModal = true;
|
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(() => {
|
onMounted(() => {
|
||||||
getProjList();
|
getProjList();
|
||||||
});
|
});
|
||||||
@@ -429,6 +468,7 @@ export default {
|
|||||||
reset,
|
reset,
|
||||||
closeProjAuditModal,
|
closeProjAuditModal,
|
||||||
showProjAuditModal,
|
showProjAuditModal,
|
||||||
|
setAudit,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -101,7 +101,9 @@
|
|||||||
<!-- 审核项目页面 -->
|
<!-- 审核项目页面 -->
|
||||||
<project-audit
|
<project-audit
|
||||||
v-model:ProjAuditvisible="ProjAuditvisible"
|
v-model:ProjAuditvisible="ProjAuditvisible"
|
||||||
v-model:projectId="projectId"
|
v-model:chooseProject="chooseProject"
|
||||||
|
v-model:chooseCreateId="chooseCreateId"
|
||||||
|
v-model:chooseCreater="chooseCreater"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -134,6 +136,9 @@ export default {
|
|||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
total: null,
|
total: null,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
chooseProject: null, //要审核的项目
|
||||||
|
chooseCreateId: null,
|
||||||
|
chooseCreater: null,
|
||||||
columns1: [
|
columns1: [
|
||||||
{
|
{
|
||||||
title: "序号",
|
title: "序号",
|
||||||
@@ -185,13 +190,17 @@ export default {
|
|||||||
dataIndex: "opt",
|
dataIndex: "opt",
|
||||||
key: "opt",
|
key: "opt",
|
||||||
align: "center",
|
align: "center",
|
||||||
customRender: () => {
|
customRender: (value) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<span
|
<span
|
||||||
style="cursor:pointer"
|
style="cursor:pointer"
|
||||||
onClick={() => {
|
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.ProjAuditvisible = true;
|
||||||
|
state.chooseProject = id;
|
||||||
|
state.chooseCreateId = createId;
|
||||||
|
state.chooseCreater = creater;
|
||||||
};
|
};
|
||||||
const getProjList = (obj) => {
|
const getProjList = (obj) => {
|
||||||
let objn = obj || {
|
let objn = obj || {
|
||||||
@@ -252,6 +264,8 @@ export default {
|
|||||||
status: "待审核",
|
status: "待审核",
|
||||||
creater: item.createName,
|
creater: item.createName,
|
||||||
time: toDate(item.createTime, "Y-M-D h-m"),
|
time: toDate(item.createTime, "Y-M-D h-m"),
|
||||||
|
projectId: item.projectId,
|
||||||
|
createId: item.createId,
|
||||||
};
|
};
|
||||||
array.push(obj);
|
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 {
|
.onemain {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-left: 55px;
|
margin-left: 55px;
|
||||||
|
|||||||
Reference in New Issue
Block a user