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

@ -153,7 +153,7 @@
</el-dialog>
<!-- 上报企业统计 -->
<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="originalName" >
<template slot-scope="scope">
@ -161,6 +161,16 @@
</template>
</el-table-column>
</el-table>
<el-pagination
small
:page.sync="pageNum"
:limit.sync="pageSize"
@pagination="getList1"
:hide-on-single-page="true"
:total="total1">
</el-pagination>
</el-dialog>
</div>
</template>
@ -232,7 +242,11 @@ export default {
form: {},
//
rules: {
}
},
//
total1:2,
pageNum: 1,
pageSize: 6,
};
},
created() {
@ -240,6 +254,11 @@ export default {
this.getListAllDept();
},
methods: {
//
dload(row){
if(!row.fileName)return
this.$download.saveAs(`${process.env.VUE_APP_BASE_API}${row.fileName}`,`${row.originalName}`)
},
/** 查询内部公告列表 */
getList() {
this.loading = true;
@ -384,8 +403,20 @@ export default {
this.totalFileList = response.total;
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>

Loading…
Cancel
Save