platForm.vue 21 KB

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