diff --git a/public/index.html b/public/index.html index d6ffb57..2b98980 100644 --- a/public/index.html +++ b/public/index.html @@ -10,7 +10,7 @@ - + @@ -21,9 +21,9 @@ - + - + diff --git a/src/api/workFile/index.js b/src/api/workFile/index.js index 8cef02a..e4cfad6 100644 --- a/src/api/workFile/index.js +++ b/src/api/workFile/index.js @@ -7,6 +7,14 @@ const getWorkFileList=(fileBelong,deptId)=> { }) } +const workFileRead=(fileId)=> { + return request({ + url: `bgscreen/workfile/workFileRead?fileId=${fileId}`, + method: 'get' + }) +} + export default{ - getWorkFileList + getWorkFileList, + workFileRead } \ No newline at end of file diff --git a/src/pages/projectSafety.vue b/src/pages/projectSafety.vue index a58d820..99786c0 100644 --- a/src/pages/projectSafety.vue +++ b/src/pages/projectSafety.vue @@ -174,6 +174,7 @@
{{ it.fileName }}
{{ it.createTime }}
+
{{it.readNum}}
查看详情 @@ -627,6 +628,9 @@ export default { return url; }, downloadFile(it) { + this.$api.workFile.workFileRead(it.id).then(d => { + it.readNum=d.data.readNum; + }) if (it && it.filePath) { window.open('/jhapi' + it.filePath); } @@ -844,4 +848,8 @@ export default { overflow: hidden; margin: 10px 5px 5px 5px; } + .file-time{ + float:left; + width:50%; + } } \ No newline at end of file