main
MY-SH\lenovo 12 months ago
parent 4fa04e0324
commit 234aeaa283

@ -153,7 +153,7 @@
</el-dialog> </el-dialog>
<!-- 上报企业统计 --> <!-- 上报企业统计 -->
<el-dialog :title="title" :visible.sync="openFile" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="openFile" width="500px" append-to-body>
<el-table v-loading="loading" :data="ehsNoticeMessageFileList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="ehsNoticeMessageFileList" @selection-change="handleSelectionChange" @cell-click="dload">
<el-table-column label="部门名称" align="center" prop="deptName" /> <el-table-column label="部门名称" align="center" prop="deptName" />
<el-table-column label="上报情况" align="center" prop="originalName" > <el-table-column label="上报情况" align="center" prop="originalName" >
<template slot-scope="scope"> <template slot-scope="scope">
@ -161,6 +161,16 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination
small
:page.sync="pageNum"
:limit.sync="pageSize"
@pagination="getList1"
:hide-on-single-page="true"
:total="total1">
</el-pagination>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -232,7 +242,11 @@ export default {
form: {}, form: {},
// //
rules: { rules: {
} },
//
total1:2,
pageNum: 1,
pageSize: 6,
}; };
}, },
created() { created() {
@ -240,6 +254,11 @@ export default {
this.getListAllDept(); this.getListAllDept();
}, },
methods: { methods: {
//
dload(row){
if(!row.fileName)return
this.$download.saveAs(`${process.env.VUE_APP_BASE_API}${row.fileName}`,`${row.originalName}`)
},
/** 查询内部公告列表 */ /** 查询内部公告列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -384,8 +403,20 @@ export default {
this.totalFileList = response.total; this.totalFileList = response.total;
this.loading = false; this.loading = false;
}) })
} },
//
handleListFile(row){
this.loading = true;
this.openFile = true;
let data = { pageNum : this.pageNum, pageSize: this.pageSize, "noticeMessageId":row.noticeMessageId}
listFileEhsNoticeMessageFile(data).then(response => {
this.ehsNoticeMessageFileList = response.rows;
this.totalFileList = response.total;
this.total = response.total;
this.loading = false;
})
},
} }
}; };
</script> </script>

Loading…
Cancel
Save