platForm.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. <template>
  2. <div class="workBench">
  3. <div class="topBody">
  4. <p class="breadcrumb">工作台</p>
  5. <div class="bottom">
  6. <div class="touxiang">
  7. <img src="@/assets/touxiang.png" alt="">
  8. </div>
  9. <div class='tip'>
  10. <p class="greet">早安,{{userInfo.username}},祝你开心每一天!</p>
  11. <p class="descPosition">
  12. <span>运营经理</span>
  13. <a-divider type="vertical" />
  14. <span>华北地区-头条事业部</span>
  15. </p>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="section">
  20. <div class="sectionBody">
  21. <div class="sectionLeftBox">
  22. <div class="leftTop">
  23. <div class="sectionHead">
  24. 我的工作内容
  25. </div>
  26. <div class="zhanshiBox">
  27. <div class="item" @click="goMaterialList(1)">
  28. <div class="title">
  29. <img src="@/assets/work.png" alt="" class="iconImg">
  30. <span>指派给我的物料</span>
  31. </div>
  32. <div class="itemBody">
  33. <p class="count">60 <span>个</span></p>
  34. </div>
  35. </div>
  36. <div class="item" @click="goMaterialList(2)">
  37. <div class="title">
  38. <img src="@/assets/work.png" alt="" class="iconImg">
  39. <span>被驳回的物料</span>
  40. </div>
  41. <div class="itemBody">
  42. <p class="count">60 <span>个</span></p>
  43. </div>
  44. </div>
  45. <div class="item" @click="goMaterialList(3)">
  46. <div class="title">
  47. <img src="@/assets/work.png" alt="" class="iconImg">
  48. <span>已完成的物料</span>
  49. </div>
  50. <div class="itemBody">
  51. <p class="count">60 <span>个</span></p>
  52. </div>
  53. </div>
  54. <div class="item" @click="goMaterialList(4)">
  55. <div class="title">
  56. <img src="@/assets/work.png" alt="" class="iconImg">
  57. <span>全部物料</span>
  58. </div>
  59. <div class="itemBody">
  60. <p class="count" >60 <span>个</span></p>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="leftBottom">
  66. <div class="sectionHead">
  67. 订单进度
  68. <a-button type="link" class="allOrder" @click="allOrder">全部订单</a-button>
  69. </div>
  70. <div class="orderProgress">
  71. <ul class="orderProgress-list">
  72. <li v-for="(item,index) in orderProgressList" :key="index" >
  73. <router-link to="/workBench/orderDetail" style="display:block;width:100%">
  74. <div style="display:flex;align-items: center;" class="orderProgress-list-item">
  75. <div style="display:flex;width:80%; align-items: center;" >
  76. <span class="item-icon"></span>
  77. <div class="content">
  78. <p class="name">我是一个任务名称嗷嗷嗷啊</p>
  79. <p class="desc">这是对这个任务的简介,所以得好好寻…</p>
  80. </div>
  81. </div>
  82. <div class="progress">
  83. <a-progress type="circle" :percent="75" :width='30' :showInfo='false' :strokeWidth='10' />
  84. <span style="margin-left:15px">75%</span>
  85. </div>
  86. </div>
  87. </router-link>
  88. </li>
  89. </ul>
  90. <!-- hideOnSinglePage -->
  91. <a-pagination size="small" :total="totalPage" :current='currentPage' class="fenye" :change='pageChange' show-size-changer show-quick-jumper hideOnSinglePage />
  92. </div>
  93. </div>
  94. </div>
  95. <div class="sectionRightBox">
  96. <div class="rightTop">
  97. <div class="sectionHead">
  98. 操作记录
  99. </div>
  100. <div class="optionRecordList">
  101. <a-timeline>
  102. <a-timeline-item color='#F0F2F5' style="height:30px">
  103. <p style="margin-bottom:0px">
  104. <span class="content-item">Create a services site 2015-09-01</span>
  105. <span class="time">1分钟前</span>
  106. </p>
  107. </a-timeline-item>
  108. <a-timeline-item color='#F0F2F5' style="height:30px">
  109. <p style="margin-bottom:0px">
  110. <span class="content-item">Create a services site 2015-09-01</span>
  111. <span class="time">1分钟前</span>
  112. </p>
  113. </a-timeline-item>
  114. <a-timeline-item color='#F0F2F5' style="height:30px">
  115. <p style="margin-bottom:0px">
  116. <span class="content-item">Create a services site 2015-09-01</span>
  117. <span class="time">1分钟前</span>
  118. </p>
  119. </a-timeline-item>
  120. <a-timeline-item color='#F0F2F5' style="height:30px">
  121. <p style="margin-bottom:0px">
  122. <span class="content-item">Create a services site 2015-09-01</span>
  123. <span class="time">1分钟前</span>
  124. </p>
  125. </a-timeline-item>
  126. </a-timeline>
  127. </div>
  128. </div>
  129. <div class="rightBottom">
  130. <div class="sectionHead">
  131. 本周项目燃尽图
  132. </div>
  133. <div class="burnDown">
  134. <a-progress type="circle" :percent="75" :width='150' :strokeWidth='6' />
  135. <div class="tip">
  136. <p class="done">
  137. <span class="item-icon"></span>
  138. <span>已完成订单:{{}}个</span>
  139. </p>
  140. <p class="all">
  141. <span class="item-icon"></span>
  142. <span>未完成订单:{{}}个</span>
  143. </p>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. </template>
  152. <script>
  153. import moment from 'moment';
  154. import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
  155. export default {
  156. name:'design-platform',
  157. data() {
  158. return {
  159. touxiang:'@/assets/touxiang.png',
  160. // 订单进度
  161. orderProgressList:[
  162. {},
  163. {},
  164. {}
  165. ],
  166. // 操作记录
  167. optionRecord:[],
  168. // 本周项目燃尽图
  169. burnDownChart:[],
  170. // 分页参数
  171. totalPage:0,
  172. currentPage:1,
  173. userInfo:{},
  174. roleCode:''
  175. }
  176. },
  177. methods: {
  178. goOrderList(val){
  179. console.log(val);
  180. // console.log(this.$parent)
  181. this.$parent.currentTabComponent='orderList';
  182. this.$parent.orderStatus=val
  183. },
  184. goMaterialList(val){
  185. this.$parent.currentTabComponent='materialList';
  186. this.$parent.materialStatus=val
  187. },
  188. // 分页页码改变
  189. pageChange(page, pageSize){
  190. },
  191. // 全部订单
  192. allOrder() {
  193. this.$router.push('/workBench/orderList')
  194. },
  195. // 发起订单
  196. sendOrder(){
  197. this.$router.push('/workBench/placeOrder')
  198. },
  199. },
  200. mounted(){
  201. let userInfo=localStorage.getItem('pro__Login_Userinfo');
  202. if(userInfo){
  203. this.userInfo=JSON.parse(userInfo).value
  204. }
  205. this.roleCode=localStorage.getItem('roleCode')
  206. }
  207. }
  208. </script>
  209. <style lang="scss" scoped>
  210. .workBench{
  211. ul,li{
  212. margin: 0;
  213. padding: 0;
  214. }
  215. width: 100%;
  216. .topBody{
  217. width: 100%;
  218. height: 146px;
  219. background: #FFFFFF;
  220. margin-bottom: 12px;
  221. padding: 20px;
  222. box-sizing: border-box;
  223. .breadcrumb{
  224. width: 42px;
  225. height: 22px;
  226. font-size: 12px;
  227. font-family: PingFangSC-Regular, PingFang SC;
  228. font-weight: 400;
  229. color: #000000;
  230. line-height: 22px;
  231. }
  232. .bottom{
  233. display: flex;
  234. position: relative;
  235. // padding: 20px;
  236. .touxiang{
  237. width: 72px;
  238. height: 72px;
  239. margin-right: 20px;
  240. border-radius: 50%;
  241. overflow: hidden;
  242. img{
  243. width: 100%;
  244. height: 100%;
  245. border-radius: 50%;
  246. }
  247. }
  248. .tip{
  249. .greet{
  250. height: 28px;
  251. font-size: 20px;
  252. font-family: PingFangSC-Medium, PingFang SC;
  253. font-weight: 500;
  254. color: rgba(0, 0, 0, 0.85);
  255. line-height: 28px;
  256. }
  257. .descPosition{
  258. height: 22px;
  259. font-size: 14px;
  260. font-family: PingFangSC-Regular, PingFang SC;
  261. font-weight: 400;
  262. color: rgba(0, 0, 0, 0.45);
  263. line-height: 22px;
  264. }
  265. }
  266. .mybtn{
  267. position: absolute;
  268. // top: 50%;
  269. // margin-left: -18px;
  270. right: 0;
  271. }
  272. }
  273. }
  274. .section{
  275. .sectionBody{
  276. display: flex;
  277. .sectionHead{
  278. padding: 15px 20px;
  279. // height: 24px;
  280. font-size: 16px;
  281. font-family: PingFangSC-Medium, PingFang SC;
  282. font-weight: 500;
  283. color: rgba(0, 0, 0, 0.85);
  284. line-height: 24px;
  285. border-bottom: 1px solid #E9E9E9;;
  286. position: relative;
  287. .allOrder{
  288. position: absolute;
  289. right: 5px;
  290. }
  291. }
  292. .sectionLeftBox{
  293. width: 70%;
  294. .leftTop{
  295. overflow: hidden;
  296. background: white;
  297. }
  298. .zhanshiBox{
  299. display: flex;
  300. flex-wrap: wrap;
  301. .item{
  302. width: 33.33%;
  303. // background: brown;
  304. padding: 20px ;
  305. border-right: 1px solid #E9E9E9;
  306. border-bottom: 1px solid #E9E9E9;
  307. .title{
  308. padding-bottom: 34px;
  309. color: #000000;
  310. .iconImg{
  311. width: 24px;
  312. margin-right: 8px;
  313. }
  314. }
  315. .itemBody{
  316. text-align: center;
  317. .count{
  318. font-size: 24px;
  319. font-family: PingFangSC-Medium, PingFang SC;
  320. font-weight: 500;
  321. color: #000000;
  322. line-height: 32px;
  323. cursor: pointer;
  324. span{
  325. font-size: 16px;
  326. cursor: pointer;
  327. }
  328. }
  329. .count:hover{
  330. color: #1890FF;
  331. }
  332. }
  333. }
  334. .item:nth-child(3n){
  335. border-right: 0;
  336. }
  337. }
  338. .leftBottom{
  339. margin-top: 12px;
  340. background: white;
  341. .orderProgress{
  342. padding: 0 20px;
  343. .orderProgress-list-item{
  344. padding: 10px 0;
  345. display: flex;
  346. align-items: center;
  347. border-bottom: 1px solid #E9E9E9;;
  348. justify-content:space-between;
  349. cursor: pointer;
  350. .item-icon{
  351. width: 8px;
  352. height: 8px;
  353. background: #3BA0FF;
  354. margin-right: 15px;
  355. display: inline-block;
  356. border-radius: 50%;
  357. }
  358. .content{
  359. width: 70%;
  360. overflow: hidden;
  361. font-size: 14px;
  362. font-family: PingFangSC-Regular, PingFang SC;
  363. font-weight: 400;
  364. .name{
  365. height: 22px;
  366. color: rgba(0, 0, 0, 0.65);
  367. line-height: 22px;
  368. text-overflow: ellipsis;
  369. white-space: nowrap;
  370. overflow: hidden;
  371. margin-bottom: 0px;
  372. }
  373. .desc{
  374. height: 22px;
  375. color: rgba(0, 0, 0, 0.25);
  376. line-height: 22px;
  377. text-overflow: ellipsis;
  378. white-space: nowrap;
  379. overflow: hidden;
  380. margin-bottom: 0px;
  381. }
  382. }
  383. .progress{
  384. float: right;
  385. }
  386. }
  387. .fenye{
  388. padding: 20px 0;
  389. text-align: right;
  390. }
  391. }
  392. }
  393. }
  394. .sectionRightBox{
  395. width: 29.5%;
  396. // background: white;
  397. margin-left: 12px;
  398. .rightTop{
  399. height: 370px;
  400. background: white;
  401. .optionRecordList{
  402. padding: 20px;
  403. p{
  404. width: 100%;
  405. }
  406. .content-item{
  407. width: 80%;
  408. display: inline-block;
  409. overflow: hidden;
  410. text-overflow: ellipsis;
  411. white-space: nowrap;
  412. }
  413. .time{
  414. width: 20%;
  415. display: inline-block;
  416. overflow: hidden;
  417. text-overflow: ellipsis;
  418. white-space: nowrap;
  419. }
  420. }
  421. }
  422. .rightBottom{
  423. margin-top: 12px;
  424. background: white;
  425. .burnDown{
  426. padding: 30px 20px;
  427. text-align: center;
  428. .tip{
  429. margin-top: 40px;
  430. display: flex;
  431. justify-content: space-around;
  432. height: 22px;
  433. font-size: 14px;
  434. font-family: PingFangSC-Regular, PingFang SC;
  435. font-weight: 400;
  436. color: rgba(0, 0, 0, 0.65);
  437. line-height: 22px;
  438. .done{
  439. .item-icon{
  440. width: 8px;
  441. height: 8px;
  442. background: #3BA0FF;
  443. margin-right: 15px;
  444. display: inline-block;
  445. border-radius: 50%;
  446. }
  447. }
  448. .all{
  449. .item-icon{
  450. width: 8px;
  451. height: 8px;
  452. background: #F0F2F5;
  453. margin-right: 15px;
  454. display: inline-block;
  455. border-radius: 50%;
  456. }
  457. }
  458. }
  459. }
  460. }
  461. }
  462. }
  463. }
  464. }
  465. </style>
  466. <style lang="less">
  467. .workBench{
  468. .ant-timeline-item-head{
  469. background: rgb(240,242,245);
  470. }
  471. }
  472. </style>