From a4d045f42edf414f7bcca63d85c2830441dcb35b Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 14 Jun 2022 00:08:21 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PdfPreview/view.vue | 5 +++-- src/views/portal/case/Detail.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/PdfPreview/view.vue b/src/components/PdfPreview/view.vue index 26ad41cb..8154484e 100644 --- a/src/components/PdfPreview/view.vue +++ b/src/components/PdfPreview/view.vue @@ -162,10 +162,11 @@ export default { let innerHeight = document.querySelector('#pdf-perView').clientHeight let outerHeight = document.documentElement.clientHeight let scrollTop = document.documentElement.scrollTop - if(this.isscroll){ + let $this=this; + if(this.isscroll){ this.showPages++; this.moreState = 2; - this.debounce(this.loadInitPdf(),5000); + this.debounce(this.loadInitPdf($this.filePath),5000); } if(this.pdfpage >= this.totalPages){ this.isscroll = false; diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index 96c2f8c6..194d5a3d 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -535,7 +535,7 @@ export default { } .jianjie { // margin: 15px 0; - background-color: #fff; + background-color: #f5f7fa; min-height: 300px; padding: 0px 0px 10px 0px; .content { From 4fb5e32401d6ae656861ad48cfd62c1d956cb548 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Tue, 14 Jun 2022 11:00:02 +0800 Subject: [PATCH 2/4] pdf --- src/components/PdfPreview/view.vue | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/src/components/PdfPreview/view.vue b/src/components/PdfPreview/view.vue index 8154484e..36b50e21 100644 --- a/src/components/PdfPreview/view.vue +++ b/src/components/PdfPreview/view.vue @@ -64,14 +64,9 @@ export default { type: Boolean, default: false, }, - boxShow:{ - type: Boolean, - default: true, - } }, data() { return { - likeBox:false, src: "", showPages: undefined, totalPages:0, @@ -103,13 +98,6 @@ export default { this.loadInitPdf(newVal); } }, - boxShow(newVal){ - if(newVal){ - this.likeBox = true; - } else { - this.likeBox = false; - } - }, loadedRatio(newVal){ // 直接使用loadedRatio控制进度条没有加载效果 if(newVal == 1){ @@ -123,7 +111,6 @@ export default { methods: { goTop() { document.documentElement.scrollTop = 0; - this.likeBox = false; }, loadProgress(e){ console.log(e,'loadProgress'); @@ -139,7 +126,6 @@ export default { this.showPages++; } this.isscroll = true; - this.likeBox = true; }, //加载页面 loadInitPdf(url) { @@ -164,16 +150,18 @@ export default { let scrollTop = document.documentElement.scrollTop let $this=this; if(this.isscroll){ - this.showPages++; - this.moreState = 2; - this.debounce(this.loadInitPdf($this.filePath),5000); + this.showPages++ + this.moreState = 2; + // this.debounce(this.loadInitPdf($this.filePath),5000); + // this.debounce(,200000); } if(this.pdfpage >= this.totalPages){ this.isscroll = false; this.moreState = 3; } - if(this.pdfpage < 4){ - this.likeBox = false; + if(this.showPages >= this.totalPages){ + this.isscroll = false; + this.moreState = 3; } // if(scrollTop > 400) { // document.querySelector('#articleAnking').style.cssText = "position: fixed;top: 0;width:242.5px"; @@ -181,8 +169,6 @@ export default { // document.querySelector('#articleAnking').style.cssText = "position: static"; // } }, - - debounce(func, wait) {// 非立即执行 let timeout; return function () { From 787a75031a2de4adbe1264672f486135f4f9c9ff Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Tue, 14 Jun 2022 11:23:00 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/AddAudiences.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/manage/AddAudiences.vue b/src/views/manage/AddAudiences.vue index 5fa0c21c..25870f2a 100644 --- a/src/views/manage/AddAudiences.vue +++ b/src/views/manage/AddAudiences.vue @@ -11,7 +11,7 @@

人员信息

- + 搜索 重置 添加 @@ -168,7 +168,7 @@ usergroupApi.detail(that.$route.query.id).then((res) => { if (res.status == 200) { that.form = res.result; - that.oldUserGroupItems = JSON.parse(JSON.stringify( res.result.userGroupItems )); + // that.oldUserGroupItems = JSON.parse(JSON.stringify( res.result.userGroupItems )); that.tableData = res.result.userGroupItems; that.queryTableData(); } @@ -275,8 +275,10 @@ this.addUserShow = false; }, tableDataReset(){ - this.tableData = JSON.parse(JSON.stringify( this.oldUserGroupItems )); + this.searchValue = ''; this.queryTableData(); + // this.tableData = JSON.parse(JSON.stringify( this.oldUserGroupItems )); + // this.queryTableData(); }, queryTableData(){ if(this.searchValue){ From 79458b36592867566ebbf36a9d1b88697ba853aa Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 14 Jun 2022 11:23:41 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=95=99=E5=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserCenter/menu.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue index 8ce03334..33d65541 100644 --- a/src/components/UserCenter/menu.vue +++ b/src/components/UserCenter/menu.vue @@ -74,10 +74,10 @@ - + 案例管理