2022-10-17 10:13:22 +08:00
|
|
|
<template>
|
2022-10-25 15:25:40 +08:00
|
|
|
<div class="container" ref="Process">
|
|
|
|
|
<div class="process">
|
|
|
|
|
<vue-scroll :ops="ops" ref="stageScroll">
|
|
|
|
|
<Process style="transform: translateX(0)" :list="stageList" />
|
|
|
|
|
</vue-scroll>
|
2022-10-17 10:13:22 +08:00
|
|
|
</div>
|
2022-10-25 15:25:40 +08:00
|
|
|
</div>
|
2022-10-17 10:13:22 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-01-08 23:58:49 +08:00
|
|
|
import Process from "./Process";
|
|
|
|
|
import { listProgressOfTheTask } from "@/assets/js/api/zhongjianFourth";
|
2022-10-22 18:06:19 +08:00
|
|
|
|
2022-10-17 10:13:22 +08:00
|
|
|
export default {
|
2022-10-17 17:46:04 +08:00
|
|
|
components: { Process },
|
2022-10-17 10:13:22 +08:00
|
|
|
data() {
|
|
|
|
|
return {
|
2022-10-25 15:25:40 +08:00
|
|
|
ops: {
|
|
|
|
|
vuescroll: {
|
|
|
|
|
// wheelScrollDuration: 0,
|
2023-01-08 23:58:49 +08:00
|
|
|
wheelDirectionReverse: true,
|
|
|
|
|
},
|
2022-10-25 15:25:40 +08:00
|
|
|
},
|
|
|
|
|
// projectData.constructionStage
|
2023-01-08 23:58:49 +08:00
|
|
|
// stageList: this.$t('message.companyDiagram.CONSTRUCTIONSTAGE'),
|
|
|
|
|
constructionStageEnum: {
|
|
|
|
|
1: "地下室结构阶段",
|
|
|
|
|
2: "地上造楼机结构施工",
|
|
|
|
|
3: "幕墙工程",
|
|
|
|
|
4: "电梯工程",
|
|
|
|
|
5: "机电安装工程",
|
|
|
|
|
6: "精装修工程",
|
|
|
|
|
7: "园林市政工程",
|
|
|
|
|
8: "地基基础分部验收",
|
|
|
|
|
9: "主体结构分部验收",
|
|
|
|
|
10: "节能分部验收",
|
|
|
|
|
11: "其他分部验收",
|
|
|
|
|
12: "规划验收",
|
|
|
|
|
13: "消防验收",
|
|
|
|
|
14: "竣工验收完成",
|
|
|
|
|
},
|
|
|
|
|
stageList: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
2023-01-10 19:45:09 +08:00
|
|
|
name: "开工",
|
|
|
|
|
Time: "2022-04-17",
|
2023-01-08 23:58:49 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
2023-01-10 19:45:09 +08:00
|
|
|
name: "地下室结构施工",
|
2023-01-13 21:04:45 +08:00
|
|
|
Time: "2023-03-25",
|
2023-01-08 23:58:49 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
2023-01-13 21:04:45 +08:00
|
|
|
name: " 核心筒结构施工",
|
|
|
|
|
Time: "2023-10-31",
|
2023-01-08 23:58:49 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
2023-01-10 19:45:09 +08:00
|
|
|
name: "幕墙施工",
|
2023-01-13 21:04:45 +08:00
|
|
|
Time: "2024-03-29",
|
2023-01-08 23:58:49 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 5,
|
2023-01-10 19:45:09 +08:00
|
|
|
name: "机电安装施工",
|
2023-01-12 22:00:16 +08:00
|
|
|
Time: "2024-06-30",
|
2023-01-08 23:58:49 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 6,
|
2023-01-10 19:45:09 +08:00
|
|
|
name: "精装修施工",
|
2023-01-13 21:04:45 +08:00
|
|
|
Time: "2024-08-21",
|
2023-01-08 23:58:49 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 7,
|
2023-01-10 19:45:09 +08:00
|
|
|
name: "园林市政施工",
|
2023-01-12 22:00:16 +08:00
|
|
|
Time: "2024-06-08",
|
2023-01-08 23:58:49 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 8,
|
2023-01-10 19:45:09 +08:00
|
|
|
name: "竣工验收",
|
2023-01-12 22:00:16 +08:00
|
|
|
Time: "2024-08-18",
|
2023-01-08 23:58:49 +08:00
|
|
|
},
|
|
|
|
|
],
|
2022-10-17 10:13:22 +08:00
|
|
|
list: [
|
2023-01-08 23:58:49 +08:00
|
|
|
{
|
|
|
|
|
img: require("@/assets/images/zjsj/doing.png"),
|
|
|
|
|
name: "基坑支护开始施工",
|
|
|
|
|
time: "2022-01-01",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
img: require("@/assets/images/zjsj/noBegin.png"),
|
|
|
|
|
name: "桩基施工开始",
|
|
|
|
|
time: "2022-09-08",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
img: require("@/assets/images/zjsj/noBegin.png"),
|
|
|
|
|
name: "屋面工程",
|
|
|
|
|
time: "2023-01-17",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
img: require("@/assets/images/zjsj/noBegin.png"),
|
|
|
|
|
name: "幕墙工程施工完成",
|
|
|
|
|
time: "2024-05-23",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
img: require("@/assets/images/zjsj/noBegin.png"),
|
|
|
|
|
name: "联合竣工验收完成",
|
|
|
|
|
time: "2024-10-08",
|
|
|
|
|
},
|
2022-10-17 10:13:22 +08:00
|
|
|
],
|
2023-01-08 23:58:49 +08:00
|
|
|
index: 0,
|
|
|
|
|
};
|
2022-10-17 10:13:22 +08:00
|
|
|
},
|
|
|
|
|
mounted() {
|
2023-01-08 23:58:49 +08:00
|
|
|
const progress = this.$refs.Process;
|
|
|
|
|
progress.scrollLeft = 48;
|
|
|
|
|
this.getData();
|
2022-10-17 10:13:22 +08:00
|
|
|
},
|
2022-10-25 15:25:40 +08:00
|
|
|
methods: {
|
|
|
|
|
getData() {
|
2022-12-12 13:43:14 +08:00
|
|
|
// listProgressOfTheTask({
|
|
|
|
|
// projectSn: this.$store.state.projectSn,
|
|
|
|
|
// isNoStart: false,
|
|
|
|
|
// }).then((res) => {
|
|
|
|
|
// // state 0未开始, 1进行中, 2已完成
|
|
|
|
|
// res.result.forEach((item) => {
|
|
|
|
|
// if (item.state == 2) {
|
|
|
|
|
// item.state = true;
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// console.log("进度条的返回值", res);
|
|
|
|
|
// this.list = res.result;
|
|
|
|
|
// });
|
2023-01-08 23:58:49 +08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
2022-10-17 10:13:22 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.container {
|
|
|
|
|
display: grid;
|
|
|
|
|
place-items: center;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2022-10-25 15:25:40 +08:00
|
|
|
// overflow: auto;
|
|
|
|
|
.process {
|
|
|
|
|
margin-top: 5%;
|
|
|
|
|
width: 95%;
|
|
|
|
|
height: 85%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
2022-12-16 10:54:02 +08:00
|
|
|
.process:hover {
|
2022-10-25 15:25:40 +08:00
|
|
|
overflow-x: auto;
|
|
|
|
|
}
|
2022-10-17 10:13:22 +08:00
|
|
|
}
|
|
|
|
|
</style>
|