home.vue 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218
  1. <template>
  2. <div class="content-box">
  3. <div class="item">
  4. <div class="item_li">
  5. <div class="item_card" v-for="i in topTitleData" :key="i">
  6. <div class="top">
  7. <span>{{ i.name }}</span>
  8. <div class="cancel" v-if="i.name == '已完成'">
  9. <span>已完成 :&nbsp; {{ accomplishCount }}</span>
  10. </div>
  11. <div class="cancel" v-else>
  12. <span></span>
  13. <span></span>
  14. </div>
  15. </div>
  16. <div class="bottom top">
  17. <span>{{ i.value }}</span>
  18. <div class="cancel" v-if="i.name == '已完成'">
  19. <span>已取消 :&nbsp; {{ cancelCount }}</span>
  20. <span>已关单 :&nbsp; {{ shutCount }}</span>
  21. </div>
  22. <div class="cancel" v-else>
  23. <span></span>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="middle">
  30. <div class="cartogram">
  31. <!-- 报修分析统计 -->
  32. <div class="annulus" ref="annulus">
  33. <div class="title">报修分析统计</div>
  34. <div class="bottom">
  35. <ul>
  36. <li v-for="(i, index) in day1" :key="index" @click="annulusBtn(index)"
  37. :class="tabIndex1 == index ? 'li_active' : ''">
  38. {{ i }}
  39. </li>
  40. </ul>
  41. </div>
  42. <div id="annulus"></div>
  43. </div>
  44. <!-- 报修趋势分析 -->
  45. <div class="annulus">
  46. <div class="title">报修趋势分析</div>
  47. <div class="bottom">
  48. <ul>
  49. <li v-for="(i, index) in day2" :key="index" @click="brokenBtn(index)"
  50. :class="tabIndex2 == index + 1 ? 'li_active' : ''">
  51. {{ i }}
  52. </li>
  53. </ul>
  54. </div>
  55. <div id="broken"></div>
  56. </div>
  57. <!-- 表格3 报修校区统计-->
  58. <div class="table1">
  59. <div class="title">报修校区统计</div>
  60. <div class="bottom">
  61. <ul>
  62. <li v-for="(i, index) in day3" :key="index" @click="table3Btn(index)"
  63. :class="tabIndex3 == index ? 'li_active' : ''">
  64. {{ i.name }}
  65. </li>
  66. </ul>
  67. </div>
  68. <div class="table">
  69. <el-table :data="tableData3.list" height="200" :header-cell-style="{
  70. background: 'rgba(240, 243, 247, 1)',
  71. textAlign: 'center',
  72. }">
  73. <el-table-column type="index" align="center" label="序号" />
  74. <el-table-column prop="schoolName" align="center" label="校区" />
  75. <el-table-column prop="ordersTotal" align="center" label="工单总数" />
  76. <el-table-column prop="ordersCompensation" align="center" label="有偿" />
  77. <el-table-column prop="ordersGratis" align="center" label="无偿" />
  78. <el-table-column prop="totalPrice" align="center" label="耗材总费用" />
  79. </el-table>
  80. </div>
  81. </div>
  82. </div>
  83. <!-- 第二排表格 -->
  84. <div class="cartogram">
  85. <!-- 表格1 总数据汇总分析 -->
  86. <div class="annulus table2">
  87. <div class="title">
  88. <span>总数据汇总分析</span>
  89. </div>
  90. <div class="table">
  91. <el-table :stripe="true" :data="tableData5.list" height="240" :header-cell-style="{
  92. background: 'rgba(240, 243, 247, 1)',
  93. textAlign: 'center',
  94. }">
  95. <el-table-column prop="dateName" align="center" label="时间" />
  96. <el-table-column prop="totalCount" align="center" label="工单总数" />
  97. <el-table-column prop="checkCount" align="center" label="待审核" />
  98. <el-table-column prop="receivingCount" align="center" label="待接单" />
  99. <el-table-column prop="maintainCount" align="center" label="维修中" />
  100. <el-table-column prop="disposeCount" align="center" label="待处理" />
  101. <el-table-column prop="affirmCount" align="center" label="待确认" />
  102. <el-table-column prop="accomplishCount" align="center" label="已完成" />
  103. <el-table-column prop="shutCount" align="center" label="已关单" />
  104. <el-table-column prop="cancelCount" align="center" label="已取消" />
  105. </el-table>
  106. </div>
  107. </div>
  108. <!-- 表格2 报修区域统计-->
  109. <div class="table1 table3">
  110. <div class="title">
  111. <span>报修区域统计</span>
  112. <div class="import" @click="importTable4">
  113. <img src="@/assets/importBlue.png" alt="" />
  114. <span>导出</span>
  115. </div>
  116. </div>
  117. <div class="bottom">
  118. <ul>
  119. <li v-for="(i, index) in day4" :key="index" @click="table4Btn(index)"
  120. :class="tabIndex4 == index ? 'li_active' : ''">
  121. {{ i.name }}
  122. </li>
  123. </ul>
  124. </div>
  125. <div class="table" v-loading="table4Load">
  126. <el-table :stripe="true" ref="table4" :data="tableData4.list" height="200" :header-cell-style="{
  127. background: 'rgba(240, 243, 247, 1)',
  128. textAlign: 'center',
  129. }">
  130. <el-table-column type="index" align="center" label="序号" />
  131. <el-table-column prop="schoolName" align="center" label="校区" />
  132. <el-table-column align="center" label="报修区域">
  133. <template #default="{ row }">
  134. <span>{{ row.areaNames }}</span>
  135. </template>
  136. </el-table-column>
  137. <el-table-column prop="ordersTotal" align="center" label="工单总数" width="80" />
  138. <el-table-column prop="ordersCompensation" align="center" label="有偿" width="60" />
  139. <el-table-column prop="ordersGratis" align="center" label="无偿" width="60" />
  140. <el-table-column prop="totalPrice" align="center" label="耗材总费用" />
  141. </el-table>
  142. </div>
  143. </div>
  144. </div>
  145. <!-- 第三排表格 -->
  146. <div class="cartogram cartogram3">
  147. <!-- 表格4 维修师傅效率统计 黄家湖-->
  148. <div class="annulus table2 table4">
  149. <div class="title">
  150. <div style="display: flex;align-items: center;">
  151. <span>黄家湖维修师傅效率统计</span>
  152. <el-input v-model="searchInput8" @input="searchTable8" placeholder="请搜索关键字" size="small"
  153. style="width: 150px;margin-left: 15px;"></el-input>
  154. </div>
  155. <div class="import" @click="importTable8">
  156. <img src="@/assets/importBlue.png" alt="" />
  157. <span>导出</span>
  158. </div>
  159. </div>
  160. <div class="bottom">
  161. <ul>
  162. <li v-for="(i, index) in day8" :key="index" @click="table8Btn(index)"
  163. :class="tabIndex8 == index ? 'li_active' : ''">
  164. {{ i.name }}
  165. </li>
  166. </ul>
  167. </div>
  168. <div class="table" v-loading="table8Load">
  169. <el-table ref="table8" :stripe="true" :data="tableData8.list" height="200" :header-cell-style="{
  170. background: 'rgba(240, 243, 247, 1)',
  171. textAlign: 'center',
  172. }">
  173. <el-table-column type="index" align="center" label="序号" />
  174. <!-- <el-table-column prop="schoolName" align="center" label="校区" /> -->
  175. <el-table-column prop="name" align="center" label="姓名">
  176. <template #default="{ row }">
  177. <div style="color: rgb(111, 182, 184);cursor: pointer;" @click="cliName8(row)">{{ row.name }}</div>
  178. </template>
  179. </el-table-column>
  180. <el-table-column prop="workOrderTotal" align="center" label="工单总数" />
  181. <el-table-column prop="degreePraise" align="center" label="好评率" />
  182. <!-- <el-table-column prop="timeOut" align="center" label="超时率" /> -->
  183. <!-- <el-table-column prop="answer" align="center" width="130" label="平均响应时长(分)" /> -->
  184. <!-- <el-table-column prop="maintain" align="center" width="130" label="平均维修时长(分)" /> -->
  185. <el-table-column prop="totalPrice" align="center" width="130" label="耗材总费用(元)" />
  186. </el-table>
  187. </div>
  188. </div>
  189. <!-- 表格4 维修师傅效率统计 墨轩湖-->
  190. <div class="annulus table2 table4 Mtable">
  191. <div class="title">
  192. <div style="display: flex;align-items: center;">
  193. <span>墨轩湖维修师傅效率统计</span>
  194. <el-input v-model="searchInput6" @input="searchTable6" placeholder="请搜索关键字" size="small"
  195. style="width: 150px;margin-left: 15px;"></el-input>
  196. </div>
  197. <div class="import" @click="importTable6">
  198. <img src="@/assets/importBlue.png" alt="" />
  199. <span>导出</span>
  200. </div>
  201. </div>
  202. <div class="bottom">
  203. <ul>
  204. <li v-for="(i, index) in day6" :key="index" @click="table6Btn(index)"
  205. :class="tabIndex6 == index ? 'li_active' : ''">
  206. {{ i.name }}
  207. </li>
  208. </ul>
  209. </div>
  210. <div class="table" v-loading="table6Load">
  211. <el-table ref="table6" :stripe="true" :data="tableData6.list" height="200" :header-cell-style="{
  212. background: 'rgba(240, 243, 247, 1)',
  213. textAlign: 'center',
  214. }">
  215. <el-table-column type="index" align="center" label="序号" />
  216. <!-- <el-table-column prop="schoolName" align="center" label="校区" /> -->
  217. <el-table-column prop="name" align="center" label="姓名">
  218. <template #default="{ row }">
  219. <div style="color: rgb(111, 182, 184);cursor: pointer;" @click="cliName6(row)">{{ row.name }}</div>
  220. </template>
  221. </el-table-column>
  222. <el-table-column prop="workOrderTotal" align="center" label="工单总数" />
  223. <el-table-column prop="degreePraise" align="center" label="好评率" />
  224. <!-- <el-table-column prop="timeOut" align="center" label="超时率" /> -->
  225. <!-- <el-table-column prop="answer" align="center" width="130" label="平均响应时长(分)" /> -->
  226. <!-- <el-table-column prop="maintain" align="center" width="130" label="平均维修时长(分)" /> -->
  227. <el-table-column prop="totalPrice" align="center" width="130" label="耗材总费用(元)" />
  228. </el-table>
  229. </div>
  230. </div>
  231. <!-- 表格5 维修物品统计-->
  232. <div class="table1 table5">
  233. <div class="title">
  234. <span>维修物品统计</span>
  235. <div class="import" @click="importTable7">
  236. <img src="@/assets/importBlue.png" alt="" />
  237. <span>导出</span>
  238. </div>
  239. </div>
  240. <div class="bottom">
  241. <ul>
  242. <li v-for="(i, index) in day7" :key="index" @click="table7Btn(index)"
  243. :class="tabIndex7 == index ? 'li_active' : ''">
  244. {{ i.name }}
  245. </li>
  246. </ul>
  247. </div>
  248. <div class="table" v-loading="table7Load">
  249. <el-table :stripe="true" ref="table7" :data="tableData7.list" height="200" :header-cell-style="{
  250. background: 'rgba(240, 243, 247, 1)',
  251. textAlign: 'center',
  252. }">
  253. <el-table-column type="index" align="center" label="序号" />
  254. <el-table-column prop="articleName" align="center" label="名称" />
  255. <el-table-column prop="ordersTotal" align="center" label="工单总数" />
  256. <el-table-column prop="ordersCompensation" align="center" label="有偿" />
  257. <el-table-column prop="ordersGratis" align="center" label="无偿" />
  258. <el-table-column prop="totalPrice" align="center" label="耗材总费用" />
  259. </el-table>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. <div class="footer"></div>
  265. <el-dialog class="reply" v-model="nameVisible6" :close-on-click-modal="false" :close-on-press-escape="false"
  266. title="师傅详情" align-center width="820" :before-close="cancelName6">
  267. <div class="reply">
  268. <div class="content">
  269. <table border>
  270. <tr>
  271. <td>姓名</td>
  272. <td>工单总数</td>
  273. <td>好评率</td>
  274. <td>超时率</td>
  275. <td>平时响应时长(分)</td>
  276. <td>平时维修时长(分)</td>
  277. <td>耗材总费用(元)</td>
  278. </tr>
  279. <tr>
  280. <td>{{ nameList6.name }}</td>
  281. <td>{{ nameList6.workOrderTotal }}</td>
  282. <td>{{ nameList6.degreePraise }}</td>
  283. <td>{{ nameList6.timeOut }}</td>
  284. <td>{{ nameList6.answer }}</td>
  285. <td>{{ nameList6.maintain }}</td>
  286. <td>{{ nameList6.totalPrice }}</td>
  287. </tr>
  288. </table>
  289. <!-- <div class="nameInfo">姓名: <span>{{ nameList.name }}</span></div>
  290. <div class="nameInfo">校区: <span>{{ nameList.schoolName }}</span></div>
  291. <div class="nameInfo">工单总数: <span> {{ nameList.workOrderTotal }}</span></div>
  292. <div class="nameInfo">好评率: <span>{{ nameList.degreePraise }}</span></div> -->
  293. </div>
  294. <!-- <div class="options">
  295. <el-button color="rgba(111, 182, 184, 1)" class="queding" type="primary" @click="replycontentYes()">
  296. 确定
  297. </el-button>
  298. <el-button @click="cancelName">取消</el-button>
  299. </div> -->
  300. </div>
  301. </el-dialog>
  302. <el-dialog class="reply" v-model="nameVisible8" :close-on-click-modal="false" :close-on-press-escape="false"
  303. title="师傅详情" align-center width="820" :before-close="cancelName8">
  304. <div class="reply">
  305. <div class="content">
  306. <table border>
  307. <tr>
  308. <td>姓名</td>
  309. <td>工单总数</td>
  310. <td>好评率</td>
  311. <td>超时率</td>
  312. <td>平时响应时长(分)</td>
  313. <td>平时维修时长(分)</td>
  314. <td>耗材总费用(元)</td>
  315. </tr>
  316. <tr>
  317. <td>{{ nameList8.name }}</td>
  318. <td>{{ nameList8.workOrderTotal }}</td>
  319. <td>{{ nameList8.degreePraise }}</td>
  320. <td>{{ nameList8.timeOut }}</td>
  321. <td>{{ nameList8.answer }}</td>
  322. <td>{{ nameList8.maintain }}</td>
  323. <td>{{ nameList8.totalPrice }}</td>
  324. </tr>
  325. </table>
  326. <!-- <div class="nameInfo">姓名: <span>{{ nameList.name }}</span></div>
  327. <div class="nameInfo">校区: <span>{{ nameList.schoolName }}</span></div>
  328. <div class="nameInfo">工单总数: <span> {{ nameList.workOrderTotal }}</span></div>
  329. <div class="nameInfo">好评率: <span>{{ nameList.degreePraise }}</span></div> -->
  330. </div>
  331. <!-- <div class="options">
  332. <el-button color="rgba(111, 182, 184, 1)" class="queding" type="primary" @click="replycontentYes()">
  333. 确定
  334. </el-button>
  335. <el-button @click="cancelName">取消</el-button>
  336. </div> -->
  337. </div>
  338. </el-dialog>
  339. </div>
  340. </template>
  341. <script setup>
  342. import * as echarts from "echarts";
  343. import { ref, watch, reactive, nextTick, onBeforeMount, onMounted } from "vue";
  344. import { useRouter } from "vue-router";
  345. import { ElMessage, ElMessageBox } from "element-plus";
  346. import { dayjs } from "element-plus";
  347. import lodash from "lodash";
  348. import axios from "axios";
  349. import { useStore } from "vuex";
  350. const store = useStore();
  351. const api = ref("");
  352. const router = useRouter();
  353. // 顶部数据
  354. const topTitleData = ref([]); // 循环数据
  355. const accomplishCount = ref(); // 已完成
  356. const shutCount = ref(); // 已关单
  357. const cancelCount = ref(); // 已取消
  358. // 圆环统计图
  359. const annulus = ref();
  360. const day1 = ["全部", "本年", "本月", "本周", "今天"]; // 环形统计图按钮
  361. let tabIndex1 = ref(2);
  362. const echartsData1 = ref([]);
  363. // 折现统计图
  364. const day2 = ["本年", "本月", "本周", "今天"]; // 折现统计图按钮
  365. let tabIndex2 = ref(2);
  366. // 总数据汇总分析
  367. const day3 = [
  368. {
  369. name: "全部",
  370. value: 0,
  371. },
  372. {
  373. name: "本年",
  374. value: 1,
  375. },
  376. {
  377. name: "本月",
  378. value: 2,
  379. },
  380. {
  381. name: "本周",
  382. value: 3,
  383. },
  384. {
  385. name: "今天",
  386. value: 4,
  387. },
  388. ];
  389. let tabIndex3 = ref(2);
  390. const tableData3 = reactive({
  391. list: [
  392. {
  393. name: "黄家湖校区",
  394. address: 111,
  395. },
  396. {
  397. name: "黄家湖校区",
  398. address: 111,
  399. },
  400. {
  401. name: "黄家湖校区",
  402. address: 111,
  403. },
  404. {
  405. name: "黄家湖校区",
  406. address: 111,
  407. },
  408. {
  409. name: "黄家湖校区",
  410. address: 111,
  411. },
  412. {
  413. name: "黄家湖校区",
  414. address: 111,
  415. },
  416. ],
  417. });
  418. // 报修区域统计(---------------)
  419. const table4 = ref();
  420. const day4 = [
  421. {
  422. name: "全部",
  423. value: 0,
  424. },
  425. {
  426. name: "本年",
  427. value: 1,
  428. },
  429. {
  430. name: "本月",
  431. value: 2,
  432. },
  433. {
  434. name: "本周",
  435. value: 3,
  436. },
  437. {
  438. name: "今天",
  439. value: 4,
  440. },
  441. ];
  442. let tabIndex4 = ref(2); // 表格4
  443. let table4CurrentPage = ref(1);
  444. let table4pageCount = ref(10);
  445. let table4Total = ref();
  446. const table4Load = ref(false);
  447. const scrolltop4 = ref(false); // 控制切换日期滚动条置顶
  448. const tableData4 = reactive({
  449. list: [],
  450. });
  451. // 维修师傅效率统计 黄家湖(---------------)
  452. const table8 = ref();
  453. const day8 = [
  454. {
  455. name: "全部",
  456. value: 0,
  457. },
  458. {
  459. name: "本年",
  460. value: 1,
  461. },
  462. {
  463. name: "本月",
  464. value: 2,
  465. },
  466. {
  467. name: "本周",
  468. value: 3,
  469. },
  470. {
  471. name: "今天",
  472. value: 4,
  473. },
  474. ];
  475. let tabIndex8 = ref(2); // 表格4
  476. let table8CurrentPage = ref(1);
  477. let table8pageCount = ref(10);
  478. let table8Total = ref();
  479. const table8Load = ref(false);
  480. const scrolltop8 = ref(false); // 控制切换日期滚动条置顶
  481. const tableData8 = reactive({
  482. list: [
  483. {
  484. name: "黄家湖校区",
  485. address: 111,
  486. },
  487. {
  488. name: "黄家湖校区",
  489. address: 111,
  490. },
  491. {
  492. name: "黄家湖校区",
  493. address: 111,
  494. },
  495. {
  496. name: "黄家湖校区",
  497. address: 111,
  498. },
  499. {
  500. name: "黄家湖校区",
  501. address: 111,
  502. },
  503. {
  504. name: "黄家湖校区",
  505. address: 111,
  506. },
  507. ],
  508. });
  509. const nameVisible8 = ref(false);// 点击名字弹窗
  510. const nameList8 = reactive({
  511. workOrderTotal: "",// 工单总数
  512. degreePraise: "",// 好评率
  513. name: "",// 名字
  514. timeOut: "",// 超时率
  515. answer: "",// 平均响应时长(分)
  516. maintain: "",// 平均维修时长(分)
  517. totalPrice: "", // 耗材总费用(元)
  518. })
  519. const searchInput8 = ref() // 搜索关键字
  520. // 维修师傅效率统计 墨轩湖(---------------)
  521. const table6 = ref();
  522. const day6 = [
  523. {
  524. name: "全部",
  525. value: 0,
  526. },
  527. {
  528. name: "本年",
  529. value: 1,
  530. },
  531. {
  532. name: "本月",
  533. value: 2,
  534. },
  535. {
  536. name: "本周",
  537. value: 3,
  538. },
  539. {
  540. name: "今天",
  541. value: 4,
  542. },
  543. ];
  544. let tabIndex6 = ref(2); // 表格4
  545. let table6CurrentPage = ref(1);
  546. let table6pageCount = ref(10);
  547. let table6Total = ref();
  548. const table6Load = ref(false);
  549. const scrolltop6 = ref(false); // 控制切换日期滚动条置顶
  550. const tableData6 = reactive({
  551. list: [
  552. {
  553. name: "黄家湖校区",
  554. address: 111,
  555. },
  556. {
  557. name: "黄家湖校区",
  558. address: 111,
  559. },
  560. {
  561. name: "黄家湖校区",
  562. address: 111,
  563. },
  564. {
  565. name: "黄家湖校区",
  566. address: 111,
  567. },
  568. {
  569. name: "黄家湖校区",
  570. address: 111,
  571. },
  572. {
  573. name: "黄家湖校区",
  574. address: 111,
  575. },
  576. ],
  577. });
  578. const nameVisible6 = ref(false);// 点击名字弹窗
  579. const nameList6 = reactive({
  580. workOrderTotal: "",// 工单总数
  581. degreePraise: "",// 好评率
  582. name: "",// 名字
  583. timeOut: "",// 超时率
  584. answer: "",// 平均响应时长(分)
  585. maintain: "",// 平均维修时长(分)
  586. totalPrice: "", // 耗材总费用(元)
  587. })
  588. const searchInput6 = ref() // 搜索关键字
  589. // 维修物品统计(---------------)
  590. const table7 = ref();
  591. const day7 = [
  592. {
  593. name: "全部",
  594. value: 0,
  595. },
  596. {
  597. name: "本年",
  598. value: 1,
  599. },
  600. {
  601. name: "本月",
  602. value: 2,
  603. },
  604. {
  605. name: "本周",
  606. value: 3,
  607. },
  608. {
  609. name: "今天",
  610. value: 4,
  611. },
  612. ];
  613. let tabIndex7 = ref(2); // 表格4
  614. let table7CurrentPage = ref(1);
  615. let table7pageCount = ref(10);
  616. let table7Total = ref();
  617. const table7Load = ref(false);
  618. const scrolltop7 = ref(false); // 控制切换日期滚动条置顶
  619. const tableData7 = reactive({
  620. list: [
  621. {
  622. name: "黄家湖校区",
  623. address: 111,
  624. },
  625. {
  626. name: "黄家湖校区",
  627. address: 111,
  628. },
  629. {
  630. name: "黄家湖校区",
  631. address: 111,
  632. },
  633. {
  634. name: "黄家湖校区",
  635. address: 111,
  636. },
  637. {
  638. name: "黄家湖校区",
  639. address: 111,
  640. },
  641. {
  642. name: "黄家湖校区",
  643. address: 111,
  644. },
  645. ],
  646. });
  647. // 总数据汇总分析
  648. const tableData5 = reactive({
  649. list: [
  650. {
  651. name: "黄家湖校区",
  652. address: 111,
  653. },
  654. {
  655. name: "黄家湖校区",
  656. address: 111,
  657. },
  658. {
  659. name: "黄家湖校区",
  660. address: 111,
  661. },
  662. {
  663. name: "黄家湖校区",
  664. address: 111,
  665. },
  666. {
  667. name: "黄家湖校区",
  668. address: 111,
  669. },
  670. ],
  671. });
  672. // 初始化统计图
  673. // 环形图按钮(------------------------------)
  674. const annulusBtn = (index) => {
  675. tabIndex1.value = index;
  676. cartogram();
  677. console.log(index);
  678. };
  679. const cartogram = async () => {
  680. // 基于准备好的dom,初始化echarts实例
  681. // 圆环统计图
  682. let data = {
  683. state: tabIndex1.value,
  684. };
  685. let res = await axios({
  686. method: "get",
  687. url: api.value + "/repairRecord/repairAnalysis",
  688. headers: {
  689. token: sessionStorage.getItem("token"),
  690. user_head: sessionStorage.getItem("userhead"),
  691. },
  692. params: data,
  693. });
  694. console.log(res, "圆环 报修分析统计");
  695. let echartsData1 = [];
  696. if (res.data.code == 200) {
  697. let obj = res.data.data;
  698. Object.keys(obj).forEach((key) => {
  699. if (key == "totalCount") {
  700. } else if (key == "checkCount") {
  701. echartsData1.push({
  702. name: "待审核",
  703. value: obj[key],
  704. });
  705. } else if (key == "receivingCount") {
  706. echartsData1.push({
  707. name: "待接单",
  708. value: obj[key],
  709. });
  710. } else if (key == "maintainCount") {
  711. echartsData1.push({
  712. name: "维修中",
  713. value: obj[key],
  714. });
  715. } else if (key == "accomplishCount") {
  716. echartsData1.push({
  717. name: "已完成",
  718. value: obj[key],
  719. });
  720. } else if (key == "shutCount") {
  721. echartsData1.push({
  722. name: "已关单",
  723. value: obj[key],
  724. });
  725. } else if (key == "cancelCount") {
  726. echartsData1.push({
  727. name: "已取消",
  728. value: obj[key],
  729. });
  730. } else if (key == "disposeCount") {
  731. echartsData1.push({
  732. name: "待处理",
  733. value: obj[key],
  734. });
  735. } else if (key == "affirmCount") {
  736. echartsData1.push({
  737. name: "待确认",
  738. value: obj[key],
  739. });
  740. } else if (key == "timeOutCount") {
  741. echartsData1.push({
  742. name: "已超时",
  743. value: obj[key],
  744. });
  745. }
  746. });
  747. } else {
  748. ElMessage({
  749. type: "error",
  750. showClose: true,
  751. message: res.data.message,
  752. center: true,
  753. });
  754. }
  755. var myChart1 = echarts.init(document.getElementById("annulus"));
  756. myChart1.setOption({
  757. // title: {
  758. // text: "圆环图的例子",
  759. // left: "center",
  760. // top: "center",
  761. // },
  762. tooltip: {
  763. trigger: "item",
  764. },
  765. legend: {
  766. orient: "vertical",
  767. right: "12%",
  768. top: "3%",
  769. },
  770. series: [
  771. {
  772. type: "pie",
  773. data: echartsData1,
  774. center: ["40%", "48%"],
  775. radius: ["48%", "65%"],
  776. label: {
  777. show: true,
  778. // position: "center",
  779. formatter: "{c}",
  780. padding: 1,
  781. },
  782. labelLine: {
  783. show: true,
  784. // length: -1,
  785. },
  786. },
  787. ],
  788. });
  789. };
  790. // 折现统计图按钮(----------------------------)
  791. const brokenBtn = (index) => {
  792. tabIndex2.value = index + 1;
  793. cartogram2();
  794. // console.log(index+1);
  795. };
  796. const cartogram2 = async () => {
  797. let data = {
  798. state: tabIndex2.value,
  799. };
  800. let res = await axios({
  801. method: "get",
  802. url: api.value + "/repairRecord/repairTrend",
  803. headers: {
  804. token: sessionStorage.getItem("token"),
  805. user_head: sessionStorage.getItem("userhead"),
  806. },
  807. params: data,
  808. });
  809. console.log(res, "折现 报修趋势分析");
  810. let dayData = []; // 年份
  811. let newTitle = ""; // 年比(今年标题)
  812. let oldTitle = ""; // 年比(去年标题)
  813. // 月份
  814. let monthData = [];
  815. for (let j = 1; j <= 31; j++) {
  816. monthData.push(j);
  817. }
  818. let oldData = []; // 上-级数据
  819. let newData = []; // 当前数据
  820. let xname = "";
  821. if (res.data.code == 200) {
  822. res.data.data.forEach((item) => {
  823. if (tabIndex2.value == 1) {
  824. xname = "月";
  825. newTitle = "今年";
  826. oldTitle = "去年";
  827. dayData.push(item.trendComparisonName);
  828. oldData.push(item.trendComparisonCount);
  829. if (item.trendCount != null) {
  830. newData.push(item.trendCount);
  831. }
  832. } else if (tabIndex2.value == 2) {
  833. xname = "日";
  834. dayData = monthData;
  835. newTitle = "本月";
  836. oldTitle = "上月";
  837. if (item.trendComparisonCount != null) {
  838. oldData.push(item.trendComparisonCount);
  839. }
  840. if (item.trendCount != null) {
  841. newData.push(item.trendCount);
  842. }
  843. } else if (tabIndex2.value == 3) {
  844. xname = "周";
  845. dayData.push(item.trendComparisonName);
  846. newTitle = "本周";
  847. oldTitle = "上周";
  848. oldData.push(item.trendComparisonCount);
  849. if (item.trendCount != null) {
  850. newData.push(item.trendCount);
  851. }
  852. } else if (tabIndex2.value == 4) {
  853. xname = "小时";
  854. dayData.push(item.trendComparisonName);
  855. newTitle = "今天";
  856. oldTitle = "昨天";
  857. oldData.push(item.trendComparisonCount);
  858. if (item.trendCount != null) {
  859. newData.push(item.trendCount);
  860. }
  861. }
  862. });
  863. } else {
  864. ElMessage({
  865. type: "error",
  866. showClose: true,
  867. message: res.data.message,
  868. center: true,
  869. });
  870. }
  871. // 折现统计图
  872. var myChart2 = echarts.init(document.getElementById("broken"));
  873. myChart2.setOption({
  874. tooltip: {
  875. trigger: "axis",
  876. axisPointer: {
  877. type: "cross",
  878. label: {
  879. backgroundColor: "#6a7985",
  880. },
  881. },
  882. },
  883. legend: {
  884. // data: dayTitle,
  885. bottom: "25",
  886. icon: "circle",
  887. itemHeight: 8, // 修改icon图形大小
  888. itemGap: 30, // 修改间距
  889. textStyle: {
  890. fontSize: 10,
  891. color: "#000",
  892. padding: [0, 0, 0, -5], // 修改文字和图标距离
  893. },
  894. },
  895. grid: {
  896. top: "12%",
  897. left: "5%",
  898. right: "8%",
  899. bottom: "20%",
  900. containLabel: true,
  901. },
  902. xAxis: [
  903. {
  904. type: "category",
  905. boundaryGap: false,
  906. axisLine: {
  907. show: false, // 不显示坐标轴线
  908. },
  909. axisTick: {
  910. show: false, // 不显示坐标轴刻度线
  911. },
  912. data: dayData,
  913. // axisLabel: {
  914. // // 每个数据后面都会带有单位
  915. // formatter: "{value}月",
  916. // },
  917. name: xname,
  918. nameLocation: "end",
  919. nameTextStyle: {
  920. padding: [60, 0, 0, 0], // 四个数字分别为上右下左与原位置距离
  921. },
  922. },
  923. ],
  924. yAxis: [
  925. {
  926. type: "value",
  927. },
  928. ],
  929. series: [
  930. {
  931. name: newTitle,
  932. type: "line",
  933. // stack: "Total",
  934. areaStyle: {},
  935. emphasis: {
  936. focus: "series",
  937. },
  938. data: newData,
  939. symbolSize: 4, // 点的大小
  940. symbol: "circle", // 折线点设置为实心点
  941. itemStyle: {
  942. normal: {
  943. color: "rgba(30, 125, 251, 1)", // 拐点的颜色
  944. borderColor: "white", // 拐点边框颜色
  945. borderWidth: 2, // 拐点边框大小
  946. },
  947. },
  948. lineStyle: {
  949. normal: {
  950. color: "rgba(30, 125, 251, 1)", // 折线点的颜色
  951. },
  952. },
  953. smooth: true, //平滑曲线图。值可为数字
  954. areaStyle: {
  955. //2.基础面积图。区域填充样式
  956. color: "rgba(30, 125, 251, 0.3)", //支持RGB、ALPHA通道+RGBA、十六进制、渐变色、纹理填充
  957. },
  958. },
  959. {
  960. name: oldTitle,
  961. type: "line",
  962. // stack: "Total",
  963. areaStyle: {},
  964. emphasis: {
  965. focus: "series",
  966. },
  967. data: oldData,
  968. symbolSize: 4, // 点的大小
  969. symbol: "circle", // 折线点设置为实心点
  970. itemStyle: {
  971. normal: {
  972. color: "rgba(111, 182, 184, 1)", // 拐点的颜色
  973. borderColor: "white", // 拐点边框颜色
  974. borderWidth: 2, // 拐点边框大小
  975. },
  976. },
  977. lineStyle: {
  978. normal: {
  979. color: "rgba(111, 182, 184, 1)", // 折线点的颜色
  980. },
  981. },
  982. smooth: true, //平滑曲线图。值可为数字
  983. areaStyle: {
  984. //2.基础面积图。区域填充样式
  985. color: "rgba(111, 182, 184, 0.3)", //支持RGB、ALPHA通道+RGBA、十六进制、渐变色、纹理填充
  986. },
  987. },
  988. ],
  989. });
  990. };
  991. // 顶部展示数据
  992. const titleTop = async () => {
  993. let res = await axios({
  994. method: "get",
  995. url: api.value + "/repairRecord/repairTotalData",
  996. headers: {
  997. token: sessionStorage.getItem("token"),
  998. user_head: sessionStorage.getItem("userhead"),
  999. },
  1000. });
  1001. console.log(res, "顶部展示数据");
  1002. if (res.data.code == 200) {
  1003. topTitleData.value = [];
  1004. let obj = res.data.data;
  1005. Object.keys(obj).forEach((key) => {
  1006. if (key == "totalCount") {
  1007. topTitleData.value.push({
  1008. name: "总数",
  1009. value: obj[key],
  1010. });
  1011. } else if (key == "checkCount") {
  1012. topTitleData.value.push({
  1013. name: "待审核",
  1014. value: obj[key],
  1015. });
  1016. } else if (key == "receivingCount") {
  1017. topTitleData.value.push({
  1018. name: "待接单",
  1019. value: obj[key],
  1020. });
  1021. } else if (key == "maintainCount") {
  1022. topTitleData.value.push({
  1023. name: "维修中",
  1024. value: obj[key],
  1025. });
  1026. } else if (key == "accomplishTotalCount") {
  1027. topTitleData.value.push({
  1028. name: "已完成",
  1029. value: obj[key],
  1030. });
  1031. accomplishCount.value = obj[key];
  1032. } else if (key == "accomplishCount") {
  1033. // 已完成
  1034. accomplishCount.value = obj[key];
  1035. } else if (key == "shutCount") {
  1036. // 已关单
  1037. shutCount.value = obj[key];
  1038. } else if (key == "cancelCount") {
  1039. // 已取消
  1040. cancelCount.value = obj[key];
  1041. } else if (key == "disposeCount") {
  1042. topTitleData.value.push({
  1043. name: "待处理",
  1044. value: obj[key],
  1045. });
  1046. } else if (key == "affirmCount") {
  1047. topTitleData.value.push({
  1048. name: "待确认",
  1049. value: obj[key],
  1050. });
  1051. }
  1052. });
  1053. } else {
  1054. ElMessage({
  1055. type: "error",
  1056. showClose: true,
  1057. message: res.data.message,
  1058. center: true,
  1059. });
  1060. if (res.data.code == 570) {
  1061. sessionStorage.removeItem("token")
  1062. router.push({
  1063. path: `/login`,
  1064. });
  1065. }
  1066. }
  1067. };
  1068. const getlist = () => {
  1069. titleTop(); // 顶部数据
  1070. tableList3(); // 报修校区统计
  1071. tableList4(); // 报修区域统计
  1072. tableList5(); // 总数据汇总分析
  1073. tableList6(); // 黄家湖维修师傅效率统计
  1074. tableList8(); // 墨轩湖维修师傅效率统计
  1075. tableList7(); // 维修物品统计
  1076. };
  1077. // 报修校区统计(----------------------)
  1078. const table3Btn = (index) => {
  1079. tabIndex3.value = index;
  1080. tableList3();
  1081. };
  1082. const tableList3 = async () => {
  1083. let data = {
  1084. state: tabIndex3.value,
  1085. };
  1086. let res = await axios({
  1087. method: "get",
  1088. url: api.value + "/repairRecord/repairCampus",
  1089. headers: {
  1090. token: sessionStorage.getItem("token"),
  1091. user_head: sessionStorage.getItem("userhead"),
  1092. },
  1093. params: data,
  1094. });
  1095. console.log(res, "报修校区统计数据");
  1096. if (res.data.code == 200) {
  1097. tableData3.list = res.data.data;
  1098. } else {
  1099. ElMessage({
  1100. type: "error",
  1101. showClose: true,
  1102. message: res.data.message,
  1103. center: true,
  1104. });
  1105. }
  1106. };
  1107. // 报修区域统计(---------------------)
  1108. const table4Btn = (index) => {
  1109. tabIndex4.value = index;
  1110. scrolltop4.value = true;
  1111. // 重置页数
  1112. table4CurrentPage.value = 1;
  1113. table4pageCount.value = 10;
  1114. tableList4();
  1115. };
  1116. const tableList4 = async () => {
  1117. table4Load.value = true;
  1118. let data = {
  1119. state: tabIndex4.value,
  1120. currentPage: table4CurrentPage.value,
  1121. pageCount: table4pageCount.value,
  1122. };
  1123. let res = await axios({
  1124. method: "get",
  1125. url: api.value + "/repairRecord/repairArea",
  1126. headers: {
  1127. token: sessionStorage.getItem("token"),
  1128. user_head: sessionStorage.getItem("userhead"),
  1129. },
  1130. params: data,
  1131. });
  1132. console.log(res, "报修区域统计数据");
  1133. if (res.data.code == 200) {
  1134. table4Total.value = res.data.data.records.length;
  1135. res.data.data.records.forEach((item) => {
  1136. item.areaNames = item.areaName.slice(5);
  1137. });
  1138. if (table4CurrentPage.value > 1) {
  1139. tableData4.list = tableData4.list.concat(res.data.data.records);
  1140. } else {
  1141. tableData4.list = res.data.data.records;
  1142. }
  1143. table4Load.value = false;
  1144. } else {
  1145. table4Load.value = false;
  1146. ElMessage({
  1147. type: "error",
  1148. showClose: true,
  1149. message: res.data.message,
  1150. center: true,
  1151. });
  1152. }
  1153. };
  1154. const tableScroll4 = (ele) => {
  1155. // ele : 绑定的表格元素
  1156. // console.log(ele.layout.table, "priceTable.value.bodyWrapper");
  1157. let table = ele.layout.table.refs.bodyWrapper;
  1158. table.addEventListener(
  1159. "scroll",
  1160. (e) => {
  1161. if (scrolltop4.value) {
  1162. e.target.scrollTop = 0;
  1163. scrolltop4.value = false;
  1164. console.log("置顶到顶部");
  1165. }
  1166. let scrollTop = e.target.scrollTop;
  1167. let scrollHeight = e.target.scrollHeight;
  1168. let clientHeight = e.target.clientHeight;
  1169. // console.log(scrollTop, "scrollTop");
  1170. // console.log(scrollHeight, "scrollHeight");
  1171. // console.log(clientHeight);
  1172. if (scrollTop + clientHeight == scrollHeight) {
  1173. console.log("滚动到底部了");
  1174. // 滚动到底部页面加一
  1175. table4CurrentPage.value++;
  1176. // 判断数据是否加载完
  1177. if (table4Total.value >= table4pageCount.value) {
  1178. console.log(table4Total.value, "加载完毕");
  1179. tableList4();
  1180. }
  1181. }
  1182. },
  1183. true
  1184. );
  1185. };
  1186. // 导出报修区域数据
  1187. const importTable4 = async () => {
  1188. let datas = {
  1189. state: tabIndex4.value,
  1190. };
  1191. let res = await axios({
  1192. method: "get",
  1193. url: api.value + "/repairRecord/repairAreaExport",
  1194. headers: {
  1195. token: sessionStorage.getItem("token"),
  1196. user_head: sessionStorage.getItem("userhead"),
  1197. },
  1198. params: datas,
  1199. responseType: "blob",
  1200. });
  1201. console.log(res, "报修区域统计");
  1202. if (res.status == 200) {
  1203. let name = `报修区域统计`;
  1204. var content = res.data;
  1205. var data = new Blob([content]);
  1206. var downloadUrl = window.URL.createObjectURL(data);
  1207. var anchor = document.createElement("a");
  1208. anchor.href = downloadUrl;
  1209. anchor.download = name + ".xlsx";
  1210. anchor.click();
  1211. window.URL.revokeObjectURL(data);
  1212. ElMessage({
  1213. type: "success",
  1214. showClose: true,
  1215. message: "导出成功",
  1216. center: true,
  1217. });
  1218. } else {
  1219. ElMessage({
  1220. type: "error",
  1221. showClose: true,
  1222. message: "导出失败",
  1223. center: true,
  1224. });
  1225. }
  1226. };
  1227. // 总数据汇总分析
  1228. const tableList5 = async () => {
  1229. let res = await axios({
  1230. method: "get",
  1231. url: api.value + "/repairRecord/repairSummarizing",
  1232. headers: {
  1233. token: sessionStorage.getItem("token"),
  1234. user_head: sessionStorage.getItem("userhead"),
  1235. },
  1236. });
  1237. console.log(res, "总数据汇总分析");
  1238. if (res.data.code == 200) {
  1239. tableData5.list = res.data.data;
  1240. } else {
  1241. ElMessage({
  1242. type: "error",
  1243. showClose: true,
  1244. message: res.data.message,
  1245. center: true,
  1246. });
  1247. }
  1248. };
  1249. // 维修师傅效率统计(黄家湖---------------------)
  1250. const table8Btn = (index) => {
  1251. tabIndex8.value = index;
  1252. scrolltop8.value = true;
  1253. // 重置页数
  1254. table8CurrentPage.value = 1;
  1255. table8pageCount.value = 10;
  1256. tableList8();
  1257. };
  1258. // 点击名字
  1259. const cliName8 = (row) => {
  1260. console.log(row);
  1261. nameVisible8.value = true
  1262. nameList8.workOrderTotal = row.workOrderTotal // 工单总数
  1263. nameList8.degreePraise = row.degreePraise // 好评率
  1264. nameList8.timeOut = row.timeOut // 超时率
  1265. nameList8.name = row.name // 名字
  1266. nameList8.answer = row.answer // 平均响应时长(分)
  1267. nameList8.maintain = row.maintain // 平均维修时长(分)
  1268. nameList8.totalPrice = row.totalPrice // 耗材总费用(元)
  1269. nameList8.schoolName = row.schoolName
  1270. }
  1271. const cancelName8 = () => {
  1272. nameVisible8.value = false
  1273. }
  1274. const tableList8 = async () => {
  1275. table8Load.value = true;
  1276. let data = {
  1277. state: tabIndex8.value,
  1278. currentPage: table8CurrentPage.value,
  1279. pageCount: table8pageCount.value,
  1280. schoolId: 1,
  1281. keyWord: searchInput8.value
  1282. };
  1283. let res = await axios({
  1284. method: "get",
  1285. url: api.value + "/repairRecord/maintenanceWorker",
  1286. headers: {
  1287. token: sessionStorage.getItem("token"),
  1288. user_head: sessionStorage.getItem("userhead"),
  1289. },
  1290. params: data,
  1291. });
  1292. console.log(res, "黄家湖维修师傅效率统计数据");
  1293. if (res.data.code == 200) {
  1294. table8Total.value = res.data.data.records.length;
  1295. if (table8CurrentPage.value > 1) {
  1296. tableData8.list = tableData8.list.concat(res.data.data.records);
  1297. } else {
  1298. tableData8.list = res.data.data.records;
  1299. }
  1300. table8Load.value = false;
  1301. } else {
  1302. table8Load.value = false;
  1303. ElMessage({
  1304. type: "error",
  1305. showClose: true,
  1306. message: res.data.message,
  1307. center: true,
  1308. });
  1309. }
  1310. };
  1311. const tableScroll8 = (ele) => {
  1312. // ele : 绑定的表格元素
  1313. // console.log(ele.layout.table, "priceTable.value.bodyWrapper");
  1314. let table = ele.layout.table.refs.bodyWrapper;
  1315. table.addEventListener(
  1316. "scroll",
  1317. (e) => {
  1318. if (scrolltop8.value) {
  1319. e.target.scrollTop = 0;
  1320. scrolltop8.value = false;
  1321. console.log("置顶到顶部");
  1322. }
  1323. let scrollTop = e.target.scrollTop;
  1324. let scrollHeight = e.target.scrollHeight;
  1325. let clientHeight = e.target.clientHeight;
  1326. // console.log(scrollTop, "scrollTop");
  1327. // console.log(scrollHeight, "scrollHeight");
  1328. // console.log(clientHeight);
  1329. if (scrollTop + clientHeight == scrollHeight) {
  1330. console.log("滚动到底部了");
  1331. // 滚动到底部页面加一
  1332. table8CurrentPage.value++;
  1333. // 判断数据是否加载完
  1334. if (table8Total.value >= table8pageCount.value) {
  1335. console.log(table8Total.value, "加载完毕");
  1336. tableList8();
  1337. }
  1338. }
  1339. },
  1340. true
  1341. );
  1342. };
  1343. // 黄家湖搜索关键字
  1344. const searchTable8 = async () => {
  1345. table8Load.value = true;
  1346. table8CurrentPage.value = 1
  1347. table8pageCount.value = 10
  1348. let data = {
  1349. state: tabIndex8.value,
  1350. currentPage: table8CurrentPage.value,
  1351. pageCount: table8pageCount.value,
  1352. schoolId: 1,
  1353. keyWord: searchInput8.value
  1354. };
  1355. let res = await axios({
  1356. method: "get",
  1357. url: api.value + "/repairRecord/maintenanceWorker",
  1358. headers: {
  1359. token: sessionStorage.getItem("token"),
  1360. user_head: sessionStorage.getItem("userhead"),
  1361. },
  1362. params: data,
  1363. });
  1364. console.log(res, "黄家湖维修师傅效率统计数据");
  1365. if (res.data.code == 200) {
  1366. if (res.data.data.records) {
  1367. table8Total.value = res.data.data.records.length;
  1368. if (table8CurrentPage.value > 1) {
  1369. tableData8.list = tableData8.list.concat(res.data.data.records);
  1370. } else {
  1371. tableData8.list = res.data.data.records;
  1372. }
  1373. } else {
  1374. tableData8.list = []
  1375. }
  1376. table8Load.value = false;
  1377. } else {
  1378. table8Load.value = false;
  1379. ElMessage({
  1380. type: "error",
  1381. showClose: true,
  1382. message: res.data.message,
  1383. center: true,
  1384. });
  1385. }
  1386. }
  1387. // 维修师傅效率统计导出
  1388. const importTable8 = async () => {
  1389. let datas = {
  1390. state: tabIndex8.value,
  1391. schoolId: 1,
  1392. keyWord: searchInput8.value
  1393. };
  1394. let res = await axios({
  1395. method: "get",
  1396. url: api.value + "/repairRecord/maintenanceWorkerExport",
  1397. headers: {
  1398. token: sessionStorage.getItem("token"),
  1399. user_head: sessionStorage.getItem("userhead"),
  1400. },
  1401. params: datas,
  1402. responseType: "blob",
  1403. });
  1404. console.log(res, "黄家湖维修师傅效率统计");
  1405. if (res.status == 200) {
  1406. let name = `黄家湖维修师傅效率统计`;
  1407. var content = res.data;
  1408. var data = new Blob([content]);
  1409. var downloadUrl = window.URL.createObjectURL(data);
  1410. var anchor = document.createElement("a");
  1411. anchor.href = downloadUrl;
  1412. anchor.download = name + ".xlsx";
  1413. anchor.click();
  1414. window.URL.revokeObjectURL(data);
  1415. ElMessage({
  1416. type: "success",
  1417. showClose: true,
  1418. message: "导出成功",
  1419. center: true,
  1420. });
  1421. } else {
  1422. ElMessage({
  1423. type: "error",
  1424. showClose: true,
  1425. message: "导出失败",
  1426. center: true,
  1427. });
  1428. }
  1429. };
  1430. // 维修师傅效率统计(墨轩湖---------------------)
  1431. const table6Btn = (index) => {
  1432. tabIndex6.value = index;
  1433. scrolltop6.value = true;
  1434. // 重置页数
  1435. table6CurrentPage.value = 1;
  1436. table6pageCount.value = 10;
  1437. tableList6();
  1438. };
  1439. // 点击名字
  1440. const cliName6 = (row) => {
  1441. console.log(row);
  1442. nameVisible6.value = true
  1443. nameList6.workOrderTotal = row.workOrderTotal // 工单总数
  1444. nameList6.degreePraise = row.degreePraise // 好评率
  1445. nameList6.timeOut = row.timeOut // 超时率
  1446. nameList6.name = row.name // 名字
  1447. nameList6.answer = row.answer // 平均响应时长(分)
  1448. nameList6.maintain = row.maintain // 平均维修时长(分)
  1449. nameList6.totalPrice = row.totalPrice // 耗材总费用(元)
  1450. nameList6.schoolName = row.schoolName
  1451. }
  1452. const cancelName6 = () => {
  1453. nameVisible6.value = false
  1454. }
  1455. const tableList6 = async () => {
  1456. table6Load.value = true;
  1457. let data = {
  1458. state: tabIndex6.value,
  1459. currentPage: table6CurrentPage.value,
  1460. pageCount: table6pageCount.value,
  1461. schoolId: 2,
  1462. keyWord: searchInput6.value
  1463. };
  1464. let res = await axios({
  1465. method: "get",
  1466. url: api.value + "/repairRecord/maintenanceWorker",
  1467. headers: {
  1468. token: sessionStorage.getItem("token"),
  1469. user_head: sessionStorage.getItem("userhead"),
  1470. },
  1471. params: data,
  1472. });
  1473. console.log(res, "维修师傅效率统计数据");
  1474. if (res.data.code == 200) {
  1475. table6Total.value = res.data.data.records.length;
  1476. if (table6CurrentPage.value > 1) {
  1477. tableData6.list = tableData6.list.concat(res.data.data.records);
  1478. } else {
  1479. tableData6.list = res.data.data.records;
  1480. }
  1481. table6Load.value = false;
  1482. } else {
  1483. table6Load.value = false;
  1484. ElMessage({
  1485. type: "error",
  1486. showClose: true,
  1487. message: res.data.message,
  1488. center: true,
  1489. });
  1490. }
  1491. };
  1492. const tableScroll6 = (ele) => {
  1493. // ele : 绑定的表格元素
  1494. // console.log(ele.layout.table, "priceTable.value.bodyWrapper");
  1495. let table = ele.layout.table.refs.bodyWrapper;
  1496. table.addEventListener(
  1497. "scroll",
  1498. (e) => {
  1499. if (scrolltop6.value) {
  1500. e.target.scrollTop = 0;
  1501. scrolltop6.value = false;
  1502. console.log("置顶到顶部");
  1503. }
  1504. let scrollTop = e.target.scrollTop;
  1505. let scrollHeight = e.target.scrollHeight;
  1506. let clientHeight = e.target.clientHeight;
  1507. // console.log(scrollTop, "scrollTop");
  1508. // console.log(scrollHeight, "scrollHeight");
  1509. // console.log(clientHeight);
  1510. if (scrollTop + clientHeight == scrollHeight) {
  1511. console.log("滚动到底部了");
  1512. // 滚动到底部页面加一
  1513. table6CurrentPage.value++;
  1514. // 判断数据是否加载完
  1515. if (table6Total.value >= table6pageCount.value) {
  1516. console.log(table6Total.value, "加载完毕");
  1517. tableList6();
  1518. }
  1519. }
  1520. },
  1521. true
  1522. );
  1523. };
  1524. // 墨轩湖搜索关键字
  1525. const searchTable6 = async () => {
  1526. table6Load.value = true;
  1527. table6CurrentPage.value = 1
  1528. table6pageCount.value = 10
  1529. let data = {
  1530. state: tabIndex6.value,
  1531. currentPage: table6CurrentPage.value,
  1532. pageCount: table6pageCount.value,
  1533. schoolId: 2,
  1534. keyWord: searchInput6.value
  1535. };
  1536. let res = await axios({
  1537. method: "get",
  1538. url: api.value + "/repairRecord/maintenanceWorker",
  1539. headers: {
  1540. token: sessionStorage.getItem("token"),
  1541. user_head: sessionStorage.getItem("userhead"),
  1542. },
  1543. params: data,
  1544. });
  1545. console.log(res, "黄家湖维修师傅效率统计数据");
  1546. if (res.data.code == 200) {
  1547. if (res.data.data.records) {
  1548. table6Total.value = res.data.data.records.length;
  1549. if (table6CurrentPage.value > 1) {
  1550. tableData6.list = tableData6.list.concat(res.data.data.records);
  1551. } else {
  1552. tableData6.list = res.data.data.records;
  1553. }
  1554. } else {
  1555. tableData6.list = []
  1556. }
  1557. table6Load.value = false;
  1558. } else {
  1559. table6Load.value = false;
  1560. ElMessage({
  1561. type: "error",
  1562. showClose: true,
  1563. message: res.data.message,
  1564. center: true,
  1565. });
  1566. }
  1567. }
  1568. // 维修师傅效率统计导出
  1569. const importTable6 = async () => {
  1570. let datas = {
  1571. state: tabIndex6.value,
  1572. schoolId: 2,
  1573. keyWord: searchInput6.value
  1574. };
  1575. let res = await axios({
  1576. method: "get",
  1577. url: api.value + "/repairRecord/maintenanceWorkerExport",
  1578. headers: {
  1579. token: sessionStorage.getItem("token"),
  1580. user_head: sessionStorage.getItem("userhead"),
  1581. },
  1582. params: datas,
  1583. responseType: "blob",
  1584. });
  1585. console.log(res, "墨轩湖维修师傅效率统计");
  1586. if (res.status == 200) {
  1587. let name = `墨轩湖维修师傅效率统计`;
  1588. var content = res.data;
  1589. var data = new Blob([content]);
  1590. var downloadUrl = window.URL.createObjectURL(data);
  1591. var anchor = document.createElement("a");
  1592. anchor.href = downloadUrl;
  1593. anchor.download = name + ".xlsx";
  1594. anchor.click();
  1595. window.URL.revokeObjectURL(data);
  1596. ElMessage({
  1597. type: "success",
  1598. showClose: true,
  1599. message: "导出成功",
  1600. center: true,
  1601. });
  1602. } else {
  1603. ElMessage({
  1604. type: "error",
  1605. showClose: true,
  1606. message: "导出失败",
  1607. center: true,
  1608. });
  1609. }
  1610. };
  1611. // 维修物品统计(---------------------)
  1612. const table7Btn = (index) => {
  1613. tabIndex7.value = index;
  1614. scrolltop7.value = true;
  1615. // 重置页数
  1616. table7CurrentPage.value = 1;
  1617. table7pageCount.value = 10;
  1618. tableList7();
  1619. };
  1620. const tableList7 = async () => {
  1621. table7Load.value = true;
  1622. let data = {
  1623. state: tabIndex7.value,
  1624. currentPage: table7CurrentPage.value,
  1625. pageCount: table7pageCount.value,
  1626. };
  1627. let res = await axios({
  1628. method: "get",
  1629. url: api.value + "/repairRecord/maintenanceGoods",
  1630. headers: {
  1631. token: sessionStorage.getItem("token"),
  1632. user_head: sessionStorage.getItem("userhead"),
  1633. },
  1634. params: data,
  1635. });
  1636. console.log(res, "维修物品统计数据");
  1637. if (res.data.code == 200) {
  1638. table7Total.value = res.data.data.records.length;
  1639. if (table7CurrentPage.value > 1) {
  1640. tableData7.list = tableData7.list.concat(res.data.data.records);
  1641. } else {
  1642. tableData7.list = res.data.data.records;
  1643. }
  1644. table7Load.value = false;
  1645. } else {
  1646. table7Load.value = false;
  1647. ElMessage({
  1648. type: "error",
  1649. showClose: true,
  1650. message: res.data.message,
  1651. center: true,
  1652. });
  1653. }
  1654. };
  1655. const tableScroll7 = (ele) => {
  1656. // ele : 绑定的表格元素
  1657. // console.log(ele.layout.table, "priceTable.value.bodyWrapper");
  1658. let table = ele.layout.table.refs.bodyWrapper;
  1659. table.addEventListener(
  1660. "scroll",
  1661. (e) => {
  1662. if (scrolltop7.value) {
  1663. e.target.scrollTop = 0;
  1664. scrolltop7.value = false;
  1665. console.log("置顶到顶部");
  1666. }
  1667. let scrollTop = e.target.scrollTop;
  1668. let scrollHeight = e.target.scrollHeight;
  1669. let clientHeight = e.target.clientHeight;
  1670. // console.log(scrollTop, "scrollTop");
  1671. // console.log(scrollHeight, "scrollHeight");
  1672. // console.log(clientHeight);
  1673. if (scrollTop + clientHeight == scrollHeight) {
  1674. console.log("滚动到底部了");
  1675. // 滚动到底部页面加一
  1676. table7CurrentPage.value++;
  1677. // 判断数据是否加载完
  1678. if (table7Total.value >= table7pageCount.value) {
  1679. console.log(table7Total.value, "加载完毕");
  1680. tableList7();
  1681. }
  1682. }
  1683. },
  1684. true
  1685. );
  1686. };
  1687. // 维修物品统计导出
  1688. const importTable7 = async () => {
  1689. let datas = {
  1690. state: tabIndex7.value,
  1691. };
  1692. let res = await axios({
  1693. method: "get",
  1694. url: api.value + "/repairRecord/maintenanceGoodsExport",
  1695. headers: {
  1696. token: sessionStorage.getItem("token"),
  1697. user_head: sessionStorage.getItem("userhead"),
  1698. },
  1699. params: datas,
  1700. responseType: "blob",
  1701. });
  1702. console.log(res, "维修物品统计");
  1703. if (res.status == 200) {
  1704. let name = `维修物品统计`;
  1705. var content = res.data;
  1706. var data = new Blob([content]);
  1707. var downloadUrl = window.URL.createObjectURL(data);
  1708. var anchor = document.createElement("a");
  1709. anchor.href = downloadUrl;
  1710. anchor.download = name + ".xlsx";
  1711. anchor.click();
  1712. window.URL.revokeObjectURL(data);
  1713. ElMessage({
  1714. type: "success",
  1715. showClose: true,
  1716. message: "导出成功",
  1717. center: true,
  1718. });
  1719. } else {
  1720. ElMessage({
  1721. type: "error",
  1722. showClose: true,
  1723. message: "导出失败",
  1724. center: true,
  1725. });
  1726. }
  1727. };
  1728. onMounted(() => {
  1729. api.value = store.state.user.api;
  1730. cartogram();
  1731. cartogram2();
  1732. getlist();
  1733. tableScroll4(table4.value);
  1734. tableScroll6(table6.value);
  1735. tableScroll8(table8.value);
  1736. tableScroll7(table7.value);
  1737. });
  1738. </script>
  1739. <style scoped lang="scss">
  1740. .content-box {
  1741. width: 97.5%;
  1742. height: 89%;
  1743. margin: 20px auto;
  1744. // background-color: #fff;
  1745. // border: 1px solid #000;
  1746. color: #fff;
  1747. display: flex;
  1748. flex-direction: column;
  1749. .item {
  1750. // width: 97%;
  1751. display: flex;
  1752. align-items: center;
  1753. height: 160px;
  1754. border-radius: 8px;
  1755. background-color: #fff;
  1756. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  1757. // margin: 0 30px;
  1758. padding: 20px 0;
  1759. color: #000;
  1760. font-size: 18px;
  1761. font-weight: 600;
  1762. .item_li {
  1763. display: flex;
  1764. justify-content: space-around;
  1765. margin: 0 15px;
  1766. align-items: center;
  1767. width: 100%;
  1768. .item_card {
  1769. flex: 1;
  1770. border-radius: 8px;
  1771. height: 120px;
  1772. margin: 0 10px;
  1773. // padding: 0 15px;
  1774. .top {
  1775. display: flex;
  1776. align-items: flex-end;
  1777. justify-content: space-between;
  1778. border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  1779. height: 40px;
  1780. color: #fff;
  1781. padding-bottom: 10px;
  1782. padding: 0 15px 10px 15px;
  1783. span {
  1784. font-size: 18px;
  1785. }
  1786. .cancel {
  1787. display: flex;
  1788. flex-direction: column;
  1789. span {
  1790. font-size: 14px;
  1791. padding: 2px 5px;
  1792. }
  1793. }
  1794. }
  1795. .bottom {
  1796. height: 59px;
  1797. border: none;
  1798. padding: 0 15px;
  1799. align-items: center;
  1800. span {
  1801. font-size: 38px;
  1802. }
  1803. }
  1804. }
  1805. .item_card:nth-child(1) {
  1806. background-color: rgba(111, 182, 184, 1);
  1807. }
  1808. .item_card:nth-child(2) {
  1809. background-color: rgba(30, 125, 251, 1);
  1810. }
  1811. .item_card:nth-child(3) {
  1812. background-color: rgba(237, 125, 100, 1);
  1813. }
  1814. .item_card:nth-child(4) {
  1815. background-color: rgba(30, 125, 251, 1);
  1816. }
  1817. .item_card:nth-child(5) {
  1818. background-color: rgba(237, 125, 100, 1);
  1819. }
  1820. .item_card:nth-child(6) {
  1821. background-color: rgba(30, 125, 251, 1);
  1822. }
  1823. .item_card:nth-child(7) {
  1824. background-color: rgba(111, 182, 184, 1);
  1825. }
  1826. }
  1827. }
  1828. .middle {
  1829. width: 100%;
  1830. // height: 100%;
  1831. margin: 0 auto;
  1832. overflow: auto;
  1833. .cartogram {
  1834. display: flex;
  1835. justify-content: space-between;
  1836. margin: 25px 0;
  1837. .annulus {
  1838. // width: 520px;
  1839. flex: 1;
  1840. height: 300px;
  1841. border-radius: 8px;
  1842. background-color: #fff;
  1843. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  1844. .title {
  1845. margin: 10px 30px;
  1846. color: #000;
  1847. font-weight: 600;
  1848. display: flex;
  1849. align-items: center;
  1850. justify-content: space-between;
  1851. .import {
  1852. cursor: pointer;
  1853. img {
  1854. width: 17px;
  1855. height: 15px;
  1856. margin-right: 5px;
  1857. transform: translateY(3px);
  1858. }
  1859. span {
  1860. color: rgba(30, 125, 251, 1);
  1861. }
  1862. }
  1863. }
  1864. ul {
  1865. list-style: none;
  1866. display: flex;
  1867. padding: 0 20px;
  1868. margin: 0 0 0 15px;
  1869. li {
  1870. color: #000;
  1871. width: 60px;
  1872. height: 25px;
  1873. border-radius: 8px;
  1874. border: 1px solid #ccc;
  1875. line-height: 25px;
  1876. text-align: center;
  1877. cursor: pointer;
  1878. font-size: 12px;
  1879. margin-right: 20px;
  1880. }
  1881. .li_active {
  1882. background-color: rgba(111, 182, 184, 1);
  1883. color: #fff;
  1884. }
  1885. }
  1886. // 圆环统计图
  1887. #annulus {
  1888. width: 100%;
  1889. height: 250px;
  1890. }
  1891. // 折现统计图
  1892. #broken {
  1893. width: 100%;
  1894. height: 250px;
  1895. }
  1896. }
  1897. .annulus:nth-child(2) {
  1898. margin: 0 20px;
  1899. }
  1900. // 表格1
  1901. .table1 {
  1902. // width: 584px;
  1903. flex: 1.1;
  1904. height: 300px;
  1905. border-radius: 8px;
  1906. background-color: #fff;
  1907. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  1908. .title {
  1909. margin: 10px 30px;
  1910. color: #000;
  1911. font-weight: 600;
  1912. display: flex;
  1913. align-items: center;
  1914. justify-content: space-between;
  1915. .import {
  1916. cursor: pointer;
  1917. img {
  1918. width: 17px;
  1919. height: 15px;
  1920. margin-right: 5px;
  1921. transform: translateY(3px);
  1922. }
  1923. span {
  1924. color: rgba(30, 125, 251, 1);
  1925. }
  1926. }
  1927. }
  1928. ul {
  1929. list-style: none;
  1930. display: flex;
  1931. // justify-content: space-around;
  1932. padding: 0 20px;
  1933. margin: 0 0 0 15px;
  1934. li {
  1935. color: #000;
  1936. width: 60px;
  1937. height: 25px;
  1938. border-radius: 8px;
  1939. border: 1px solid #ccc;
  1940. line-height: 25px;
  1941. text-align: center;
  1942. cursor: pointer;
  1943. font-size: 12px;
  1944. margin-right: 20px;
  1945. }
  1946. .li_active {
  1947. background-color: rgba(111, 182, 184, 1);
  1948. color: #fff;
  1949. }
  1950. }
  1951. .table {
  1952. width: 90%;
  1953. margin: 20px auto;
  1954. // 表头设置
  1955. :deep(.el-table__header) {
  1956. height: 40px;
  1957. tr {
  1958. color: #000;
  1959. }
  1960. }
  1961. // 表格body
  1962. :deep(.el-table__body) {
  1963. .el-table__row {
  1964. height: 50px;
  1965. color: #000;
  1966. }
  1967. }
  1968. }
  1969. }
  1970. .table2 {
  1971. flex: 2.04;
  1972. margin-right: 20px;
  1973. // 导出按钮颜色样式
  1974. .title {
  1975. display: flex;
  1976. align-items: center;
  1977. justify-content: space-between;
  1978. }
  1979. .table {
  1980. width: 95%;
  1981. margin: 12px auto;
  1982. // 表头设置
  1983. :deep(.el-table__header) {
  1984. height: 40px;
  1985. tr {
  1986. color: #000;
  1987. }
  1988. }
  1989. // 表格body
  1990. :deep(.el-table__body) {
  1991. .el-table__row {
  1992. height: 40px;
  1993. color: #000;
  1994. }
  1995. }
  1996. }
  1997. }
  1998. .table3 {
  1999. .table {
  2000. width: 90%;
  2001. margin: 15px auto;
  2002. // 表头设置
  2003. :deep(.el-table__header) {
  2004. height: 40px;
  2005. tr {
  2006. color: #000;
  2007. }
  2008. }
  2009. // 表格body
  2010. :deep(.el-table__body) {
  2011. .el-table__row {
  2012. height: 40px;
  2013. color: #000;
  2014. }
  2015. }
  2016. }
  2017. }
  2018. .table4 {
  2019. flex: 1;
  2020. .table {
  2021. width: 95%;
  2022. margin: 15px auto;
  2023. // 表头设置
  2024. :deep(.el-table__header) {
  2025. height: 40px;
  2026. tr {
  2027. color: #000;
  2028. }
  2029. }
  2030. // 表格body
  2031. :deep(.el-table__body) {
  2032. .el-table__row {
  2033. height: 40px;
  2034. color: #000;
  2035. }
  2036. }
  2037. }
  2038. }
  2039. .Mtable {
  2040. margin: 0 20px 0 0 !important;
  2041. }
  2042. .table5 {
  2043. .table {
  2044. width: 90%;
  2045. margin: 15px auto;
  2046. // 表头设置
  2047. :deep(.el-table__header) {
  2048. height: 40px;
  2049. tr {
  2050. color: #000;
  2051. }
  2052. }
  2053. // 表格body
  2054. :deep(.el-table__body) {
  2055. .el-table__row {
  2056. height: 40px;
  2057. color: #000;
  2058. }
  2059. }
  2060. }
  2061. }
  2062. }
  2063. .cartogram3 {
  2064. margin: 0;
  2065. }
  2066. }
  2067. .footer {
  2068. width: 96%;
  2069. }
  2070. // 维修师傅效率统计
  2071. :deep(.reply) {
  2072. // height: 420px;
  2073. border-radius: 11px;
  2074. .el-dialog__header {
  2075. border-radius: 11px 11px 0 0;
  2076. background: rgba(237, 241, 245, 1);
  2077. font-weight: 600;
  2078. margin: 0;
  2079. .el-dialog__headerbtn {
  2080. outline: none;
  2081. }
  2082. }
  2083. .el-dialog__body {
  2084. padding: 0px 30px 10px 20px;
  2085. .content {
  2086. margin: 15px 0;
  2087. table {
  2088. width: 100%;
  2089. border-collapse: collapse;
  2090. color: #000;
  2091. tr {
  2092. td {
  2093. padding: 20px 5px;
  2094. text-align: center;
  2095. }
  2096. }
  2097. }
  2098. }
  2099. .options {
  2100. display: flex;
  2101. flex-direction: row-reverse;
  2102. margin: 20px 0 25px 0;
  2103. .queding {
  2104. margin-left: 20px;
  2105. color: #fff;
  2106. }
  2107. }
  2108. }
  2109. }
  2110. }
  2111. </style>