pointHome.vue 86 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786
  1. <template>
  2. <div>
  3. <div style="width: 100%;">
  4. <div v-if="noticeRole&&pastdueDate&&user_infos.try_user==0">
  5. <div style="z-index:1;width:100%;margin-bottom: 10px;">
  6. <div style="width: 100%;overflow: hidden;">
  7. <marquee scrollamount="5" onmouseover="this.stop()" onmouseout="this.start()">
  8. <div style="color:#ff880e;font-size:16px;">
  9. {{ pastdueDate }}&nbsp;&nbsp;&nbsp;
  10. <a class="vtRenew" @click="innerVisible = true">立即续费>></a>
  11. </div>
  12. </marquee>
  13. </div>
  14. </div>
  15. </div>
  16. <div style="margin: 0 auto;width: 100%;margin-bottom: 10px;" v-if="experience_data">
  17. <el-carousel trigger="click" :interval="6000" height="125px">
  18. <el-carousel-item v-for="(item, index) in banner" :key="index">
  19. <div class="bacimg" :style="{backgroundImage: returnImgIndex(item.image)}" style="no-repeat: center;" @click="bannerImagePush(item.key)"></div>
  20. </el-carousel-item>
  21. </el-carousel>
  22. </div>
  23. <el-row style="width: 100%;">
  24. <el-col :span="18">
  25. <div class="flex-box-ce br-5" style="background-color: #fff;padding:20px;">
  26. <div class="flex-box-ce flex-1" v-loading="send_site_info_loading">
  27. <div style="margin-right: 10px;cursor:pointer;" v-if="noticeRole" @click="$router.push({ path: '/company_info', params: { activeName: 'second' } })">
  28. <userImage :id="user_info.id" :img_url="user_info.img_url" :user_name="user_info.name" width="50px" height="50px"></userImage>
  29. </div>
  30. <div style="margin-right: 10px;" v-else>
  31. <userImage :id="user_info.id" :img_url="user_info.img_url" :user_name="user_info.name" width="50px" height="50px"></userImage>
  32. </div>
  33. <div>
  34. <div class="flex-box-ce" style="margin-bottom: 6px;font-size: 14px;color: #666;font-weight: 700;">
  35. <div style="font-size: 16px;font-weight: 700;padding-right:15px;" class="black">{{ user_info.name }}</div>
  36. <!-- <span v-show="time <= 4">夜深了</span>
  37. <span v-show="time > 4 && time <= 11">早上好</span>
  38. <span v-show="time > 11 && time <= 14">中午好</span>
  39. <span v-show="time > 14 && time <= 19">下午好</span>
  40. <span v-show="time > 19 && time <= 24">晚上好</span> -->
  41. </div>
  42. <!-- <div class="fontColorC">
  43. <span v-show="time <= 4">烦恼尽退散</span>
  44. <span v-show="time > 4 && time <= 11">又是美好的一天</span>
  45. <span v-show="time > 11 && time <= 14">吃饱睡好更有动力</span>
  46. <span v-show="time > 14 && time <= 19">致敬奋斗中的自己</span>
  47. <span v-show="time > 19 && time <= 24">该养精蓄锐了</span>
  48. </div> -->
  49. </div>
  50. </div>
  51. <div class="flex-box-ce flex-3" v-if="supAuthority=='creator'">
  52. <div class="bsItem flex-box-ce flex-1" v-for="(item, index) in fits" :key="index" @click="openGzd(item.url)">
  53. <img :src="item.img" @click="openGzd(item.url)" style="width:46px;height:46px;margin-right:5px;" />
  54. <div>
  55. <b style="color:#303133;font-size:16px;">{{ item.name }} <span v-if="item.num" class="el-badge__content">{{item.num}}</span></b>
  56. <br />
  57. <span style="color:#606266;font-size:12px;display: inline-block;margin-top:8px;">{{ item.value }}</span>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="flex-box-ce flex-3 cursor" v-else v-loading="authorityManagerHeaderLoad" style="text-align: center;">
  62. <div class="flex-2 flex-box-ce" style="border-right: 1px #cecccc solid;" @click="openUrl">
  63. <div class="flex-1">
  64. <div class="blue-num">{{ authorityManagerHeaders.b_today}}</div>
  65. <div class="blue-text">今日B分</div>
  66. </div>
  67. <div class="flex-1">
  68. <div class="blue-num">{{ authorityManagerHeaders.b_week}}</div>
  69. <div class="blue-text">本周B分</div>
  70. </div>
  71. <div class="flex-1">
  72. <div class="blue-num">{{ authorityManagerHeaders.b}}</div>
  73. <div class="blue-text">本月B分</div>
  74. </div>
  75. <div class="flex-1">
  76. <div class="blue-num">{{ authorityManagerHeaders.a}}</div>
  77. <div class="blue-text">本月A分</div>
  78. </div>
  79. </div>
  80. <div class="flex-1" @click="$router.push({ path: '/total_rank' })">
  81. <div class="blue-num">{{ authorityManagerHeaders.b_total}}</div>
  82. <div class="blue-text">累计B分</div>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="raiders_box">
  87. <div class="flex-box-ce">
  88. <div class="flex-1"><b class="title">排行榜</b></div>
  89. <div><span class="noremind" @click="$router.push({ path: RankingPush })">查看详情</span></div>
  90. </div>
  91. <div v-loading="tabPositionLoad">
  92. <div style="width:100%;height:30px;margin:20px 0;" class="flex-box-ce">
  93. <div class="group-name clamp2" :class="tabPosition==index?'activeGroup':''" v-for="(item, index) in rankingList" :key="index" @click="tabPosition=index;tabPositions(item)">{{item.group_name}}</div>
  94. </div>
  95. <div style="padding-top:30px;height:100%;" class="flex-box-ce" v-loading="addUpRankingLoad">
  96. <div style="text-align: center;" class="flex-1" v-if="rankingListDetails.length == 0">
  97. <NoData content="暂无积分数据"></NoData>
  98. </div>
  99. <div v-else v-for="(item, index) in rankingListDetails" :key="index" style="text-align:center;width:80px;cursor:pointer;margin:0 20px;">
  100. <div class="" style="cursor:pointer;position: relative;">
  101. <img
  102. v-if="item.rank <= 3"
  103. :src="item.rank == 1 ? 'static/images/statistics_NO1.png' : item.rank == 2 ? 'static/images/statistics_NO2.png' : item.rank == 3 ? 'static/images/statistics_NO3.png' : ''"
  104. style="z-index:1;position: absolute;right: 50%;top: -18px;font-size:28px;margin-right:-16px"
  105. />
  106. <div
  107. v-if="item.rank > 3"
  108. style="z-index:1;position: absolute;left: 28px;top: -14px;width:24px;height:24px;border:1px solid #C0C4CC;border-radius:50%;background-color:#fff;font-size:12px; line-height:24px;color:#303133;text-align:center;"
  109. >
  110. <b style="">{{ item.rank }}</b>
  111. </div>
  112. <!-- <div-->
  113. <!-- v-if="item.rank == 4 || item.rank == 5"-->
  114. <!-- style="z-index:1;position: absolute;left: 28px;top: -14px;width:24px;height:24px;border:1px solid #C0C4CC;border-radius:50%;background-color:#fff;font-size:12px; line-height:24px;color:#303133;text-align:center;"-->
  115. <!-- >-->
  116. <!-- <b style="">{{ item.rank }}</b>-->
  117. <!-- </div>-->
  118. <!-- <div-->
  119. <!-- v-if="item.employee_id == user_infos.id && index == 0 && item.rank > 3"-->
  120. <!-- style="z-index:1;position: absolute;left: 28px;top: -14px;width:24px;height:24px;border:1px solid #C0C4CC;border-radius:50%;background-color:#fff;font-size:12px;text-align:center;line-height:24px;color:#303133;"-->
  121. <!-- >-->
  122. <!-- <b>{{ item.rank }}</b>-->
  123. <!-- </div>-->
  124. <!-- <div style="position: absolute;left: 10px;top: -16px;z-index:2;">-->
  125. <!-- <div-->
  126. <!-- v-if="index == 5 || index == 6"-->
  127. <!-- style="width:60px;height:24px;border:1px solid #C0C4CC;background-color:#fff;border-radius:20px;font-size:12px;color:#303133;text-align:center;line-height:24px"-->
  128. <!-- >-->
  129. <!-- <b>{{ index == 5 ? '倒数第2' : index == 6 ? '倒数第1' : '' }}</b>-->
  130. <!-- </div>-->
  131. <!-- </div>-->
  132. <userImage :id="item.employee_id" :img_url="item.employee_img_url" fontSize="16" :user_name="item.employee_name" width="60px" height="60px"></userImage>
  133. </div>
  134. <span
  135. style="color:#303133;font-size:14px;text-align:center;margin-top:10px;display: inline-block;width:100%;display: block;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;"
  136. >
  137. {{ item.employee_name }}
  138. <span v-if="item.employee_id == user_infos.id">(我)</span>
  139. </span>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. <div class="raiders_box" v-if="pkList.length > 0" v-loading="pkLoading">
  145. <div class="flex-box-ce">
  146. <div class="flex-1">
  147. <b class="title">团队PK</b>
  148. <el-tooltip placement="top" content="只针对B分">
  149. <i class="el-icon-question fontColorC"></i>
  150. </el-tooltip>
  151. </div>
  152. </div>
  153. <div>
  154. <div class="flex-1 scroll-bar" style="margin: 20px 0; overflow-x: auto; ">
  155. <div style="margin-bottom: 10px;">
  156. <el-date-picker
  157. v-model="pkTimeScope"
  158. type="daterange"
  159. align="right"
  160. unlink-panels
  161. range-separator="至"
  162. start-placeholder="开始日期"
  163. end-placeholder="结束日期"
  164. value-format="yyyy-MM-dd"
  165. :picker-options="instantPickerOptions"
  166. editable
  167. ></el-date-picker>
  168. </div>
  169. <el-tabs v-model="activeDoc" type="card" :stretch="true" >
  170. <el-tab-pane v-for="(doc,index) in pkList" :key="index" :name="index.toString()" :label="doc.name" >
  171. <el-row :gutter="20" v-if="pkTeamList.length > 0" v-loading="pkTeamLoading">
  172. <el-col :span="4" v-for="(team,index) in pkTeamList" :key="index" style="margin-bottom: 30px;">
  173. <el-statistic
  174. group-separator=","
  175. :value="team.point"
  176. :title="team.name"
  177. ></el-statistic>
  178. </el-col>
  179. </el-row>
  180. <div v-if="pkTeamList.length === 0"><NoData></NoData></div>
  181. </el-tab-pane>
  182. </el-tabs>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="raiders_box" >
  187. <div class="flex-box-ce">
  188. <div class="flex-1">
  189. <b class="title">
  190. 部门对比
  191. <el-tooltip placement="top">
  192. <div slot="content">统计同级部门积分数据</div>
  193. <i class="el-icon-question fontColorC"></i>
  194. </el-tooltip>
  195. </b>
  196. </div>
  197. </div>
  198. <el-form :inline="true" v-if="this.supAuthority !== 'employee'" style="margin-top: 10px">
  199. <el-form-item label="时间区间">
  200. <el-date-picker
  201. v-model="deptRankForm.timeRange"
  202. type="daterange"
  203. align="right"
  204. unlink-panels
  205. range-separator="至"
  206. start-placeholder="开始日期"
  207. end-placeholder="结束日期"
  208. value-format="yyyy-MM-dd"
  209. :picker-options="instantPickerOptions"
  210. editable
  211. ></el-date-picker>
  212. </el-form-item>
  213. <el-form-item label="部门">
  214. <el-cascader
  215. v-model="dept_name4"
  216. :options="dept_tree"
  217. @change="deptRankChange"
  218. ref="dept4"
  219. filterable
  220. change-on-select
  221. placeholder="公司顶级部门"
  222. clearable
  223. />
  224. </el-form-item>
  225. <el-form-item label="子部门">
  226. <el-checkbox v-model="deptRankForm.deptIncludeSub">包含</el-checkbox>
  227. </el-form-item>
  228. <br/>
  229. <el-form-item label="规则分类">
  230. <el-cascader
  231. ref="deptRankRule"
  232. v-model="rule"
  233. @change="deptRankRuleChange"
  234. :options="ruleTrees"
  235. :props="{value:'id',label:'name',children:'child'}"
  236. clearable
  237. filterable
  238. change-on-select
  239. placeholder="规则分类"
  240. />
  241. </el-form-item>
  242. <el-form-item label="子规则分类">
  243. <el-checkbox v-model="deptRankForm.ruleIncludeSub">包含</el-checkbox>
  244. </el-form-item>
  245. <el-form-item label="积分类型">
  246. <el-select v-model="deptRankForm.ptId" placeholder="请选择积分类型">
  247. <el-option v-for="item in $getTyps()" :key="item.id" :label="item.name" :value="item.id"></el-option>
  248. </el-select>
  249. </el-form-item>
  250. </el-form>
  251. <div v-loading="deptRankLoading">
  252. <NoData v-if="deptRankList.length === 0" :isSolt="true">
  253. <span class="title1">
  254. 暂无积分数据
  255. <span v-if="supAuthority !== 'employee'" @click="$router.push({path:'/award_punish'})" style="color:#409EFF;cursor:pointer;">,去奖扣积分</span>
  256. </span>
  257. </NoData>
  258. <div>
  259. <!-- <div ref="deptFormChart" :style="{ width: '100%', mimHeight: '400px' }"></div>-->
  260. <div ref="deptFormChart" style="width: 100%; min-height: 400px;"></div>
  261. </div>
  262. </div>
  263. </div>
  264. <div class="raiders_box">
  265. <div style="position: relative;">
  266. <div><b class="title" style="margin-bottom:15px;display:block">积分构成
  267. <el-tooltip placement="top">
  268. <div slot="content">饼图仅统计B分占比较多的前8种规则分类</div>
  269. <i class="el-icon-question fontColorC"></i>
  270. </el-tooltip>
  271. </b></div>
  272. <div v-if="this.supAuthority!='employee'">
  273. <el-cascader v-model="dept_name1" :options="dept_tree" @change="dept1_null" ref="dept1" filterable change-on-select placeholder="请选择部门" clearable></el-cascader>
  274. </div>
  275. <div v-loading="IntegralFormChartLoad">
  276. <NoData v-show="IntegralFormnone" :isSolt="true">
  277. <span class="title1">
  278. 暂无积分数据
  279. <span v-if="supAuthority!='employee'" @click="$router.push({ path: '/award_punish' })" style="color:#409EFF;cursor:pointer;">,去奖扣积分></span>
  280. </span>
  281. </NoData>
  282. <div v-show="!IntegralFormnone"><div ref="IntegralFormChart" :style="{ width: '100%', height: '400px' }"></div></div>
  283. </div>
  284. </div>
  285. </div>
  286. <div class="raiders_box">
  287. <div style="position: relative;">
  288. <div style="display:flex">
  289. <b class="title" style="margin:0 20px 15px 0;display:block">本月积分情况</b>
  290. <el-checkbox v-model="exclusiveMonthChecked">不包含自动积分加分项</el-checkbox>
  291. </div>
  292. <div v-loading="monthlyIntegralloading">
  293. <div v-if="this.supAuthority!='employee'">
  294. <el-cascader
  295. v-model="dept_name2"
  296. :options="dept_tree"
  297. @change="monthlyIntegralchange"
  298. ref="dept2"
  299. filterable
  300. change-on-select
  301. placeholder="请选择部门"
  302. clearable
  303. ></el-cascader>
  304. </div>
  305. <NoData v-if="monthlyIntegralnone" content="暂无积分数据"></NoData>
  306. <div v-show="!monthlyIntegralnone">
  307. <div ref="monthlyIntegralChart" :style="{ width: '100%', height: '350px' }"></div>
  308. <div class="flex-box-ce flex-dv-center" style="margin-top: 30px;">
  309. <p v-for="(item, index) in monthlyIntegralList" :key="index" style="text-align:center">
  310. <b style="display:block;color:#303133;font-size:18px;" v-if="index < 3">
  311. {{ index == 0 ? item.total_point : index == 1 ? item.reward_point : index == 2 ? item.deduction_point : '' }}
  312. </b>
  313. <b style="display:block;color:#303133;font-size:18px;" v-else-if="index == 3">{{ item.ratio == -1 ? '—' : item.ratio + ':1' }}</b>
  314. <b style="display:block;color:#303133;font-size:18px;" v-else>
  315. {{ item.toRatio.ratio + '%' }}
  316. <i class="el-icon-top green" v-if="item.toRatio.type == 1"></i>
  317. <i class="el-icon-bottom orange" v-if="item.toRatio.type == 2"></i>
  318. </b>
  319. <span style="color:rgb(48, 49, 51);font-size:14px;margin-top:5px;display:block;">{{ item.name }}</span>
  320. </p>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. <div class="raiders_box" v-if="false">
  327. <div style="position: relative;">
  328. <div><b class="title" style="margin-bottom:15px;display:block">管理者奖扣任务执行情况</b></div>
  329. <div v-loading="ManagerSAwardloading">
  330. <div>
  331. <el-cascader
  332. v-model="dept_name3"
  333. :options="dept_tree"
  334. @change="ManagerSAwardlchange"
  335. ref="dept3"
  336. filterable
  337. change-on-select
  338. placeholder="请选择部门"
  339. clearable
  340. ></el-cascader>
  341. </div>
  342. <NoData content="暂无积分数据" v-if="ManagerSAwardnone"></NoData>
  343. <div v-show="!ManagerSAwardnone">
  344. <div ref="ManagerSAwardChart" :style="{ width: '100%', height: '400px' }"></div>
  345. <div style="width:100%;display:flex;justify-content: space-around;padding-left:40px">
  346. <p v-for="(item, index) in ManagerSAwardlList" :key="index" style="z-index:1;" class="ManagerSAwardlStyle" @click="$router.push({ path: '/manager_statistics' })">
  347. <b class="ManagerSAwardlStyleB" v-if="index != 2">{{ item.val }}</b>
  348. <b class="ManagerSAwardlStyleB" v-else-if="index == 2">{{ item.val == -1 ? '—' : item.val + ':1' }}</b>
  349. <span class="ManagerSAwardlStyleSpan">{{ item.name }}</span>
  350. </p>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. </el-col>
  357. <el-col :span="6">
  358. <div v-if="supAuthority!='employee'&&supAuthority!='dept_manager'" class="readyapprove_box" style="background-color:#fff;text-align:left;margin-bottom: 10px;">
  359. <div>
  360. <span class="title">数据大屏</span>
  361. <div class="cursor" @click="$router.push({path:'screenSet'})"><img src="static/images/321.jpg" style="width: 100%;"/></div>
  362. </div>
  363. </div>
  364. <div v-if="supAuthority!='creator'" class="readyapprove_box" style="background-color:#fff;text-align:left;margin-bottom: 10px;">
  365. <div>
  366. <span class="title">常用</span>
  367. <div>
  368. <span v-show="item.isShow" v-for="(item, index) in inCommonUse" :key="index" @click="$router.push({ path: item.push })" class="inCommonUseStyle flex-box-ce">
  369. <img :src="item.image" style="width:31px;height:31px;margin-right: 10px;" />
  370. <div class="flex-box-ce flex-1">
  371. <b class="flex-1">{{ item.name }}</b><span v-if="item.num" class="el-badge__content">{{item.num}}</span>
  372. </div>
  373. </span>
  374. </div>
  375. </div>
  376. </div>
  377. <div class="pointsevent_box">
  378. <div class="grid-content bg-purple" v-loading="highestPrizeBuckleloading" style="padding: 20px 20px 0;">
  379. <span class="title">本周奖分最高</span>
  380. <NoData style="padding-bottom: 20px;" content="暂无积分数据" v-if="!prize.id"></NoData>
  381. <div v-else style="display:flex;padding-bottom:20px;">
  382. <userImage width="45px" height="45px" :id="prize.id" :user_name="prize.name" fontSize="16" style="margin-right:8px"></userImage>
  383. <div class="rightexamineAndApproveList" style="border:0px">
  384. <p style="width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#73767c;font-size:16px;display:flex;justify-content: space-between;">
  385. <b style="color:#303133;font-size:16px;">{{ prize.name }}</b>
  386. <span style="color:#409EFF;font-size:16px;">
  387. <span v-if="prize.point > 0">+</span>
  388. {{ prize.point }} B分
  389. </span>
  390. </p>
  391. <p class="task-remark">{{ prize.remark ? prize.remark.customize : '' }}</p>
  392. </div>
  393. </div>
  394. </div>
  395. </div>
  396. <div class="pointsevent_box">
  397. <div class="grid-content bg-purple" v-loading="highestPrizeBuckleloading" style="padding: 20px 20px 0;">
  398. <span class="title">本周扣分最多</span>
  399. <NoData style="padding-bottom: 20px;" content="暂无积分数据" v-if="!buckle.id"></NoData>
  400. <div v-else style="display:flex;padding-bottom:20px;">
  401. <userImage width="45px" height="45px" :id="buckle.id" :user_name="buckle.name" style="margin-right:8px"></userImage>
  402. <div class="rightexamineAndApproveList">
  403. <p style="width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#73767c;font-size:16px;display:flex;justify-content: space-between;">
  404. <b style="color:#303133;font-size:16px;">{{ buckle.name }}</b>
  405. <span style="color:#FF9600;font-size:16px;">{{ buckle.point }} B分</span>
  406. </p>
  407. <p class="task-remark">
  408. {{ buckle.remark ? buckle.remark.customize : '' }}
  409. </p>
  410. </div>
  411. </div>
  412. </div>
  413. </div>
  414. <!-- 本周考勤模块 -->
  415. <!-- <div class="pointsevent_box" v-if="supAuthority!='employee'">
  416. <div class="grid-content bg-purple" v-loading="weekChecking_inloading" style="padding: 20px 20px 0;">
  417. <span class="title">本周考勤</span>
  418. <div style="display:flex;flex-wrap:wrap;justify-content: space-around;padding-bottom:20px">
  419. <div v-for="(item, index) in weekChecking_ins" :key="index" style="width:45%;">
  420. <p class="weekChecking_inStyle">
  421. <b style="font-size:20px;">{{ item.val }}</b>
  422. <br />
  423. {{ item.name }}
  424. </p>
  425. </div>
  426. </div>
  427. </div>
  428. </div> -->
  429. <div v-if="advertisingImage != ''" class="pointsevent_box" style="width:280px;height:200px;">
  430. <img :src="advertisingImage" style="width:100%;height:100%;" alt="" />
  431. </div>
  432. </el-col>
  433. </el-row>
  434. </div>
  435. <el-dialog :visible.sync="innerVisible" width="400px" append-to-body class="innerVisible" :close-on-click-modal="false">
  436. <p style="font-size:21px;">续费/升级</p>
  437. <p style="margin:0;">请在功道云积分服务群中联系客服顾问或微信扫码添加功道云客服进行续费</p>
  438. <img src="static/images/lADPDhmOve9UdT3NAa7NAa4_430_430.jpg" style="width:100%" />
  439. <p style="font-size:20px;">电话咨询:400-6877-880</p>
  440. </el-dialog>
  441. </div>
  442. </template>
  443. <script>
  444. import QRCode from 'qrcodejs2';
  445. import { mapGetters, mapState } from 'vuex';
  446. import axios from 'axios';
  447. import ECharts from 'echarts';
  448. import moment from "moment/moment";
  449. export default {
  450. components: {
  451. QRCode
  452. },
  453. data() {
  454. let deptRankStartDate = new Date();
  455. deptRankStartDate.setTime(deptRankStartDate.getTime() - 3600 * 1000 * 24 * 7);
  456. deptRankStartDate = this.$moment(deptRankStartDate).format('YYYY-MM-DD');
  457. let deptRankEndDate = this.$moment().format('YYYY-MM-DD');
  458. return {
  459. instantPickerOptions: {
  460. shortcuts: [
  461. {
  462. text: '今天',
  463. onClick(picker) {
  464. const now = new Date(new Date().toLocaleDateString());
  465. const start = now.getTime();
  466. picker.$emit('pick', [moment(start).format('YYYY-MM-DD'),moment(start).format('YYYY-MM-DD')]);
  467. }
  468. },
  469. {
  470. text: '昨天',
  471. onClick(picker) {
  472. const now = new Date(new Date().toLocaleDateString());
  473. const start = now.getTime() - 60 * 60 * 24 * 1000;
  474. picker.$emit('pick', [moment(start).format('YYYY-MM-DD'),moment(start).format('YYYY-MM-DD')]);
  475. }
  476. },
  477. {
  478. text: '本周',
  479. onClick(picker) {
  480. picker.$emit('pick', [moment().startOf('isoWeek').format('YYYY-MM-DD'),moment().endOf('isoWeek').format('YYYY-MM-DD')]);
  481. }
  482. },
  483. {
  484. text: '上周',
  485. onClick(picker) {
  486. picker.$emit('pick', [moment().subtract(1, 'w').startOf('isoWeek').format('YYYY-MM-DD'),moment().subtract(1, 'w').endOf('isoWeek').format('YYYY-MM-DD')]);
  487. }
  488. },
  489. {
  490. text: '本月',
  491. onClick(picker) {
  492. picker.$emit('pick', [moment().startOf('month').format('YYYY-MM-DD'),moment().endOf('month').format('YYYY-MM-DD')]);
  493. }
  494. },
  495. {
  496. text: '上月',
  497. onClick(picker) {
  498. picker.$emit('pick', [moment().subtract(1,'month').startOf('month').format('YYYY-MM-DD'),moment().subtract(1,'month').endOf('month').format('YYYY-MM-DD')]);
  499. }
  500. },
  501. {
  502. text:'本年',
  503. onClick(picker){
  504. picker.$emit('pick',[moment().startOf('year').format('YYYY-MM-DD'),moment().endOf('year').format('YYYY-MM-DD')])
  505. },
  506. },
  507. {
  508. text:'去年',
  509. onClick(picker){
  510. picker.$emit('pick',[moment().subtract(1,'year').startOf('year').format('YYYY-MM-DD'),moment().subtract(1,'year').endOf('year').format('YYYY-MM-DD')])
  511. },
  512. },
  513. ]
  514. },
  515. ruleTrees:[],
  516. rule:[],
  517. noticeRole: !this.$supremeAuthority('dept_manager')&&!this.$supremeAuthority('employee'),
  518. innerVisible: false,
  519. experience_data: false, //是否体验账号
  520. banner: [
  521. //首页轮播
  522. { image: 'static/images/banner1.jpg', key: 1 },
  523. { image: 'static/images/banner2.jpg', key: 2 }
  524. ],
  525. exclusiveMonthBranch: 0, //本月积分情况--部门
  526. exclusiveMonthChecked: true, //本月积分情况--不包含自动积分加分项
  527. rollOne: true,
  528. advertisingImage: '', //广告位图片
  529. inCommonUse: [
  530. { name: '审批', image: 'static/images/att_review.png', push: '/approval_list',num:0,isShow:false},
  531. { name: '任务', image: 'static/images/indexPTTask.png', push: '/my_task',num:0,isShow:false },
  532. { name: '奖分&扣分', image: 'static/images/entry_list.png', push: '/award_punish',isShow:false },
  533. { name: '任务下达', image: 'static/images/my_publish.png', push: '/my_issue',isShow:false },
  534. { name: '申请积分', image: 'static/images/a_apply.png', push: '/apply_list',isShow:false },
  535. { name: '领任务', image: 'static/images/task_hall.png', push: '/get_task',isShow:false }
  536. ],
  537. authorityManagerHeaderLoad: false, //除了管理员 的头部 -- loading
  538. authorityManagerHeaders: {}, //除了管理员 的头部 --数据
  539. highestPrizeBuckleloading: false, //奖扣最高loading
  540. prize: {}, //奖分最高
  541. buckle: {}, //扣分最高
  542. //本周考勤
  543. weekChecking_inloading: false, //本周考勤loading
  544. weekChecking_ins: [
  545. //本周考勤
  546. { val: 0, name: '迟到人数' },
  547. { val: 0, name: '早退人数' },
  548. { val: 0, name: '缺卡人数' },
  549. { val: 0, name: '旷工人数' },
  550. { val: 0, name: '外勤人数' },
  551. { val: 0, name: '加班人数' }
  552. ],
  553. //隐藏的积分构成
  554. IntegralFormnone: false, //积分构成为空或报错,展示的开关
  555. dept_name1: [], //积分构成--部门
  556. IntegralFormChartLoad: false, //积分构成loading
  557. ManagerSAwardloading: false, //管理者统计 loading
  558. ManagerSAwardlList: [
  559. //管理者统计数据
  560. { val: '0', name: '总奖分' },
  561. { val: '0', name: '总扣分' },
  562. { val: '0', name: '奖扣分比例' },
  563. { val: '0', name: '奖扣人次' },
  564. { val: '0', name: '奖扣执行人数' },
  565. { val: '0', name: '达标人数' },
  566. { val: '0', name: '未达标人数' }
  567. ],
  568. monthlyIntegralList: [
  569. //本月积分情况数据
  570. { total_point: '0', name: '本月总积分' },
  571. { reward_point: '0', name: '本月总奖分' },
  572. { deduction_point: '0', name: '本月总扣分' },
  573. { ratio: '0', name: '奖扣分比例' },
  574. { toRatio: { ratio: '0', type: 0 }, name: '对比上月总分' },
  575. { toRatio: { ratio: '0', type: 0 }, name: '对比上月奖分' },
  576. { toRatio: { ratio: '0', type: 0 }, name: '对比上月扣分' }
  577. ],
  578. monthlyIntegralloading: false, //本月积分情况loading
  579. monthlyIntegralnone: false, //本月积分情况为空或报错,展示的开关
  580. ManagerSAwardnone: false, //管理者奖扣执行情况为空或报错,展示的开关
  581. dept_name2: [], //本月积分情况--部门
  582. dept_name3: [], //管理者统计数据--部门
  583. dept_name4:[], //部门排名
  584. dept_tree: [], //部门
  585. RankingPush: '',
  586. tabPositionLoad: false, //排名分类loading
  587. addUpRankingLoad: false, //排名人员loading
  588. tabPosition: '0',
  589. rankingList: [], //排行榜数据
  590. rankingListDetails: [], //排行榜人员列表
  591. detail_id: null, //审批组件传入的ID
  592. detailShow: false, //审批组件显示隐藏
  593. examineAndApproveloading: false, //审批loading
  594. examineAndApproveList: [], //审批列表
  595. examineAndApproveindex: 0, //审批列表数量
  596. supAuthority:this.$supremeAuthority(),//当前员工最高权限
  597. user_infos: this.$store.getters.user_info, //拿到当前登录人员信息,隐藏部门管理者等
  598. fits: [
  599. {
  600. name: '奖扣A/B分',
  601. value: '表现好坏,有奖有罚',
  602. img: 'static/images/prizeBuckle.png',
  603. url: '/award_punish',
  604. num:0,
  605. },
  606. {
  607. name: '任务下达',
  608. value: '认可积极完成任务的人',
  609. img: 'static/images/task.png',
  610. url: '/my_issue',
  611. num:0,
  612. },
  613. {
  614. name: '审批',
  615. value: '工作目标与价值的体现',
  616. img: 'static/images/performance.png',
  617. url: '/approval_list',
  618. num:0,
  619. },
  620. ],
  621. pointsevent: 0,
  622. send_site_info_loading: false,
  623. // 7.0
  624. time: this.$moment().format('HH'),
  625. site_info: {},
  626. pastdueDate: null,
  627. spTotal:0,//审批数量
  628. rwTotal:0,//任务数量
  629. pkLoading: false,
  630. pkPosition: 0,
  631. pkList: [],
  632. activeDoc:0,
  633. pkTeamLoading:false,
  634. pkTeamList:[],
  635. pkTimeScope: [],
  636. pkPickerOptions: {
  637. shortcuts:[
  638. {
  639. text:'最近一周',
  640. onClick(picker){
  641. const end = new Date();
  642. const start = new Date();
  643. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  644. picker.$emit('pick', [start, end]);
  645. }
  646. },
  647. {
  648. text:'最近一个月',
  649. onClick(picker){
  650. const end = new Date();
  651. const start = new Date();
  652. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  653. picker.$emit('pick', [start, end]);
  654. }
  655. },
  656. {
  657. text: '最近三个月',
  658. onClick(picker) {
  659. const end = new Date();
  660. const start = new Date();
  661. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  662. picker.$emit('pick', [start, end]);
  663. }
  664. }
  665. ]
  666. },
  667. deptRankLoading: false,
  668. deptRankChart:null,
  669. deptRankForm:{
  670. ptId:this.$getTyps().filter(item => item.code === 'BF')[0].id,
  671. // startDate:this.$moment().startOf('week').format('YYYY-MM-DD'),
  672. // endDate:this.$moment().format('YYYY-MM-DD'),
  673. timeRange:[
  674. deptRankStartDate,
  675. deptRankEndDate
  676. ],
  677. ruleId:0,
  678. ruleIncludeSub:false,
  679. deptId:0,
  680. deptIncludeSub:false,
  681. itemId:0
  682. },
  683. deptRankTimeScope:[],
  684. deptRankList: [
  685. // {name:'',point:0} //echart必须要有初始化数据后面才可以正常渲染图形,不知道为什么
  686. ],
  687. };
  688. },
  689. watch: {
  690. spTotal(val){
  691. this.fits[2].num=val
  692. this.inCommonUse[0].num=val
  693. },
  694. rwTotal(val){
  695. this.inCommonUse[1].num=val
  696. },
  697. exclusiveMonthChecked() {
  698. this.monthlyIntegral();
  699. },
  700. activeDoc(val,old){
  701. if (this.pkList.length <= val || val == old) return;
  702. this.getPkRankList(this.pkList[val].id)
  703. },
  704. pkTimeScope(val){
  705. if (this.pkList.length > this.activeDoc) this.getPkRankList(this.pkList[this.activeDoc].id);
  706. },
  707. deptRankTimeScope(val){
  708. this.deptRankForm.startDate = val[0];
  709. this.deptRankForm.endDate = val[1];
  710. },
  711. deptRankList(value){
  712. if (value.length === 0) {
  713. this.$refs.deptFormChart.style.display = 'none';
  714. }else {
  715. this.$refs.deptFormChart.style.display = 'block';
  716. }
  717. this.drawDeptRank();
  718. },
  719. 'deptRankForm.ptId'(val,oVal){
  720. if (val === oVal) return;
  721. this.getDeptRank();
  722. },
  723. 'deptRankForm.deptId'(val,oVal){
  724. if (val === oVal) return;
  725. this.getDeptRank();
  726. },
  727. 'deptRankForm.timeRange'(val,oVal){
  728. this.getDeptRank();
  729. },
  730. 'deptRankForm.deptIncludeSub'(val,oVal){
  731. this.getDeptRank();
  732. },
  733. 'deptRankForm.ruleId'(val,oVal){
  734. this.getDeptRank();
  735. },
  736. 'deptRankForm.ruleIncludeSub'(val,oVal){
  737. this.getDeptRank();
  738. }
  739. },
  740. computed: {
  741. ...mapState({
  742. user_info: state => state.user.user_info
  743. })
  744. },
  745. methods: {
  746. openUrl(){
  747. if(this.supAuthority!='employee'){
  748. this.$router.push({ path: '/integral_statistics' })
  749. }
  750. },
  751. returnImgIndex(url) {
  752. return 'url('+url+')';
  753. },
  754. //echarts自适应
  755. selfAdaption() {
  756. var myChart1 =ECharts.init(this.$refs.monthlyIntegralChart);
  757. var myChart2 =ECharts.init(this.$refs.IntegralFormChart);
  758. // var myChart3 = ECharts.init(this.$refs.deptFormChart);
  759. myChart1.resize();
  760. myChart2.resize();
  761. this.deptRankChart.resize();
  762. // myChart3.resize();
  763. },
  764. //点击轮播图
  765. bannerImagePush(item) {
  766. if (item == 1) {
  767. window.open('https://www.g107.net/integral.html');
  768. } else {
  769. window.open('https://www.g107.net/book.html');
  770. }
  771. },
  772. handleScrolls(e) {
  773. this.monthlyIntegral(); //月度积分
  774. this.highestPrizeBuckle()//奖扣分最高积分事件
  775. },
  776. //广告位
  777. advertising() {
  778. this.$axiosUser('get', '/api/pro/pc_admin')
  779. .then(res => {
  780. if (res.data.code == 1) {
  781. this.advertisingImage = res.data.data.advertising_img;
  782. }
  783. })
  784. },
  785. //管理员头部
  786. authorityManagerHeader() {
  787. this.authorityManagerHeaderLoad = true;
  788. let params = {
  789. employee_id: this.user_infos.id,
  790. month: this.$moment().format('YYYY-MM')
  791. };
  792. this.$axiosUser('get', '/api/pro/integral/statistics/', params, 'v3').then(res => {
  793. this.authorityManagerHeaders = res.data.data;
  794. }).finally(() => {
  795. this.authorityManagerHeaderLoad = false;
  796. });
  797. },
  798. //奖扣分最高积分事件
  799. highestPrizeBuckle() {
  800. this.highestPrizeBuckleloading = true;
  801. let params = {
  802. time_type: '1',
  803. pt_id: '3',
  804. page: '1',
  805. page_size: '1'
  806. };
  807. this.$axiosUser('get', '/api/pro/integral/statistics/prize/buckle/ranking', params).then(res => {
  808. if (res.data.data.prize.length != 0) {
  809. this.prize = res.data.data.prize[0];
  810. } else {
  811. this.prize = [];
  812. }
  813. if (res.data.data.buckle.length != 0) {
  814. this.buckle = res.data.data.buckle[0];
  815. } else {
  816. this.buckle = [];
  817. }
  818. }).finally(() => {
  819. this.highestPrizeBuckleloading = false;
  820. });
  821. },
  822. //本周考勤
  823. //格式化日期:yyyy-MM-dd
  824. formatDate(date) {
  825. var myyear = date.getFullYear();
  826. var mymonth = date.getMonth() + 1;
  827. var myweekday = date.getDate();
  828. if (mymonth < 10) {
  829. mymonth = '0' + mymonth;
  830. }
  831. if (myweekday < 10) {
  832. myweekday = '0' + myweekday;
  833. }
  834. return myyear + '-' + mymonth + '-' + myweekday;
  835. },
  836. weekChecking_in() {
  837. this.weekChecking_inloading = true;
  838. var now = new Date();
  839. var nowTime = now.getTime();
  840. var day = now.getDay() || 7;
  841. var oneDayTime = 24 * 60 * 60 * 1000;
  842. var MondayTime = nowTime - (day - 1) * oneDayTime; //显示周一
  843. var SundayTime = nowTime + (7 - day) * oneDayTime; //显示周日
  844. var params = {
  845. start_date: this.formatDate(new Date(MondayTime)),
  846. end_date: this.formatDate(new Date(SundayTime))
  847. };
  848. this.$axiosKq('get','/ad/statistics/department/weekly',params)
  849. .then(res => {
  850. let datas = res.data.data;
  851. this.weekChecking_ins[0].val = datas.late_count;
  852. this.weekChecking_ins[1].val = datas.leave_early_count;
  853. this.weekChecking_ins[2].val = datas.sign_absent_count;
  854. this.weekChecking_ins[3].val = datas.absent_count;
  855. this.weekChecking_ins[4].val = datas.range_count;
  856. this.weekChecking_ins[5].val = datas.ot_count;
  857. })
  858. .finally(() => {
  859. this.weekChecking_inloading = false;
  860. });
  861. },
  862. //管理者奖扣统计
  863. ManagerSAwardCharts(Name, Award, Deduct) {
  864. //管理着奖扣统计表
  865. const chart = this.$refs.ManagerSAwardChart;
  866. if (chart) {
  867. const myChart = ECharts.init(chart);
  868. const option = {
  869. tooltip: {
  870. trigger: 'axis',
  871. axisPointer: {
  872. // type: 'cross',
  873. crossStyle: {
  874. color: '#999'
  875. }
  876. }
  877. },
  878. grid: {
  879. //表格偏移量
  880. // top: '5% '
  881. left: '5%',
  882. right: '0%'
  883. },
  884. toolbox: {
  885. feature: {
  886. // dataView: {show: false, readOnly: true},
  887. // magicType: {show: false, type: ['line', 'bar']},
  888. // restore: {show: false},
  889. // saveAsImage: {show: false}
  890. }
  891. },
  892. color: ['#409EFF', '#FFC100'],
  893. legend: {
  894. right: '0%', //设置位置
  895. data: ['奖分', '扣分']
  896. },
  897. xAxis: [
  898. {
  899. type: 'category',
  900. data: Name,
  901. axisPointer: {
  902. type: 'shadow'
  903. },
  904. axisLabel: {
  905. interval: 0 //横轴信息全部显示
  906. // rotate:-30,//-30度角倾斜显示
  907. },
  908. axisLine: {
  909. //去掉X轴线
  910. show: false
  911. },
  912. axisTick: {
  913. //去掉X轴刻度
  914. show: false
  915. }
  916. }
  917. ],
  918. yAxis: [
  919. {
  920. type: 'value',
  921. axisLabel: {
  922. formatter: '{value}'
  923. },
  924. axisLine: {
  925. //去掉Y轴线
  926. show: false
  927. },
  928. axisTick: {
  929. //去掉Y轴刻度
  930. show: false
  931. }
  932. }
  933. ],
  934. series: [
  935. {
  936. name: '奖分',
  937. type: 'bar',
  938. barWidth: 14, //柱图宽度
  939. barGap: '0%', //柱图间距
  940. data: Award
  941. },
  942. {
  943. name: '扣分',
  944. type: 'bar',
  945. barWidth: 14, //柱图宽度
  946. barGap: '0%', //柱图间距
  947. data: Deduct
  948. }
  949. ]
  950. };
  951. myChart.setOption(option);
  952. }
  953. },
  954. ManagerSAwardlchange(val) {
  955. //选中规则
  956. let valItem = 0;
  957. for (let i in val) {
  958. valItem = val[i];
  959. }
  960. // this.ManagerSAward(valItem);
  961. this.$nextTick(() => {
  962. this.$refs.dept3.dropDownVisible = false;
  963. });
  964. },
  965. ManagerSAward(item) {
  966. //管理者奖扣请求
  967. this.ManagerSAwardloading = true;
  968. let params = {};
  969. let listslength = [];
  970. if (item) {
  971. (params.dept_id = item), (params.month = this.$moment().format('YYYY-MM'));
  972. } else {
  973. (params.dept_id = 0), (params.month = this.$moment().format('YYYY-MM'));
  974. }
  975. this.$axiosUser('get', '/api/pro/integral/statistics/task/pie', params, 'v2')
  976. .then(res => {
  977. let datas = res.data.data;
  978. listslength = datas.list;
  979. let histogramName = [];
  980. let histogramAward = [];
  981. let histogramDeduct = [];
  982. for (let i in datas.list) {
  983. histogramName.push(datas.list[i].name);
  984. histogramAward.push(datas.list[i].reward_point);
  985. histogramDeduct.push(datas.list[i].deduction_point);
  986. }
  987. this.ManagerSAwardlList[0].val = datas.reward_point;
  988. this.ManagerSAwardlList[1].val = datas.deduction_point;
  989. this.ManagerSAwardlList[2].val = datas.ratio;
  990. this.ManagerSAwardlList[3].val = datas.exec_count;
  991. this.ManagerSAwardlList[4].val = datas.manager_count;
  992. this.ManagerSAwardlList[5].val = datas.pass_count;
  993. this.ManagerSAwardlList[6].val = datas.fail_count;
  994. this.ManagerSAwardCharts(histogramName, histogramAward, histogramDeduct);
  995. })
  996. .finally(() => {
  997. if (listslength.length == 0) {
  998. this.ManagerSAwardnone = true;
  999. } else {
  1000. this.ManagerSAwardnone = false;
  1001. }
  1002. this.ManagerSAwardloading = false;
  1003. });
  1004. },
  1005. //月度积分
  1006. monthlyIntegralRanking(date, total, reward, deduction) {
  1007. const chart = this.$refs.monthlyIntegralChart;
  1008. if (chart) {
  1009. const myChart = ECharts.init(chart);
  1010. const option = {
  1011. tooltip: {
  1012. trigger: 'axis'
  1013. },
  1014. color: ['#F56C6C', '#409EFF', '#FFC100'],
  1015. legend: {
  1016. // selectedMode: 'single',
  1017. right: '4%',
  1018. data: ['总积分', '奖分', '扣分']
  1019. },
  1020. grid: {
  1021. left: '3%',
  1022. right: '4%',
  1023. bottom: '3%',
  1024. containLabel: true
  1025. },
  1026. toolbox: {
  1027. feature: {}
  1028. },
  1029. xAxis: {
  1030. type: 'category',
  1031. boundaryGap: false,
  1032. data: date
  1033. },
  1034. yAxis: {
  1035. type: 'value',
  1036. axisLine: {
  1037. show: false
  1038. },
  1039. axisTick: {
  1040. show: false
  1041. }
  1042. },
  1043. series: [
  1044. {
  1045. name: '总积分',
  1046. type: 'line',
  1047. data: total
  1048. },
  1049. {
  1050. name: '奖分',
  1051. type: 'line',
  1052. data: reward
  1053. },
  1054. {
  1055. name: '扣分',
  1056. type: 'line',
  1057. data: deduction
  1058. }
  1059. ]
  1060. };
  1061. myChart.setOption(option);
  1062. }
  1063. },
  1064. //月度积分
  1065. monthlyIntegralchange(val) {
  1066. if (val.length == 0) {
  1067. this.exclusiveMonthBranch = 0;
  1068. } else {
  1069. let valItem = 0;
  1070. for (let i in val) {
  1071. valItem = val[i];
  1072. }
  1073. this.exclusiveMonthBranch = valItem;
  1074. }
  1075. this.monthlyIntegral();
  1076. this.$nextTick(() => {
  1077. this.$refs.dept2.dropDownVisible = false;
  1078. });
  1079. },
  1080. monthlyIntegral() {
  1081. this.monthlyIntegralloading = true;
  1082. let params = {};
  1083. let listslength = [];
  1084. if(this.supAuthority=='employee'){
  1085. params.employee_id = this.$store.getters.user_info.id;
  1086. }else{
  1087. params.dept_id = this.exclusiveMonthBranch
  1088. }
  1089. params.month = this.$moment().format('YYYY-MM')
  1090. if (this.exclusiveMonthChecked) {
  1091. params.include_fixed = 1;
  1092. } else {
  1093. params.include_fixed = 0;
  1094. }
  1095. this.$axiosUser('get', '/api/pro/integral/statistics/curve', params)
  1096. .then(res => {
  1097. if (res.data.code == 1) {
  1098. let lists = res.data.data;
  1099. listslength = lists;
  1100. this.monthlyIntegralList[0].total_point = lists.total_point;
  1101. this.monthlyIntegralList[1].reward_point = lists.reward_point;
  1102. this.monthlyIntegralList[2].deduction_point = lists.deduction_point;
  1103. this.monthlyIntegralList[3].ratio = lists.ratio;
  1104. this.monthlyIntegralList[4].toRatio = lists.contrast_total;
  1105. this.monthlyIntegralList[5].toRatio = lists.contrast_reward;
  1106. this.monthlyIntegralList[6].toRatio = lists.contrast_deduction;
  1107. let dates = []; //日期
  1108. let totals = []; //总积分
  1109. let rewards = []; //奖分
  1110. let deductions = []; //扣分
  1111. for (let i in lists.total) {
  1112. dates.push(lists.total[i].date);
  1113. totals.push(lists.total[i].point);
  1114. }
  1115. for (let i in lists.reward) {
  1116. rewards.push(lists.reward[i].point);
  1117. }
  1118. for (let i in lists.deduction) {
  1119. deductions.push(lists.deduction[i].point);
  1120. }
  1121. this.monthlyIntegralRanking(dates, totals, rewards, deductions);
  1122. }
  1123. })
  1124. .finally(() => {
  1125. if (listslength.total.length == 0) {
  1126. this.monthlyIntegralnone = true;
  1127. } else {
  1128. this.monthlyIntegralnone = false;
  1129. }
  1130. this.monthlyIntegralloading = false;
  1131. });
  1132. },
  1133. //积分构成
  1134. dept1_null(val) {
  1135. let valItem = 0;
  1136. for (let i in val) {
  1137. valItem = val[i];
  1138. }
  1139. this.integralForm(valItem);
  1140. this.$nextTick(() => {
  1141. this.$refs.dept1.dropDownVisible = false;
  1142. });
  1143. },
  1144. //分为两列展示,多传legendDataTwo
  1145. drawLine(legendDataOne, legendDataTwo, dadalist) {
  1146. // drawLine(legendDataOne,dadalist){
  1147. const chart = this.$refs.IntegralFormChart;
  1148. //此处可给固定颜色,不给就所有颜色随机
  1149. let colors = ['rgb(38, 162, 255)', '#f36f2a', '#fecb09', '#00b6bd', '#e85d53', '#fecb09', '#725197', '#fcb814', '#41a08d', '#425a95', '#ea8b84', '#9d1d62', '#fcb814'];
  1150. // let colors = [];
  1151. let legendDataLeng = legendDataOne.length + legendDataTwo.length;
  1152. if (legendDataLeng > colors.length) {
  1153. //当列表大于固定颜色时,给随机颜色
  1154. let colorsLeng = colors.length;
  1155. for (let i = 0; i <= legendDataLeng - colorsLeng; i++) {
  1156. // colors.push('#' + Math.random().toString(16).substr(2, 6).toUpperCase());//也是随机色
  1157. colors.push('rgb(' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ')');
  1158. }
  1159. }
  1160. //只显示 N 条标题,多余隐藏,但是饼图不会隐藏
  1161. let DataLengths = [];
  1162. for (let i in legendDataTwo) {
  1163. if (i < 8) {
  1164. DataLengths.push(legendDataTwo[i]);
  1165. }
  1166. }
  1167. let left1 = '45%';
  1168. let left2 = '45%';
  1169. let leftBT = '25%';
  1170. if (legendDataTwo.length != 0) {
  1171. left1 = '33%';
  1172. leftBT = '19%';
  1173. }
  1174. if (chart) {
  1175. const myChart = ECharts.init(chart);
  1176. var legendData1 = legendDataOne;
  1177. var legendData2 = DataLengths;
  1178. const option = {
  1179. tooltip: {
  1180. trigger: 'item',
  1181. formatter: '{b}'
  1182. },
  1183. legend: [
  1184. {
  1185. type: 'scroll',
  1186. orient: 'vertical',
  1187. icon: 'square',
  1188. left: left1,
  1189. align: 'left',
  1190. top: '23%',
  1191. itemGap: 20,
  1192. // bottom:'50%',
  1193. textStyle: {
  1194. fontSize: 14,
  1195. color: 'rgb(48, 49, 51)'
  1196. },
  1197. data: legendData1
  1198. },
  1199. //分为两列展示
  1200. {
  1201. type: 'scroll',
  1202. orient: 'vertical',
  1203. icon: 'square',
  1204. left: '68%',
  1205. align: 'left',
  1206. top: '23%',
  1207. itemGap: 20,
  1208. // bottom:'50%',
  1209. textStyle: {
  1210. fontSize: 14,
  1211. color: 'rgb(48, 49, 51)'
  1212. },
  1213. data: legendData2
  1214. }
  1215. ],
  1216. color: colors,
  1217. grid: {
  1218. x: 25,
  1219. y: 45,
  1220. x2: 5,
  1221. y2: 20,
  1222. borderWidth: 1
  1223. },
  1224. toolbox: {
  1225. show: true,
  1226. feature: {
  1227. mark: { show: true },
  1228. magicType: {
  1229. show: true,
  1230. type: ['pie', 'funnel']
  1231. }
  1232. }
  1233. },
  1234. series: [
  1235. {
  1236. name: '',
  1237. type: 'pie',
  1238. radius: [20, 110],
  1239. center: [leftBT, '50%'],
  1240. roseType: 'radius',
  1241. label: {
  1242. show: false
  1243. },
  1244. emphasis: {
  1245. label: {
  1246. show: false
  1247. }
  1248. },
  1249. data: dadalist
  1250. }
  1251. ]
  1252. };
  1253. myChart.setOption(option);
  1254. }
  1255. },
  1256. integralForm(item) {
  1257. this.IntegralFormChartLoad = true;
  1258. let listslength = [];
  1259. let params = {};
  1260. if (item) {
  1261. (params.dept_id = item), (params.month = this.$moment().format('YYYY-MM'));
  1262. } else {
  1263. (params.dept_id = 0), (params.month = this.$moment().format('YYYY-MM'));
  1264. }
  1265. if(this.supAuthority=='employee'){
  1266. params.employee_id = this.$store.getters.user_info.id;
  1267. }
  1268. this.$axiosUser('get', '/api/pro/integral/statistics/pie/b', params, 'v2')
  1269. .then(res => {
  1270. let lists = res.data.data.list;
  1271. listslength = lists;
  1272. let legendData1 = [];
  1273. let legendData2 = [];
  1274. let dadalist = [];
  1275. //分为两列展示
  1276. for (let i in lists) {
  1277. if (lists[i].name.length > 10) {
  1278. lists[i].name = lists[i].name.slice(0, 10) + '...';
  1279. }
  1280. let str=`${lists[i].name} ${lists[i].ratio}% ${lists[i].reward-Math.abs(lists[i].deduction)}分 (奖${lists[i].reward}分 扣${lists[i].deduction}分)`
  1281. // let str=`${lists[i].name} 奖${lists[i].reward}分 扣${lists[i].deduction}分 合计得${lists[i].reward-Math.abs(lists[i].deduction)}分 占比${lists[i].ratio}%`
  1282. //分为两列展示
  1283. if (i < 8) {
  1284. legendData1.push(str);
  1285. } else {
  1286. legendData2.push(str);
  1287. }
  1288. let dataListDx = {};
  1289. if (lists[i].ratio < 0) {
  1290. dataListDx.value = 0;
  1291. } else {
  1292. dataListDx.value = lists[i].ratio;
  1293. }
  1294. dataListDx.name =str ;
  1295. // dataListDx.name = lists[i].name + ' ' + '奖' + lists[i].reward + ' ' + '扣' + lists[i].deduction + ' ' + lists[i].ratio + '%';
  1296. dadalist.push(dataListDx);
  1297. }
  1298. //分为两列展示,多传legendData2
  1299. if(dadalist.length>8){
  1300. dadalist = dadalist.slice(0,8);
  1301. legendData2=[];
  1302. }
  1303. this.drawLine(legendData1, legendData2, dadalist); //图表
  1304. })
  1305. .finally(() => {
  1306. if (listslength.length == 0) {
  1307. this.IntegralFormnone = true;
  1308. } else {
  1309. this.IntegralFormnone = false;
  1310. }
  1311. this.IntegralFormChartLoad = false;
  1312. });
  1313. },
  1314. customRanking(item) {
  1315. let data = {
  1316. group_id: item.target_id,
  1317. start_date:'',
  1318. end_date:'',
  1319. page_size:7,
  1320. page:1,
  1321. };
  1322. if(item.date_interval==1){//本月
  1323. data.start_date=this.$moment().startOf('month').format('YYYY-MM-DD');
  1324. data.end_date=this.$moment().endOf('month').format('YYYY-MM-DD');
  1325. }else if(item.date_interval==2){ //季
  1326. data.start_date=this.$moment().startOf('quarters').format('YYYY-MM-DD');
  1327. data.end_date=this.$moment().endOf('quarters').format('YYYY-MM-DD');
  1328. }else if(item.date_interval==3){ //年
  1329. data.start_date=this.$moment().startOf('year').format('YYYY-MM-DD');
  1330. data.end_date=this.$moment().endOf('year').format('YYYY-MM-DD');
  1331. }else if(item.date_interval==0){ //自定义
  1332. data.start_date=item.start_date;
  1333. data.end_date=item.end_date;
  1334. }else if(item.date_interval==4){ //周
  1335. data.start_date=this.$moment().week(this.$moment().week()).startOf('isoweek').format('YYYY-MM-DD');
  1336. data.end_date=this.$moment().week(this.$moment().week()).endOf('isoweek').format('YYYY-MM-DD');
  1337. }
  1338. this.$axiosUser('get', '/api/pro/integral/statistics/ranking', data,'v3').then(res => {
  1339. let lists = res.data.data.list;
  1340. let rankingList = [];
  1341. let arr = false;
  1342. for (let i in lists) {
  1343. let rankingJson = {};
  1344. if (lists[i].employee_name) {
  1345. arr = true;
  1346. } else {
  1347. arr = false;
  1348. rankingJson.employee_id = lists[i].employee_id;
  1349. rankingJson.employee_img_url = lists[i].img_url;
  1350. rankingJson.employee_name = lists[i].name;
  1351. rankingJson.point = lists[i].point;
  1352. rankingJson.rank = lists[i].rank;
  1353. rankingJson.status_remark = '';
  1354. rankingList.push(rankingJson);
  1355. }
  1356. }
  1357. if (arr) {
  1358. this.rankingListDetails = lists;
  1359. } else {
  1360. this.rankingListDetails = rankingList;
  1361. }
  1362. })
  1363. .finally(() => {
  1364. this.addUpRankingLoad = false;
  1365. });
  1366. },
  1367. addUpRanking() {
  1368. //累计B分排名
  1369. let params = {
  1370. dept_id: 0,
  1371. sort: 'DESC',
  1372. page: 1,
  1373. page_size: 10,
  1374. pt_id: 3,
  1375. type: 'all',
  1376. index_ranking: 1
  1377. };
  1378. this.$axiosUser('get', '/api/pro/integral/statistics/ranking', params, 'v3')
  1379. .then(res => {
  1380. this.rankingListDetails = res.data.data.list;
  1381. })
  1382. .finally(() => {
  1383. this.addUpRankingLoad = false;
  1384. });
  1385. },
  1386. departmentOfRanking() {
  1387. //部门B分排名
  1388. this.RankingPush = '/dept_rank';
  1389. let params = {
  1390. dept_id: 0,
  1391. sort: 'DESC',
  1392. pt_id: 3,
  1393. time_type: 1,
  1394. page: 1,
  1395. page_size: 10,
  1396. position: 'all',
  1397. month: this.$moment().format('YYYY-MM'),
  1398. index_ranking: 1
  1399. };
  1400. this.$axiosUser('get', '/api/pro/integral/statistics/ranking', params, 'v3')
  1401. .then(res => {
  1402. this.rankingListDetails = res.data.data.list;
  1403. })
  1404. .finally(() => {
  1405. this.addUpRankingLoad = false;
  1406. });
  1407. },
  1408. rankingListname() {
  1409. //获取排名列表
  1410. this.tabPositionLoad = true;
  1411. let params = {
  1412. page: 1,
  1413. page_size: 7
  1414. };
  1415. this.$axiosUser('get', '/api/pro/integral/statistics/ranking/list', params)
  1416. .then(res => {
  1417. if (res.data.code == 1) {
  1418. let lists = res.data.data.list;
  1419. for (let i in lists) {
  1420. lists[i].val = i;
  1421. if (lists[i].type == 'normal') {
  1422. lists[i].group_name = '阶段排名(月)';
  1423. }
  1424. if (lists[i].type == 'all') {
  1425. lists[i].group_name = '累计B分排名';
  1426. }
  1427. this.rankingList.push(lists[i]);
  1428. }
  1429. this.addUpRankingLoad = true;
  1430. this.departmentOfRanking(); //进入获取部门B分排名数据
  1431. } else {
  1432. self.$message.error(res.data.data.msg);
  1433. }
  1434. })
  1435. .finally(() => {
  1436. this.tabPositionLoad = false;
  1437. });
  1438. },
  1439. getPkDocList(){
  1440. this.pkLoading = true;
  1441. //获取可见范围的PK档案列表
  1442. this.$axiosUser('GET','/api/pro/pk/doc/list/visible')
  1443. .then(res => {
  1444. this.pkList = res.data.data.list;
  1445. if (this.pkList.length > 0) this.getPkRankList(this.pkList[0].id)
  1446. })
  1447. .finally(() =>{
  1448. this.pkLoading = false;
  1449. })
  1450. },
  1451. getPkRankList(docId){
  1452. if (!this.pkTimeScope || this.pkTimeScope.length !== 2) {
  1453. this.pkTeamList = [];
  1454. return;
  1455. }
  1456. let type = "team_pk";
  1457. let params = {
  1458. type:type,
  1459. doc_id:docId,
  1460. start_date:this.pkTimeScope[0],
  1461. end_date:this.pkTimeScope[1]
  1462. };
  1463. this.pkTeamLoading = true;
  1464. this.$socketApiTow.sendData(params,(res) => {
  1465. if (res.type != type || res.code != 1) return;
  1466. this.pkTeamList = res.result.teams;
  1467. this.pkTeamLoading = false;
  1468. })
  1469. },
  1470. tabPositions(item) {
  1471. if (item) {
  1472. this.addUpRankingLoad = true;
  1473. }
  1474. if (item.type == 'normal') {
  1475. this.RankingPush = '/dept_rank';
  1476. this.departmentOfRanking();
  1477. } else if (item.type == 'all') {
  1478. this.RankingPush = '/total_rank';
  1479. this.addUpRanking();
  1480. } else if (item.type == 'custom') {
  1481. this.RankingPush = '/custom_rank';
  1482. this.customRanking(item);
  1483. }
  1484. },
  1485. //审批
  1486. openDetail(item) {
  1487. this.detail_id = item.id;
  1488. this.detailShow = true;
  1489. },
  1490. get_list() {
  1491. this.examineAndApproveloading = true;
  1492. let params = {
  1493. type: 'waiting',
  1494. source_type: 0,
  1495. pt_id: 0,
  1496. page_size: 3,
  1497. page: 1
  1498. };
  1499. this.$axiosUser('get', '/api/pro/integral/review/list', params)
  1500. .then(res => {
  1501. if (res.data.code == 1) {
  1502. this.examineAndApproveList = res.data.data.list;
  1503. this.examineAndApproveindex = res.data.data.total;
  1504. } else {
  1505. this.$message.error(res.data.data.msg);
  1506. }
  1507. this.examineAndApproveloading = false;
  1508. })
  1509. .catch(e => {
  1510. this.examineAndApproveloading = false;
  1511. });
  1512. },
  1513. get_new_employee() {
  1514. let self = this;
  1515. this.$axiosUser('get', '/api/pro/join/index').then(res => {
  1516. const list = res.data.data.list;
  1517. let item = list.find(item => item.status == 0);
  1518. if (item !== undefined) {
  1519. this.notify_close = this.$notify({
  1520. showClose: false,
  1521. dangerouslyUseHTMLString: true,
  1522. offset: 64,
  1523. onClick: function() {
  1524. this.close();
  1525. self.$router.push({
  1526. path: '/employee_table',
  1527. query: { is: true }
  1528. });
  1529. },
  1530. message: "<div style='height: 50px;display: block;'><div>" + item.account_name + '申请加入企业</div><p><a>点击处理</a></p></div>',
  1531. duration: 0
  1532. });
  1533. }
  1534. })
  1535. },
  1536. renew() {
  1537. window.open('http://p.qiao.baidu.com/cps/chat?siteId=10793815&userId=3040844', '_blank');
  1538. },
  1539. // 生成二维码
  1540. qrcode() {
  1541. let self = this;
  1542. let code = window.location.href.substring(0, window.location.href.length - 5) + 'android';
  1543. let qrcode = new QRCode('secancode', {
  1544. width: 110,
  1545. height: 110, // 高度
  1546. text: code // 二维码内容
  1547. });
  1548. },
  1549. openPage(index) {
  1550. switch (index) {
  1551. case 1:
  1552. this.$router.push({
  1553. path: '/company_info'
  1554. });
  1555. break;
  1556. case 2:
  1557. this.$router.push({
  1558. path: '/set_basics'
  1559. });
  1560. break;
  1561. case 3:
  1562. this.$router.push({
  1563. path: '/employee_table'
  1564. });
  1565. break;
  1566. case 4:
  1567. this.$router.push({
  1568. path: '/rule_manage'
  1569. });
  1570. break;
  1571. case 5:
  1572. this.$router.push({
  1573. path: '/attendance_classnew'
  1574. });
  1575. break;
  1576. }
  1577. },
  1578. openGzd(val) {
  1579. val ? this.$router.push({ path: val }) : '';
  1580. },
  1581. // 递归判断列表,把最后的children设为undefined
  1582. getTreeData(data) {
  1583. for (var i = 0; i < data.length; i++) {
  1584. if (data[i].children.length < 1) {
  1585. // children若为空数组,则将children设为undefined
  1586. data[i].children = undefined;
  1587. } else {
  1588. // children若不为空数组,则继续 递归调用 本方法
  1589. this.getTreeData(data[i].children);
  1590. }
  1591. }
  1592. return data;
  1593. },
  1594. site_infoTIme(site_info) {
  1595. let moment = this.$moment;
  1596. let create_time = site_info;
  1597. let pastdueTime = moment(create_time.toString().length == 10 ? create_time * 1000 : create_time).format('YYYY-MM-DD');
  1598. let atpresentDate = moment().format('YYYY-MM-DD');
  1599. let date = moment(pastdueTime).diff(moment(atpresentDate), 'days');
  1600. if (date >= 0 && date <= 30) {
  1601. this.pastdueDate = '您的积分软件即将到期,有效期至' + pastdueTime + ',请及时续费以免影响使用';
  1602. } else if (date < 0) {
  1603. this.pastdueDate = '您的积分软件已到期,有效期:' + pastdueTime + ',请及时续费以免影响使用';
  1604. } else {
  1605. this.pastdueDate = null;
  1606. }
  1607. },
  1608. // 获取审批和任务数量
  1609. getNum(){
  1610. let axios=this.$axiosUser('get', '/api/pro/integral/review/list', {type: 'waiting',page: 1,pt_id: 0,source_type: 0});
  1611. let axios2=this.$axiosUser('get', '/api/pro/integral/work/list', {status: 'running',page: 1,pt_id: 0});
  1612. Promise.all([axios,axios2]).then(res => {
  1613. this.spTotal=res[0].data.data.total;//审批数量
  1614. this.rwTotal=res[1].data.data.total;//任务数量
  1615. })
  1616. },
  1617. deptRankChange(val){
  1618. if (val.length === 0){
  1619. this.deptRankForm.deptId = 0;
  1620. }else {
  1621. this.deptRankForm.deptId = val[val.length - 1];
  1622. }
  1623. this.$nextTick(() => {
  1624. this.$refs.dept4.dropDownVisible = false;
  1625. })
  1626. },
  1627. getDeptRank(){
  1628. if (!this.deptRankForm.timeRange || this.deptRankForm.timeRange.length !== 2 || this.deptRankForm.ptId <= 0) return;
  1629. this.deptRankLoading = true;
  1630. let msg = {
  1631. type: 'dr',
  1632. start_date:this.deptRankForm.timeRange[0],
  1633. end_date:this.deptRankForm.timeRange[1],
  1634. pt_id:this.deptRankForm.ptId,
  1635. dept_id:this.deptRankForm.deptId,
  1636. dept_include_sub:this.deptRankForm.deptIncludeSub ? 1 : 0,
  1637. rule_id:this.deptRankForm.ruleId,
  1638. rule_include_sub:this.deptRankForm.ruleIncludeSub ? 1 : 0,
  1639. item_id:this.deptRankForm.itemId
  1640. };
  1641. this.$socketApiTow.sendData(msg,(res) => {
  1642. if (res.type !== msg.type || res.code !== 1) return;
  1643. this.deptRankList = res.result.list;
  1644. this.deptRankList.reverse()
  1645. this.deptRankLoading = false;
  1646. })
  1647. },
  1648. drawDeptRank() {
  1649. if (!this.deptRankChart) return;
  1650. //正负条形图
  1651. let itemStyle = {color:'#91CC75',shadowColor: '#91cc75',borderType: 'dashed'};
  1652. let option = {
  1653. tooltip:{
  1654. trigger:'axis',
  1655. axisPointer: {
  1656. type:'shadow'
  1657. }
  1658. },
  1659. grid: {
  1660. left: '1%',
  1661. right: '4%',
  1662. bottom: '3%',
  1663. containLabel: true
  1664. },
  1665. xAxis:{
  1666. type:'value'
  1667. },
  1668. yAxis:{
  1669. type: 'category',
  1670. axisTick: {
  1671. show: false
  1672. },
  1673. data:[]
  1674. },
  1675. series:{
  1676. name:'积分',
  1677. type:'bar',
  1678. label:{
  1679. show:true,
  1680. position:'inside'
  1681. },
  1682. data:[
  1683. ]
  1684. }
  1685. };
  1686. option.yAxis.data = [];
  1687. option.series.data = [];
  1688. let colorOk = '#409EFF';
  1689. let colorBad = '#F36F2A';
  1690. let colorNone = '#FECB09';
  1691. this.deptRankList.forEach(item => {
  1692. option.yAxis.data.push(item.name);
  1693. let value = {
  1694. value: item.point,
  1695. itemStyle:{color:item.point > 0 ? colorOk : (item.point === 0 ? colorNone : colorBad)}
  1696. }
  1697. option.series.data.push(value)
  1698. })
  1699. //生成图像,动态计算容器高度
  1700. this.deptRankChart.getDom().style.height = this.deptRankList.length * 30 + 'px';
  1701. this.deptRankChart.setOption(option);
  1702. //图像重新适应容器高度
  1703. this.deptRankChart.resize();
  1704. },
  1705. deptRankRuleChange(val){
  1706. if (val.length === 0){
  1707. this.deptRankForm.ruleId = 0;
  1708. }else {
  1709. this.deptRankForm.ruleId = val[val.length - 1];
  1710. }
  1711. this.$nextTick(() => {
  1712. this.$refs.deptRankRule.dropDownVisible = false;
  1713. })
  1714. },
  1715. getRuleTreeData(data){
  1716. for (var i = 0; i < data.length; i++) {
  1717. if (data[i].child.length < 1) {
  1718. // children若为空数组,则将children设为undefined
  1719. data[i].child = undefined;
  1720. } else {
  1721. // children若不为空数组,则继续 递归调用 本方法
  1722. this.getRuleTreeData(data[i].child);
  1723. }
  1724. }
  1725. return data;
  1726. },
  1727. getRuleTrees(){
  1728. let self = this;
  1729. self.$axiosUser('get', '/api/pro/integral/rule/trees',{ cycle_type: '1' }).then(res => {
  1730. if (res.data.code == 1) {
  1731. let arr = res.data.data.rule_tree;
  1732. self.ruleTrees = self.getRuleTreeData(arr);
  1733. } else {
  1734. self.$message.error(res.data.data.msg);
  1735. }
  1736. });
  1737. },
  1738. },
  1739. created() {
  1740. this.$store.dispatch('get_dept_tree',true).then(res => {
  1741. this.$nextTick(() => {
  1742. this.dept_tree = this.getTreeData(this.$getCache('dept_tree'));
  1743. });
  1744. });
  1745. // this.$removeCache('site_info');
  1746. // this.$store.dispatch('get_site_info').then(res => {
  1747. // if (this.$getCache('site_info')) {
  1748. // this.site_infoTIme(this.$getCache('site_info').expire_time);
  1749. // } else {
  1750. // this.site_infoTIme(res.expire_time);
  1751. // }
  1752. // });
  1753. this.handleScrolls();
  1754. const pkStartData = new Date();
  1755. const pkEndData = new Date();
  1756. pkStartData.setTime(pkEndData.getTime() - 3600 * 1000 * 24 * 30);
  1757. this.pkTimeScope[0] = this.$moment(pkStartData).format("YYYY-MM-DD");
  1758. this.pkTimeScope[1] = this.$moment(pkEndData).format("YYYY-MM-DD");
  1759. this.getRuleTrees();
  1760. },
  1761. mounted() {
  1762. this.deptRankChart = ECharts.init(this.$refs.deptFormChart); //初始化部门排名图形对象
  1763. this.inCommonUse.forEach((item,index)=>{
  1764. if(this.supAuthority=='employee'&&(index==1||index==4||index==5)){
  1765. item.isShow=true;
  1766. }else if(this.supAuthority!='employee'&&(index==0||index==2||index==3||index==4||index==1)){
  1767. item.isShow=true;
  1768. }
  1769. })
  1770. if (this.$getCache('Experience_data')) {
  1771. this.experience_data =this.$getCache('Experience_data').if; //是否体验账号
  1772. }
  1773. window.addEventListener('resize', this.selfAdaption); //浏览器窗口大小变化触发图形对象重新自适应计算大小
  1774. // 修改请求接口顺序
  1775. this.getNum();// 获取审批和任务数量
  1776. this.authorityManagerHeader(); //管理员header
  1777. this.rankingListname(); //获取自定义排行榜名
  1778. //websocket数据统一处理
  1779. this.$socketApiTow.authWebSocket(() => {
  1780. this.getPkDocList(); //pk档案列表
  1781. this.getDeptRank(); //获取部门排名数据
  1782. });
  1783. this.integralForm(); //积分构成
  1784. this.weekChecking_in(); //本周考勤
  1785. this.advertising(); //广告位
  1786. // this.get_site_info()//获取公司详情----当前页面没有用到,先别删
  1787. // this.qrcode(); //生成二维码,可能无用
  1788. // this.get_list(); //待我审批的
  1789. this.$nextTick(() => {
  1790. this.$router.afterEach(() => {
  1791. //切换到此路由时让滚动条回到顶部
  1792. document.getElementsByClassName('main-content')[0].scrollTop = 0;
  1793. document.documentElement.scrollTop = 0;
  1794. });
  1795. });
  1796. // if (!this.$supremeAuthority('dept_manager')&&!this.$supremeAuthority('employee')) {
  1797. // this.get_new_employee(); //申请加入弹窗
  1798. // }
  1799. },
  1800. beforeDestroy() {
  1801. //销毁滚动条事件
  1802. window.removeEventListener('resize', this.selfAdaption); //取消echarts自适应
  1803. },
  1804. destroyed() {
  1805. if (this.notify_close) {
  1806. this.notify_close.close();
  1807. }
  1808. }
  1809. };
  1810. </script>
  1811. <style scoped>
  1812. .task-remark{
  1813. max-height: 40px;
  1814. word-break: break-all;
  1815. font-size:13px;
  1816. line-height:20px;
  1817. color:rgb(48, 49, 51);
  1818. overflow:hidden;
  1819. text-overflow:ellipsis;
  1820. display:-webkit-box;
  1821. -webkit-box-orient:vertical;
  1822. -webkit-line-clamp:2;
  1823. }
  1824. .group-name{
  1825. width:120px;
  1826. color:#606266;
  1827. margin-right: 16px;
  1828. border: 1px solid #f1f1f1;
  1829. border-radius: 5px;
  1830. padding: 5px 10px;
  1831. height: 49px;
  1832. cursor: pointer;
  1833. }
  1834. .activeGroup{
  1835. background-color: #409EFF;
  1836. color: #fff;
  1837. border: 1px solid #409EFF;
  1838. }
  1839. .blue-num{
  1840. color:#409EFF;
  1841. font-size:27px;
  1842. font-weight: 700;
  1843. }
  1844. .blue-text{
  1845. color:#606266;
  1846. font-size:14px;
  1847. padding-top:8px;
  1848. }
  1849. .bacimg{
  1850. background-repeat: no-repeat;
  1851. height: 125px;
  1852. background-position: center;
  1853. }
  1854. .el-badge__content {
  1855. background-color: #f56c6c;
  1856. border-radius: 10px;
  1857. color: #fff;
  1858. display: inline-block;
  1859. font-size: 12px;
  1860. height: 18px;
  1861. line-height: 18px;
  1862. padding: 0 6px;
  1863. text-align: center;
  1864. white-space: nowrap;
  1865. border: 1px solid #fff;
  1866. }
  1867. /deep/ .el-carousel__button {
  1868. background-color: #dadada;
  1869. }
  1870. .time-box .past {
  1871. color: #999;
  1872. }
  1873. .mask-falsh {
  1874. position: fixed;
  1875. top: 0;
  1876. left: 0;
  1877. background-color: rgba(0, 0, 0, 0.5);
  1878. width: 100%;
  1879. height: 100%;
  1880. z-index: 9999;
  1881. display: none;
  1882. }
  1883. .flash .closeBtn {
  1884. width: 35px;
  1885. z-index: 100;
  1886. height: 35px;
  1887. position: absolute;
  1888. right: 0;
  1889. padding: 5px;
  1890. cursor: pointer;
  1891. }
  1892. .flash {
  1893. display: none;
  1894. position: fixed;
  1895. top: 50%;
  1896. left: 50%;
  1897. transform: translate(-50%, -50%);
  1898. z-index: 99;
  1899. }
  1900. @media screen and (max-width: 1366px) {
  1901. .index-admin-right {
  1902. width: 100%;
  1903. }
  1904. .index-admin-left {
  1905. width: 100%;
  1906. }
  1907. .index-admin-right .div-lg-8 {
  1908. width: 16.66667%;
  1909. }
  1910. }
  1911. @media screen and (max-width: 960px) {
  1912. .card-panel-right {
  1913. width: 100%;
  1914. }
  1915. .card-panel-left {
  1916. width: 100%;
  1917. }
  1918. }
  1919. .index-admin .el-tabs {
  1920. background-color: #fff;
  1921. }
  1922. .el-tabs__item {
  1923. height: 50px;
  1924. line-height: 50px;
  1925. }
  1926. .el-tabs__item {
  1927. font-size: 16px;
  1928. }
  1929. .div {
  1930. padding: 0;
  1931. & :last-child {
  1932. margin-bottom: 0;
  1933. }
  1934. }
  1935. .index-admin .el-tabs__header {
  1936. padding: 0;
  1937. position: relative;
  1938. margin: 0 0 15px !important;
  1939. }
  1940. .top_user_info {
  1941. position: relative;
  1942. padding-top: 0;
  1943. background: #fff;
  1944. }
  1945. .top_user_info .userinfo_box {
  1946. border-right: 1px #cecccc solid;
  1947. margin: 34px 0;
  1948. }
  1949. .top_user_info .user_box {
  1950. padding-left: 0 !important;
  1951. border-right: 1px #333 solid;
  1952. }
  1953. .top_user_info .headimg_box {
  1954. padding-left: 0 !important;
  1955. }
  1956. .top_user_info .headimg_box .headimg {
  1957. width: 50px;
  1958. height: 50px;
  1959. background: #909399;
  1960. border-radius: 50px;
  1961. }
  1962. .top_user_info .user_info {
  1963. padding: 0 !important;
  1964. line-height: 25px;
  1965. }
  1966. .top_user_info .user_info .greetings {
  1967. margin: 0 auto;
  1968. font-size: 16px;
  1969. font-weight: bold;
  1970. }
  1971. .top_user_info .user_info .greetings div {
  1972. max-width: 95px;
  1973. display: inline-block;
  1974. overflow: hidden;
  1975. white-space: nowrap;
  1976. text-overflow: ellipsis;
  1977. vertical-align: top;
  1978. }
  1979. .top_user_info .user_info .greetings span {
  1980. font-size: 14px;
  1981. color: #666;
  1982. display: inline-block;
  1983. vertical-align: top;
  1984. }
  1985. .top_user_info .user_info span:nth-child(1) {
  1986. display: block;
  1987. font-size: 16px;
  1988. overflow: hidden;
  1989. white-space: nowrap;
  1990. text-overflow: ellipsis;
  1991. }
  1992. .top_user_info .person {
  1993. display: block;
  1994. font-size: 14px;
  1995. padding: 32px 0 18px 0;
  1996. color: #606266;
  1997. }
  1998. /*
  1999. padding: 18px 0 16px 0;
  2000. color: #606266;
  2001. height: 32px;
  2002. box-sizing: content-box;
  2003. */
  2004. .top_user_info .time {
  2005. font-size: 14px;
  2006. padding-right: 10px;
  2007. position: relative;
  2008. }
  2009. .hong {
  2010. position: relative;
  2011. }
  2012. .hong:before {
  2013. position: absolute;
  2014. content: '';
  2015. width: 0.4rem;
  2016. height: 0.4rem;
  2017. border-radius: 25px;
  2018. background-color: #f56c6c;
  2019. left: -0.8rem;
  2020. animation: theanimation 1s infinite alternate;
  2021. }
  2022. @keyframes theanimation {
  2023. 0% {
  2024. width: 0.4rem;
  2025. height: 0.4rem;
  2026. opacity: 0.1;
  2027. }
  2028. 100% {
  2029. width: 0.6rem;
  2030. height: 0.6rem;
  2031. opacity: 1;
  2032. }
  2033. }
  2034. .top_user_info .el-button--info {
  2035. margin-left: 40px;
  2036. }
  2037. .quick_button_box .title {
  2038. font-family: Microsoft Yahei;
  2039. font-size: 16px;
  2040. font-weight: normal;
  2041. padding-left: 20px;
  2042. }
  2043. .readyapprove_box {
  2044. text-align: center;
  2045. margin-left: 10px;
  2046. background-color: #fff;
  2047. border-radius: 5px;
  2048. padding: 20px;
  2049. /* border: 1px #e1e4e7 solid; */
  2050. }
  2051. .readyapprove_box .title {
  2052. font-family: Microsoft Yahei;
  2053. display: block;
  2054. font-size: 16px;
  2055. font-weight: normal;
  2056. text-align: left;
  2057. margin: 0px 20px 11px 0;
  2058. padding: 2px 0 0 10px;
  2059. border-left: 2px solid #409EFF;
  2060. }
  2061. .readyapprove_box #secancode {
  2062. display: inline-block;
  2063. margin: 8px auto 10px;
  2064. }
  2065. .readyapprove_box .secantitle {
  2066. display: block;
  2067. text-align: center;
  2068. font-size: 12px;
  2069. line-height: 18px;
  2070. color: #909399;
  2071. }
  2072. .raiders_box {
  2073. margin-top: 10px;
  2074. padding: 20px;
  2075. background: #fff;
  2076. border-radius: 5px;
  2077. }
  2078. .bsItem{
  2079. background-color: #ecf5ff;
  2080. border-radius: 5px;
  2081. margin: 0px 5px;
  2082. cursor: pointer;
  2083. padding: 12px;
  2084. }
  2085. .raiders_box .title {
  2086. font-family: Microsoft Yahei;
  2087. padding-left: 10px;
  2088. font-size: 16px;
  2089. font-weight: normal;
  2090. border-left: 2px solid #409EFF;
  2091. }
  2092. .raiders_box .titledes {
  2093. display: block;
  2094. padding-top: 10px;
  2095. font-size: 14px;
  2096. color: #909399;
  2097. }
  2098. .raiders_box .noremind {
  2099. display: block;
  2100. text-align: right;
  2101. font-size: 12px;
  2102. color: #909399;
  2103. cursor: pointer;
  2104. }
  2105. .raiders_box .noremind:hover {
  2106. color: #409EFF;
  2107. }
  2108. .raiders_box .noremind:active {
  2109. color: #409EFF;
  2110. }
  2111. .pointsevent_box {
  2112. display: block;
  2113. text-align: center;
  2114. margin-bottom: 10px;
  2115. margin-left: 10px;
  2116. padding-right: 0 !important;
  2117. background-color: #fff;
  2118. border-radius: 5px;
  2119. }
  2120. .pointsevent_box .title {
  2121. font-family: Microsoft Yahei;
  2122. display: block;
  2123. text-align: left;
  2124. margin-bottom: 20px;
  2125. padding: 0 0 0 10px;
  2126. font-size: 16px;
  2127. font-weight: normal;
  2128. border-left: 2px solid #409EFF;
  2129. }
  2130. .pointsevent_box .more:hover {
  2131. color: #409EFF !important;
  2132. }
  2133. .title1 {
  2134. display: block;
  2135. text-align: center;
  2136. color: #909399 !important;
  2137. padding: 0;
  2138. }
  2139. .pointsevent_box /deep/ .el-timeline {
  2140. padding-left: 0;
  2141. }
  2142. .pointsevent_box /deep/ .el-timeline .el-timeline-item:hover .el-timeline-item__node {
  2143. background: #409EFF;
  2144. }
  2145. .pointsevent_box /deep/ .el-timeline .el-timeline-item__wrapper {
  2146. text-align: left;
  2147. font-size: 14px;
  2148. color: #303133;
  2149. padding-left: 24px;
  2150. }
  2151. .pointsevent_box /deep/ .el-timeline .el-timeline-item__wrapper span {
  2152. display: block;
  2153. font-size: 14px;
  2154. color: #303133;
  2155. margin-bottom: 8px;
  2156. }
  2157. .pointsevent_box /deep/ .el-timeline .el-timeline-item__wrapper:hover span {
  2158. color: #409EFF;
  2159. cursor: pointer;
  2160. }
  2161. .pointsevent_box /deep/ .el-timeline .el-timeline-item__wrapper span:nth-child(2) {
  2162. font-size: 12px;
  2163. color: #909399;
  2164. }
  2165. .prizebuckle_box {
  2166. margin: 20px auto 20px !important;
  2167. padding: 0;
  2168. }
  2169. .prizebuckle_box .manager_box {
  2170. width: 49%;
  2171. margin-left: 1%;
  2172. height: 570px;
  2173. padding: 20px;
  2174. background: #fff;
  2175. border: 1px #e1e4e7 solid;
  2176. box-shadow: 0 2px 4px rgba(140, 140, 140, 0.1);
  2177. }
  2178. .prizebuckle_box .manager_box .title {
  2179. font-family: Microsoft Yahei;
  2180. font-size: 16px;
  2181. color: #303133;
  2182. font-weight: normal;
  2183. padding-left: 10px;
  2184. border-left: 2px solid #409EFF;
  2185. }
  2186. .prizebuckle_box .manager_box .list {
  2187. position: relative;
  2188. margin-top: 25px;
  2189. padding-bottom: 22px;
  2190. }
  2191. .prizebuckle_box .manager_box .list:hover .point:before {
  2192. box-shadow: 0 2px 4px rgba(140, 140, 140, 0.1);
  2193. cursor: pointer;
  2194. }
  2195. .prizebuckle_box .manager_box .list:hover .point {
  2196. cursor: pointer;
  2197. }
  2198. .prizebuckle_box .manager_box .list:hover:before {
  2199. background: #409EFF;
  2200. border-bottom: 1px #409EFF solid;
  2201. box-shadow: 0 2px 4px rgba(140, 140, 140, 0.25);
  2202. transition: 0.5s ease-in-out;
  2203. cursor: pointer;
  2204. }
  2205. .prizebuckle_box .manager_box .list .headimg_box {
  2206. display: block;
  2207. }
  2208. .prizebuckle_box .manager_box .list:before {
  2209. display: block;
  2210. position: absolute;
  2211. bottom: 0;
  2212. left: 20px;
  2213. width: 350px;
  2214. border-bottom: 1px #efefef solid;
  2215. content: ' ';
  2216. z-index: 1;
  2217. }
  2218. .prizebuckle_box .manager_box .list .headimg_box .headimg {
  2219. display: inline-block;
  2220. text-align: center;
  2221. width: 40px;
  2222. height: 40px;
  2223. font-size: 12px;
  2224. color: #fff;
  2225. line-height: 40px;
  2226. background: #606266;
  2227. border-radius: 40px;
  2228. }
  2229. .prizebuckle_box .manager_box .list .headimg_box span {
  2230. display: inline-block;
  2231. vertical-align: middle;
  2232. font-size: 16px;
  2233. padding-left: 6px;
  2234. }
  2235. .prizebuckle_box .manager_box .list .item {
  2236. position: relative;
  2237. text-align: center;
  2238. margin-top: 15px;
  2239. }
  2240. .prizebuckle_box .manager_box .list .item:before {
  2241. display: none;
  2242. position: absolute;
  2243. content: ' ';
  2244. top: 0;
  2245. left: 0;
  2246. width: 90%;
  2247. height: 100%;
  2248. background: #f8f8f8;
  2249. border-radius: 8px;
  2250. z-index: 1;
  2251. transition: 0.5s ease-in-out;
  2252. }
  2253. .prizebuckle_box .manager_box .list .item .point {
  2254. font-size: 20px;
  2255. color: #606266;
  2256. }
  2257. .prizebuckle_box .manager_box .list .item .describe {
  2258. font-size: 12px;
  2259. color: #606266;
  2260. padding: 10px 0;
  2261. }
  2262. /*
  2263. .prizebuckle_box .manager_box .list .point .record {
  2264. position: relative;
  2265. display: block;
  2266. width: 90px;
  2267. font-size: 20px;
  2268. color: #1c1c1c;
  2269. padding-bottom: 10px;
  2270. z-index: 2;
  2271. }
  2272. .prizebuckle_box .manager_box .list .point .name {
  2273. position: relative;
  2274. display: block;
  2275. width: 90px;
  2276. font-size: 12px;
  2277. color: #606266;
  2278. padding-bottom: 6px;
  2279. z-index: 2;
  2280. }
  2281. .prizebuckle_box .manager_box .list .point .object {
  2282. position: relative;
  2283. display: block;
  2284. width: 90px;
  2285. font-size: 12px;
  2286. color: #606266;
  2287. z-index: 2;
  2288. }
  2289. */
  2290. .prizebuckle_box .manager_box .list .more a {
  2291. display: block;
  2292. text-align: center;
  2293. font-size: 14px;
  2294. color: #909399;
  2295. margin-top: 42px;
  2296. }
  2297. .prizebuckle_box .remeber_box {
  2298. width: 49%;
  2299. height: 570px;
  2300. margin-right: 1%;
  2301. padding: 20px;
  2302. background: #fff;
  2303. border: 1px #e1e4e7 solid;
  2304. box-shadow: 0 2px 4px rgba(140, 140, 140, 0.1);
  2305. }
  2306. .prizebuckle_box .remeber_box .team_data_item {
  2307. position: relative;
  2308. }
  2309. .prizebuckle_box .remeber_box .team_data_item:before {
  2310. display: block;
  2311. position: absolute;
  2312. top: 52px;
  2313. left: 0px;
  2314. width: 390px;
  2315. border-bottom: 1px #efefef solid;
  2316. content: ' ';
  2317. z-index: 1;
  2318. }
  2319. .prizebuckle_box .remeber_box .team_data_item:hover {
  2320. cursor: pointer;
  2321. }
  2322. .prizebuckle_box .remeber_box .title {
  2323. font-family: Microsoft Yahei;
  2324. font-size: 16px;
  2325. color: #303133;
  2326. font-weight: normal;
  2327. padding-left: 10px;
  2328. border-left: 2px solid #409EFF;
  2329. }
  2330. .prizebuckle_box .remeber_box .name {
  2331. text-align: center;
  2332. font-size: 14px;
  2333. color: #606266;
  2334. padding: 28px 0 20px;
  2335. }
  2336. .prizebuckle_box .remeber_box .name:nth-child(1) {
  2337. text-align: left;
  2338. }
  2339. .prizebuckle_box .remeber_box .name:last-nth-child(1) {
  2340. text-align: right;
  2341. }
  2342. .prizebuckle_box .remeber_box .list {
  2343. position: relative;
  2344. margin-bottom: 20px;
  2345. border-bottom: none;
  2346. }
  2347. .prizebuckle_box .remeber_box .list:before {
  2348. display: none;
  2349. position: absolute;
  2350. top: -6px;
  2351. left: 20px;
  2352. right: 20px;
  2353. width: 400px;
  2354. height: 50px;
  2355. background: #f8f8f8;
  2356. border-radius: 40px 0 0 40px;
  2357. box-shadow: none;
  2358. transition: 0.35s ease-in-out;
  2359. z-index: 1;
  2360. }
  2361. .prizebuckle_box .remeber_box .list:hover:before {
  2362. background: #409EFF;
  2363. box-shadow: 1px 2px 4px rgba(51, 51, 51, 0.2);
  2364. transition: 0.35s ease-in-out;
  2365. }
  2366. .prizebuckle_box .remeber_box .list:hover .point {
  2367. color: #1c1c1c;
  2368. }
  2369. .prizebuckle_box .remeber_box .team_data_item:hover:before {
  2370. border-bottom: 1px #409EFF solid;
  2371. }
  2372. .prizebuckle_box .remeber_box .list .headimg_box {
  2373. position: relative;
  2374. display: block;
  2375. padding-right: 0 !important;
  2376. z-index: 2;
  2377. }
  2378. .prizebuckle_box .remeber_box .list .headimg_box .headimg {
  2379. display: inline-block;
  2380. text-align: center;
  2381. vertical-align: middle;
  2382. width: 40px;
  2383. height: 40px;
  2384. font-size: 12px;
  2385. color: #fff;
  2386. line-height: 40px;
  2387. background: #909399;
  2388. border-radius: 40px;
  2389. }
  2390. .prizebuckle_box .remeber_box .list .headimg_box span.headname {
  2391. width: 98px;
  2392. float: right;
  2393. display: block;
  2394. font-size: 16px;
  2395. margin-left: 4px;
  2396. line-height: 40px;
  2397. vertical-align: bottom;
  2398. overflow: hidden;
  2399. white-space: nowrap;
  2400. text-overflow: ellipsis;
  2401. }
  2402. .prizebuckle_box .remeber_box .list .point {
  2403. position: relative;
  2404. text-align: center;
  2405. padding-top: 10px;
  2406. font-size: 16px;
  2407. z-index: 2;
  2408. }
  2409. .prizebuckle_box .remeber_box .list .point .record {
  2410. display: block;
  2411. font-size: 14px;
  2412. padding-bottom: 10px;
  2413. }
  2414. .prizebuckle_box .remeber_box .list .point .name {
  2415. display: block;
  2416. font-size: 12px;
  2417. padding-bottom: 6px;
  2418. }
  2419. .prizebuckle_box .remeber_box .list .point .object {
  2420. display: block;
  2421. font-size: 12px;
  2422. }
  2423. .prizebuckle_box .remeber_box .more span {
  2424. display: block;
  2425. text-align: center;
  2426. font-size: 14px;
  2427. color: #909399;
  2428. margin-top: 0px;
  2429. }
  2430. .prizebuckle_box .more:hover span {
  2431. color: #409EFF !important;
  2432. cursor: pointer;
  2433. }
  2434. .joinin_box {
  2435. display: block;
  2436. text-align: left;
  2437. margin: 20px 0 0 20px !important;
  2438. padding-right: 0 !important;
  2439. }
  2440. .joinin_box .title {
  2441. display: block;
  2442. font-size: 16px;
  2443. color: #303133;
  2444. padding: 18px 20px 0px;
  2445. }
  2446. .joinin_box .join_name {
  2447. display: block;
  2448. font-size: 12px;
  2449. color: #909399;
  2450. padding: 10px 20px 18px;
  2451. }
  2452. .statistics_box {
  2453. margin: 0 auto 20px !important;
  2454. padding: 20px;
  2455. background: #fff;
  2456. border: 1px #e1e4e7 solid;
  2457. box-shadow: 0 2px 4px rgba(140, 140, 140, 0.1);
  2458. }
  2459. .statistics_box .title {
  2460. font-family: Microsoft Yahei;
  2461. font-size: 16px;
  2462. margin: 0 0 20px 0;
  2463. padding: 0 0 0px 10px !important;
  2464. font-weight: normal;
  2465. border-left: 2px solid #409EFF;
  2466. }
  2467. .statistics_box .num {
  2468. font-size: 20px;
  2469. color: #409EFF;
  2470. }
  2471. .statistics_box .num span {
  2472. font-size: 12px;
  2473. color: #606266;
  2474. padding-right: 10px;
  2475. }
  2476. .case_box {
  2477. margin: 20px auto 0 !important;
  2478. padding: 20px 20px 30px 20px;
  2479. background: #fff;
  2480. }
  2481. .case_box .title {
  2482. font-size: 16px;
  2483. padding: 0 0 20px 0 !important;
  2484. }
  2485. .case_box .noremind {
  2486. display: block;
  2487. text-align: right;
  2488. font-size: 12px;
  2489. padding-right: 20px;
  2490. color: #909399;
  2491. }
  2492. .case_box .newslist {
  2493. padding: 0 !important;
  2494. }
  2495. .case_box .newslist .imgbox {
  2496. width: 196px;
  2497. height: 110px;
  2498. background: #909399;
  2499. }
  2500. .case_box .newslist .listtitle {
  2501. display: block;
  2502. font-size: 14px;
  2503. color: #606266;
  2504. padding: 6px 0 0 0;
  2505. }
  2506. .case_box .newslist .des {
  2507. display: block;
  2508. font-size: 12px;
  2509. color: #606266;
  2510. padding: 10px 0 0 0;
  2511. }
  2512. .more_manager {
  2513. cursor: pointer;
  2514. padding: 20px 0;
  2515. color: rgb(144, 147, 153);
  2516. font-size: 14px;
  2517. text-align: center;
  2518. }
  2519. /* .team_data_item:hover{
  2520. color: #409EFF;
  2521. } */
  2522. .update_button:hover {
  2523. background: #fc7676;
  2524. border: 1px #fc7676 solid;
  2525. }
  2526. .update_button:active {
  2527. background: #fc7676;
  2528. border: 1px #fc7676 solid;
  2529. }
  2530. .examineAndApproveTable /deep/ td {
  2531. border: 0px solid #fff;
  2532. }
  2533. .readyapprove_box .more:hover {
  2534. color: #409EFF !important;
  2535. }
  2536. .rightexamineAndApproveList {
  2537. text-align: left;
  2538. width: 100%;
  2539. /* border-bottom: 1px solid #efefef; */
  2540. }
  2541. .List_border:nth-child(5) .rightexamineAndApproveList {
  2542. border-bottom: 0px solid #fff;
  2543. }
  2544. /* .List_border:hover{
  2545. background-color: rgb(252, 252, 252);
  2546. } */
  2547. /deep/ .el-radio-button__inner {
  2548. border: 0px solid #dcdfe6;
  2549. border-radius: 5px;
  2550. padding-right: 15px;
  2551. }
  2552. /deep/ .el-radio-button--medium .el-radio-button__inner {
  2553. padding: 7px 13px;
  2554. }
  2555. .el-radio-button:first-child /deep/ .el-radio-button__inner {
  2556. border: 0px solid #dcdfe6;
  2557. border-radius: 5px;
  2558. }
  2559. .el-radio-button:last-child /deep/ .el-radio-button__inner {
  2560. border-radius: 5px;
  2561. }
  2562. .ManagerSAwardlStyle {
  2563. text-align: center;
  2564. display: block;
  2565. cursor: pointer;
  2566. }
  2567. .ManagerSAwardlStyleB {
  2568. color: #303133;
  2569. font-size: 18px;
  2570. transition: all 0.5s;
  2571. }
  2572. .ManagerSAwardlStyleSpan {
  2573. color: rgb(48, 49, 51);
  2574. font-size: 14px;
  2575. margin-top: 5px;
  2576. display: block;
  2577. }
  2578. .ManagerSAwardlStyle:hover .ManagerSAwardlStyleB {
  2579. color: #4eb2ff;
  2580. }
  2581. .weekChecking_inStyle {
  2582. color: #606266;
  2583. font-size: 14px;
  2584. display: block;
  2585. }
  2586. .weekChecking_inStyle b {
  2587. color: rgb(38, 162, 255);
  2588. transition: all 0.5s;
  2589. }
  2590. .weekChecking_inStyle:hover b {
  2591. color: rgb(0 145 255);
  2592. }
  2593. .inCommonUseStyle {
  2594. width: 215px;
  2595. height: 54px;
  2596. border: 1px solid #c0c4cc;
  2597. margin: 16px 0 0 10px;
  2598. line-height: 54px;
  2599. border-radius: 5px;
  2600. cursor: pointer;
  2601. transition: all 0.5s;
  2602. box-sizing: border-box;
  2603. padding: 0 10px;
  2604. }
  2605. .inCommonUseStyle b {
  2606. transition: all 0.5s;
  2607. color: #303133;
  2608. font-size: 14px;
  2609. }
  2610. .inCommonUseStyle:hover {
  2611. background-color: #fcfcfc;
  2612. border: 1px solid #409EFF;
  2613. }
  2614. .inCommonUseStyle:hover b {
  2615. color: #409EFF;
  2616. }
  2617. .vtRenew {
  2618. color: #53b3f7;
  2619. }
  2620. .innerVisible p {
  2621. text-align: center;
  2622. }
  2623. /deep/ .el-dialog__body {
  2624. padding: 0 80px 15px;
  2625. }
  2626. .tips {
  2627. background: #409EFF;
  2628. border-radius: 50%;
  2629. width: 14px;
  2630. height: 14px;
  2631. color: #fff;
  2632. display: inline-block;
  2633. font-size: 12px;
  2634. line-height: 14px;
  2635. text-align: center;
  2636. }
  2637. </style>