vue2-client 1.5.7 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<a-list class="tab-pane"></a-list>
|
|
29
29
|
</a-tab-pane>
|
|
30
30
|
<a-tab-pane key="3" tab="待办">
|
|
31
|
-
<a-list :data-source="backlog" class="tab-pane" item-layout="horizontal">
|
|
31
|
+
<a-list :data-source="backlog" class="tab-pane" item-layout="horizontal" :pagination="pagination">
|
|
32
32
|
<a-list-item slot="renderItem" slot-scope="item">
|
|
33
33
|
<a v-if="item.type==='制度待确认'" slot="actions" @click="confirm_institution(item)">查看</a>
|
|
34
34
|
<a-list-item-meta :description="item.description" :title="item.title"/>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<script>
|
|
51
51
|
import { post } from '@vue2-client/services/api'
|
|
52
52
|
import InstitutionDetail from './InstitutionDetail'
|
|
53
|
-
import ellipsis from '
|
|
53
|
+
import ellipsis from '@vue2-client/components/Ellipsis'
|
|
54
54
|
|
|
55
55
|
export default {
|
|
56
56
|
name: 'HeaderNotice',
|
|
@@ -63,6 +63,12 @@ export default {
|
|
|
63
63
|
institution: undefined,
|
|
64
64
|
affirmInstitution: undefined,
|
|
65
65
|
backlog: [],
|
|
66
|
+
pagination: {
|
|
67
|
+
onChange: page => {
|
|
68
|
+
console.log(page)
|
|
69
|
+
},
|
|
70
|
+
pageSize: 5
|
|
71
|
+
},
|
|
66
72
|
activeKey: '1'
|
|
67
73
|
}
|
|
68
74
|
},
|
|
@@ -88,7 +94,7 @@ export default {
|
|
|
88
94
|
key,
|
|
89
95
|
message: `您有${this.backlog.length}条待办需要确认`,
|
|
90
96
|
top: '50px',
|
|
91
|
-
description: <ellipsis length="200"
|
|
97
|
+
description: <ellipsis length="200">{ this.backlog.map((item, index) => index + 1 + '、' + item.title).join(';') }</ellipsis>,
|
|
92
98
|
icon: <a-icon type="container" style="color: #f5222d"/>,
|
|
93
99
|
btn: h => {
|
|
94
100
|
return h(
|