0f085b39194988c0e27888a8be77566119959130.svn-base 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <div>
  3. <a-card :bordered="false">
  4. <a-row>
  5. <a-col :sm="8" :xs="24">
  6. <head-info title="我的待办" content="8个任务" :bordered="true"/>
  7. </a-col>
  8. <a-col :sm="8" :xs="24">
  9. <head-info title="本周任务平均处理时间" content="32分钟" :bordered="true"/>
  10. </a-col>
  11. <a-col :sm="8" :xs="24">
  12. <head-info title="本周完成任务数" content="24个"/>
  13. </a-col>
  14. </a-row>
  15. </a-card>
  16. <a-card
  17. style="margin-top: 24px"
  18. :bordered="false"
  19. title="标准列表">
  20. <div slot="extra">
  21. <a-radio-group>
  22. <a-radio-button>全部</a-radio-button>
  23. <a-radio-button>进行中</a-radio-button>
  24. <a-radio-button>等待中</a-radio-button>
  25. </a-radio-group>
  26. <a-input-search style="margin-left: 16px; width: 272px;" />
  27. </div>
  28. <div class="operate">
  29. <a-button type="dashed" style="width: 100%" icon="plus">添加</a-button>
  30. </div>
  31. <a-list size="large" :pagination="{showSizeChanger: true, showQuickJumper: true, pageSize: 5, total: 50}">
  32. <a-list-item :key="index" v-for="(item, index) in data">
  33. <a-list-item-meta :description="item.description">
  34. <a-avatar slot="avatar" size="large" shape="square" :src="item.avatar"/>
  35. <a slot="title">{{ item.title }}</a>
  36. </a-list-item-meta>
  37. <div slot="actions">
  38. <a>编辑</a>
  39. </div>
  40. <div slot="actions">
  41. <a-dropdown>
  42. <a-menu slot="overlay">
  43. <a-menu-item><a>编辑</a></a-menu-item>
  44. <a-menu-item><a>删除</a></a-menu-item>
  45. </a-menu>
  46. <a>更多<a-icon type="down"/></a>
  47. </a-dropdown>
  48. </div>
  49. <div class="list-content">
  50. <div class="list-content-item">
  51. <span>Owner</span>
  52. <p>{{ item.owner }}</p>
  53. </div>
  54. <div class="list-content-item">
  55. <span>开始时间</span>
  56. <p>{{ item.startAt }}</p>
  57. </div>
  58. <div class="list-content-item">
  59. <a-progress :percent="item.progress.value" :status="!item.progress.status ? null : item.progress.status" style="width: 180px" />
  60. </div>
  61. </div>
  62. </a-list-item>
  63. </a-list>
  64. </a-card>
  65. </div>
  66. </template>
  67. <script>
  68. import HeadInfo from '@/components/tools/HeadInfo'
  69. const data = []
  70. data.push({
  71. title: 'Alipay',
  72. avatar: 'https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png',
  73. description: '那是一种内在的东西, 他们到达不了,也无法触及的',
  74. owner: '付晓晓',
  75. startAt: '2018-07-26 22:44',
  76. progress: {
  77. value: 90
  78. }
  79. })
  80. data.push({
  81. title: 'Angular',
  82. avatar: 'https://gw.alipayobjects.com/zos/rmsportal/zOsKZmFRdUtvpqCImOVY.png',
  83. description: '希望是一个好东西,也许是最好的,好东西是不会消亡的',
  84. owner: '曲丽丽',
  85. startAt: '2018-07-26 22:44',
  86. progress: {
  87. value: 54
  88. }
  89. })
  90. data.push({
  91. title: 'Ant Design',
  92. avatar: 'https://gw.alipayobjects.com/zos/rmsportal/dURIMkkrRFpPgTuzkwnB.png',
  93. description: '生命就像一盒巧克力,结果往往出人意料',
  94. owner: '林东东',
  95. startAt: '2018-07-26 22:44',
  96. progress: {
  97. value: 66
  98. }
  99. })
  100. data.push({
  101. title: 'Ant Design Pro',
  102. avatar: 'https://gw.alipayobjects.com/zos/rmsportal/sfjbOqnsXXJgNCjCzDBL.png',
  103. description: '城镇中有那么多的酒馆,她却偏偏走进了我的酒馆',
  104. owner: '周星星',
  105. startAt: '2018-07-26 22:44',
  106. progress: {
  107. value: 30
  108. }
  109. })
  110. data.push({
  111. title: 'Bootstrap',
  112. avatar: 'https://gw.alipayobjects.com/zos/rmsportal/siCrBXXhmvTQGWPNLBow.png',
  113. description: '那时候我只会想自己想要什么,从不想自己拥有什么',
  114. owner: '吴加好',
  115. startAt: '2018-07-26 22:44',
  116. progress: {
  117. status: 'exception',
  118. value: 100
  119. }
  120. })
  121. export default {
  122. name: "StandardList",
  123. components: {
  124. HeadInfo
  125. },
  126. data () {
  127. return {
  128. data
  129. }
  130. }
  131. }
  132. </script>
  133. <style lang="less" scoped>
  134. .ant-avatar-lg {
  135. width: 48px;
  136. height: 48px;
  137. line-height: 48px;
  138. }
  139. .list-content-item {
  140. color: rgba(0, 0, 0, .45);
  141. display: inline-block;
  142. vertical-align: middle;
  143. font-size: 14px;
  144. margin-left: 40px;
  145. span {
  146. line-height: 20px;
  147. }
  148. p {
  149. margin-top: 4px;
  150. margin-bottom: 0;
  151. line-height: 22px;
  152. }
  153. }
  154. </style>