pointHome.vue 83 KB

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