From d235d236e3d737c827e9b7eee34be68df5e4433f Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Wed, 10 May 2023 16:32:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=9D=83=E9=99=90=20=E4=BF=AE=E6=94=B9=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Report/ReportList.vue | 201 ++++++++++++++------------------ 1 file changed, 86 insertions(+), 115 deletions(-) diff --git a/src/views/Report/ReportList.vue b/src/views/Report/ReportList.vue index de5b8a3..87b3f14 100644 --- a/src/views/Report/ReportList.vue +++ b/src/views/Report/ReportList.vue @@ -32,78 +32,16 @@ 查询 重置 - - - - - - 权限申请 + 申请权限
- 时间 - 点击量 - 下载量 + 时间 + 点击量 + 下载量
@@ -151,33 +89,6 @@ {{ row.name }} - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -196,12 +107,12 @@ - + @@ -250,6 +161,9 @@ export default { name: 'ReportList', data() { return { + isShowbg1:true, + isShowbg2:false, + isShowbg3:false, value:3.7, watermarkText: '', // 水印 fullscreen: false, @@ -259,6 +173,9 @@ export default { name: '', pageNo: 1, pageSize: 10, + orderByClicks:0, + orderByDownload:0, + orderByTime:1 }, total: 0, tableData: [], @@ -302,6 +219,28 @@ export default { } }, methods: { + clickBtn(type){ + for(let i= 1;i<4;i++){ + this['isShowbg'+i] = false + } + this['isShowbg'+type] = true + if(type==1){ + this.q.orderByTime=1 + this.q.orderByClicks=0 + this.q.orderByDownload=0 + + }else if(type==2){ + this.q.orderByClicks=1 + this.q.orderByTime=0 + this.q.orderByDownload=0 + + }else{ + this.q.orderByDownload=1 + this.q.orderByClicks=0 + this.q.orderByTime=0 + } + this.reportList() + }, getKeyContent(list) { if (list) { let keyContent = [] @@ -341,26 +280,34 @@ export default { return item.id }) }, - permissionApp() { - if(this.checkList.length <1){ - this.$message.warning("至少选择一条报告进行权限申请") - return - } - // 有预览权限的时候是否还让继续申请 - let temp=this.checkList.filter(item =>{ - if(+item.power == 1 || +item.power == 2){ - return item.name + permissionApp(row) { + if(row){ + this.$router.push({ + path: '/permission/launch', + query: {id: 'AEHJB8YNJ3', isBegin: 1,ids:row.id} + }) + }else{ + if(this.checkList.length <1){ + this.$message.warning("至少选择一条报告进行权限申请") + return } - }) - if(temp.length>0) { - this.$message.warning("当前选择的"+temp.toString()+"已经有权限,无须申请!") - return + // 有预览权限的时候是否还让继续申请 + let temp=this.checkList.filter(item =>{ + if(+item.power == 1 || +item.power == 2){ + return item.name + } + }) + if(temp.length>0) { + this.$message.warning("当前选择的"+temp.toString()+"已经有权限,无须申请!") + return + } + + this.$router.push({ + path: '/permission/launch', + query: {id: 'AEHJB8YNJ3', isBegin: 1,ids:this.checkIds.join(',')} + }) } - this.$router.push({ - path: '/permission/launch', - query: {id: 'AEHJB8YNJ3', isBegin: 1,ids:this.checkIds.join(',')} - }) }, init() { this.getTreeLabel() @@ -462,7 +409,10 @@ export default { labelTwoId: [], labelThreeId: [], pageNo: 1, - pageSize: 10 + pageSize: 10, + orderByTime:1, + orderByDownload:0, + orderByClicks:0 } this.total = 0 this.tableData = [] @@ -550,10 +500,31 @@ export default { } .tag-btn { + .el-button + .el-button { + margin-left: 0px; + + + } padding: 18px 13px 11px; .tag-right{ float: right; + ::v-deep .el-button{ + border: 1px solid #3D87CC; + border-radius: 0; + color: #3D87CC; + background-color: #ecf5ff; + } + .clickNum{ + border: none; + border-top: 1px solid #3D87CC ; + border-bottom: 1px solid #3D87CC; + } + + } + .checkClass{ + background-color: rgba(64, 158, 255, 1) !important; + color: #fff !important; } }