diff --git a/src/assets/delKey.png b/src/assets/delKey.png new file mode 100644 index 00000000..b2a4e3ee Binary files /dev/null and b/src/assets/delKey.png differ diff --git a/src/views/documentView/docmentList.vue b/src/views/documentView/docmentList.vue index 67aca40e..8be3280c 100644 --- a/src/views/documentView/docmentList.vue +++ b/src/views/documentView/docmentList.vue @@ -24,7 +24,7 @@
-
+
会记回家和
2023-08-24 13:14:00
@@ -47,6 +47,7 @@ diff --git a/src/views/documentView/trainDocment.vue b/src/views/documentView/trainDocment.vue index 6690e35f..6da541aa 100644 --- a/src/views/documentView/trainDocment.vue +++ b/src/views/documentView/trainDocment.vue @@ -2,7 +2,6 @@
-
-
+ +
+
-
会记回家和
-
2023-08-24 13:14:00
+
{{ item.pushUser }}
+
{{ item.pushTime }}
- + +
{{item.name}}
-
111
+
{{ item.synopsis }}
-
培训材料
+
{{ item.docType?.label }}
- 未处理 - 阅读8 + {{ item.listShowButton==null ? '已处理' : '未处理' }} + 阅读 {{item.readCount}}
+
+ +
@@ -44,26 +53,45 @@ import {myMixins} from "@/utils/myMixins" import {pageList} from "@/api/mine" export default { name: "trainDocment", + computed: { + }, mixins:[myMixins], data(){ return{ pageNum:1, - pageSize:10 + pageSize:10, + pageList:[], + keyword:'', + show:false, + showEmpty:false } }, mounted() { - this.getList() + this.getList(); }, methods:{ + // handleEnterKey() { + // this.getList() + // }, async getList(){ let res= await pageList({ pageNum:this.pageNum, pageSize:this.pageSize, - userId:54585, - docType:2 + docType:1, + keyword:this.keyword || '' }) + this.pageList=res.data; + if(res.data.length === 0){ + this.showEmpty = true + }else { + this.showEmpty = false + } console.log(res) + }, + initShow(){ + this.keyword= '', + this.getList() } } } @@ -92,7 +120,7 @@ export default { width: 100%; box-sizing: border-box; .itemWrap{ - margin-top: 56px; + margin-bottom: 16px; @include wh(100%, 300px); background: #FFFFFF; box-shadow: 0px 2px 10px 0px rgba(216, 216, 216, 0.5); @@ -111,11 +139,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;