update code
parent
a650b7abed
commit
a5e7fdf75a
|
@ -1,8 +1,8 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
const getWorkFileList=(fileBelong)=> {
|
||||
const getWorkFileList=(fileBelong,deptId)=> {
|
||||
return request({
|
||||
url: `bgscreen/workfile/getWorkFileList?fileBelong=${fileBelong}`,
|
||||
url: `bgscreen/workfile/getWorkFileList?fileBelong=${fileBelong}&deptId=${deptId||0}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
|
|
@ -77,7 +77,9 @@
|
|||
</module-one-3-1>
|
||||
</el-col>
|
||||
<el-col :span="6" >
|
||||
<module-one-1-1 label="材料进场取样复试">
|
||||
<module-one-1-1 label="材料进场取样复试" style="position: relative;">
|
||||
<img src="images/icon2001.png" style="position: absolute;cursor: pointer;right: 12px;top: 12px;"
|
||||
@click="doShowCheckDetectionDlg">
|
||||
<div class="warning-info">
|
||||
<div class="warning-info-title">
|
||||
<div :class="samplingNav==0?'active':''" @click="checkDetection(0)">汇总</div>
|
||||
|
@ -159,7 +161,9 @@
|
|||
</div>
|
||||
</div>
|
||||
</module-one-1-1>
|
||||
<module-one-1-1 label="实测实量" :key="elCheck">
|
||||
<module-one-1-1 label="实测实量" :key="elCheck" style="position: relative;">
|
||||
<img src="images/icon2001.png" style="position: absolute;cursor: pointer;right: 12px;top: 12px;"
|
||||
@click="doShowMeasuredDlg">
|
||||
<div class="warning-info-title measured-data-list" style="padding-left: 20px;">
|
||||
<div :class="measuredNav==0?'active':''" @click="doMeasuredNav(0,'汇总')">汇总</div>
|
||||
<div :class="measuredNav==1?'active':''" @click="doMeasuredNav(1,'混泥土工程')">混泥土工程</div>
|
||||
|
@ -352,6 +356,12 @@ export default {
|
|||
});
|
||||
},
|
||||
methods: {
|
||||
doShowCheckDetectionDlg(){
|
||||
|
||||
},
|
||||
doShowMeasuredDlg(){
|
||||
|
||||
},
|
||||
showMaterialSeal(it){
|
||||
this.$refs.msDlg.showDialog(it);
|
||||
},
|
||||
|
|
|
@ -168,7 +168,7 @@
|
|||
@click="fileNavChage(3)">子分公司</span>
|
||||
</div>
|
||||
<div class="file-list scroll">
|
||||
<div v-for="(it, id) in fileList" :key="id" class="file-item">
|
||||
<div v-for="(it, id) in fileList" :key="id" class="file-item" >
|
||||
<svg v-if="it.fileType=='PDF'" class="my-svg-icon2" style="vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1379"><path d="M905.185809 178.844158C898.576738 172.685485 891.19337 165.824412 883.21687 158.436127 860.422682 137.322863 837.434925 116.207791 815.697647 96.487895 813.243072 94.261877 813.243072 94.261877 810.786411 92.037081 781.783552 65.781062 757.590948 44.376502 739.713617 29.293612 729.254178 20.469111 721.020606 13.860686 714.970549 9.501727 710.955023 6.608611 707.690543 4.524745 704.47155 2.998714 700.417679 1.07689 696.638044-0.094029 691.307277 0.005928 677.045677 0.273349 665.6 11.769337 665.6 26.182727L665.6 77.352844 665.6 128.522961 665.6 230.863194 665.6 256.448252 691.2 256.448252 896 256.448252 870.4 230.863194 870.4 998.414942 896 972.829884 230.381436 972.829884C187.90385 972.829884 153.6 938.623723 153.6 896.20663L153.6 26.182727 128 51.767786 588.8 51.767786C602.93849 51.767786 614.4 40.312965 614.4 26.182727 614.4 12.05249 602.93849 0.597669 588.8 0.597669L128 0.597669 102.4 0.597669 102.4 26.182727 102.4 896.20663C102.4 966.91021 159.652833 1024 230.381436 1024L896 1024 921.6 1024 921.6 998.414942 921.6 230.863194 921.6 205.278135 896 205.278135 691.2 205.278135 716.8 230.863194 716.8 128.522961 716.8 77.352844 716.8 26.182727C716.8 39.813762 705.748075 50.91427 692.267725 51.167041 687.705707 51.252584 685.069822 50.435995 682.52845 49.231204 682.259458 49.103682 683.344977 49.796618 685.029451 51.010252 689.779394 54.432502 697.145822 60.34494 706.686383 68.394196 724.009052 83.009121 747.816448 104.072869 776.413589 129.961594 778.850014 132.168064 778.850014 132.168064 781.285216 134.376514 802.876774 153.964212 825.739479 174.96442 848.413564 195.966437 856.350957 203.3185 863.697005 210.144893 870.269888 216.269843 874.209847 219.941299 877.019309 222.565641 878.499674 223.951409 888.81866 233.610931 905.019017 233.081212 914.684179 222.768247 924.349344 212.455283 923.819315 196.264383 913.500326 186.604861 911.981323 185.182945 909.155025 182.542876 905.185809 178.844158ZM102.4 461.128719 0 461.128719 0 896.074709 512 896.074709 1024 896.074709 1024 461.128719 153.6 461.128719 153.6 460.531049 102.4 460.531049 102.4 461.128719ZM208.2 711 208.2 819.2 157.6 819.2 157.6 528 269 528C301.533495 528 327.366571 536.466581 346.5 553.4 365.633429 570.333419 375.2 592.733195 375.2 620.6 375.2 649.133476 365.833427 671.333254 347.1 687.2 328.366573 703.066746 302.133502 711 268.4 711L208.2 711ZM208.2 670.4 269 670.4C287.00009 670.4 300.733286 666.166709 310.2 657.7 319.666714 649.233291 324.4 637.000079 324.4 621 324.4 605.266588 319.600047 592.700047 310 583.3 300.399951 573.899953 287.200083 569.066669 270.4 568.8L208.2 568.8 208.2 670.4ZM419.4 819.2 419.4 528 505.4 528C531.133461 528 553.966566 533.733276 573.9 545.2 593.833434 556.666724 609.266611 572.933229 620.2 594 631.133389 615.066771 636.6 639.199863 636.6 666.4L636.6 681C636.6 708.600139 631.100055 732.866562 620.1 753.8 609.099945 774.733438 593.433436 790.866609 573.1 802.2 552.766564 813.533391 529.466799 819.2 503.2 819.2L419.4 819.2ZM470 568.8 470 778.8 503 778.8C529.533466 778.8 549.89993 770.500083 564.1 753.9 578.30007 737.299917 585.533331 713.466822 585.8 682.4L585.8 666.2C585.8 634.599842 578.933402 610.46675 565.2 593.8 551.466598 577.13325 531.533463 568.8 505.4 568.8L470 568.8ZM854.8 695.8 737.6 695.8 737.6 819.2 687 819.2 687 528 872 528 872 568.8 737.6 568.8 737.6 655.4 854.8 655.4 854.8 695.8Z" fill="#5E5E5E" p-id="1380"></path></svg>
|
||||
<svg v-if="it.fileType=='PPT' || it.fileType=='PPTX'" style="vertical-align: middle;fill: currentColor;overflow: hidden;" t="1692028054240" class="icon my-svg-icon2" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1331"><path d="M938.666667 469.333333a85.333333 85.333333 0 0 1 85.333333 85.333334v213.333333a85.333333 85.333333 0 0 1-85.333333 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333v-213.333333a85.333333 85.333333 0 0 1 85.333333-85.333334h853.333334zM282.922667 536.490667H169.258667V810.666667h44.970666v-105.216h67.968c66.816 0 100.224-28.416 100.224-84.864 0-56.064-33.408-84.096-99.456-84.096z m251.562666 0H420.821333V810.666667h44.928v-105.216h67.925334c66.858667 0 100.266667-28.416 100.266666-84.864 0-56.064-33.450667-84.096-99.498666-84.096z m341.333334 0h-224.64v38.4h89.898666V810.666667h44.928v-235.776h89.813334v-38.4z m-596.352 38.4c19.626667 0 34.176 3.456 43.434666 10.752 9.216 6.912 14.208 18.432 14.208 34.944 0 16.512-4.608 28.416-13.824 35.712-9.216 6.912-23.808 10.752-43.776 10.752H214.186667v-92.16h65.28z m251.52 0c19.626667 0 34.176 3.456 43.434666 10.752 9.216 6.912 14.208 18.432 14.208 34.944 0 16.512-4.608 28.416-13.824 35.712-9.216 6.912-23.808 10.752-43.818666 10.752h-65.28v-92.16h65.28z" fill="#008df0" p-id="1332"></path><path d="M609.408 10.538667l314.709333 275.370666a42.666667 42.666667 0 0 1 14.549334 32.128V896a128 128 0 0 1-120.490667 127.786667L810.666667 1024H213.333333a128 128 0 0 1-127.786666-120.490667L85.333333 896V128A128 128 0 0 1 205.824 0.213333L213.333333 0h367.957334a42.666667 42.666667 0 0 1 28.117333 10.538667zM512 85.333333H213.333333a42.666667 42.666667 0 0 0-42.368 37.674667L170.666667 128v768a42.666667 42.666667 0 0 0 37.674666 42.368L213.333333 938.666667h597.333334a42.666667 42.666667 0 0 0 42.368-37.674667L853.333333 896V384h-213.333333a128 128 0 0 1-127.146667-113.066667l-0.64-7.424L512 256V85.333333z m295.338667 213.333334L597.333333 103.808V256a42.666667 42.666667 0 0 0 37.674667 42.368L640 298.666667h167.338667z" fill="#008df0" p-id="1333"></path></svg>
|
||||
<svg v-if="it.fileType=='XLS' || it.fileType=='XLSX'" style="vertical-align: middle;fill: currentColor;overflow: hidden;" t="1692028166276" class="icon my-svg-icon2" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1478"><path d="M896 0a128 128 0 0 1 127.786667 120.490667L1024 128v768a128 128 0 0 1-120.490667 127.786667L896 1024H298.666667a128 128 0 0 1-127.786667-120.490667L170.666667 896v-128H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V341.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h85.333334V128A128 128 0 0 1 291.157333 0.213333L298.666667 0h597.333333z m0 85.333333H298.666667a42.666667 42.666667 0 0 0-42.368 37.674667L256 128v128h170.666667a85.333333 85.333333 0 0 1 85.333333 85.333333v341.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H256v128a42.666667 42.666667 0 0 0 37.674667 42.368L298.666667 938.666667h597.333333a42.666667 42.666667 0 0 0 42.368-37.674667L938.666667 896V128a42.666667 42.666667 0 0 0-37.674667-42.368L896 85.333333z m-42.666667 554.666667a42.666667 42.666667 0 0 1 0 85.333333h-213.333333a42.666667 42.666667 0 0 1 0-85.333333h213.333333zM181.76 378.026667H125.013333l102.4 147.2L117.76 682.666667h56.746667L256 561.92 337.493333 682.666667h56.746667l-110.506667-157.44 103.253334-147.2H330.24L256 488.106667 181.76 378.026667zM853.333333 469.333333a42.666667 42.666667 0 0 1 0 85.333334h-213.333333a42.666667 42.666667 0 0 1 0-85.333334h213.333333z m0-170.666666a42.666667 42.666667 0 0 1 0 85.333333h-213.333333a42.666667 42.666667 0 0 1 0-85.333333h213.333333z" fill="#008df0" p-id="1479"></path></svg>
|
||||
|
@ -184,6 +184,10 @@
|
|||
<span @click="downloadFile(it)" class="file-detail">查看详情</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!fileList || fileList.length==0" style="text-align: center;">
|
||||
<img src="images/nodata.png" style="width: 240px;">
|
||||
<div style="text-align: center;">暂无数据</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</module-one-1-1>
|
||||
|
@ -398,6 +402,9 @@ export default {
|
|||
this.getProjectSpecialView();
|
||||
this.getDeptWorksList();
|
||||
this.getProjectInsuranceList();
|
||||
if(this.fileNav==3){
|
||||
this.getWorkFileList();
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
|
@ -428,7 +435,7 @@ export default {
|
|||
},
|
||||
// 获取传达文件列表
|
||||
getWorkFileList() {
|
||||
this.$api.workFile.getWorkFileList(this.fileNav).then(d => {
|
||||
this.$api.workFile.getWorkFileList(this.fileNav,this.fileNav==3?this.dept.id:0).then(d => {
|
||||
this.fileList = d.rows;
|
||||
let _title = "传达文件(" + this.fileList.length + ")";
|
||||
this.fileTitle = _title;
|
||||
|
|
|
@ -0,0 +1,98 @@
|
|||
<template>
|
||||
<MyDialog v-if="show" v-model="show" width="880px" ref="dlg">
|
||||
<template slot="title">
|
||||
<div class="warning-info-title" style="padding-left: 20px;">
|
||||
<div :class="nav == 0 ? 'active' : ''" class="nav-item" @click="toggleNav(0)">安全管理</div>
|
||||
<div :class="nav == 1 ? 'active' : ''" class="nav-item" @click="toggleNav(1)">质量管理</div>
|
||||
</div>
|
||||
</template>
|
||||
<el-table v-if="nav == 0" :data="tableData" class="mytable" height="500" style="width: 100%;background: transparent;"
|
||||
ref="fbsubordinateUnit">
|
||||
|
||||
<el-table-column prop="prj" label="项目名称"> </el-table-column>
|
||||
<el-table-column prop="node" label="节点名称" width="150" class-name="text-left">
|
||||
<template slot-scope="scope">
|
||||
<span style="color:#01A9FF;font-size: 12px;">{{ scope.row.node }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="days" label="逾期天数">
|
||||
<template slot-scope="scope">
|
||||
<span style="color:red">{{ scope.row.days }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="date" label="计划完成时间">
|
||||
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<el-table v-else :data="tableData" class="mytable" style="width: 100%;background: transparent;"
|
||||
ref="fbsubordinateUnit">
|
||||
|
||||
<el-table-column prop="prj" label="项目名称2"> </el-table-column>
|
||||
<el-table-column prop="node" label="节点名称2" width="150" class-name="text-left">
|
||||
<template slot-scope="scope">
|
||||
<span style="color:#01A9FF;font-size: 12px;">{{ scope.row.node }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="days" label="逾期天数2">
|
||||
<template slot-scope="scope">
|
||||
<span style="color:red">{{ scope.row.days }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="date" label="计划完成时间2">
|
||||
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
</MyDialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import '@/components/module/module-one-1-1'
|
||||
import MyDialog from '../components/MyDialog'
|
||||
export default {
|
||||
components: {
|
||||
MyDialog
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
nav: 0,
|
||||
show: false,
|
||||
tableData: []
|
||||
};
|
||||
},
|
||||
|
||||
mounted() {
|
||||
window.dlg2 = this
|
||||
this.tableData = [
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
methods: {
|
||||
toggleNav(n) {
|
||||
this.nav = n;
|
||||
},
|
||||
showDialog() {
|
||||
this.show = true
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.mytable {
|
||||
/deep/ th .cell {
|
||||
color: aquamarine;
|
||||
}
|
||||
}
|
||||
|
||||
.warning-info-title {
|
||||
.nav-item {
|
||||
color: #fff;
|
||||
|
||||
&.active {
|
||||
color: #6de9f7;
|
||||
}
|
||||
}
|
||||
}</style>
|
|
@ -0,0 +1,98 @@
|
|||
<template>
|
||||
<MyDialog v-if="show" v-model="show" width="880px" ref="dlg">
|
||||
<template slot="title">
|
||||
<div class="warning-info-title" style="padding-left: 20px;">
|
||||
<div :class="nav == 0 ? 'active' : ''" class="nav-item" @click="toggleNav(0)">安全管理</div>
|
||||
<div :class="nav == 1 ? 'active' : ''" class="nav-item" @click="toggleNav(1)">质量管理</div>
|
||||
</div>
|
||||
</template>
|
||||
<el-table v-if="nav == 0" :data="tableData" class="mytable" height="500" style="width: 100%;background: transparent;"
|
||||
ref="fbsubordinateUnit">
|
||||
|
||||
<el-table-column prop="prj" label="项目名称"> </el-table-column>
|
||||
<el-table-column prop="node" label="节点名称" width="150" class-name="text-left">
|
||||
<template slot-scope="scope">
|
||||
<span style="color:#01A9FF;font-size: 12px;">{{ scope.row.node }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="days" label="逾期天数">
|
||||
<template slot-scope="scope">
|
||||
<span style="color:red">{{ scope.row.days }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="date" label="计划完成时间">
|
||||
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<el-table v-else :data="tableData" class="mytable" style="width: 100%;background: transparent;"
|
||||
ref="fbsubordinateUnit">
|
||||
|
||||
<el-table-column prop="prj" label="项目名称2"> </el-table-column>
|
||||
<el-table-column prop="node" label="节点名称2" width="150" class-name="text-left">
|
||||
<template slot-scope="scope">
|
||||
<span style="color:#01A9FF;font-size: 12px;">{{ scope.row.node }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="days" label="逾期天数2">
|
||||
<template slot-scope="scope">
|
||||
<span style="color:red">{{ scope.row.days }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="date" label="计划完成时间2">
|
||||
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
</MyDialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import '@/components/module/module-one-1-1'
|
||||
import MyDialog from '../components/MyDialog'
|
||||
export default {
|
||||
components: {
|
||||
MyDialog
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
nav: 0,
|
||||
show: false,
|
||||
tableData: []
|
||||
};
|
||||
},
|
||||
|
||||
mounted() {
|
||||
window.dlg2 = this
|
||||
this.tableData = [
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
methods: {
|
||||
toggleNav(n) {
|
||||
this.nav = n;
|
||||
},
|
||||
showDialog() {
|
||||
this.show = true
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.mytable {
|
||||
/deep/ th .cell {
|
||||
color: aquamarine;
|
||||
}
|
||||
}
|
||||
|
||||
.warning-info-title {
|
||||
.nav-item {
|
||||
color: #fff;
|
||||
|
||||
&.active {
|
||||
color: #6de9f7;
|
||||
}
|
||||
}
|
||||
}</style>
|
Loading…
Reference in New Issue