mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-19 07:46:46 +08:00
feat:增加查看作业
This commit is contained in:
@@ -144,6 +144,8 @@
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
:scroll="{ x: 900 }"
|
||||
:pagination="false"
|
||||
childrenColumnName="childrens"
|
||||
rowKey="id"
|
||||
>
|
||||
<template #expandedRowRender="{ record }">
|
||||
<div class="reworkTitle">
|
||||
@@ -152,18 +154,18 @@
|
||||
<div style="width: 40%; text-align: center">修改后</div>
|
||||
</div>
|
||||
<div
|
||||
v-for="(elem, index) in record.data"
|
||||
v-for="(elem, index) in record.children"
|
||||
:key="index"
|
||||
class="reworkCon"
|
||||
>
|
||||
<div style="width: 20%; text-align: center">
|
||||
{{ elem.content }}
|
||||
{{ elem.columnName }}
|
||||
</div>
|
||||
<div style="width: 40%; text-align: center">
|
||||
{{ elem.before }}
|
||||
{{ elem.beforeValue }}
|
||||
</div>
|
||||
<div style="width: 40%; text-align: center">
|
||||
{{ elem.after }}
|
||||
{{ elem.afterValue }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -218,7 +220,7 @@
|
||||
</div>
|
||||
<div class="btnn">
|
||||
<button class="btn1" @click="closeDrawer">取消</button>
|
||||
<button class="btn2" @click="closeDrawer">确定</button>
|
||||
<button class="btn2" @click="subMit">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
@@ -228,7 +230,7 @@
|
||||
import { toRefs, reactive, onMounted } from "vue";
|
||||
import { getTask } from "../../api/indexTaskadd";
|
||||
import { toDate } from "../../api/method";
|
||||
import { auditView } from "../../api/indexAudit";
|
||||
import { auditView, editRecord } from "../../api/indexAudit";
|
||||
import { message } from "ant-design-vue";
|
||||
import * as api1 from "@/api/index1";
|
||||
import ProjectLevel from "@/components/project/ProjectLevel";
|
||||
@@ -305,91 +307,25 @@ export default {
|
||||
tableDataTotal: 20,
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
tableData: [
|
||||
{
|
||||
key: 1,
|
||||
people: "张三",
|
||||
time: "2023-01-13",
|
||||
data: [
|
||||
{
|
||||
content: "项目归属",
|
||||
before: "产品部",
|
||||
after: "研发部",
|
||||
},
|
||||
{
|
||||
content: "项目时间",
|
||||
before: "2022-10-31 23:00~2022-11-10 23:00",
|
||||
after: "2022-11-11 23:00~2022-11-30 23:00",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
people: "张三",
|
||||
time: "2023-01-13",
|
||||
data: [
|
||||
{
|
||||
content: "项目归属",
|
||||
before: "产品部",
|
||||
after: "研发部",
|
||||
},
|
||||
{
|
||||
content: "项目时间",
|
||||
before: "2022-10-31 23:00~2022-11-10 23:00",
|
||||
after: "2022-11-11 23:00~2022-11-30 23:00",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
tableData: [],
|
||||
columns: [
|
||||
{
|
||||
title: "修改人",
|
||||
dataIndex: "people",
|
||||
key: "people",
|
||||
dataIndex: "updateName",
|
||||
key: "updateName",
|
||||
align: "center",
|
||||
className: "h",
|
||||
width: "40%",
|
||||
},
|
||||
{
|
||||
title: "修改时间",
|
||||
dataIndex: "time",
|
||||
key: "time",
|
||||
dataIndex: "updateTime",
|
||||
key: "updateTime",
|
||||
align: "center",
|
||||
className: "h",
|
||||
width: "40%",
|
||||
},
|
||||
],
|
||||
|
||||
tableData2: [
|
||||
{
|
||||
key: 1,
|
||||
people: "张三",
|
||||
time: "2023-01-13",
|
||||
},
|
||||
],
|
||||
columns2: [
|
||||
{
|
||||
title: "内容",
|
||||
dataIndex: "people",
|
||||
key: "people",
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "修改前",
|
||||
dataIndex: "time",
|
||||
key: "time",
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "修改后",
|
||||
dataIndex: "time",
|
||||
key: "time",
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
const closeDrawer = () => {
|
||||
@@ -467,6 +403,7 @@ export default {
|
||||
|
||||
const afterVisibleChange = () => {
|
||||
getTaskInfo();
|
||||
getrecord();
|
||||
};
|
||||
const changeDe = () => {
|
||||
state.showDetail = !state.showDetail;
|
||||
@@ -517,6 +454,21 @@ export default {
|
||||
value: e.dictCode,
|
||||
})); //场景
|
||||
});
|
||||
|
||||
//获取项目修改记录
|
||||
const getrecord = () => {
|
||||
editRecord(props.chooseProject)
|
||||
.then((res) => {
|
||||
console.log("获取修改记录", res);
|
||||
if (res.data.code === 200) {
|
||||
state.tableData = res.data.data.records;
|
||||
// console.log("state.tableData", state.tableData);
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取修改记录失败", err);
|
||||
});
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
closeDrawer,
|
||||
|
||||
Reference in New Issue
Block a user