home.vue 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883
  1. <template>
  2. <div class="">
  3. <div v-if="$supremeAuthority()!='dept_manager'&&$supremeAuthority()!='employee'&&user_info.is_only_try_order" @click="bundleOfServices" :style="{ backgroundImage: 'url(' + loginBg + ')' }" style="position: relative;margin-bottom: 10px;height: 77px;" class="headerImg">
  4. <div style="position: absolute;width: 440px;font-size: 26px;color: #fff;font-weight: 600;top: 20px;text-align: center;left: 50%;margin-left: -220px;">
  5. 免费预约演示 获取行业管理方案
  6. </div>
  7. </div>
  8. <div class="flex-box ts flex-center-center" v-if="isSubject">
  9. <img mode="scaleToFill" src="./assets/image/tz.png" />
  10. <div class="flex-1">你正在使用个人体验版,如需正式使用,请联系管理员</div>
  11. <div class="btn" type="primary" @click="openGly">联系管理员</div>
  12. </div>
  13. <el-row style="min-width:1160px;">
  14. <el-col :span="18" style="min-width:780px;">
  15. <el-row class="home-left-header">
  16. <el-col :span="7" class="hlheader-user">
  17. <el-row :gutter="40">
  18. <el-col :span="24" class="hlheader-user-info">
  19. <div class="headimg" style=" margin-right: 0px;cursor:pointer;">
  20. <userImage :user_name="user_info.name" :img_url="user_info.img_url" fontSize="1.1" width="60px" height="60px"></userImage>
  21. </div>
  22. <div class="headtext">
  23. <div class="greetings" style="margin-top:7px;">
  24. <div style="margin-top:2px;">{{ user_info.name }}</div>
  25. &nbsp;
  26. <span style="margin-top:2px;">
  27. {{
  28. time <= 4
  29. ? '夜深了'
  30. : time > 4 && time <= 11
  31. ? '早上好'
  32. : time > 11 && time <= 14
  33. ? '中午好'
  34. : time > 14 && time <= 19
  35. ? '下午好'
  36. : time > 19 && time <= 24
  37. ? '晚上好'
  38. : ''
  39. }}
  40. </span>
  41. </div>
  42. <p style="margin-top: 16px; color: #666;">
  43. <span>
  44. {{
  45. time <= 4
  46. ? '烦恼尽退散'
  47. : time > 4 && time <= 11
  48. ? '又是美好的一天'
  49. : time > 11 && time <= 14
  50. ? '吃饱睡好更有动力'
  51. : time > 14 && time <= 19
  52. ? '致敬奋斗中的自己'
  53. : time > 19 && time <= 24
  54. ? '该养精蓄锐了'
  55. : ''
  56. }}
  57. </span>
  58. </p>
  59. </div>
  60. </el-col>
  61. </el-row>
  62. </el-col>
  63. <el-col :span="17" style="margin:0;padding:0;" v-if="creatorJurisdiction">
  64. <el-col :gutter="50" style="margin:0;padding:34px 0 0 0;" class="quick_button_box">
  65. <div style="display:flex;justify-content: space-around;">
  66. <div v-for="(item, index) in fits" :key="index" @click="openGzd(item.url)" style="display:flex;cursor:pointer;padding:0 5px 0 5px">
  67. <img :src="item.img" style="width:46px;height:46px;margin:10px 5px 0 0" />
  68. <p style="display: inline-block;width:100%;">
  69. <b style="display: inline-block;color:#303133;font-size:16px;margin-top:11px;">{{ item.name }}</b>
  70. <br />
  71. <span style="color:#606266;font-size:12px;display: inline-block;margin-top:8px;">{{ item.value }}</span>
  72. </p>
  73. </div>
  74. </div>
  75. </el-col>
  76. </el-col>
  77. <el-col v-else :span="17" style="margin-top:34px;padding:0 0 10px 0;height:58px;" v-loading="authorityManagerHeaderLoad">
  78. <el-col :gutter="50" style="margin:0;padding:0;" class="quick_button_box">
  79. <div style="display:flex;justify-content: space-around;">
  80. <p style="text-align:center;cursor:pointer;margin: 0;" @click="$router.push({ path: '/individual_statistics' })">
  81. <b style="color:#26A2FF;font-size:27px;">{{ headDayBs.b ? headDayBs.b : '0' }}</b>
  82. <br />
  83. <span style="color:#606266;font-size:14px;padding-top:8px;display: inline-block;">今日B分</span>
  84. </p>
  85. <p style="text-align:center;cursor:pointer;margin: 0;" @click="$router.push({ path: '/individual_statistics' })">
  86. <b style="color:#26A2FF;font-size:27px;">{{ authorityManagerHeaders.b ? authorityManagerHeaders.b : '0' }}</b>
  87. <br />
  88. <span style="color:#606266;font-size:14px;padding-top:8px;display: inline-block;">本月B分</span>
  89. </p>
  90. <p style="text-align:center;cursor:pointer;margin: 0;" @click="$router.push({ path: '/individual_statistics' })">
  91. <b style="color:#26A2FF;font-size:27px;">{{ authorityManagerHeaders.a ? authorityManagerHeaders.a : '0' }}</b>
  92. <br />
  93. <span style="color:#606266;font-size:14px;padding-top:8px;display: inline-block;">本月A分</span>
  94. </p>
  95. <p style="text-align:center;cursor:pointer;margin: 0;" @click="$router.push({ path: '/my_task' })">
  96. <b style="color:#26A2FF;font-size:27px;">
  97. {{
  98. authorityManagerHeaders.performance
  99. ? authorityManagerHeaders.performance.complete_count + '/' + authorityManagerHeaders.performance.total_count
  100. : '0/0'
  101. }}
  102. </b>
  103. <br />
  104. <span style="color:#606266;font-size:14px;padding-top:8px;display: inline-block;">本月任务进度</span>
  105. </p>
  106. </div>
  107. </el-col>
  108. </el-col>
  109. </el-row>
  110. <el-row class="left-all-style">
  111. <el-row>
  112. <el-col :span="22"><span class="title">排行榜</span></el-col>
  113. <el-col :span="2"><span class="noremind" @click="$router.push({ path: RankingPush })">查看详情</span></el-col>
  114. </el-row>
  115. <div v-loading="tabPositionLoad">
  116. <div style="width:100%;height:30px;margin-top:20px;">
  117. <el-radio-group v-model="tabPosition" style="margin-bottom: 30px;display:flex">
  118. <div v-for="(item, index) in rankingList" :key="index" style="">
  119. <el-radio-button :label="item.val" @click.native="tabPositions($event, item)">
  120. <span style="width:84px;coloe:#606266;display: block;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;">
  121. {{ item.group_name }}
  122. </span>
  123. </el-radio-button>
  124. </div>
  125. </el-radio-group>
  126. </div>
  127. <div style="display:flex;margin-top:16px;padding-top:24px;height:100%;" v-loading="addUpRankingLoad">
  128. <div class="nopoint_box" style="" v-if="rankingListDetails.length == 0">
  129. <div class="noimg" style="margin:0;"></div>
  130. <span class="title1" style="margin:0;">暂无积分数据</span>
  131. </div>
  132. <div v-else v-for="(item, index) in rankingListDetails" :key="index" style="text-align:center;width:80px;cursor:pointer;margin:0 20px;">
  133. <div class="" style="cursor:pointer;position: relative;height: 60px;">
  134. <svg-icon
  135. v-if="item.rank <= 3"
  136. :icon-class="item.rank == 1 ? 'first' : item.rank == 2 ? 'secondPlace' : item.rank == 3 ? 'third' : ''"
  137. style="z-index:1;position: absolute;left: 26px;top: -18px;font-size:28px;"
  138. />
  139. <div
  140. v-if="item.rank == 4 || item.rank == 5"
  141. style="z-index:1;position: absolute;left: 27px;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;"
  142. >
  143. <b style="">{{ item.rank }}</b>
  144. </div>
  145. <div
  146. v-if="item.employee_id == user_info.id && index == 0 && item.rank > 3"
  147. style="z-index:1;position: absolute;left: 26px;top: -14px;width:25px;height:25px;border:1px solid #C0C4CC;border-radius:50%;background-color:#fff;font-size:12px;text-align-center;line-height:24px;color:#303133;"
  148. >
  149. <b>{{ item.rank }}</b>
  150. </div>
  151. <div style="position: absolute;left: 8px;top: -16px;z-index:2;">
  152. <div
  153. v-if="index == 5 || index == 6"
  154. 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"
  155. >
  156. <b>{{ index == 5 ? '倒数第2' : index == 6 ? '倒数第1' : '' }}</b>
  157. </div>
  158. </div>
  159. <userImage :img_url="item.employee_img_url" fontSize="1" :user_name="item.employee_name" width="60px" height="60px"></userImage>
  160. </div>
  161. <span
  162. 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;"
  163. >
  164. {{ item.employee_name }}
  165. <span v-if="item.employee_id == user_info.id">(我)</span>
  166. </span>
  167. </div>
  168. </div>
  169. </div>
  170. </el-row>
  171. <el-row class="left-all-style">
  172. <el-row style="">
  173. <el-col :span="24">
  174. <b class="title" style="margin-bottom:15px;display:block">
  175. 积分构成
  176. <el-tooltip placement="top">
  177. <div slot="content">饼图仅统计个人B分占比较多的前8种规则分类</div>
  178. <i class="el-icon-question fontColorC"></i>
  179. </el-tooltip>
  180. </b>
  181. </el-col>
  182. <div v-loading="IntegralFormChartLoad">
  183. <el-col :span="5" style="position: relative;left:10px;z-index:1;margin-top:10px;" v-if="!this.employeeRout">
  184. <el-cascader
  185. v-model="dept_name1"
  186. :options="dept_tree"
  187. @change="dept1_null"
  188. :props="{ checkStrictly: true, value: 'id', label: 'name', children: '_child' }"
  189. ref="dept1"
  190. filterable
  191. change-on-select
  192. placeholder="请选择部门"
  193. clearable
  194. ></el-cascader>
  195. </el-col>
  196. <div class="nopoint_box" style="height:325px;" v-show="IntegralFormnone">
  197. <div class="noimg" style="width: 150px;height: 150px;margin-top:94px;"></div>
  198. <span class="title1">
  199. 暂无积分数据,
  200. <span v-if="$supremeAuthority()!='employee'" @click="$router.push({ path: '/award_punish' })" style="color:#409eff;cursor:pointer;">去奖扣积分></span>
  201. </span>
  202. </div>
  203. <div v-show="!IntegralFormnone" style="margin-top:20px;"><div ref="IntegralFormChart" :style="{ width: '100%', height: '400px' }"></div></div>
  204. </div>
  205. </el-row>
  206. </el-row>
  207. <el-row class="left-all-style">
  208. <el-row style="">
  209. <el-col :span="24" style="display:flex">
  210. <b class="title" style="margin:0 20px 15px 0;display:block">本月积分情况</b>
  211. <el-checkbox v-model="exclusiveMonthChecked">不包含自动积分加分项</el-checkbox>
  212. </el-col>
  213. <div v-loading="monthlyIntegralloading">
  214. <el-col :span="5" style="position: relative;left:10px;z-index:1;" v-if="!this.employeeRout">
  215. <el-cascader
  216. v-model="dept_name2"
  217. :options="dept_tree"
  218. @change="monthlyIntegralchange"
  219. :props="{ checkStrictly: true, value: 'id', label: 'name', children: '_child' }"
  220. ref="dept2"
  221. filterable
  222. change-on-select
  223. placeholder="请选择部门"
  224. clearable
  225. ></el-cascader>
  226. </el-col>
  227. <div class="nopoint_box" style="height:381px;" v-if="monthlyIntegralnone">
  228. <div class="noimg" style="width: 150px;height: 150px;margin-top:90px;"></div>
  229. <span class="title1">暂无积分数据</span>
  230. </div>
  231. <div v-show="!monthlyIntegralnone">
  232. <div ref="monthlyIntegralChart" :style="{ width: '100%', height: '350px', marginTop: '40px' }"></div>
  233. <div style="width:90%;display:flex;justify-content: space-around;margin-top:30px;padding-left:40px">
  234. <p v-for="(item, index) in monthlyIntegralList" :key="index" style="text-align:center">
  235. <b style="display:block;color:#303133;font-size:18px;" v-if="index < 3">
  236. {{ index == 0 ? item.total_point : index == 1 ? item.reward_point : index == 2 ? item.deduction_point : '' }}
  237. </b>
  238. <b style="display:block;color:#303133;font-size:18px;" v-else-if="index == 3">{{ item.ratio == -1 ? '—' : item.ratio + ':1' }}</b>
  239. <b style="display:block;color:#303133;font-size:18px;" v-else>
  240. {{ item.toRatio.ratio + '%' }}
  241. <svg-icon
  242. :icon-class="item.toRatio.type == 1 ? 'litrearrows' : item.toRatio.type == 2 ? 'droparrows' : ''"
  243. style="font-size:10px;margin-bottom:2px"
  244. />
  245. </b>
  246. <span style="color:rgb(48, 49, 51);font-size:14px;margin-top:5px;display:block;">{{ item.name }}</span>
  247. </p>
  248. </div>
  249. </div>
  250. </div>
  251. </el-row>
  252. </el-row>
  253. <el-row v-if="!this.employeeRout&&false" class="left-all-style" style="">
  254. <el-row style="">
  255. <el-col :span="24"><b class="title" style="margin-bottom:15px;display:block">管理者奖扣任务执行情况</b></el-col>
  256. <div v-loading="ManagerSAwardloading">
  257. <el-col :span="5" style="position: relative;left:10px;z-index:1;">
  258. <el-cascader
  259. v-model="dept_name3"
  260. :options="dept_tree"
  261. @change="ManagerSAwardlchange"
  262. :props="{ checkStrictly: true, value: 'id', label: 'name', children: '_child' }"
  263. ref="dept3"
  264. filterable
  265. change-on-select
  266. placeholder="请选择部门"
  267. clearable
  268. ></el-cascader>
  269. </el-col>
  270. <div class="nopoint_box" style="height:401px;" v-if="ManagerSAwardnone">
  271. <div class="noimg" style="width: 150px;height: 170px;margin-top:90px;"></div>
  272. <span class="title1">暂无积分数据</span>
  273. </div>
  274. <div v-show="!ManagerSAwardnone" :style="{ width: widths }">
  275. <div ref="ManagerSAwardChart" :style="{ width: widths, height: '400px', marginTop: '40px' }"></div>
  276. <div style="width:90%;display:flex;justify-content: space-around;padding-left:40px">
  277. <p
  278. v-for="(item, index) in ManagerSAwardlList"
  279. :key="index"
  280. style="z-index:1;"
  281. class="ManagerSAwardlStyle"
  282. @click="$router.push({ path: '/manager_statistics' })"
  283. >
  284. <b class="ManagerSAwardlStyleB" v-if="index != 2">{{ item.val }}</b>
  285. <b class="ManagerSAwardlStyleB" v-else-if="index == 2">{{ item.val == -1 ? '—' : item.val + ':1' }}</b>
  286. <span class="ManagerSAwardlStyleSpan">{{ item.name }}</span>
  287. </p>
  288. </div>
  289. </div>
  290. </div>
  291. </el-row>
  292. </el-row>
  293. </el-col>
  294. <el-col :span="6" style="min-width:280px;">
  295. <el-row v-if="$supremeAuthority()!='employee'&&$supremeAuthority()!='creator'">
  296. <div class="right-all-style flex-box-ce" style="background-color:#fff;padding:20px;;text-align:left;margin-bottom: 10px;cursor: pointer;" @click="ruleQRcode">
  297. <img src="./assets/image/zq.png" style="width: 20px;height: 20px;margin-right: 10px;"/>
  298. <div style="font-size: 15px;" class="zb flex-1">{{thisweek}} 积分周报</div>
  299. <i class="el-icon-arrow-right" style="font-size: 18px;"></i>
  300. </div>
  301. </el-row>
  302. <el-row v-if="!creatorJurisdiction">
  303. <div class="right-all-style" style="background-color:#fff;padding:20px;;text-align:left;margin-bottom: 10px;">
  304. <span class="title">常用</span>
  305. <div>
  306. <span v-for="(item, index) in inCommonUse" :key="index" @click="$router.push({ path: item.push })" class="inCommonUseStyle">
  307. <img :src="item.image" alt="" style="width:31px;height:31px;margin:11px 10% 0 8%;" />
  308. <b>{{ item.name }}</b>
  309. </span>
  310. </div>
  311. </div>
  312. </el-row>
  313. <el-row>
  314. <div class="right-all-style" v-loading="highestPrizeBuckleloading" style="background:#fff;padding: 20px 20px 0;">
  315. <span class="title">待我审批({{ auditList.length }})</span>
  316. <div class="nopoint_box" v-if="auditList.length == 0">
  317. <div class="noimg"></div>
  318. <span class="title1" style="padding-bottom:20px;">还没有待我审批</span>
  319. </div>
  320. <div v-else style="padding:20px 0 20px 0;" class="flex-box-v">
  321. <div
  322. v-for="(item, index) in auditList"
  323. class="List_border"
  324. :key="index"
  325. style="cursor:pointer;display:flex;padding-top:10px;"
  326. @click="openDetail(item)"
  327. >
  328. <userImage width="45px" height="45px" :id="item.employee_id" :user_name="item.employee_name" style="margin-right:8px"></userImage>
  329. <div class="rightexamineAndApproveList2">
  330. <p style="width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#303133;font-size:16px">
  331. <b>
  332. {{ item.employee_name
  333. }}{{
  334. item.source_type == 1
  335. ? '的积分任务'
  336. : item.source_type == 2
  337. ? '的积分申请'
  338. : item.source_type == 3
  339. ? '的积分录入'
  340. : item.source_type == 4
  341. ? '的绩效工作'
  342. : ''
  343. }}
  344. </b>
  345. </p>
  346. <p
  347. style="padding:10px 0;font-size:13px;line-height:20px;color:#303133;overflow:hidden; text-overflow:ellipsis;display:-webkit-box; -webkit-box-orient:vertical;-webkit-line-clamp:2; "
  348. >
  349. {{ item.remark.rule || item.remark.customize }}
  350. </p>
  351. <div style="display:flex;padding-bottom:10px;justify-content: space-between;">
  352. <span style="color:#909399">{{ item.event_time }}</span>
  353. <div><span style="color:#26A2FF;cursor:pointer">审批</span></div>
  354. </div>
  355. </div>
  356. </div>
  357. <div
  358. class="more"
  359. v-show="auditList.length >= 3"
  360. style="text-align: center;color: #909399;font-size: 14px; padding:16px 16px 0 16px; cursor: pointer;"
  361. @click="$router.push({ path: '/approval_list' })"
  362. >
  363. 查看更多
  364. </div>
  365. </div>
  366. </div>
  367. </el-row>
  368. <el-row>
  369. <div class="right-all-style" v-loading="highestPrizeBuckleloading" style="background:#fff;padding: 20px 20px 0;">
  370. <span class="title">本周奖分最高</span>
  371. <div class="nopoint_box" v-if="!prize.id">
  372. <div class="noimg"></div>
  373. <span class="title1" style="padding-bottom:20px;">暂无积分数据</span>
  374. </div>
  375. <div v-else style="display:flex;padding:20px 0 20px 0;">
  376. <userImage width="45px" height="45px" :user_name="prize.name" fontSize=".9" style="margin-right:8px"></userImage>
  377. <div class="rightexamineAndApproveList" style="border:0px">
  378. <p
  379. style="width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#73767c;font-size:16px;display:flex;justify-content: space-between;"
  380. >
  381. <b style="color:#303133;font-size:16px;margin:0px 0 0 5px;">{{ prize.name }}</b>
  382. <span style="color:#26A2FF;font-size:16px;">
  383. <span v-if="prize.point > 0">+</span>
  384. {{ prize.point }} B分
  385. </span>
  386. </p>
  387. <p
  388. style="margin:8px 0 0 5px;font-size:13px;line-height:20px;color:#303133;overflow:hidden; text-overflow:ellipsis;display:-webkit-box; -webkit-box-orient:vertical;-webkit-line-clamp:3;"
  389. >
  390. {{ prize.remark ? prize.remark.customize : '' }}
  391. </p>
  392. </div>
  393. </div>
  394. </div>
  395. </el-row>
  396. <el-row>
  397. <div class="right-all-style" v-loading="highestPrizeBuckleloading" style="background:#fff;padding: 20px 20px 0;">
  398. <span class="title">本周扣分最多</span>
  399. <div class="nopoint_box" v-if="!buckle.id">
  400. <div class="noimg"></div>
  401. <span class="title1" style="padding-bottom:10px;">暂无积分数据</span>
  402. </div>
  403. <div v-else style="display:flex;padding:20px 0 20px 0;">
  404. <userImage width="45px" height="45px" :user_name="buckle.name" fontSize=".9" style="margin-right:8px"></userImage>
  405. <div class="rightexamineAndApproveList">
  406. <p
  407. style="width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#73767c;font-size:16px;display:flex;justify-content: space-between;"
  408. >
  409. <b style="color:#303133;font-size:16px;margin:0px 0 0 5px;">{{ buckle.name }}</b>
  410. <span style="color:#FF9600;font-size:16px;">{{ buckle.point }} B分</span>
  411. </p>
  412. <p
  413. style="margin:8px 0 0 5px;font-size:13px;line-height:20px;color:#303133;overflow:hidden; text-overflow:ellipsis;display:-webkit-box; -webkit-box-orient:vertical;-webkit-line-clamp:3;"
  414. >
  415. {{ buckle.remark ? buckle.remark.customize : '' }}
  416. </p>
  417. </div>
  418. </div>
  419. </div>
  420. </el-row>
  421. <el-row>
  422. <div class="right-all-style" v-loading="announLoad" style="background:#fff;padding: 20px 20px 20px 20px;">
  423. <div style="display:flex;justify-content: space-between;">
  424. <span class="title">系统通知</span>
  425. <span v-if="announcement.title" @click="$router.push({ path: '/update_notice' })" class="announcementc" style="font-size:13px;">查看详情</span>
  426. </div>
  427. <div v-if="announcement.title" class="announs">
  428. <b style="font-size:15px;margin:10px 0 0 10px;display: inline-block;">{{ announcement.title }}</b>
  429. <div class="announDetails" style="padding:0 0 0 18px;margin-top:10px;" v-html="announcement.focus"></div>
  430. </div>
  431. <div v-else class="nopoint_box">
  432. <div class="noimg"></div>
  433. <span class="title1" style="padding-bottom:10px;">暂无系统通知</span>
  434. </div>
  435. </div>
  436. </el-row>
  437. </el-col>
  438. </el-row>
  439. <div class="updateNotice" >
  440. <el-dialog title="系统通知" :visible.sync="updateVisible" width="500px" top="20vh" :before-close="updateClose">
  441. <b style="font-size:16px;margin:0 0 10px 0;display: inline-block;">{{ announcement.title }}</b>
  442. <div class="announDetails" style="padding:0 0 0 0" v-html="announcement.focus"></div>
  443. <span slot="footer" class="dialog-footer"><el-button @click="$router.push({ path: '/update_notice' })" type="primary" round>查看详情</el-button></span>
  444. </el-dialog>
  445. </div>
  446. <el-dialog @close="closeCode" :visible.sync="innerVisible" width="444px">
  447. <div style="border-radius: 15px;border: 1px solid #f1f1f1;padding: 10px; width: 346px;box-sizing: border-box;margin: 0 auto;">
  448. <div id="qrcode" ref="qrcode"></div>
  449. </div>
  450. <div style="margin-top: 10px;text-align: center;color: #666;">请使用钉钉APP扫描二维码</div>
  451. </el-dialog>
  452. <examinePopup :title="'审核详情'" :id="detail_id" :show.sync="detailShow"></examinePopup>
  453. <el-dialog class="dialog" :show-close="false" :visible.sync="dialogVisible" width="400px" >
  454. <div style="height: 80px;background-image: linear-gradient(180deg, #01A2FE 0%, #0067FF 100%);
  455. border-top-left-radius: 25px;border-top-right-radius: 25px;padding-top: 20px;">
  456. <div style="font-weight: 600;font-size: 24px;color: #fff;text-align: center;">预约演示功道云积分制</div>
  457. <div style="font-weight: 600;font-size: 24px;color: #fff;text-align: center;">积分制专家一对一服务</div>
  458. </div>
  459. <div style="position: absolute;right: 16px;top: 16px;cursor: pointer;" @click="dialogVisible = false"><i class="el-icon-close" style="font-size:20px;color: #fff;"></i></div>
  460. <div>
  461. <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="60px" style="width: 260px;margin: 20px auto;position: relative;right: 20px;">
  462. <el-form-item label="公司">
  463. <el-input v-model="user_info.company_info.name" disabled></el-input>
  464. </el-form-item>
  465. <el-form-item label="姓名" prop="name">
  466. <el-input v-model="ruleForm.name"></el-input>
  467. </el-form-item>
  468. <el-form-item label="手机" prop="mobile">
  469. <el-input v-model="ruleForm.mobile" @input="ruleForm.mobile=ruleForm.mobile.replace(/[^\d]/g,'')" ></el-input>
  470. </el-form-item>
  471. </el-form>
  472. </div>
  473. <div class="fa">预约赠送积分制考核方案</div>
  474. <div style="text-align: center;padding: 20px 0;">
  475. <el-button style="border-radius: 25px;font-size: 16px;padding:7px 20px;" size="mini" type="primary" @click="submitForm('ruleForm')">立即申请</el-button>
  476. </div>
  477. </el-dialog>
  478. </div>
  479. </template>
  480. <script>
  481. var bool = true; // 五秒执行一次变量
  482. import QRCode from 'qrcodejs2';
  483. import examinePopup from '@/components/examinePopup';
  484. import { contactAdminToUseApp } from 'dingtalk-design-libs';
  485. export default {
  486. components: { examinePopup },
  487. data() {
  488. return {
  489. loginBg: require('@/assets/image/bj.jpg'),
  490. dialogVisible:false,
  491. ruleForm: {
  492. name: '',
  493. mobile: '',
  494. },
  495. rules: {
  496. name: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
  497. mobile: [{ required: true, trigger: 'blur', message: '请输入手机号' }],
  498. },
  499. isSubject: false, //判断是否是个人版进入
  500. mainCorpId: '', //如果是个人版,这个企业ID是登录者所在的企业ID,不是钉钉那边提供的隐藏企业ID
  501. announLoad: false,
  502. announcement: {},
  503. updateVisible: false,
  504. employeeRout: this.$authoritys('employee'),
  505. authorityManagerHeaderLoad: false, //管理员头部loading
  506. authorityManagerHeaders: {}, //管理员头部 数据
  507. headDayBs: {},//管理员头部 数据 天
  508. creatorJurisdiction: this.$getIsCreator('creator'), //是否系统管理员
  509. widths: '100%',
  510. time: this.$moment().format('HH'),
  511. user_info: this.$getUserData(),
  512. fits: [
  513. {
  514. name: '奖扣A/B分',
  515. value: '表现好坏,有奖有罚',
  516. img: require('./assets/image/prizeBuckle.png'),
  517. url: '/award_punish'
  518. },
  519. // {
  520. // name: "绩效",
  521. // value: "工作目标与价值的体现",
  522. // img: require("./assets/image/performance.png"),
  523. // url: "/award_punish",
  524. // },
  525. {
  526. name: '管理者奖扣',
  527. value: '管理执行到位,奖罚分明',
  528. img: require('./assets/image/performance.png'),
  529. url: '/manager_statistics'
  530. },
  531. {
  532. name: '任务',
  533. value: '认可积极完成任务的人',
  534. img: require('./assets/image/task.png'),
  535. url: '/my_issue'
  536. }
  537. ],
  538. //排行榜
  539. RankingPush: '', //查看更多跳转
  540. tabPositionLoad: false, //排名分类loading
  541. addUpRankingLoad: false, //排名人员loading
  542. tabPosition: '0',
  543. rankingList: [], //排行榜数据
  544. rankingListDetails: [], //排行榜人员列表
  545. //积分构成
  546. IntegralFormnone: false, //积分构成为空或报错,展示的开关
  547. dept_name1: [], //积分构成--部门
  548. IntegralFormChartLoad: false, //积分构成loading
  549. //本月积分情况
  550. exclusiveMonthBranch: 0, //本月积分情况--部门
  551. exclusiveMonthChecked: true, //本月积分情况--不包含自动积分加分项
  552. dept_name2: [], //本月积分情况--部门
  553. monthlyIntegralList: [
  554. //本月积分情况数据
  555. { total_point: '0', name: '本月总积分' },
  556. { reward_point: '0', name: '本月总奖分' },
  557. { deduction_point: '0', name: '本月总扣分' },
  558. { ratio: '0', name: '奖扣分比例' },
  559. { toRatio: { ratio: '0', type: 0 }, name: '对比上月总分' },
  560. { toRatio: { ratio: '0', type: 0 }, name: '对比上月奖分' },
  561. { toRatio: { ratio: '0', type: 0 }, name: '对比上月扣分' }
  562. ],
  563. monthlyIntegralloading: false, //本月积分情况loading
  564. monthlyIntegralnone: false, //本月积分情况为空或报错,展示的开关
  565. //管理者奖扣
  566. dept_name3: [], //管理者统计数据--部门
  567. ManagerSAwardloading: false, //管理者统计 loading
  568. ManagerSAwardnone: false, //管理者奖扣执行情况为空或报错,展示的开关
  569. ManagerSAwardlList: [
  570. //管理者统计数据
  571. { val: '0', name: '总奖分' },
  572. { val: '0', name: '总扣分' },
  573. { val: '0', name: '奖扣分比例' },
  574. { val: '0', name: '奖扣人次' },
  575. { val: '0', name: '奖扣执行人数' },
  576. { val: '0', name: '达标人数' },
  577. { val: '0', name: '未达标人数' }
  578. ],
  579. dept_tree: [], //部门列表
  580. //奖扣分
  581. highestPrizeBuckleloading: false, //奖扣分最高loading
  582. prize: {}, //奖分
  583. buckle: {}, //扣分
  584. inCommonUse: [
  585. { name: '奖扣积分', image: require('./assets/image/entry_list.png'), push: '/award_punish' },
  586. { name: '发布任务', image: require('./assets/image/my_publish.png'), push: '/my_issue' },
  587. { name: '申请积分', image: require('./assets/image/a_apply.png'), push: '/apply_list' },
  588. { name: '领任务', image: require('./assets/image/task_hall.png'), push: '/get_task' }
  589. ],
  590. // 待我审批模块
  591. auditList: [],
  592. detail_id: 0,
  593. detailShow: false,
  594. thisweek:'',
  595. innerVisible:false
  596. };
  597. },
  598. watch: {
  599. dialogVisible(val){
  600. if(!val){
  601. this.ruleForm= {
  602. name: '',
  603. mobile: '',
  604. };
  605. }
  606. },
  607. exclusiveMonthChecked() {
  608. this.monthlyIntegral();
  609. }
  610. },
  611. mounted() {
  612. this.thisweek=this.getTime(7)+'~'+this.getTime(1)
  613. if (this.employeeRout) {
  614. this.inCommonUse = [];
  615. this.inCommonUse.push(
  616. { name: '申请积分', image: require('./assets/image/a_apply.png'), push: '/apply_list' },
  617. { name: '领任务', image: require('./assets/image/task_hall.png'), push: '/get_task' }
  618. );
  619. }
  620. this.function_All();
  621. window.addEventListener('resize', this.selfAdaption);
  622. // 个人版处理
  623. if (this.$getUserData().is_personal == 1) {
  624. this.isSubject = true;
  625. this.mainCorpId = this.$getUserData().main_corp_id;
  626. }
  627. var url = window.location.href;
  628. var rUrl = this.GetRequest(url).url || '';
  629. rUrl=rUrl.split("/")[0]
  630. this.$nextTick(()=>{
  631. if (rUrl&&!this.$getCache('isUrl')) {
  632. setTimeout(() => {
  633. this.$setCache('isUrl',true)
  634. this.$router.push({ path: '/' + rUrl });
  635. }, 1000);
  636. }
  637. });
  638. },
  639. methods: {
  640. bundleOfServices(){
  641. this.$dd.biz.util.openSlidePanel({
  642. url:"https://page.dingtalk.com/wow/dingtalk/act/serviceconversation?wh_biz=tm&showmenu=false&goodsCode=DT_GOODS_881607043109331&corpId="+this.$getCache('corpId')+"&token=5784a3e6b5e025ee891517ea814180f4",
  643. title: '客服群',
  644. onSuccess : function(result) {},
  645. onFail : function(err) {
  646. console.log('onFail')
  647. }
  648. })
  649. },
  650. submitForm(formName) {
  651. this.$refs[formName].validate((valid) => {
  652. if (valid) {
  653. if (!/^1[0123456789]\d{9}$/.test( this.ruleForm.mobile)) {
  654. this.$message.error('手机格式有误');
  655. return false;
  656. }
  657. this.$axios('post', '/api/employee/appointment', this.ruleForm).then(res => {
  658. this.$message.success('提交成功,我们的积分制老师将在24小时内与您联系');
  659. }).finally(() => {
  660. this.dialogVisible = false;
  661. });
  662. } else {
  663. console.log('error submit!!');
  664. return false;
  665. }
  666. });
  667. },
  668. // 关闭弹框,清除已经生成的二维码
  669. closeCode() {
  670. setTimeout(() => {
  671. this.$refs.qrcode.innerHTML = '';
  672. }, 150);
  673. },
  674. ruleQRcode() {
  675. this.innerVisible = true;
  676. // 使用$nextTick确保数据渲染
  677. this.$nextTick(() => {
  678. this.payOrder();
  679. });
  680. },
  681. payOrder () {// 展示二维码
  682. let url = 'dingtalk://dingtalkclient/action/open_micro_app'
  683. let appid = '?appId='+this.$appId
  684. let corpId = '&corpId='+this.$getCache('corpId')
  685. let page = '&page='+encodeURIComponent(`pages/reportBox/report/report?employee_id=${encodeURIComponent(this.$getUserData().id)}`)//encodeURIComponent('小米')
  686. let urls = url+appid+corpId+page
  687. var qrcode = new QRCode('qrcode', {
  688. text: urls, // 二维码内容
  689. width: 325,
  690. height: 325,
  691. render: 'table', // 设置渲染方式(有两种方式 table和canvas,默认是canvas)
  692. colorDark: '#34373e', // 二维码色
  693. colorLight: '#ffffff', // 背景色
  694. correctLevel: QRCode.CorrectLevel.H // 容错等级,H是heigh,最高,所以二维码看起来很密
  695. })
  696. },
  697. getTime(n) {
  698. var now = new Date();
  699. var year = now.getFullYear();
  700. //因为月份是从0开始的,所以获取这个月的月份数要加1才行
  701. var month = now.getMonth() + 1;
  702. var date = now.getDate();
  703. var day = now.getDay();
  704. //判断是否为周日,如果不是的话,就让今天的day-1(例如星期二就是2-1)
  705. if (day !== 0) {
  706. n = n + (day - 1);
  707. } else {
  708. n = n + day;
  709. }
  710. if (day) {
  711. //这个判断是为了解决跨年的问题
  712. if (month > 1) {
  713. month = month;
  714. }
  715. //这个判断是为了解决跨年的问题,月份是从0开始的
  716. else {
  717. year = year - 1;
  718. month = 12;
  719. }
  720. }
  721. now.setDate(now.getDate() - n);
  722. year = now.getFullYear();
  723. month = now.getMonth() + 1;
  724. date = now.getDate();
  725. // var s = year + "-" + (month < 10 ? ('0' + month) : month) + "-" + (date < 10 ? ('0' + date) : date);
  726. var s = (month < 10 ? ('0' + month) : month) + "-" + (date < 10 ? ('0' + date) : date);
  727. return s;
  728. },
  729. GetRequest(urlStr) {
  730. if (typeof urlStr == 'undefined') {
  731. var url = decodeURI(location.search); //获取url中"?"符后的字符串
  732. } else {
  733. var url = '?' + urlStr.split('?')[1];
  734. }
  735. var theRequest = new Object();
  736. var strs;
  737. if (url.indexOf('?') != -1) {
  738. var str = url.substr(1);
  739. strs = str.split('&');
  740. for (var i = 0; i < strs.length; i++) {
  741. theRequest[strs[i].split('=')[0]] = decodeURI(strs[i].split('=')[1]);
  742. }
  743. }
  744. return theRequest;
  745. },
  746. openGly() {
  747. contactAdminToUseApp({ id: '55493', corpId: this.mainCorpId }).catch(err => {
  748. // 入参不正确,或者遇到技术异常时才会进入这个链路
  749. console.error(err);
  750. });
  751. },
  752. function_All() {
  753. if (this.$getIsCreator('creator')) {
  754. //是否是系统管理员
  755. } else {
  756. this.authorityManagerHeader();
  757. }
  758. this.noticeList(); //系统公告
  759. this.integralForm(); //积分构成
  760. this.getDepartment(); //获取部门列表
  761. this.rankingListname(); //获取自定义排行榜名
  762. this.monthlyIntegral(); //本月积分情况
  763. this.getSpList(); //待我审批列表
  764. if (!this.employeeRout) {
  765. this.ManagerSAward(); //管理者奖扣任务执行情况
  766. }
  767. this.highestPrizeBuckle(); //奖扣分最高积分事件
  768. },
  769. //审批
  770. openDetail(item) {
  771. this.detail_id = item.id;
  772. this.detailShow = true;
  773. },
  774. // 待我审批列表
  775. getSpList() {
  776. let params = {
  777. source_type: 0,
  778. type: 'waiting',
  779. page: 1,
  780. pt_id: 0,
  781. page_size: '3'
  782. };
  783. this.$axios('get', '/api/integral/review/list', params)
  784. .then(res => {
  785. if (res.data.code == 1) {
  786. this.auditList = res.data.data.list;
  787. }
  788. })
  789. .finally(() => {});
  790. },
  791. noticeList() {
  792. //系统公告
  793. this.announLoad = true;
  794. let params = {
  795. page: 1,
  796. page_size: 10
  797. };
  798. this.$axios('get', '/api/announcement/list', params)
  799. .then(res => {
  800. if (res.data.code == 1) {
  801. let list = res.data.data.list[0];
  802. if (this.$getCache('noticeId')) {
  803. if (this.$getCache('noticeId') != list.id) {
  804. this.updateVisible = true;
  805. this.$setCache('noticeId', list.id);
  806. }
  807. } else {
  808. this.$setCache('noticeId', list.id);
  809. this.updateVisible = true;
  810. }
  811. this.announcement = list;
  812. }
  813. })
  814. .finally(() => {
  815. this.announLoad = false;
  816. });
  817. },
  818. updateClose(none) {
  819. none();
  820. },
  821. //echarts自适应
  822. selfAdaption() {
  823. var myChart1 = this.$echarts.init(this.$refs.monthlyIntegralChart);
  824. var myChart2 = this.$echarts.init(this.$refs.IntegralFormChart);
  825. var myChart3 = this.$echarts.init(this.$refs.ManagerSAwardChart);
  826. myChart1.resize();
  827. myChart2.resize();
  828. myChart3.resize();
  829. },
  830. openGzd(val) {
  831. val ? this.$router.push({ path: val }) : '';
  832. },
  833. popout() {
  834. if (bool) {
  835. const h = this.$createElement;
  836. this.$notify({
  837. message: h('b', { style: 'color:rgb(38, 162, 255)' }, '任务功能将在近期开放,敬请期待')
  838. });
  839. bool = false;
  840. setTimeout(() => {
  841. bool = true;
  842. }, 5000);
  843. } else {
  844. }
  845. },
  846. Administrator() {
  847. this.popout();
  848. },
  849. //管理员头部
  850. authorityManagerHeader() {
  851. this.authorityManagerHeaderLoad = true;
  852. let params1 = this.$axios('get', '/api/integral/statistics/', {employee_id: this.user_info.id, month: this.$moment().format('YYYY-MM')}, 'v2')
  853. let params2 = this.$axios('get', '/api/integral/statistics/', {employee_id: this.user_info.id, day: this.$moment().format('YYYY-MM-DD')}, 'v2')
  854. Promise.all([params1, params2]).then(res => {
  855. this.authorityManagerHeaders = res[0].data.data;
  856. this.headDayBs = res[1].data.data;
  857. })
  858. .finally(() => {
  859. this.authorityManagerHeaderLoad = false;
  860. });
  861. },
  862. //排行榜
  863. customRanking(target_id, date_interval) {
  864. //自定义排名 date_interval=时间
  865. let data = {
  866. group_id: target_id,
  867. pt_id: 3,
  868. index_ranking: 1
  869. };
  870. data.date =
  871. date_interval == 1
  872. ? this.$moment().format('YYYYMM')
  873. : date_interval == 2
  874. ? this.$moment().format('YYYYQ')
  875. : date_interval == 3
  876. ? this.$moment().format('YYYY')
  877. : '0';
  878. this.$axios('get', '/api/integral/statistics/groups/rank', data)
  879. .then(res => {
  880. let lists = res.data.data.list;
  881. let rankingList = [];
  882. let arr = false;
  883. for (let i in lists) {
  884. let rankingJson = {};
  885. if (lists[i].employee_name) {
  886. arr = true;
  887. } else {
  888. arr = false;
  889. rankingJson.employee_id = lists[i].employee_id;
  890. rankingJson.employee_img_url = lists[i].img_url;
  891. rankingJson.employee_name = lists[i].name;
  892. rankingJson.point = lists[i].point;
  893. rankingJson.rank = lists[i].rank;
  894. rankingJson.status_remark = '';
  895. rankingList.push(rankingJson);
  896. }
  897. }
  898. if (arr) {
  899. this.rankingListDetails = lists;
  900. } else {
  901. this.rankingListDetails = rankingList;
  902. }
  903. })
  904. .finally(() => {
  905. this.addUpRankingLoad = false;
  906. });
  907. },
  908. addUpRanking() {
  909. //累计B分排名
  910. let params = {
  911. dept_id: 0,
  912. sort: 'DESC',
  913. page: 1,
  914. page_size: 10,
  915. pt_id: 3,
  916. type: 'all',
  917. index_ranking: 1
  918. };
  919. this.$axios('get', '/api/integral/statistics/ranking', params, 'v2')
  920. .then(res => {
  921. this.rankingListDetails = res.data.data.list;
  922. })
  923. .finally(() => {
  924. this.addUpRankingLoad = false;
  925. });
  926. },
  927. departmentOfRanking() {
  928. //部门B分排名
  929. this.RankingPush = '/dept_rank';
  930. let params = {
  931. dept_id: 0,
  932. sort: 'DESC',
  933. pt_id: 3,
  934. time_type: 1,
  935. page: 1,
  936. page_size: 10,
  937. position: 'all',
  938. month: this.$moment().format('YYYY-MM'),
  939. index_ranking: 1
  940. };
  941. this.$axios('get', '/api/integral/statistics/ranking', params, 'v2')
  942. .then(res => {
  943. this.rankingListDetails = res.data.data.list;
  944. })
  945. .finally(() => {
  946. this.addUpRankingLoad = false;
  947. });
  948. },
  949. rankingListname() {
  950. //获取排名列表
  951. this.tabPositionLoad = true;
  952. let params = {
  953. page: 1,
  954. page_size: 7
  955. };
  956. this.$axios('get', '/api/integral/statistics/ranking/list', params)
  957. .then(res => {
  958. if (res.data.code == 1) {
  959. let lists = res.data.data.list;
  960. for (let i in lists) {
  961. lists[i].val = i;
  962. if (lists[i].type == 'normal') {
  963. lists[i].group_name = '阶段排名(月)';
  964. }
  965. if (lists[i].type == 'all') {
  966. lists[i].group_name = '累计B分排名';
  967. }
  968. this.rankingList.push(lists[i]);
  969. }
  970. this.addUpRankingLoad = true;
  971. this.departmentOfRanking(); //进入获取部门B分排名数据
  972. } else {
  973. self.$message.error(res.data.data.msg);
  974. }
  975. })
  976. .finally(() => {
  977. this.tabPositionLoad = false;
  978. // self.item_loading = false;
  979. });
  980. },
  981. tabPositions(e, item) {
  982. //排行榜点击分类
  983. if (e.target.tagName === 'INPUT') return;
  984. if (item) {
  985. this.addUpRankingLoad = true;
  986. }
  987. if (item.type == 'normal') {
  988. this.RankingPush = '/dept_rank';
  989. this.departmentOfRanking();
  990. } else if (item.type == 'all') {
  991. this.RankingPush = '/total_rank';
  992. this.addUpRanking();
  993. } else if (item.type == 'custom') {
  994. this.RankingPush = '/custom_rank';
  995. this.customRanking(item.target_id, item.date_interval);
  996. }
  997. },
  998. //积分构成
  999. dept1_null(val) {
  1000. let valItem = 0;
  1001. for (let i in val) {
  1002. valItem = val[i];
  1003. }
  1004. this.integralForm(valItem);
  1005. this.$nextTick(() => {
  1006. this.$refs.dept1.dropDownVisible = false;
  1007. });
  1008. },
  1009. integralForm(item) {
  1010. this.IntegralFormChartLoad = true;
  1011. let listslength = [];
  1012. let params = {};
  1013. if (item) {
  1014. (params.dept_id = item), (params.month = this.$moment().format('YYYY-MM'));
  1015. } else {
  1016. (params.dept_id = null), (params.month = this.$moment().format('YYYY-MM'));
  1017. }
  1018. if (this.employeeRout) {
  1019. params.employee_id = this.$getUserData().id;
  1020. }
  1021. this.$axios('get', '/api/integral/statistics/pie/b', params, 'v2')
  1022. .then(res => {
  1023. let lists = res.data.data.list;
  1024. listslength = lists;
  1025. let legendData1 = [];
  1026. let legendData2 = [];
  1027. let dadalist = [];
  1028. //分为两列展示
  1029. for (let i in lists) {
  1030. if (lists[i].name.length > 15) {
  1031. lists[i].name = lists[i].name.slice(0, 15) + '...';
  1032. }
  1033. //分为两列展示
  1034. if (i < 8) {
  1035. legendData1.push(lists[i].name + ' ' + '奖' + lists[i].reward + ' ' + '扣' + lists[i].deduction + ' ' + lists[i].ratio + '%');
  1036. } else {
  1037. legendData2.push(lists[i].name + ' ' + '奖' + lists[i].reward + ' ' + '扣' + lists[i].deduction + ' ' + lists[i].ratio + '%');
  1038. }
  1039. let dataListDx = {};
  1040. if (lists[i].ratio < 0) {
  1041. dataListDx.value = 0;
  1042. } else {
  1043. dataListDx.value = lists[i].ratio;
  1044. }
  1045. dataListDx.name = lists[i].name + ' ' + '奖' + lists[i].reward + ' ' + '扣' + lists[i].deduction + ' ' + lists[i].ratio + '%';
  1046. dadalist.push(dataListDx);
  1047. }
  1048. this.drawLine(legendData1, dadalist); //图表
  1049. })
  1050. .finally(() => {
  1051. if (listslength.length == 0) {
  1052. this.IntegralFormnone = true;
  1053. } else {
  1054. this.IntegralFormnone = false;
  1055. }
  1056. this.IntegralFormChartLoad = false;
  1057. });
  1058. },
  1059. //分为两列展示,多传legendDataTwo
  1060. drawLine(legendDataOne, dadalist) {
  1061. const chart = this.$refs.IntegralFormChart;
  1062. //此处可给固定颜色,不给就所有颜色随机
  1063. let colors = ['rgb(38, 162, 255)', '#f36f2a', '#fecb09', '#00b6bd', '#e85d53', '#fecb09', '#725197', '#fcb814', '#41a08d', '#425a95', '#ea8b84', '#9d1d62', '#fcb814'];
  1064. let legendDataLeng = legendDataOne.length;
  1065. if (legendDataLeng > colors.length) {
  1066. //当列表大于固定颜色时,给随机颜色
  1067. let colorsLeng = colors.length;
  1068. for (let i = 0; i <= legendDataLeng - colorsLeng; i++) {
  1069. colors.push('rgb(' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ')');
  1070. }
  1071. }
  1072. //只显示 N 条标题,多余隐藏,但是饼图不会隐藏
  1073. let DataLengths = [];
  1074. let left1 = '45%';
  1075. let left2 = '45%';
  1076. let leftBT = '25%';
  1077. if (chart) {
  1078. const myChart = this.$echarts.init(chart);
  1079. var legendData1 = legendDataOne;
  1080. // var legendData2 = DataLengths;
  1081. const option = {
  1082. tooltip: {
  1083. trigger: 'item',
  1084. formatter: '{b}'
  1085. },
  1086. legend: [
  1087. {
  1088. type: 'scroll',
  1089. orient: 'vertical',
  1090. icon: 'square',
  1091. left: left1,
  1092. align: 'left',
  1093. top: '23%',
  1094. itemGap: 20,
  1095. // bottom:'50%',
  1096. textStyle: {
  1097. fontSize: 14,
  1098. color: 'rgb(48, 49, 51)'
  1099. },
  1100. data: legendData1
  1101. }
  1102. ],
  1103. color: colors,
  1104. grid: {
  1105. x: 25,
  1106. y: 45,
  1107. x2: 5,
  1108. y2: 20,
  1109. borderWidth: 1
  1110. },
  1111. toolbox: {
  1112. show: true,
  1113. feature: {
  1114. mark: { show: true },
  1115. magicType: {
  1116. show: true,
  1117. type: ['pie', 'funnel']
  1118. }
  1119. }
  1120. },
  1121. series: [
  1122. {
  1123. name: '',
  1124. type: 'pie',
  1125. radius: [20, 110],
  1126. center: [leftBT, '50%'],
  1127. roseType: 'radius',
  1128. label: {
  1129. show: false
  1130. },
  1131. emphasis: {
  1132. label: {
  1133. show: false
  1134. }
  1135. },
  1136. data: dadalist
  1137. }
  1138. ]
  1139. };
  1140. myChart.setOption(option);
  1141. }
  1142. },
  1143. //月度积分
  1144. monthlyIntegralRanking(date, total, reward, deduction) {
  1145. const chart = this.$refs.monthlyIntegralChart;
  1146. if (chart) {
  1147. const myChart = this.$echarts.init(chart);
  1148. const option = {
  1149. tooltip: {
  1150. trigger: 'axis'
  1151. },
  1152. color: ['#F56C6C', '#26A2FF', '#FFC100'],
  1153. legend: {
  1154. right: '0%',
  1155. data: ['总积分', '奖分', '扣分']
  1156. },
  1157. grid: {
  1158. left: '3%',
  1159. right: '4%',
  1160. bottom: '3%',
  1161. containLabel: true
  1162. },
  1163. toolbox: {
  1164. feature: {}
  1165. },
  1166. xAxis: {
  1167. type: 'category',
  1168. boundaryGap: false,
  1169. data: date
  1170. },
  1171. yAxis: {
  1172. type: 'value',
  1173. axisLine: {
  1174. show: false
  1175. },
  1176. axisTick: {
  1177. show: false
  1178. }
  1179. },
  1180. series: [
  1181. {
  1182. name: '总积分',
  1183. type: 'line',
  1184. data: total
  1185. },
  1186. {
  1187. name: '奖分',
  1188. type: 'line',
  1189. data: reward
  1190. },
  1191. {
  1192. name: '扣分',
  1193. type: 'line',
  1194. data: deduction
  1195. }
  1196. ]
  1197. };
  1198. myChart.setOption(option);
  1199. }
  1200. },
  1201. //月度积分
  1202. monthlyIntegralchange(val) {
  1203. if (val.length == 0) {
  1204. this.exclusiveMonthBranch = 0;
  1205. } else {
  1206. let valItem = 0;
  1207. for (let i in val) {
  1208. valItem = val[i];
  1209. }
  1210. this.exclusiveMonthBranch = valItem;
  1211. }
  1212. this.monthlyIntegral();
  1213. this.$nextTick(() => {
  1214. this.$refs.dept2.dropDownVisible = false;
  1215. });
  1216. },
  1217. monthlyIntegral() {
  1218. this.monthlyIntegralloading = true;
  1219. let params = {};
  1220. let listslength = [];
  1221. if (this.employeeRout) {
  1222. params.employee_id = this.$getUserData().id;
  1223. } else {
  1224. params.dept_id = this.exclusiveMonthBranch;
  1225. }
  1226. params.month = this.$moment().format('YYYY-MM');
  1227. if (this.exclusiveMonthChecked) {
  1228. params.include_fixed = 1;
  1229. } else {
  1230. params.include_fixed = 0;
  1231. }
  1232. this.$axios('get', '/api/integral/statistics/curve', params)
  1233. .then(res => {
  1234. if (res.data.code == 1) {
  1235. let lists = res.data.data;
  1236. listslength = lists;
  1237. this.monthlyIntegralList[0].total_point = lists.total_point;
  1238. this.monthlyIntegralList[1].reward_point = lists.reward_point;
  1239. this.monthlyIntegralList[2].deduction_point = lists.deduction_point;
  1240. this.monthlyIntegralList[3].ratio = lists.ratio;
  1241. this.monthlyIntegralList[4].toRatio = lists.contrast_total;
  1242. this.monthlyIntegralList[5].toRatio = lists.contrast_reward;
  1243. this.monthlyIntegralList[6].toRatio = lists.contrast_deduction;
  1244. let dates = []; //日期
  1245. let totals = []; //总积分
  1246. let rewards = []; //奖分
  1247. let deductions = []; //扣分
  1248. for (let i in lists.total) {
  1249. dates.push(lists.total[i].date);
  1250. totals.push(lists.total[i].point);
  1251. }
  1252. for (let i in lists.reward) {
  1253. rewards.push(lists.reward[i].point);
  1254. }
  1255. for (let i in lists.deduction) {
  1256. deductions.push(lists.deduction[i].point);
  1257. }
  1258. this.monthlyIntegralRanking(dates, totals, rewards, deductions);
  1259. }
  1260. })
  1261. .finally(() => {
  1262. if (listslength.total.length == 0) {
  1263. this.monthlyIntegralnone = true;
  1264. } else {
  1265. this.monthlyIntegralnone = false;
  1266. }
  1267. this.monthlyIntegralloading = false;
  1268. });
  1269. },
  1270. //管理者奖扣统计
  1271. ManagerSAwardCharts(Name, Award, Deduct) {
  1272. //管理着奖扣统计表
  1273. const chart = this.$refs.ManagerSAwardChart;
  1274. if (chart) {
  1275. const myChart = this.$echarts.init(chart);
  1276. const option = {
  1277. tooltip: {
  1278. trigger: 'axis',
  1279. axisPointer: {
  1280. // type: 'cross',
  1281. crossStyle: {
  1282. color: '#999'
  1283. }
  1284. }
  1285. },
  1286. grid: {
  1287. //表格偏移量
  1288. // top: '5% '
  1289. left: '5%',
  1290. right: '0%'
  1291. },
  1292. toolbox: {
  1293. feature: {
  1294. // dataView: {show: false, readOnly: true},
  1295. // magicType: {show: false, type: ['line', 'bar']},
  1296. // restore: {show: false},
  1297. // saveAsImage: {show: false}
  1298. }
  1299. },
  1300. color: ['#26A2FF', '#FFC100'],
  1301. legend: {
  1302. right: '0%', //设置位置
  1303. data: ['奖分', '扣分']
  1304. },
  1305. xAxis: [
  1306. {
  1307. type: 'category',
  1308. data: Name,
  1309. axisPointer: {
  1310. type: 'shadow'
  1311. },
  1312. axisLabel: {
  1313. interval: 0 //横轴信息全部显示
  1314. // rotate:-30,//-30度角倾斜显示
  1315. },
  1316. axisLine: {
  1317. //去掉X轴线
  1318. show: false
  1319. },
  1320. axisTick: {
  1321. //去掉X轴刻度
  1322. show: false
  1323. }
  1324. }
  1325. ],
  1326. yAxis: [
  1327. {
  1328. type: 'value',
  1329. axisLabel: {
  1330. formatter: '{value}'
  1331. },
  1332. axisLine: {
  1333. //去掉Y轴线
  1334. show: false
  1335. },
  1336. axisTick: {
  1337. //去掉Y轴刻度
  1338. show: false
  1339. }
  1340. }
  1341. ],
  1342. series: [
  1343. {
  1344. name: '奖分',
  1345. type: 'bar',
  1346. barWidth: 14, //柱图宽度
  1347. barGap: '0%', //柱图间距
  1348. data: Award
  1349. },
  1350. {
  1351. name: '扣分',
  1352. type: 'bar',
  1353. barWidth: 14, //柱图宽度
  1354. barGap: '0%', //柱图间距
  1355. data: Deduct
  1356. }
  1357. ]
  1358. };
  1359. myChart.setOption(option);
  1360. }
  1361. },
  1362. ManagerSAwardlchange(val) {
  1363. //选中规则
  1364. let valItem = 0;
  1365. for (let i in val) {
  1366. valItem = val[i];
  1367. }
  1368. this.ManagerSAward(valItem);
  1369. this.$nextTick(() => {
  1370. this.$refs.dept3.dropDownVisible = false;
  1371. });
  1372. },
  1373. ManagerSAward(item) {
  1374. //管理者奖扣请求
  1375. this.ManagerSAwardloading = true;
  1376. let params = {};
  1377. let listslength = [];
  1378. if (item) {
  1379. (params.dept_id = item), (params.month = this.$moment().format('YYYY-MM'));
  1380. } else {
  1381. (params.dept_id = 0), (params.month = this.$moment().format('YYYY-MM'));
  1382. }
  1383. this.$axios('get', '/api/integral/statistics/task/pie', params, 'v2')
  1384. .then(res => {
  1385. let datas = res.data.data;
  1386. listslength = datas.list;
  1387. let histogramName = [];
  1388. let histogramAward = [];
  1389. let histogramDeduct = [];
  1390. for (let i in datas.list) {
  1391. histogramName.push(datas.list[i].name);
  1392. histogramAward.push(datas.list[i].reward_point);
  1393. histogramDeduct.push(datas.list[i].deduction_point);
  1394. }
  1395. this.ManagerSAwardlList[0].val = datas.reward_point;
  1396. this.ManagerSAwardlList[1].val = datas.deduction_point;
  1397. this.ManagerSAwardlList[2].val = datas.ratio;
  1398. this.ManagerSAwardlList[3].val = datas.exec_count;
  1399. this.ManagerSAwardlList[4].val = datas.manager_count;
  1400. this.ManagerSAwardlList[5].val = datas.pass_count;
  1401. this.ManagerSAwardlList[6].val = datas.fail_count;
  1402. this.ManagerSAwardCharts(histogramName, histogramAward, histogramDeduct);
  1403. })
  1404. .finally(() => {
  1405. if (listslength.length == 0) {
  1406. this.ManagerSAwardnone = true;
  1407. } else {
  1408. this.ManagerSAwardnone = false;
  1409. }
  1410. this.ManagerSAwardloading = false;
  1411. });
  1412. },
  1413. //奖扣分最高积分事件
  1414. highestPrizeBuckle() {
  1415. this.highestPrizeBuckleloading = true;
  1416. let params = {
  1417. time_type: '1',
  1418. pt_id: '3',
  1419. page: '1',
  1420. page_size: '1'
  1421. };
  1422. this.$axios('get', '/api/integral/statistics/prize/buckle/ranking', params)
  1423. .then(res => {
  1424. if (res.data.code == 1) {
  1425. if (res.data.data.prize.length != 0) {
  1426. this.prize = res.data.data.prize[0];
  1427. } else {
  1428. this.prize = [];
  1429. }
  1430. if (res.data.data.buckle.length != 0) {
  1431. this.buckle = res.data.data.buckle[0];
  1432. } else {
  1433. this.buckle = [];
  1434. }
  1435. }
  1436. })
  1437. .finally(() => {
  1438. this.highestPrizeBuckleloading = false;
  1439. });
  1440. },
  1441. //获取部门
  1442. getDepartment() {
  1443. this.$axios('get', '/api/department/tree').then(res => {
  1444. this.dept_tree = this.getTreeData(res.data.data.list);
  1445. });
  1446. },
  1447. // 递归判断列表,把最后的children设为undefined
  1448. getTreeData(data) {
  1449. for (var i = 0; i < data.length; i++) {
  1450. if (data[i]._child.length < 1) {
  1451. // children若为空数组,则将children设为undefined
  1452. data[i]._child = undefined;
  1453. } else {
  1454. // children若不为空数组,则继续 递归调用 本方法
  1455. this.getTreeData(data[i]._child);
  1456. }
  1457. }
  1458. return data;
  1459. }
  1460. },
  1461. beforeDestroy() {
  1462. //离开路由
  1463. window.removeEventListener('resize', this.selfAdaption); //取消echarts自适应
  1464. }
  1465. };
  1466. </script>
  1467. <style scoped="scoped" lang="scss">
  1468. .fa{
  1469. background-color: #f0a020;
  1470. color: #fff;
  1471. width: 200px;
  1472. font-size: 14px;
  1473. margin-left: auto;
  1474. padding: 0.1rem 0.32rem;
  1475. border-bottom-left-radius: 25px;
  1476. border-top-left-radius:25px;
  1477. padding-left: 1.4rem;
  1478. box-sizing: border-box;
  1479. }
  1480. .headerImg {
  1481. background-position: center;
  1482. background-repeat: no-repeat;
  1483. background-size: cover;
  1484. cursor: pointer;
  1485. }
  1486. .dialog ::v-deep .el-dialog {
  1487. border-radius: 25px;
  1488. }
  1489. .dialog ::v-deep .el-dialog__header,.dialog ::v-deep .el-dialog__body {
  1490. padding: 0;
  1491. border-radius: 25px;
  1492. }
  1493. .zb:hover{
  1494. color: #089fff;
  1495. }
  1496. .ts {
  1497. height: 64px;
  1498. padding: 8px 16px;
  1499. font-size: 14px;
  1500. color: #089fff;
  1501. background: #e6f3ff;
  1502. font-weight: 500;
  1503. box-sizing: border-box;
  1504. margin-bottom: 10px;
  1505. }
  1506. .ts img {
  1507. width: 24px;
  1508. height: 24px;
  1509. }
  1510. .ts .flex-1 {
  1511. padding: 0 8px;
  1512. }
  1513. .ts .btn {
  1514. width: 94px;
  1515. height: 28px;
  1516. background-color: #089fff;
  1517. line-height: 28px;
  1518. font-size: 14px;
  1519. color: #fff;
  1520. border-radius: 3px;
  1521. cursor: pointer;
  1522. text-align: center;
  1523. }
  1524. .updateNotice ::v-deep .el-dialog {
  1525. border-radius: 10px;
  1526. .el-dialog__header {
  1527. padding: 13px 20px;
  1528. text-align: center;
  1529. background-color: #3193fc;
  1530. border-radius: 8px 8px 0 0;
  1531. .el-dialog__title {
  1532. font-size: 16px;
  1533. color: #fff;
  1534. }
  1535. .el-icon-close {
  1536. color: #fff;
  1537. }
  1538. }
  1539. .el-dialog__body {
  1540. padding: 20px 20px 30px 20px;
  1541. }
  1542. .el-dialog__footer {
  1543. .dialog-footer {
  1544. .is-round {
  1545. padding: 10px 19px;
  1546. border-radius: 15px;
  1547. }
  1548. }
  1549. }
  1550. }
  1551. .refresh {
  1552. margin-top: 100px;
  1553. width: 100px;
  1554. }
  1555. .noData {
  1556. text-align: center;
  1557. position: fixed;
  1558. left: 0;
  1559. top: 0;
  1560. right: 0;
  1561. bottom: 0;
  1562. }
  1563. .data-all {
  1564. margin-bottom: 10%;
  1565. color: #595959;
  1566. }
  1567. // .left-all-style{
  1568. // background: #fff;
  1569. // border-radius: 5px;
  1570. // margin: 20px 0 20px 0;
  1571. // .title{
  1572. // padding-left: 10px;
  1573. // font-size: 16px;
  1574. // font-weight: normal;
  1575. // border-left: 2px solid #409eff;
  1576. // }
  1577. // }
  1578. .left-all-style {
  1579. margin-top: 10px;
  1580. padding: 20px;
  1581. background: #fff;
  1582. border-radius: 5px;
  1583. .title {
  1584. padding-left: 10px;
  1585. font-size: 16px;
  1586. font-weight: normal;
  1587. border-left: 2px solid #409eff;
  1588. }
  1589. .titledes {
  1590. display: block;
  1591. padding-top: 10px;
  1592. font-size: 14px;
  1593. color: #909399;
  1594. }
  1595. .noremind {
  1596. display: block;
  1597. text-align: right;
  1598. font-size: 12px;
  1599. color: #909399;
  1600. cursor: pointer;
  1601. }
  1602. .noremind:hover {
  1603. color: #409eff;
  1604. }
  1605. .noremind:active {
  1606. color: #409eff;
  1607. }
  1608. }
  1609. .right-all-style {
  1610. background: #fff;
  1611. border-radius: 5px;
  1612. margin: 0 0 10px 10px;
  1613. .title {
  1614. padding-left: 10px;
  1615. font-size: 16px;
  1616. font-weight: normal;
  1617. border-left: 2px solid #409eff;
  1618. }
  1619. }
  1620. .home-left-header {
  1621. background: #fff;
  1622. border-radius: 5px;
  1623. // border:1px #e1e4e7 solid;
  1624. // box-shadow: 0 2px 4px rgba(140,140,140,0.1);
  1625. .hlheader-user {
  1626. border-right: 1px #cecccc solid;
  1627. margin: 34px 0;
  1628. }
  1629. .hlheader-user-info .greetings div {
  1630. max-width: 95px;
  1631. display: inline-block;
  1632. overflow: hidden;
  1633. white-space: nowrap;
  1634. text-overflow: ellipsis;
  1635. vertical-align: top;
  1636. }
  1637. .hlheader-user-info {
  1638. display: flex;
  1639. .headimg {
  1640. margin: 0 auto;
  1641. }
  1642. .headtext {
  1643. margin: 0 auto;
  1644. }
  1645. .greetings {
  1646. margin: 0 auto;
  1647. font-size: 16px;
  1648. font-weight: bold;
  1649. // div {
  1650. // max-width: 95px;
  1651. // display: inline-block;
  1652. // overflow: hidden;
  1653. // white-space: nowrap;
  1654. // text-overflow: ellipsis;
  1655. // vertical-align: top;
  1656. // }
  1657. span {
  1658. font-size: 14px;
  1659. color: #666;
  1660. display: inline-block;
  1661. vertical-align: top;
  1662. padding-left: 5px;
  1663. }
  1664. p span {
  1665. line-height: 30px;
  1666. font-size: 14px;
  1667. color: #666;
  1668. display: inline-block;
  1669. vertical-align: top;
  1670. }
  1671. }
  1672. }
  1673. }
  1674. .nopoint_box {
  1675. display: inline-block;
  1676. text-align: center;
  1677. width: 100%;
  1678. margin-bottom: 10px;
  1679. .noimg {
  1680. display: inline-block;
  1681. width: 110px;
  1682. height: 110px;
  1683. margin: 22px auto 16px;
  1684. background: url('./assets/image/nodata_default.png') no-repeat center;
  1685. background-size: 99%;
  1686. }
  1687. .noperson {
  1688. display: inline-block;
  1689. width: 110px;
  1690. height: 110px;
  1691. margin: 22px auto 16px;
  1692. background: url('./assets/image/noperson_default.png') no-repeat center;
  1693. background-size: 99%;
  1694. }
  1695. .title1 {
  1696. display: block;
  1697. text-align: center;
  1698. font-size: 12px !important;
  1699. color: #909399 !important;
  1700. padding: 0;
  1701. }
  1702. a {
  1703. color: #26a2ff;
  1704. }
  1705. }
  1706. .ManagerSAwardlStyle {
  1707. text-align: center;
  1708. display: block;
  1709. cursor: pointer;
  1710. b {
  1711. color: #303133;
  1712. font-size: 18px;
  1713. transition: all 0.5s;
  1714. }
  1715. span {
  1716. color: rgb(48, 49, 51);
  1717. font-size: 14px;
  1718. margin-top: 5px;
  1719. display: block;
  1720. }
  1721. }
  1722. .ManagerSAwardlStyle:hover .ManagerSAwardlStyleB {
  1723. color: #4eb2ff;
  1724. }
  1725. ::v-deep .el-radio-button__inner {
  1726. border: 0px solid #dcdfe6;
  1727. border-radius: 5px;
  1728. padding: 0px 18px;
  1729. height: 36px;
  1730. line-height: 38px;
  1731. }
  1732. ::v-deep .el-radio-button--medium .el-radio-button__inner {
  1733. padding: 7px 13px;
  1734. }
  1735. .el-radio-button:first-child ::v-deep .el-radio-button__inner {
  1736. border: 0px solid #dcdfe6;
  1737. border-radius: 5px;
  1738. }
  1739. .el-radio-button:last-child ::v-deep .el-radio-button__inner {
  1740. border-radius: 5px;
  1741. }
  1742. .rightexamineAndApproveList {
  1743. text-align: left;
  1744. width: 100%;
  1745. // border-bottom:1px solid #EFEFEF;
  1746. }
  1747. .rightexamineAndApproveList2 {
  1748. text-align: left;
  1749. width: 100%;
  1750. border-bottom: 1px solid #efefef;
  1751. }
  1752. .inCommonUseStyle {
  1753. width: 95%;
  1754. height: 54px;
  1755. border: 1px solid #c0c4cc;
  1756. display: block;
  1757. margin: 16px 0 0 10px;
  1758. display: flex;
  1759. line-height: 54px;
  1760. border-radius: 5px;
  1761. cursor: pointer;
  1762. transition: all 0.5s;
  1763. }
  1764. .inCommonUseStyle b {
  1765. transition: all 0.5s;
  1766. color: #303133;
  1767. font-size: 14px;
  1768. }
  1769. .inCommonUseStyle:hover {
  1770. background-color: #fcfcfc;
  1771. border: 1px solid #409eff;
  1772. }
  1773. .inCommonUseStyle:hover b {
  1774. color: #409eff;
  1775. }
  1776. .announs {
  1777. padding: 0 0 10px 0;
  1778. border: 1px solid rgb(236, 236, 236);
  1779. border-radius: 10px;
  1780. overflow: hidden;
  1781. cursor: default;
  1782. // min-height: calc(60vh - 160px);
  1783. margin: 10px 0 0 0;
  1784. }
  1785. ::v-deep .announDetails {
  1786. // max-height: 410px;
  1787. // overflow-y: auto;
  1788. // *{
  1789. // color: #8c8c8c !important;
  1790. // }
  1791. // img{
  1792. // width: 100% !important;
  1793. // }
  1794. }
  1795. .announDetails {
  1796. max-height: 410px;
  1797. overflow-y: auto;
  1798. }
  1799. .announDetails::-webkit-scrollbar {
  1800. width: 9px;
  1801. height: 9px;
  1802. }
  1803. .announDetails::-webkit-scrollbar-track {
  1804. width: 6px;
  1805. background-color: #fff0;
  1806. -webkit-border-radius: 2em;
  1807. -moz-border-radius: 2em;
  1808. border-radius: 2em;
  1809. }
  1810. .announDetails::-webkit-scrollbar-thumb {
  1811. background-color: #fff0;
  1812. background-clip: padding-box;
  1813. min-height: 28px;
  1814. -webkit-border-radius: 2em;
  1815. -moz-border-radius: 2em;
  1816. border-radius: 2em;
  1817. }
  1818. .announDetails:hover::-webkit-scrollbar-thumb {
  1819. overflow-x: none;
  1820. background-color: rgba(144, 147, 153, 0.3);
  1821. }
  1822. .announcementc {
  1823. display: block;
  1824. text-align: right;
  1825. font-size: 13px;
  1826. color: #909399;
  1827. cursor: pointer;
  1828. }
  1829. .announcementc:hover {
  1830. color: #409eff;
  1831. }
  1832. .announcementc:active {
  1833. color: #409eff;
  1834. }
  1835. </style>