From 7bfced2126c55afded3e765b3528df6ded70b45d Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Mon, 28 Aug 2023 10:25:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=B5=84=E6=96=99=EF=BC=8C?= =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E6=96=87=E6=A1=A3=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/documentView/docmentList.vue | 80 +++++++++++++++++--------- src/views/index/driverManage.vue | 4 +- 2 files changed, 55 insertions(+), 29 deletions(-) diff --git a/src/views/documentView/docmentList.vue b/src/views/documentView/docmentList.vue index 8be3280c..a61ddd68 100644 --- a/src/views/documentView/docmentList.vue +++ b/src/views/documentView/docmentList.vue @@ -2,7 +2,6 @@
-
+ +
{{ item.name }}
-
-
-
-
会记回家和
-
2023-08-24 13:14:00
-
-
- -
-
111
-
-
培训材料
-
- 未处理 - 阅读8 -
-
+
+
+
+
{{ item.pushUser }}
+
{{ item.pushTime }}
+
+
+ +
{{item.name}}
+
+
{{ item.synopsis }}
+
+
{{ item.docType?.label }}
+
+ {{ item.listShowButton==null ? '已处理' : '未处理' }} + 阅读 {{item.readCount}}
+
+
+
+
+
@@ -59,7 +68,9 @@ export default { pageNum:1, pageSize:10, keyword:'', - trainingType:1 + trainingType:1, + show:false, + showEmpty:false } }, mounted() { @@ -68,10 +79,9 @@ export default { methods:{ async changeTab(index) { this.activeIndex = index - // this.total = 0; this.pageNum = 1 this.pageList = []; - if(this.trainingType === 1){ + if(this.activeIndex === 0){ this.trainingType =1 }else{ this.trainingType=2 @@ -83,11 +93,18 @@ export default { pageNum:this.pageNum, pageSize:this.pageSize, docType:2, - trainingType:this.trainingType + trainingType:this.trainingType, + keyword:this.keyword || '' }) this.pageList=res.data; - console.log(res) - + if(res.data.length === 0){ + this.showEmpty = true + }else { + this.showEmpty = false + } }, + initShow(){ + this.keyword= '', + this.getList() } } } @@ -164,11 +181,20 @@ export default { .imgWrap{ width: 100%; height: 200px; + position: relative; //background-color: #6C81CD; img{ width: 100%; height: 200px; } + .name{ + position: absolute; + left: 30px; + bottom: 30px; + font-size: 14px; + font-weight: 500; + color: #FFFFFF; + } } .left{ color: red; diff --git a/src/views/index/driverManage.vue b/src/views/index/driverManage.vue index a7765e15..1513fa2a 100644 --- a/src/views/index/driverManage.vue +++ b/src/views/index/driverManage.vue @@ -73,7 +73,7 @@ export default { mounted() { const urlParams = new URLSearchParams(window.location.search); this.supplierType = urlParams.get('supplierType'); - this.$toast('页面supplierType:'+this.supplierType) + // this.$toast('页面supplierType:'+this.supplierType) this.getDriverList() }, methods:{ @@ -85,7 +85,7 @@ export default { }, 1000); }, addDriver(){ - this.$toast('supplierType的值为:'+this.supplierType) + // this.$toast('supplierType的值为:'+this.supplierType) if(this.supplierType == 1){ this.$toast("无权添加") }else{