|
|
@@ -166,21 +166,24 @@ export default {
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
- this.$api.requested({
|
|
|
- "classname": this.type == 'agency' ? "webmanage.saletool.sharematerial.statistics.agent" : "webmanage.saletool.sharematerial.statistics.team",
|
|
|
- "method": "getData",
|
|
|
- "content": {
|
|
|
- "sat_sharematerialid": this.$route.query.id
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- if (res.msg != '成功') return this.$message.error(res.data);
|
|
|
- const data = [
|
|
|
- { type: '未浏览', value: res.data.unReadNum },
|
|
|
- { type: '已浏览', value: res.data.readNum },
|
|
|
- ];
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$api.requested({
|
|
|
+ "classname": this.type == 'agency' ? "webmanage.saletool.sharematerial.statistics.agent" : "webmanage.saletool.sharematerial.statistics.team",
|
|
|
+ "method": "getData",
|
|
|
+ "content": {
|
|
|
+ "sat_sharematerialid": this.$route.query.id
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ if (res.msg != '成功') return this.$message.error(res.data);
|
|
|
+ const data = [
|
|
|
+ { type: '未浏览', value: res.data.unReadNum },
|
|
|
+ { type: '已浏览', value: res.data.readNum },
|
|
|
+ ];
|
|
|
|
|
|
- this.renderer(data);
|
|
|
- })
|
|
|
+ this.renderer(data);
|
|
|
+ })
|
|
|
+ },1000)
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|