update code

dev-login
haha 2023-09-15 00:23:04 +08:00
parent a650b7abed
commit a5e7fdf75a
5 changed files with 219 additions and 6 deletions

View File

@ -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'
})
}

View File

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

View File

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

View File

@ -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>

View File

@ -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>