myDepart.vue 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317
  1. <template>
  2. <div class="MyDepart" v-infinite-scroll="handleInfiniteOnLoad">
  3. <!-- <div class="topBox"> </div> -->
  4. <div class="title">
  5. 我的部门
  6. </div>
  7. <div class="OKRBody" v-loading="loading">
  8. <div class="top-opt">
  9. <span class="year">
  10. <el-select v-model="yearValue" clearable placeholder="年份" @change="yearChange">
  11. <el-option
  12. v-for="item in yearsOptions"
  13. :key="item.value"
  14. :label="item.label"
  15. :value="item.value"
  16. >
  17. </el-option>
  18. </el-select>
  19. </span>
  20. <span class="cycle">
  21. <el-select v-model="cycleValue" clearable placeholder="周期" @change="cycleChange">
  22. <el-option
  23. v-for="item in cycleOptions"
  24. :key="item.value"
  25. :label="item.label"
  26. :value="item.value"
  27. >
  28. </el-option>
  29. </el-select>
  30. </span>
  31. <span class="nameSearch">
  32. <el-input
  33. placeholder="请输入搜索的名字"
  34. v-model="nameValue"
  35. clearable
  36. @change='searchName'>
  37. <el-button slot="append" icon="el-icon-search" @click="searchName"></el-button>
  38. </el-input>
  39. </span>
  40. <!-- <span class="search">
  41. <el-button type="warning" round @click="search">搜索</el-button>
  42. </span> -->
  43. </div>
  44. <div class="listBody" v-if="list.length>0">
  45. <div class="itemBody" v-for="(item,index) in list" :key="index" >
  46. <div class="item" @click="getThisOKR(item)">
  47. <div class="item-top">
  48. <span class="jidu">第{{item.object.quarter}}季度</span>
  49. <div class="targetName">
  50. <span class="name">{{item.object.objectInfo}}</span>
  51. <span class="progress">{{item.object.completion}}%</span>
  52. </div>
  53. <div class="krlist">
  54. <span class="tip">KR</span>
  55. <span class="num">关键结果<span style="width:10px;display:inline-block"></span> <span class="nums"> {{item.krList.length}}</span> </span>
  56. </div>
  57. </div>
  58. <div class="item-bottom">
  59. <span>负责人:{{item.name}}</span>
  60. <span>
  61. <el-tooltip :content="item.follow?'取消关注':'关注'" placement="bottom" effect="dark">
  62. <img src="../assets/image/followRed.png" alt="" class="follow" v-if="item.follow" @click.stop="followHis(item)">
  63. <img src="../assets/image/follow.png" alt="" class="follow" v-else @click.stop="followHis(item)">
  64. </el-tooltip>
  65. </span>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div v-else>
  71. <div class="noListData">
  72. <img src="../assets/image/nodata.png" alt="" class="nodata">
  73. <p class="tip">咦,没有OKR哎~</p>
  74. </div>
  75. </div>
  76. </div>
  77. <!-- okr 四象限 -->
  78. <el-dialog
  79. :visible.sync="dialogVisible"
  80. :width="isCurrentQuarter==1? '65%' : '40%'"
  81. >
  82. <div class="justOKRBody" v-if="isCurrentQuarter==0">
  83. <div class="taskBody targetBody editKRBody" >
  84. <div class="targetO">
  85. <span class="target-tip">O</span>
  86. <span class="target-input">
  87. <div class="currentO">{{currentData.object.objectInfo}}</div>
  88. </span>
  89. </div>
  90. <div class="task-item">
  91. <div class="targetKR" v-for="(item,index) in currentData.krList" :key="index">
  92. <span class="tip"><span class="sc-bQduHL kArEgh"></span> KR</span>
  93. <span class="info">
  94. {{item.krInfo}}
  95. <span v-for="element in item.remindVOS" :key="element.remindId" class="remindSpan">@{{element.name}}</span>
  96. </span>
  97. <span class="progress">
  98. <span class="progressBar">
  99. <span class="krtitle">KR的完成进度:</span>
  100. <span class="KR-opt">
  101. <span style="width:90%">
  102. <el-progress :percentage="item.completion" color='#cc9966'></el-progress>
  103. </span>
  104. </span>
  105. </span>
  106. </span>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="fourBoxBody okrPage" v-if="isCurrentQuarter==1">
  112. <div class="title" >
  113. {{time.year}}年第{{time.quarter}}季度OKR
  114. </div>
  115. <div class="okrBody" v-if="okr.length>0">
  116. <div class="okrBox first">
  117. <div class="okrBox-title">
  118. <p class="top-title">本周工作</p>
  119. </div>
  120. <div class="okrbox-list">
  121. <ul>
  122. <li v-for="(item) in taskInfoList" :key='item.id'>
  123. <el-popover
  124. placement="top-start"
  125. :title="'标题:'+item.taskTitle"
  126. width="300"
  127. trigger="hover"
  128. :content="'详细描述:'+item.taskInfo">
  129. <span slot="reference" class="content">
  130. <span class="taskGrade">
  131. <!-- P{{item.priority}} -->
  132. <img src="../assets/image/1.png" alt="" v-if="item.priority=='1'" class="priorityIMg">
  133. <img src="../assets/image/2.png" alt="" v-if="item.priority=='2'" class="priorityIMg">
  134. <img src="../assets/image/3.png" alt="" v-if="item.priority=='3'" class="priorityIMg">
  135. </span>
  136. <span class="taskTitle">
  137. {{item.taskTitle}}
  138. <span v-for="(element) in item.remindVOS" :key="element.krId" class="remindSpan">@{{element.name}}</span>
  139. </span>
  140. </span>
  141. </el-popover>
  142. </li>
  143. </ul>
  144. </div>
  145. </div>
  146. <div class="okrBox second">
  147. <div class="okrBox-title">
  148. <p class="top-title">OKR</p>
  149. </div>
  150. <div class="objectList" v-for="(item,index) in okr" :key="index">
  151. <div class="OBox">
  152. <span class="O-tip">目标</span>
  153. <span class="O-content">{{item.objectInfo.objectInfo}}</span>
  154. <span class="O-opt">
  155. <el-progress type="circle" :width='60' :height='60' :percentage="item.objectInfo.completion" :color="colors"></el-progress>
  156. </span>
  157. </div>
  158. <div class="KRBox">
  159. <ul>
  160. <li v-for="(ele,index) in item.krList" :key="index">
  161. <span class="KR-tip">KR</span>
  162. <el-popover
  163. placement="top-start"
  164. width="300"
  165. trigger="hover"
  166. :title="'KR:'+ele.krInfo"
  167. :content="'详细描述:'+(ele.krDesc|| '暂无')" >
  168. <span slot="reference" class="content">
  169. <span class="KR-content">{{ele.krInfo}}
  170. <span v-for="(element) in ele.remindVOS" :key="element.krId" class="remindSpan">@{{element.name}}</span>
  171. </span>
  172. </span>
  173. </el-popover>
  174. <!-- <span class="KR-content">{{ele.krInfo}}</span> -->
  175. <span class="KR-opt">
  176. <span style="width:90%;">
  177. <el-progress :percentage="ele.completion" color='#cc9966'></el-progress>
  178. </span>
  179. </span>
  180. </li>
  181. </ul>
  182. </div>
  183. </div>
  184. </div>
  185. <div class="okrBox third">
  186. <div class="okrBox-title">
  187. <p class="top-title">未来四周计划</p>
  188. </div>
  189. <div class="okrbox-list">
  190. <ul>
  191. <li v-for="(item) in taskFourWeek" :key='item.id'>
  192. <el-popover
  193. placement="top-start"
  194. :title="'标题:'+item.taskTitle"
  195. width="300"
  196. trigger="hover"
  197. :content="'详细描述:'+item.taskInfo">
  198. <span slot="reference" class="content">
  199. <span class="taskGrade">
  200. <!-- P{{item.priority}} -->
  201. <img src="../assets/image/1.png" alt="" v-if="item.priority=='1'" class="priorityIMg">
  202. <img src="../assets/image/2.png" alt="" v-if="item.priority=='2'" class="priorityIMg">
  203. <img src="../assets/image/3.png" alt="" v-if="item.priority=='3'" class="priorityIMg">
  204. </span>
  205. <span class="taskTitle">
  206. {{item.taskTitle}}
  207. <span v-for="(element) in item.remindVOS" :key="element.krId" class="remindSpan">@{{element.name}}</span>
  208. </span>
  209. </span>
  210. </el-popover>
  211. </li>
  212. </ul>
  213. </div>
  214. </div>
  215. <div class="okrBox four">
  216. <div class="okrBox-title">
  217. <p class="top-title">状态指标</p>
  218. </div>
  219. <div class="status-list">
  220. <li v-for="item in status" :key='item.id' class="status">
  221. <span class="itemStatus" :style="'background-color:'+item.color" >{{item.content}}</span>
  222. </li>
  223. </div>
  224. <!-- <div class="status-list">
  225. <span v-for="item in status" :key='item.id' :style="'background-color:'+item.color" class="status" @click="editSatus(item)">
  226. {{item.content}}
  227. </span>
  228. </div> -->
  229. </div>
  230. </div>
  231. </div>
  232. </el-dialog>
  233. </div>
  234. </template>
  235. <script>
  236. let cycleOptions=[
  237. // {
  238. // label:'全部',
  239. // value:0
  240. // },
  241. {
  242. label:'第一季度',
  243. value:1
  244. },
  245. {
  246. label:'第二季度',
  247. value:2
  248. },
  249. {
  250. label:'第三季度',
  251. value:3
  252. },
  253. {
  254. label:'第四季度',
  255. value:4
  256. },
  257. ]
  258. import {postAction , getAction} from '@/utils/api/http.js'
  259. import infiniteScroll from 'vue-infinite-scroll'
  260. export default {
  261. data() {
  262. return {
  263. loading:false,
  264. yearValue:undefined,
  265. yearsOptions:[],
  266. cycleValue:undefined,
  267. cycleOptions,
  268. nameValue:undefined,
  269. dialogVisible:false,
  270. isCurrentQuarter:2,
  271. list:[],
  272. currentData:{
  273. object:{},
  274. krLiat:[]
  275. },
  276. okr:[],
  277. okrList:[],
  278. okrObject:{},
  279. taskInfoList:[],
  280. taskFourWeek:[],
  281. status:[],
  282. time:{},
  283. percentage: 0,
  284. colors: [
  285. {color: '#f56c6c', percentage: 30},
  286. {color: '#e6a23c', percentage: 60},
  287. {color: '#5cb87a', percentage: 80},
  288. {color: '#5cb87a', percentage: 100}
  289. ],
  290. // 滚动加载更多
  291. loadingMore: false,//loading 加载更多
  292. isScroll: true,//是否可以滚动
  293. pageIndex: 1,
  294. pageSize: 16,
  295.  loading: false,
  296.        busy: false,
  297. }
  298. },
  299. directives: { infiniteScroll },
  300. methods: {
  301. followHis(item){
  302. console.log(item)
  303. let status=item.follow?0:1;
  304. this.list.forEach((ele,index)=>{
  305. if(item.object.userId==ele.object.userId){
  306. this.$set(ele,'follow',!item.follow)
  307. }
  308. })
  309. postAction('/okr/focusInfo/focus',{
  310. status,
  311. userId:item.object.userId
  312. }).then(res=>{
  313. console.log(res)
  314. if(res.success){
  315. }else{
  316. this.$meaasge.error(res.meaasge)
  317. this.getList()
  318. }
  319. })
  320. },
  321. handleClose(done) {
  322. this.$confirm('确认关闭?')
  323. .then(_ => {
  324. done();
  325. })
  326. .catch(_ => {});
  327. },
  328. searchName(){
  329. // console.log(this.nameValue)
  330. this.getList()
  331. },
  332. yearChange(){
  333. console.log(this.yearValue,this.isCurrentQuarter)
  334. // this.getList()
  335. this.cycleValue=undefined
  336. },
  337. cycleChange(){
  338. console.log(this.cycleValue,this.isCurrentQuarter)
  339. if(this.yearValue=='' || this.yearValue==undefined){
  340. this.$message({
  341. type:'warning',
  342. message:'记得先选择年份哟~'
  343. });
  344. this.cycleValue=undefined
  345. }else{
  346. this.getList()
  347. }
  348. },
  349. getList(){
  350. this.isCurrentQuarter=2;
  351. this.list=[];
  352. this.loading=true;
  353. this.loadingMore=true;
  354. this.pageIndex=2;
  355. postAction('/okr/focusInfo/myDepartment',{
  356. year:this.yearValue,
  357. quarter:this.cycleValue,
  358. name:this.nameValue
  359. }).then((res)=>{
  360. // console.log(res);
  361. this.loading=false;
  362. this.isCurrentQuarter=res.isCurrentQuarter;
  363. this.list=res.list
  364. })
  365. },
  366. getThisOKR(item){
  367. this.currentData={
  368. object:{},
  369. krLiat:[]
  370. },
  371. this.okr=[];
  372. this.taskInfoList=[];
  373. this.taskFourWeek=[];
  374. this.time='';
  375. this.status=[];
  376. this.okrObject={};
  377. this.dialogVisible=true;
  378. // console.log(item,this.isCurrentQuarter);
  379. if(this.isCurrentQuarter!=1){
  380. this.currentData=item
  381. }else{
  382. postAction('/okr/okr/getOkrInfo',{
  383. objectId:item.object.id
  384. }
  385. ).then((res)=>{
  386. // console.log(res);
  387. if(res.success){
  388. this.okr=res.result.okr;
  389. this.taskInfoList=res.result.taskInfoList;
  390. this.taskFourWeek=res.result.taskFourWeekList;
  391. this.time=res.result.time
  392. res.result.status.forEach((item,index)=>{
  393. if(item.type=='1'){
  394. item.color='#CC3300';
  395. }else if(item.type=='2'){
  396. item.color='#FFCC33';
  397. }else{
  398. item.color='#99CC99';
  399. }
  400. })
  401. this.status=res.result.status;
  402. this.okrObject=res.result.okr[0].objectInfo;
  403. }
  404. })
  405. }
  406. },
  407. // 滚动事件
  408. handleInfiniteOnLoad(){
  409. this.loading=true;
  410. this.loadingMore = true;
  411. postAction('/okr/focusInfo/myDepartment',{
  412. year:this.yearValue,
  413. quarter:this.cycleValue,
  414. name:this.nameValue,
  415. pageNumber:this.pageIndex
  416. }).then((res)=>{
  417. console.log(res);
  418. this.loading=false;
  419. this.loadingMore = false
  420. // this.list=res.result.list;
  421. this.yearValue=res.year;
  422. this.cycleValue=res.quarter
  423. if (res.list.length > 0) {
  424. this.isScroll = true
  425. this.list = [...this.list, ...res.list]
  426. let pageNumber = this.pageIndex += 1
  427. } else {
  428. // this.show = true
  429. this.$message.warning('没有更多数据了!')
  430. }
  431. this.isCurrentQuarter=res.isCurrentQuarter;
  432. })
  433. },
  434. },
  435. mounted() {
  436. this.loading=true;
  437. // postAction('/okr/focusInfo/myDepartment',{
  438. // }).then((res)=>{
  439. // // console.log(res);
  440. // this.loading=false
  441. // this.isCurrentQuarter=res.isCurrentQuarter;
  442. // this.list=res.list;
  443. // this.yearValue=res.year;
  444. // this.cycleValue=res.quarter
  445. // })
  446. postAction('/okr/okr/getObjectYear ',{
  447. }).then((res)=>{
  448. // console.log(res);
  449. this.yearsOptions=[]
  450. res.result.forEach((item)=>{
  451. this.yearsOptions.push({
  452. label: `${item}`,
  453. value:item
  454. })
  455. })
  456. })
  457. },
  458. }
  459. </script>
  460. <style lang="less" scoped>
  461. .MyDepart{
  462. // max-height: 300px;
  463. height: 100%;
  464. overflow: auto;
  465. .topBox{
  466. height: 41px;
  467. }
  468. .title{
  469. background-color: #f4f6f9;
  470. padding-left: 25px;
  471. height: 60px;
  472. line-height: 60px;
  473. text-align: left;
  474. }
  475. .OKRBody{
  476. min-height: calc(100% - 121px);
  477. background: #fff;
  478. .top-opt{
  479. padding: 10px 20px;
  480. text-align: left;
  481. position: relative;
  482. .year,.cycle{
  483. width: 120px;
  484. display: inline-block;
  485. margin-right: 15px;
  486. // height: 20px;
  487. border-right: 1px solid #DCDFE6;
  488. }
  489. .nameSearch{
  490. width: 200px;
  491. display: inline-block;
  492. margin-right: 15px;
  493. padding-right: 15px;
  494. border-right: 1px solid #DCDFE6;
  495. }
  496. .search{
  497. display: inline-block;
  498. position: absolute;
  499. top: 10px;
  500. right: 20px;
  501. }
  502. }
  503. .listBody{
  504. display: flex;
  505. flex-wrap: wrap;
  506. .itemBody{
  507. width: 25%;
  508. padding: 20px 0;
  509. box-sizing: border-box;
  510. .item{
  511. width: 80%;
  512. margin: 0 auto;
  513. text-align: left;
  514. box-sizing: border-box;
  515. box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 8px 0px;
  516. .item-top{
  517. background-color:#CC9966;
  518. padding:15px 20px;
  519. span{
  520. display: inline-block;
  521. }
  522. .jidu{
  523. display: inline-block;
  524. // height: 20px;
  525. // width: 60px;
  526. padding: 5px 20px;
  527. background: rgb(255, 255, 255);
  528. border-radius: 20px;
  529. font-size: 12px;
  530. margin-bottom: 5px;
  531. }
  532. .targetName{
  533. height: 40px;
  534. margin: 10px 0;
  535. display: flex;
  536. color: #fff;
  537. .name{
  538. height: 40px;
  539. width: 80%;
  540. line-height: 20px;
  541. display: inline-block;
  542. padding: 0 5px 0 0;
  543. text-overflow: -o-ellipsis-lastline;
  544. overflow: hidden;
  545. text-overflow: ellipsis;
  546. display: -webkit-box;
  547. -webkit-line-clamp: 2;
  548. line-clamp: 2;
  549. -webkit-box-orient: vertical;
  550. font-size: 14px;
  551. }
  552. .progress{
  553. width: 30%;
  554. font-size: 30px;
  555. font-weight: 500;
  556. line-height: 40px;
  557. color: #fff;
  558. text-align: center;
  559. }
  560. }
  561. .krlist{
  562. .tip{
  563. height: 17px;
  564. width: 34px;
  565. font-size: 12px;
  566. color: #999;
  567. margin-right: 10px;
  568. text-align: center;
  569. line-height: 18px;
  570. background: rgba(255, 255, 255, 0.4);
  571. border-radius: 11px;
  572. }
  573. .num{
  574. font-size: 12px;
  575. .nums{
  576. color:rgb(204, 51, 0);
  577. font-size: 14px;
  578. }
  579. }
  580. }
  581. }
  582. .item-bottom{
  583. padding:10px 20px;
  584. height: 30px;
  585. line-height: 30px;
  586. background-color: #fff;
  587. font-size: 12px;
  588. position: relative;
  589. .follow{
  590. width: 20px;
  591. position: absolute;
  592. right: 20px;
  593. top: 16px;
  594. cursor: pointer;
  595. }
  596. }
  597. }
  598. .item:hover{
  599. transform: scale(1.03);
  600. }
  601. }
  602. }
  603. }
  604. .noListData{
  605. width: 30%;
  606. margin:50px auto ;
  607. // background-color: rgb(141, 200, 234);
  608. box-sizing: border-box;
  609. .nodata{
  610. width: 60%;
  611. }
  612. .tip{
  613. font-size: 16px;
  614. color: #999;
  615. margin: 0 auto;
  616. }
  617. }
  618. .taskBody{
  619. padding: 0 20px;
  620. .task-item{
  621. margin-bottom: 15px;
  622. .item-name{
  623. font-size: 12px;
  624. color: #CC9966;
  625. margin-bottom: 5px;
  626. display:inline-block;
  627. margin-right: 15px;
  628. }
  629. .remindSpan{
  630. color:#2e9cff;
  631. display: inline-block;
  632. margin-right: 3px;
  633. cursor: pointer;
  634. }
  635. }
  636. }
  637. .targetBody{
  638. .targetO{
  639. display: flex;
  640. -webkit-box-align: center;
  641. align-items: center;
  642. flex-wrap: wrap;
  643. align-self: normal;
  644. padding: 10px;
  645. border-radius: 5px;
  646. background: rgb(29, 134, 240);
  647. margin-bottom: 30px;
  648. font-size: 18px;
  649. span{
  650. display: inline-block;
  651. font-size: 18px;
  652. }
  653. .target-tip{
  654. width: 35px;
  655. height: 35px;
  656. text-align: center;
  657. line-height: 36px;
  658. background-color: rgb(141, 200, 234);
  659. color: rgb(255, 255, 255);
  660. font-size: 12px;
  661. border-radius: 50%;
  662. font-size: 18px;
  663. }
  664. .target-input{
  665. width:90%;
  666. font-size: 18px;
  667. }
  668. }
  669. .addKR{
  670. padding: 0 80px;
  671. box-sizing: border-box;
  672. }
  673. .targetKR{
  674. display: flex;
  675. flex-wrap: wrap;
  676. -webkit-box-align: center;
  677. align-items: center;
  678. align-self: normal;
  679. // padding: 10px;
  680. border-radius: 5px;
  681. // background: rgb(29, 134, 240);
  682. margin-bottom: 10px;
  683. .tip{
  684. width: 10%;
  685. text-align: left;
  686. // background-color: tomato;
  687. font-family: sans-serif;
  688. text-shadow: rgb(14, 17, 20) 0px 0px 0px;
  689. .kArEgh {
  690. display: inline-block;
  691. width: 6px;
  692. height: 6px;
  693. margin-right: 5px;
  694. position: relative;
  695. top: -3px;
  696. background: rgb(29, 134, 240);
  697. }
  698. }
  699. .info{
  700. width: 90%;
  701. font-size: 16px;
  702. font-weight: 500;
  703. color: rgb(131, 137, 143);
  704. padding: 6px 0px 6px 0px;
  705. border-radius: 5px;
  706. background: rgb(245, 246, 250);
  707. text-align: left;
  708. padding: 20px;
  709. box-sizing: border-box;
  710. }
  711. .progress{
  712. margin-top: 5px;
  713. display: flex;
  714. padding-left: 80px;
  715. box-sizing: border-box;
  716. width: 100%;
  717. font-size: 12px;
  718. position: relative;
  719. span{
  720. display: inline-block;
  721. line-height: 40px;
  722. }
  723. .progressBar{
  724. width: 70%;
  725. display: flex;
  726. }
  727. .delete{
  728. // width: 25px;
  729. // height: 25px;
  730. // font-size: 12px;
  731. position:absolute;
  732. right: 5px;
  733. }
  734. }
  735. }
  736. }
  737. .editKRBody{
  738. .targetO{
  739. background-color:#CC9966 ;
  740. .target-tip{
  741. background-color: #99CC99 ;
  742. }
  743. .target-input{
  744. color: #FFF;
  745. }
  746. }
  747. .targetKR .progress{
  748. .progressBar{
  749. width: 90%;
  750. display: flex;
  751. .krtitle{
  752. line-height: 40px;
  753. display: inline-block;
  754. width: 30%;
  755. text-align: right;
  756. }
  757. .KR-opt{
  758. width: 60%;
  759. padding-left: 30px;
  760. text-align: left;
  761. }
  762. }
  763. }
  764. .currentO{
  765. color: #fff;
  766. font-size: 16px;
  767. line-height: 40px;
  768. padding-left: 15px;
  769. text-align: left;
  770. }
  771. }
  772. }
  773. ul{
  774. padding: 0;
  775. }
  776. ul,li{
  777. margin: 0;
  778. padding-top: 0;
  779. list-style: none;
  780. }
  781. .okrPage{
  782. width: 100%;
  783. height: 100%;
  784. background:#CC9966;
  785. box-sizing: border-box;
  786. position: relative;
  787. .title{
  788. height: 50px;
  789. padding: 10px 0;
  790. margin-bottom: 20px;
  791. color:#fff;
  792. box-sizing: border-box;
  793. background:#CC9966;
  794. line-height: 50px;
  795. font-size: 20px;
  796. text-align: center;
  797. margin-top: 15px;
  798. }
  799. .okrBody{
  800. background: rgb(247,247,247);
  801. border-radius: 30px 30px 0 0;
  802. height: 93%;
  803. display: flex;
  804. flex-wrap:wrap;
  805. color: #000;
  806. .okrBox{
  807. width: 49.5%;
  808. // height: 49%;
  809. height: 320px;
  810. min-height: 280px;
  811. margin-right: 1%;
  812. background: #fff;
  813. box-sizing: border-box;
  814. // overflow: auto;
  815. .okrBox-title{
  816. text-align: left;
  817. max-height: 20%;
  818. .top-title{
  819. font-size: 20px;
  820. margin: 8px 0;
  821. padding: 0 20px;
  822. // text-align: left;
  823. }
  824. .createTask{
  825. font-size: 12px;
  826. margin: 5px 0;
  827. padding: 0 20px;
  828. text-align: left;
  829. }
  830. }
  831. .okrbox-list{
  832. width: 100%;
  833. overflow: auto;
  834. max-height: 80%;
  835. // margin-top: 10px;
  836. text-align: left;
  837. font-size: 14px;
  838. color: #333;
  839. box-sizing: border-box;
  840. ul{
  841. width: 100%;
  842. height: 100%;
  843. overflow: auto
  844. }
  845. li{
  846. width: 100%;
  847. height: 41px;
  848. padding: 8px 15px 8px;
  849. line-height: 20px;
  850. border-bottom: 1px solid rgb(240, 242, 245);
  851. box-sizing: border-box;
  852. cursor: pointer;
  853. position: relative;
  854. .list-opt{
  855. display: none;
  856. width: 50%;
  857. position: absolute;
  858. right: 10px;
  859. top: 5px;
  860. // display: flex;
  861. justify-content:flex-end;
  862. align-items:center
  863. }
  864. // .taskprogress{
  865. // width:10px;
  866. // height: 10px;
  867. // }
  868. .content{
  869. display: inline-block;
  870. width: 100%;
  871. }
  872. .taskGrade{
  873. display: inline-block;
  874. width: 25px;
  875. height: 25px;
  876. border-radius: 50%;
  877. text-align: center;
  878. box-sizing: border-box;
  879. // background-color: turquoise;
  880. margin-right: 10px;
  881. }
  882. .priorityIMg{
  883. width: 25px;
  884. height: 25px;
  885. }
  886. .taskTitle{
  887. display: inline-block;
  888. width: 70%;
  889. overflow: hidden;
  890. text-overflow: ellipsis;
  891. white-space: nowrap;
  892. height: 25px;
  893. line-height: 25px;
  894. .remindSpan{
  895. color:#2e9cff;
  896. display: inline-block;
  897. margin-right: 3px;
  898. cursor: pointer;
  899. }
  900. }
  901. }
  902. li:hover .list-opt{
  903. display: flex;
  904. }
  905. }
  906. .status-list{
  907. overflow: auto;
  908. max-height: 250px;
  909. // margin-top: 10px;
  910. text-align: left;
  911. font-size: 14px;
  912. color: #333;
  913. box-sizing: border-box;
  914. // align-content: center;
  915. .status{
  916. display: block;
  917. // width: 20%;
  918. width: auto;
  919. min-width: 120px;
  920. height: 60px;
  921. // padding: 10px 10px;
  922. box-sizing: border-box;
  923. justify-content: center;
  924. display: flex;
  925. // margin-bottom: 10px;
  926. .itemStatus{
  927. display: inline-block;
  928. height: 40px;
  929. line-height: 40px;
  930. padding: 0 15px;
  931. border-radius: 10px;
  932. margin: 0 auto;
  933. cursor: pointer;
  934. }
  935. }
  936. }
  937. .objectList{
  938. text-align: left;
  939. overflow: auto;
  940. max-height: 85%;
  941. height: 80%;
  942. .OBox{
  943. background: #fafbfc;
  944. height: 62px;
  945. margin-bottom: 8px;
  946. line-height: 62px;
  947. padding: 5px 20px;
  948. // padding-bottom: 10px;
  949. position: relative;
  950. span{
  951. display: inline-block;
  952. }
  953. .O-tip{
  954. width: 36px;
  955. height: 20px;
  956. background: #50e3c2;
  957. border-radius: 22px;
  958. color: #fff;
  959. margin-right: 8px;
  960. font-size: 12px;
  961. display: inline-block;
  962. line-height: 20px;
  963. text-align: center;
  964. position: absolute;
  965. top: 25px;
  966. }
  967. .O-content{
  968. width: 60%;
  969. white-space:nowrap;
  970. overflow:hidden;
  971. text-overflow:ellipsis;
  972. position: absolute;
  973. top: 5px;
  974. left: 70px;
  975. cursor: pointer;
  976. }
  977. .O-opt{
  978. position: absolute;
  979. top: 5px;
  980. right: 20px;
  981. }
  982. }
  983. .KRBox{
  984. background: #fafbfc;
  985. font-size: 14px;
  986. ul{
  987. li{
  988. width: 100%;
  989. height: 40px;
  990. padding: 5px 20px;
  991. position: relative;
  992. box-sizing:border-box;
  993. line-height: 40px;
  994. position: relative;
  995. .KR-tip{
  996. height: 20px;
  997. line-height: 20px;
  998. font-size: 12px;
  999. color: rgb(46, 156, 255);
  1000. margin-right: 10px;
  1001. background: rgba(46, 156, 255, 0.1);
  1002. border-radius: 11.5px;
  1003. padding: 3px 9px;
  1004. position: absolute;
  1005. top: 8px;
  1006. }
  1007. .KR-content{
  1008. width:60% ;
  1009. display: inline-block;
  1010. overflow:hidden;
  1011. white-space:nowrap;
  1012. text-overflow:ellipsis;
  1013. height:100%;
  1014. line-height: 30px;
  1015. padding-left: 45px;
  1016. .remindSpan{
  1017. color:#2e9cff;
  1018. display: inline-block;
  1019. margin-right: 3px;
  1020. cursor: pointer;
  1021. }
  1022. }
  1023. .KR-opt{
  1024. display: inline-block;
  1025. width: 20%;
  1026. position: absolute;
  1027. right: 20px;
  1028. top:5px;
  1029. display: flex;
  1030. // display: none;
  1031. position: absolute;
  1032. justify-content:flex-end;
  1033. align-items:center
  1034. }
  1035. }
  1036. li:hover .list-opt{
  1037. display: flex;
  1038. }
  1039. }
  1040. }
  1041. }
  1042. }
  1043. .first{
  1044. border-radius: 30px 0 0 0;
  1045. margin-bottom: 0.5%;
  1046. .okrBox-title{
  1047. border-bottom: 1px solid rgb(240, 242, 245);
  1048. }
  1049. }
  1050. .second{
  1051. margin-right: 0;
  1052. border-radius: 0 30px 0 0;
  1053. margin-bottom: 0.5%;
  1054. }
  1055. .third{
  1056. .okrBox-title{
  1057. border-bottom: 1px solid rgb(240, 242, 245);
  1058. }
  1059. }
  1060. .four{
  1061. margin-right: 0
  1062. }
  1063. }
  1064. }
  1065. </style>
  1066. <style lang="less">
  1067. .el-tooltip__popper.is-dark {
  1068. background: #303133;
  1069. color: #FFF;
  1070. opacity: 0.8;
  1071. }
  1072. .el-dialog__body {
  1073. padding: 5px 20px 30px;
  1074. color: #606266;
  1075. font-size: 14px;
  1076. word-break: break-all;
  1077. }
  1078. .top-opt{
  1079. .el-input__inner{
  1080. border: none;
  1081. }
  1082. .nameSearch{
  1083. .el-input__inner{
  1084. border-bottom: 1px solid #DCDFE6;
  1085. border-radius: 0;
  1086. }
  1087. .el-input-group__append, .el-input-group__prepend{
  1088. border: none;
  1089. border-bottom: 1px solid #DCDFE6;
  1090. background-color: transparent;
  1091. }
  1092. }
  1093. .search{
  1094. .el-button{
  1095. border: 1px solid transparent;
  1096. }
  1097. }
  1098. }
  1099. </style>
  1100. <style lang="less">
  1101. .taskBody{
  1102. .el-radio.is-bordered.is-checked {
  1103. border-color: #CC9966;
  1104. }
  1105. .el-radio__input.is-checked .el-radio__inner {
  1106. border-color: #CC9966;
  1107. background: #CC9966;
  1108. }
  1109. .el-radio__input.is-checked+.el-radio__label {
  1110. color: #CC9966;
  1111. }
  1112. .el-input.is-active .el-input__inner, .el-input__inner:focus {
  1113. border-color: #CC9966;
  1114. outline: 0;
  1115. }
  1116. .el-textarea__inner:focus {
  1117. outline: 0;
  1118. border-color: #CC9966;
  1119. }
  1120. .number__increase:hover {
  1121. color: #CC9966;
  1122. }
  1123. .el-input-number__decrease:hover, .el-input-number__increase:hover {
  1124. color: #CC9966;
  1125. }
  1126. .el-slider__input:hover,.el-input-number:hover,.el-input-number--small:hover{
  1127. border-color: #CC9966;
  1128. outline: 0;
  1129. }
  1130. .el-slider__button {
  1131. width: 16px;
  1132. height: 16px;
  1133. border: 2px solid #CC9966;
  1134. background-color: #FFF;
  1135. border-radius: 50%;
  1136. transition: .2s;
  1137. -webkit-user-select: none;
  1138. -moz-user-select: none;
  1139. -ms-user-select: none;
  1140. user-select: none;
  1141. }
  1142. .el-slider__bar {
  1143. height: 6px;
  1144. background-color: #CC9966;
  1145. border-top-left-radius: 3px;
  1146. border-bottom-left-radius: 3px;
  1147. position: absolute;
  1148. }
  1149. }
  1150. .StatusBody{
  1151. .second.el-radio.is-bordered.is-checked {
  1152. border-color: #FFCC33;
  1153. }
  1154. .second .el-radio__input.is-checked .el-radio__inner {
  1155. border-color: #FFCC33;
  1156. background: #FFCC33;
  1157. }
  1158. .second .el-radio__input.is-checked+.el-radio__label {
  1159. color: #FFCC33;
  1160. }
  1161. .first.el-radio.is-bordered.is-checked {
  1162. border-color: #CC3300;
  1163. }
  1164. .first .el-radio__input.is-checked .el-radio__inner {
  1165. border-color: #CC3300;
  1166. background: #CC3300;
  1167. }
  1168. .first .el-radio__input.is-checked+.el-radio__label {
  1169. color: #CC3300;
  1170. }
  1171. .third.el-radio.is-bordered.is-checked {
  1172. border-color: #99CC99;
  1173. }
  1174. .third .el-radio__input.is-checked .el-radio__inner {
  1175. border-color: #99CC99;
  1176. background: #99CC99;
  1177. }
  1178. .third .el-radio__input.is-checked+.el-radio__label {
  1179. color: #99CC99;
  1180. }
  1181. }
  1182. .targetBody{
  1183. .el-input__inner{
  1184. border: none;
  1185. background-color:transparent;
  1186. color: #fff;
  1187. }
  1188. .el-input .el-input__count .el-input__count-inner {
  1189. background-color: transparent;
  1190. line-height: initial;
  1191. display: inline-block;
  1192. padding: 0 5px;
  1193. color:#FFF
  1194. }
  1195. .targetKR{
  1196. .el-input__inner{
  1197. border: none;
  1198. background-color:transparent;
  1199. color: rgb(131, 137, 143);
  1200. }
  1201. .el-input .el-input__count .el-input__count-inner {
  1202. background-color: transparent;
  1203. line-height: initial;
  1204. display: inline-block;
  1205. padding: 0 5px;
  1206. color:rgb(131, 137, 143);
  1207. }
  1208. .progress{
  1209. .el-input-number__decrease{
  1210. border-right: none;
  1211. }
  1212. .el-input-number__increase{
  1213. border-left: none;
  1214. }
  1215. .el-input-number__decrease,.el-input-number__increase {
  1216. background: none;
  1217. }
  1218. }
  1219. .el-input--suffix .el-input__inner {
  1220. padding-right: 66px;
  1221. }
  1222. }
  1223. .el-input--suffix .el-input__inner {
  1224. padding-right: 50px;
  1225. }
  1226. }
  1227. .editKRBody{
  1228. .progress{
  1229. .el-input-number__decrease{
  1230. border-right: none;
  1231. }
  1232. .el-input-number__increase{
  1233. border-left: none;
  1234. }
  1235. .el-input-number__decrease, .el-input-number__increase {
  1236. background: none;
  1237. }
  1238. .el-input__inner{
  1239. border: none;
  1240. background-color:transparent;
  1241. color: rgb(131, 137, 143);
  1242. }
  1243. .el-input .el-input__count .el-input__count-inner {
  1244. background-color: transparent;
  1245. line-height: initial;
  1246. display: inline-block;
  1247. padding: 0 5px;
  1248. // color:rgb(131, 137, 143);
  1249. }
  1250. }
  1251. .el-input__inner{
  1252. border: none;
  1253. background-color:transparent;
  1254. // color: rgb(131, 137, 143);
  1255. }
  1256. .el-input .el-input__count .el-input__count-inner {
  1257. background-color: transparent;
  1258. line-height: initial;
  1259. display: inline-block;
  1260. padding: 0 5px;
  1261. // color:rgb(131, 137, 143);
  1262. }
  1263. .el-input_icon .el-iocn-circle-close .el-input_clear{
  1264. color:#fff
  1265. }
  1266. }
  1267. </style>