feat:审核项目 项目审核日志 面授 上传

This commit is contained in:
宋文超
2022-11-23 18:25:51 +08:00
parent 006097a63e
commit 7b8eb9327f
7 changed files with 663 additions and 247 deletions

View File

@@ -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,
};
},
};