|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<el-drawer title="详情" :visible.sync="isFileInfoPanlShow" :with-header="true">
|
|
|
<p class="title">{{currentSelectFile.siteid}}</p>
|
|
|
- <p class="people">浏览数:{{currentSelectFile.readcount}}</p>
|
|
|
+ <p class="people">浏览数:{{count}}</p>
|
|
|
<file-item :itemStyle="itemStyle"
|
|
|
:fileData="[currentSelectFile]"
|
|
|
:isDownLoad="true">
|
|
|
@@ -25,8 +25,25 @@ export default {
|
|
|
title:16,
|
|
|
descript: 14
|
|
|
},
|
|
|
+ count:0
|
|
|
};
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ isFileInfoPanlShow: {
|
|
|
+ async handler (newvalue,oldvalue) {
|
|
|
+ if (newvalue) {
|
|
|
+ let res = await this.$api.requested({
|
|
|
+ "classname": "saletool.salematerial.salematerial",
|
|
|
+ "method": "selectDetail",
|
|
|
+ "content": {
|
|
|
+ "attachmentid": this.currentSelectFile.attachmentid
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.count = res.data.readcount
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
components: {
|
|
|
FileItem
|
|
|
},
|
|
|
@@ -38,7 +55,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {},
|
|
|
- watch: {},
|
|
|
created() {
|
|
|
|
|
|
},
|