提交代码
parent
8c4f6c2566
commit
808bd00b14
|
@ -111,12 +111,11 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="审批内容">
|
<el-form-item label="审批内容">
|
||||||
<div v-for="(file, index) in initData.files" :key="index">
|
<div v-for="(file, index) in initData.files" :key="index">
|
||||||
<el-button
|
<el-link
|
||||||
size="mini"
|
type="primary"
|
||||||
type="text"
|
|
||||||
icon="el-icon-paperclip"
|
icon="el-icon-paperclip"
|
||||||
@click="handledownload(file)"
|
@click="handledownload(file)"
|
||||||
>{{ file.substring(file.lastIndexOf("/") + 1) }}</el-button
|
>{{ file.substring(file.lastIndexOf("/") + 1) }}</el-link
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -475,6 +474,10 @@ export default {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
float: left;
|
float: left;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
|
|
||||||
|
.el-link .el-link--inner{
|
||||||
|
word-break: break-all !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.containers {
|
.containers {
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
<el-form-item label="审批内容" prop="files">
|
<el-form-item label="审批内容" prop="files">
|
||||||
<FileUpload
|
<FileUpload
|
||||||
@input="fileInput"
|
@input="fileInput"
|
||||||
:limit="18"
|
:limit="30"
|
||||||
v-model="form.files"
|
v-model="form.files"
|
||||||
:fileType="['pdf', 'png', 'jpg', 'jpeg']"
|
:fileType="['pdf', 'png', 'jpg', 'jpeg']"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
<el-form-item label="审批内容" prop="files">
|
<el-form-item label="审批内容" prop="files">
|
||||||
<FileUpload
|
<FileUpload
|
||||||
@input="fileInput"
|
@input="fileInput"
|
||||||
:limit="18"
|
:limit="30"
|
||||||
:fileType="['pdf', 'png', 'jpg', 'jpeg']"
|
:fileType="['pdf', 'png', 'jpg', 'jpeg']"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
|
@ -116,12 +116,11 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="审批内容">
|
<el-form-item label="审批内容">
|
||||||
<div v-for="(file, index) in initData.files" :key="index">
|
<div v-for="(file, index) in initData.files" :key="index">
|
||||||
<el-button
|
<el-link
|
||||||
size="mini"
|
type="primary"
|
||||||
type="text"
|
|
||||||
icon="el-icon-paperclip"
|
icon="el-icon-paperclip"
|
||||||
@click="handledownload(file)"
|
@click="handledownload(file)"
|
||||||
>{{ file.substring(file.lastIndexOf("/") + 1) }}</el-button
|
>{{ file.substring(file.lastIndexOf("/") + 1) }}</el-link
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -255,7 +254,7 @@ export default {
|
||||||
returnTaskList: [], // 回退列表数据
|
returnTaskList: [], // 回退列表数据
|
||||||
returnTask: false,
|
returnTask: false,
|
||||||
returnTaskBtn: false,
|
returnTaskBtn: false,
|
||||||
fileTypes:['pdf','png','jpg','jpeg'],
|
fileTypes: ["pdf", "png", "jpg", "jpeg"],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
|
@ -619,9 +618,11 @@ export default {
|
||||||
},
|
},
|
||||||
handledownload(url) {
|
handledownload(url) {
|
||||||
let fileType = url.split(".");
|
let fileType = url.split(".");
|
||||||
if(this.fileTypes.indexOf(fileType[fileType.length-1].toLocaleLowerCase())>-1){
|
if (
|
||||||
window.open(process.env.VUE_APP_BASE_API+url);
|
this.fileTypes.indexOf(fileType[fileType.length - 1].toLocaleLowerCase()) > -1
|
||||||
}else{
|
) {
|
||||||
|
window.open(process.env.VUE_APP_BASE_API + url);
|
||||||
|
} else {
|
||||||
this.$download.resource(url);
|
this.$download.resource(url);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -671,6 +672,10 @@ export default {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
float: left;
|
float: left;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
|
|
||||||
|
.el-link .el-link--inner{
|
||||||
|
word-break: break-all !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.containers {
|
.containers {
|
||||||
|
|
|
@ -91,7 +91,8 @@
|
||||||
:data="dataList"
|
:data="dataList"
|
||||||
:span-method="objectSpanMethod"
|
:span-method="objectSpanMethod"
|
||||||
height="700"
|
height="700"
|
||||||
stripe border
|
stripe
|
||||||
|
border
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="项目名称"
|
label="项目名称"
|
||||||
|
@ -102,108 +103,266 @@
|
||||||
fixed="left"
|
fixed="left"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column label="参建单位" align="left" fixed="left" prop="unitName" width="163" show-overflow-tooltip/>
|
<el-table-column
|
||||||
|
label="参建单位"
|
||||||
|
align="left"
|
||||||
|
fixed="left"
|
||||||
|
prop="unitName"
|
||||||
|
width="163"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
<el-table-column label="项目详情" align="center">
|
<el-table-column label="项目详情" align="center">
|
||||||
<el-table-column label="劳务实名制" align="center">
|
<el-table-column label="劳务实名制" align="center">
|
||||||
<el-table-column label="劳务人员" align="center" prop="lwry" width="90" show-overflow-tooltip/>
|
<el-table-column
|
||||||
|
label="劳务人员"
|
||||||
|
align="center"
|
||||||
|
prop="lwry"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
<el-table-column label="实名制接入" align="center" prop="lwsm" width="90">
|
<el-table-column label="实名制接入" align="center" prop="lwsm" width="90">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.lwsm==1" type="success" effect="dark">已接入</el-tag>
|
<el-tag v-if="scope.row.lwsm == 1" type="success" effect="dark"
|
||||||
<el-tag v-if="scope.row.lwsm==0" type="danger" effect="dark">未接入</el-tag>
|
>已接入</el-tag
|
||||||
|
>
|
||||||
|
<el-tag v-if="scope.row.lwsm == 0" type="danger" effect="dark"
|
||||||
|
>未接入</el-tag
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="节点预警" align="center" prop="jdyj" width="90">
|
<el-table-column label="节点预警" align="center" prop="jdyj" width="90">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.jdyj==1" type="success" effect="dark">正常</el-tag>
|
<el-tag v-if="scope.row.jdyj == 1" type="success" effect="dark">正常</el-tag>
|
||||||
<el-tag v-if="scope.row.jdyj==2" type="danger" effect="dark">滞后</el-tag>
|
<el-tag v-if="scope.row.jdyj == 2" type="danger" effect="dark">滞后</el-tag>
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="环境检测" align="center" prop="hjjc" width="90">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-tag v-if="scope.row.hjjc==1" type="success" effect="dark">已接入</el-tag>
|
|
||||||
<el-tag v-if="scope.row.hjjc==0" type="danger" effect="dark">未接入</el-tag>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="劳资预警"
|
||||||
|
align="center"
|
||||||
|
prop="lzyjs"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
<el-table-column label="项目预警" align="center">
|
<el-table-column label="项目预警" align="center">
|
||||||
<el-table-column label="AI预警" align="center" prop="aiyjs" width="90" show-overflow-tooltip/>
|
<el-table-column
|
||||||
<el-table-column label="安全预警" align="center" prop="aqyjs" width="90" show-overflow-tooltip/>
|
label="AI预警"
|
||||||
<el-table-column label="质量预警" align="center" prop="zlyjs" width="90" show-overflow-tooltip/>
|
align="center"
|
||||||
<el-table-column label="环境预警" align="center" prop="hjyjs" width="90" show-overflow-tooltip/>
|
prop="aiyjs"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="安全预警"
|
||||||
|
align="center"
|
||||||
|
prop="aqyjs"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="质量预警"
|
||||||
|
align="center"
|
||||||
|
prop="zlyjs"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="环境预警"
|
||||||
|
align="center"
|
||||||
|
prop="hjyjs"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="安全管理" align="center">
|
<el-table-column label="安全管理" align="center">
|
||||||
<el-table-column label="安责险" align="center" prop="azx" width="80" show-overflow-tooltip>
|
<el-table-column
|
||||||
|
label="安责险"
|
||||||
|
align="center"
|
||||||
|
prop="azx"
|
||||||
|
width="80"
|
||||||
|
show-overflow-tooltip
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.azx==1" type="success" effect="dark">已办理</el-tag>
|
<el-tag v-if="scope.row.azx == 1" type="success" effect="dark">已办理</el-tag>
|
||||||
<el-tag v-if="scope.row.azx==0" type="danger" effect="dark">未办理</el-tag>
|
<el-tag v-if="scope.row.azx == 0" type="danger" effect="dark">未办理</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="一切险" align="center" prop="yqx" width="80" show-overflow-tooltip>
|
<el-table-column
|
||||||
|
label="一切险"
|
||||||
|
align="center"
|
||||||
|
prop="yqx"
|
||||||
|
width="80"
|
||||||
|
show-overflow-tooltip
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.yqx==1" type="success" effect="dark">已办理</el-tag>
|
<el-tag v-if="scope.row.yqx == 1" type="success" effect="dark">已办理</el-tag>
|
||||||
<el-tag v-if="scope.row.yqx==0" type="danger" effect="dark">未办理</el-tag>
|
<el-tag v-if="scope.row.yqx == 0" type="danger" effect="dark">未办理</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="安全隐患排查" align="center">
|
<el-table-column label="安全隐患排查" align="center">
|
||||||
<el-table-column label="甲方代表" align="center" prop="aqyhpc_jfdb" width="90" show-overflow-tooltip/>
|
<el-table-column
|
||||||
<el-table-column label="监理单位" align="center" prop="aqyhpc_jldw" width="90" show-overflow-tooltip/>
|
label="甲方代表"
|
||||||
<el-table-column label="总包单位" align="center" prop="aqyhpc_zbdw" width="90" show-overflow-tooltip/>
|
align="center"
|
||||||
|
prop="aqyhpc_jfdb"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="监理单位"
|
||||||
|
align="center"
|
||||||
|
prop="aqyhpc_jldw"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="总包单位"
|
||||||
|
align="center"
|
||||||
|
prop="aqyhpc_zbdw"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="特种人员" align="center" prop="tzry" width="90" show-overflow-tooltip/>
|
<el-table-column
|
||||||
<el-table-column label="应急演练" align="center" prop="yjyl" width="90" show-overflow-tooltip/>
|
label="特种人员"
|
||||||
<el-table-column label="教育培训" align="center" prop="zxpx" width="90" show-overflow-tooltip/>
|
align="center"
|
||||||
|
prop="tzry"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="应急演练"
|
||||||
|
align="center"
|
||||||
|
prop="yjyl"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="教育培训"
|
||||||
|
align="center"
|
||||||
|
prop="zxpx"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="质量管理" align="center">
|
<el-table-column label="质量管理" align="center">
|
||||||
<el-table-column label="质量隐患排查" align="center">
|
<el-table-column label="质量隐患排查" align="center">
|
||||||
<el-table-column label="甲方代表" align="center" prop="zlyhpc_jfdb" width="90" show-overflow-tooltip/>
|
<el-table-column
|
||||||
<el-table-column label="监理单位" align="center" prop="zlyhpc_jldw" width="90" show-overflow-tooltip/>
|
label="甲方代表"
|
||||||
<el-table-column label="总包单位" align="center" prop="zlyhpc_zbdw" width="90" show-overflow-tooltip/>
|
align="center"
|
||||||
|
prop="zlyhpc_jfdb"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="监理单位"
|
||||||
|
align="center"
|
||||||
|
prop="zlyhpc_jldw"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="总包单位"
|
||||||
|
align="center"
|
||||||
|
prop="zlyhpc_zbdw"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="取样复试" align="center" prop="clqyfs" width="90" show-overflow-tooltip/>
|
<el-table-column
|
||||||
<el-table-column label="材料封样" align="center" prop="clfy" width="90" show-overflow-tooltip/>
|
label="取样复试"
|
||||||
<el-table-column label="实测实量" align="center" prop="cscl" width="90" show-overflow-tooltip/>
|
align="center"
|
||||||
<el-table-column label="举牌验收" align="center" prop="jpys" width="90" show-overflow-tooltip/>
|
prop="clqyfs"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="材料封样"
|
||||||
|
align="center"
|
||||||
|
prop="clfy"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="实测实量"
|
||||||
|
align="center"
|
||||||
|
prop="cscl"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="举牌验收"
|
||||||
|
align="center"
|
||||||
|
prop="jpys"
|
||||||
|
width="90"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="视频监控" align="center">
|
<el-table-column label="视频监控" align="center">
|
||||||
<el-table-column label="实时监控" align="center" prop="ssjk" width="90">
|
<el-table-column label="实时监控" align="center" prop="ssjk" width="90">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.ssjk!=0" type="success" effect="dark">已开通</el-tag>
|
<el-tag v-if="scope.row.ssjk != 0" type="success" effect="dark"
|
||||||
<el-tag v-if="scope.row.ssjk==0" type="danger" effect="dark">未开通</el-tag>
|
>已开通</el-tag
|
||||||
|
>
|
||||||
|
<el-tag v-if="scope.row.ssjk == 0" type="danger" effect="dark">未开通</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="AI监控" align="center" prop="aijk" width="90">
|
<el-table-column label="AI监控" align="center" prop="aijk" width="90">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.aijk==1" type="success" effect="dark">已开通</el-tag>
|
<el-tag v-if="scope.row.aijk == 1" type="success" effect="dark"
|
||||||
<el-tag v-if="scope.row.aijk==0" type="danger" effect="dark">未开通</el-tag>
|
>已开通</el-tag
|
||||||
|
>
|
||||||
|
<el-tag v-if="scope.row.aijk == 0" type="danger" effect="dark">未开通</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="项目全景" align="center" prop="yssys" width="120" show-overflow-tooltip/>
|
<el-table-column
|
||||||
|
label="项目全景"
|
||||||
|
align="center"
|
||||||
|
prop="yssys"
|
||||||
|
width="120"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="工程管理" align="center">
|
<el-table-column label="工程管理" align="center">
|
||||||
<el-table-column label="项目标准化" align="center" prop="bzh" width="120" show-overflow-tooltip/>
|
<el-table-column
|
||||||
<el-table-column label="审批进行中" align="center" prop="gcsq" width="120" show-overflow-tooltip/>
|
label="项目标准化"
|
||||||
<el-table-column label="审批已完成" align="center" prop="gcsp" width="120" show-overflow-tooltip/>
|
align="center"
|
||||||
|
prop="bzh"
|
||||||
|
width="120"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="审批进行中"
|
||||||
|
align="center"
|
||||||
|
prop="gcsq"
|
||||||
|
width="120"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="审批已完成"
|
||||||
|
align="center"
|
||||||
|
prop="gcsp"
|
||||||
|
width="120"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
selectStatisticsProjectList, exportView
|
selectStatisticsProjectList,
|
||||||
} from "@/api/statistics/statisticsProject";
|
exportView,
|
||||||
import axios from 'axios';
|
} from "@/api/statistics/statisticsProject";
|
||||||
import { saveAs } from 'file-saver';
|
import axios from "axios";
|
||||||
import { getToken } from '@/utils/auth'
|
import { saveAs } from "file-saver";
|
||||||
|
import { getToken } from "@/utils/auth";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "statisticsProject",
|
name: "statisticsProject",
|
||||||
components: {},
|
components: {},
|
||||||
dicts: [
|
dicts: ["project_build_type", "project_category"],
|
||||||
"project_build_type",
|
|
||||||
"project_category",
|
|
||||||
],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
|
@ -224,8 +383,8 @@
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {},
|
rules: {},
|
||||||
depts: [],
|
depts: [],
|
||||||
dataList:[],
|
dataList: [],
|
||||||
daterangeTime:[],
|
daterangeTime: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -261,7 +420,7 @@
|
||||||
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
||||||
// column.property是表头的key
|
// column.property是表头的key
|
||||||
let _row = 1;
|
let _row = 1;
|
||||||
if([0,4,7,8,12,13,18,19,27].includes(columnIndex)){
|
if ([0, 4, 7, 8, 12, 13, 18, 19, 27].includes(columnIndex)) {
|
||||||
var spanArr = this.getSpanArr(column.property);
|
var spanArr = this.getSpanArr(column.property);
|
||||||
_row = spanArr[rowIndex];
|
_row = spanArr[rowIndex];
|
||||||
}
|
}
|
||||||
|
@ -282,7 +441,10 @@
|
||||||
pos = 0;
|
pos = 0;
|
||||||
} else {
|
} else {
|
||||||
// 判断当前元素与上一个元素是否相同
|
// 判断当前元素与上一个元素是否相同
|
||||||
if (data[i][spanKey] === data[i - 1][spanKey] && data[i].projectId === data[i - 1].projectId) {
|
if (
|
||||||
|
data[i][spanKey] === data[i - 1][spanKey] &&
|
||||||
|
data[i].projectId === data[i - 1].projectId
|
||||||
|
) {
|
||||||
spanArr[pos] += 1;
|
spanArr[pos] += 1;
|
||||||
spanArr.push(0);
|
spanArr.push(0);
|
||||||
} else {
|
} else {
|
||||||
|
@ -301,24 +463,25 @@
|
||||||
this.queryParams.params["beginTime"] = this.daterangeTime[0];
|
this.queryParams.params["beginTime"] = this.daterangeTime[0];
|
||||||
this.queryParams.params["endTime"] = this.daterangeTime[1];
|
this.queryParams.params["endTime"] = this.daterangeTime[1];
|
||||||
}
|
}
|
||||||
let url = process.env.VUE_APP_BASE_API + '/statistics/project/exportView';
|
let url = process.env.VUE_APP_BASE_API + "/statistics/project/exportView";
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: "post",
|
||||||
url: url,
|
url: url,
|
||||||
data: this.queryParams,
|
data: this.queryParams,
|
||||||
responseType: 'blob',
|
responseType: "blob",
|
||||||
headers: { 'Authorization': 'Bearer ' + getToken() }
|
headers: { Authorization: "Bearer " + getToken() },
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
let timeStamp = new Date().getTime();
|
let timeStamp = new Date().getTime();
|
||||||
const blob = new Blob([res.data], { type: 'application/vnd.ms-excel;charset=utf-8' })
|
const blob = new Blob([res.data], {
|
||||||
this.saveAs(blob, decodeURIComponent('项目汇总数据_'+timeStamp+'.xlsx'))
|
type: "application/vnd.ms-excel;charset=utf-8",
|
||||||
})
|
});
|
||||||
|
this.saveAs(blob, decodeURIComponent("项目汇总数据_" + timeStamp + ".xlsx"));
|
||||||
|
});
|
||||||
},
|
},
|
||||||
saveAs(text, name, opts) {
|
saveAs(text, name, opts) {
|
||||||
saveAs(text, name, opts);
|
saveAs(text, name, opts);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -14,24 +14,22 @@ import com.yanzhu.jh.project.domain.SurProject;
|
||||||
import com.yanzhu.jh.project.domain.vo.ProjectViewExport;
|
import com.yanzhu.jh.project.domain.vo.ProjectViewExport;
|
||||||
import com.yanzhu.jh.project.domain.vo.ProjectViewJlExport;
|
import com.yanzhu.jh.project.domain.vo.ProjectViewJlExport;
|
||||||
import com.yanzhu.jh.project.service.IProjectViewService;
|
import com.yanzhu.jh.project.service.IProjectViewService;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
import org.apache.poi.ss.usermodel.*;
|
import org.apache.poi.ss.usermodel.CellStyle;
|
||||||
|
import org.apache.poi.ss.usermodel.Row;
|
||||||
|
import org.apache.poi.ss.usermodel.Sheet;
|
||||||
import org.apache.poi.ss.util.CellRangeAddress;
|
import org.apache.poi.ss.util.CellRangeAddress;
|
||||||
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
|
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.BufferedOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
@ -309,7 +307,7 @@ public class ProjectViewController extends BaseBuildNodeController{
|
||||||
tempCell.setCellStyle(headerStyle);
|
tempCell.setCellStyle(headerStyle);
|
||||||
|
|
||||||
tempCell = tempRow.createCell(5);
|
tempCell = tempRow.createCell(5);
|
||||||
tempCell.setCellValue("环境检测");
|
tempCell.setCellValue("劳资预警");
|
||||||
tempCell.setCellStyle(headerStyle);
|
tempCell.setCellStyle(headerStyle);
|
||||||
|
|
||||||
tempCell = tempRow.createCell(6);
|
tempCell = tempRow.createCell(6);
|
||||||
|
@ -493,7 +491,7 @@ public class ProjectViewController extends BaseBuildNodeController{
|
||||||
tempCell.setCellStyle(contentStyle);
|
tempCell.setCellStyle(contentStyle);
|
||||||
|
|
||||||
tempCell = tempRow.createCell(5);
|
tempCell = tempRow.createCell(5);
|
||||||
tempCell.setCellValue(view.getHjjc().equals("0")?"未接入":"已接入");
|
tempCell.setCellValue(Convert.toStr(view.getLzyjs(),"0"));
|
||||||
tempCell.setCellStyle(contentStyle);
|
tempCell.setCellStyle(contentStyle);
|
||||||
|
|
||||||
tempCell = tempRow.createCell(6);
|
tempCell = tempRow.createCell(6);
|
||||||
|
|
|
@ -87,7 +87,9 @@ public class ProjectViewExport implements Serializable {
|
||||||
|
|
||||||
private String jdyj;
|
private String jdyj;
|
||||||
|
|
||||||
private String hjjc;
|
@Excel(name = "劳资预警", width = 20,align = HorizontalAlignment.CENTER)
|
||||||
|
private String lzyjs;
|
||||||
|
|
||||||
private String hjyjs;
|
private String hjyjs;
|
||||||
private String zlyjs;
|
private String zlyjs;
|
||||||
private String aqyjs;
|
private String aqyjs;
|
||||||
|
@ -326,12 +328,12 @@ public class ProjectViewExport implements Serializable {
|
||||||
this.jdyj = jdyj;
|
this.jdyj = jdyj;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getHjjc() {
|
public String getLzyjs() {
|
||||||
return hjjc;
|
return lzyjs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setHjjc(String hjjc) {
|
public void setLzyjs(String lzyjs) {
|
||||||
this.hjjc = hjjc;
|
this.lzyjs = lzyjs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getHjyjs() {
|
public String getHjyjs() {
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
(select count(1) from vw_flow_all a where a.businessKey = sp.id and a.startDeptName = pui.unitName and a.finishTime is not null)as gcsp,
|
(select count(1) from vw_flow_all a where a.businessKey = sp.id and a.startDeptName = pui.unitName and a.finishTime is not null)as gcsp,
|
||||||
(select count(1) from sur_project_standard a where a.project_id = sp.id and a.dept_id = pui.unitId and a.is_del=0)as bzh,
|
(select count(1) from sur_project_standard a where a.project_id = sp.id and a.dept_id = pui.unitId and a.is_del=0)as bzh,
|
||||||
(select count(1) from sur_project_photography a where a.project_id = sp.id and a.is_del=0)as yssys,
|
(select count(1) from sur_project_photography a where a.project_id = sp.id and a.is_del=0)as yssys,
|
||||||
'0' as hjjc,
|
(select count(1) from flow_labour_info a where a.project_id = sp.id and a.deptId=pui.unitId and a.is_del=0) as lzyjs,
|
||||||
'0' as hjyjs,
|
'0' as hjyjs,
|
||||||
(select count(1) from smz_ssp_problemmodify a where a.projectId=sp.id and a.infoType=1 and a.isDel=0 and a.checkState!=4 and date(NOW())<![CDATA[ > ]]> date(a.nickedTime)) as zlyjs,
|
(select count(1) from smz_ssp_problemmodify a where a.projectId=sp.id and a.infoType=1 and a.isDel=0 and a.checkState!=4 and date(NOW())<![CDATA[ > ]]> date(a.nickedTime)) as zlyjs,
|
||||||
(select count(1) from smz_ssp_problemmodify a where a.projectId=sp.id and a.infoType=0 and a.isDel=0 and a.checkState!=4 and date(NOW())<![CDATA[ > ]]> date(a.nickedTime)) as aqyjs,
|
(select count(1) from smz_ssp_problemmodify a where a.projectId=sp.id and a.infoType=0 and a.isDel=0 and a.checkState!=4 and date(NOW())<![CDATA[ > ]]> date(a.nickedTime)) as aqyjs,
|
||||||
|
|
Loading…
Reference in New Issue