You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProAnalysis.vue 61 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300
  1. <template>
  2. <div style="width: 100%;">
  3. <div id = "pro_main">
  4. <div style="margin-top: 10px;">
  5. <b class="pro_item">项目分析</b> <span class="update_time">数据更新时间:</span> <span style="font-size: 12px;">{{lastUpdatedTime}}&nbsp/&nbsp从{{recordBeginTime}}开始统计</span>
  6. </div>
  7. <bar-label :width="'95%'" :height="'500px'"></bar-label>
  8. <div style="margin-top: 20px;">
  9. <span class="sta_iterm">统计周期:</span>
  10. <button type="button" class='btnFirst' id ="yesterday" v-bind:class="{colorChange:1==dynamic}" @click="resetPage(),getAllProList('yesterday',1)">昨天</button>
  11. <button type="button" class='btn' id = "current_week" v-bind:class="{colorChange:2==dynamic}" @click="resetPage(),getAllProList('current_week',2)">本周</button>
  12. <button type="button" class='btn' id = "current_month" v-bind:class="{colorChange:3==dynamic}" @click="resetPage(),getAllProList('current_month',3)">本月</button>
  13. <button type="button" class='btn' id = "last_month" v-bind:class="{colorChange:4==dynamic}" @click="resetPage(),getAllProList('last_month',4)">上月</button>
  14. <button type="button" class='btn' id = "monthly" v-bind:class="{colorChange:5==dynamic}" @click="resetPage(),getAllProList('monthly',5)">近30天</button>
  15. <button type="button" class='btn' id = "current_year" v-bind:class="{colorChange:6==dynamic}" @click="resetPage(),getAllProList('current_year',6)">今年</button>
  16. <button type="button" class='btnLast' id = "all" v-bind:class="{colorChange:7==dynamic}" @click="resetPage(),getAllProList('all',7)">所有</button>
  17. <span style="margin-left: 20px;">
  18. <el-date-picker
  19. v-model="value_time"
  20. prefix-icon="el-icon-time"
  21. @change="resetPage(),getAllProList('',0)"
  22. type="daterange"
  23. size='small'
  24. range-separator="至"
  25. start-placeholder="开始日期"
  26. end-placeholder="结束日期">
  27. </el-date-picker>
  28. </span>
  29. <span style="float:right; margin-right: 20px;">
  30. <div style="display:inline-block;margin-left: 20px; ">
  31. <a class="el-icon-download" v-if="tableData!=''" :href= "'../api/v1/projectboard/downloadAll/?type='+this.params.type+'&beginTime='+this.params.beginTime+'&endTime='+this.params.endTime+'&q='+this.params.q+'&sort=openi'" ></a>
  32. <i class="el-icon-download" v-else="tableData=''" href="#" style="color:rgba(187, 187, 187, 100);" @click='popMark()'></i>
  33. <!-- <span ><a id = "download_file" :href= "'../api/v1/projectboard/downloadAll/?type='+this.params.type+'&beginTime='+this.params.beginTime+'&endTime='+this.params.endTime+'&q='+this.params.q+'&sort=openi'" >下载报告</a> </span> -->
  34. <span >
  35. <a id = "download_file" v-if="tableData!=''" :href= "'../api/v1/projectboard/downloadAll/?type='+this.params.type+'&beginTime='+this.params.beginTime+'&endTime='+this.params.endTime+'&q='+this.params.q+'&sort=openi'">下载报告</a>
  36. <a id = "download_file" v-else="tableData=''" href= "#" style="color:rgba(187, 187, 187, 100);" @click='popMark()'>下载报告</a>
  37. </span>
  38. </div>
  39. <span style="display:inline-block;margin-left: 20px; ">
  40. <el-input size="small" placeholder="输入项目关键字搜索" v-model="search" class="input-with-select" @keyup.enter.native="searchName() "><i slot="suffix" class="el-input__icon el-icon-search" @click="searchName() "></i>
  41. </el-input>
  42. </span>
  43. </span>
  44. </div>
  45. <div style="margin-top: 30px;">
  46. <el-table
  47. :data="tableData"
  48. style="width: 100%"
  49. :header-cell-style="tableHeaderStyle"
  50. :cell-style='cellStyle'>
  51. <el-table-column
  52. label="ID"
  53. align="left"
  54. prop="repo_id"
  55. stripe
  56. >
  57. </el-table-column>
  58. <el-table-column
  59. label="项目名称中文"
  60. align="left"
  61. prop="name"
  62. v-if='0'
  63. >
  64. </el-table-column>
  65. <el-table-column
  66. label="项目名称"
  67. width="125px"
  68. align="left"
  69. prop="alias"
  70. style="color:#0366D6;font-family: Roboto"
  71. >
  72. <template slot-scope="scope">
  73. <a @click=goToDetailPage(scope.row.repo_id,scope.row.name,scope.row.ownerName,scope.row.alias)>{{scope.row.alias}} </a>
  74. </template>
  75. </el-table-column>
  76. <el-table-column
  77. label="拥有者"
  78. align="center"
  79. prop="ownerName"
  80. stripe
  81. >
  82. </el-table-column>
  83. <el-table-column
  84. prop="isPrivate"
  85. label="私有"
  86. align="center">
  87. <template slot-scope="scope">
  88. {{scope.row.isPrivate|changeType}}
  89. </template>
  90. </el-table-column>
  91. <el-table-column
  92. prop="openi"
  93. label="OpenI指数"
  94. align="center">
  95. <template slot-scope="scope">
  96. {{scope.row.openi | rounding}}
  97. </template>
  98. </el-table-column>
  99. <el-table-column
  100. prop="view"
  101. label="浏览量"
  102. align="center">
  103. </el-table-column>
  104. <el-table-column
  105. prop="download"
  106. label="代码下载量"
  107. align="center">
  108. </el-table-column>
  109. <el-table-column
  110. prop="pr"
  111. label="PR"
  112. align="center">
  113. </el-table-column>
  114. <el-table-column
  115. prop="commit"
  116. label="Commit数"
  117. align="center">
  118. </el-table-column>
  119. <el-table-column
  120. prop="watch"
  121. label="关注数"
  122. align="center">
  123. </el-table-column>
  124. <el-table-column
  125. prop="star"
  126. label="点赞数"
  127. align="center">
  128. </el-table-column>
  129. <el-table-column
  130. prop="fork"
  131. label="派生数"
  132. align="center">
  133. </el-table-column>
  134. <el-table-column
  135. prop="issue"
  136. label="任务数"
  137. align="center">
  138. </el-table-column>
  139. <el-table-column
  140. prop="issueClosed"
  141. label="已解决任务"
  142. align="center">
  143. </el-table-column>
  144. <el-table-column
  145. prop="contributor"
  146. label="贡献者数"
  147. align="center">
  148. </el-table-column>
  149. </el-table>
  150. </div>
  151. <div style="margin-top:50px;text-align:center">
  152. <el-pagination
  153. background
  154. @size-change="handleSizeChange"
  155. @current-change="handleCurrentChange"
  156. :current-page="page"
  157. :page-size="pageSize"
  158. :page-sizes="[5,10,20]"
  159. layout="total, sizes,prev, pager, next,jumper"
  160. :total="totalNum">
  161. </el-pagination>
  162. </div>
  163. </div>
  164. <div id ="pro_detail" style="display:none;width: 100%;">
  165. <div style="margin-top: 10px;">
  166. <a class="pro_item" :href="'../../../'+this.ownerName+'/'+this.pro_name">{{this.ownerName}}&nbsp/&nbsp{{this.alias}}</a> <span class="update_time">数据更新时间:</span><span style="font-size: 12px;">{{tableDataIDTotal.lastUpdatedTime}}&nbsp/&nbsp从{{tableDataIDTotal.recordBeginTime}}开始统计</span>
  167. </div>
  168. <div style="margin-top: 10px;">
  169. 项目描述:{{tableDataIDTotal.description | discriptionFun}}
  170. </div>
  171. <div style="margin-top:20px">
  172. <el-row >
  173. <el-col :span='4' class="items">
  174. <el-row>项目创建时间 </el-row>
  175. <el-row class="item_content">{{tableDataIDTotal.creatTime}}</el-row>
  176. </el-col>
  177. <el-col :span='4' class="items">
  178. <el-row>OpenI指数</el-row>
  179. <el-row class="item_content">{{tableDataIDTotal.openi | rounding}}</el-row>
  180. </el-col>
  181. <el-col :span='4' class="items">
  182. <el-row>评论数 </el-row>
  183. <el-row class="item_content">{{tableDataIDTotal.comment}}</el-row>
  184. </el-col>
  185. <el-col :span='4' class="items">
  186. <el-row>浏览量 </el-row>
  187. <el-row class="item_content">{{tableDataIDTotal.view}}</el-row>
  188. </el-col>
  189. <el-col :span='4' class="items">
  190. <el-row>代码下载量</el-row>
  191. <el-row class="item_content">{{tableDataIDTotal.download}}</el-row>
  192. </el-col>
  193. <el-col :span='4' style="text-align: center;">
  194. <el-row>任务完成比例</el-row>
  195. <el-row class="item_content">{{Math.round(tableDataIDTotal.issueClosedRatio * 100) }}%</el-row>
  196. </el-col>
  197. </el-row>
  198. </div>
  199. <div style="margin-top:30px;">
  200. <el-row :gutter="20">
  201. <el-col :span=18 >
  202. <div class="item_l" id="charts">
  203. <div style="font-size:14px;color:#0366D6;margin:20px 5px;">OpenI指数:{{tableDataIDTotal.openi | rounding}}</div>
  204. <div >
  205. <el-col :span='8' id="radar_openi" :style="{ height: '300px'}"></el-col>
  206. <el-col :span='16' id="line_openi" :style="{ height: '300px',float:'right'}"></el-col>
  207. </div>
  208. </div>
  209. </el-col>
  210. <el-col :span=6 >
  211. <div class="item_r">
  212. <div style="margin:0 5px;">
  213. <div style="font-size:14px;color:rgb(0,0,0);margin:10px 5px">贡献者TOP10</div>
  214. <div>
  215. <el-table
  216. :data="tableDataContTop10"
  217. style="width: 100%"
  218. stripe
  219. :header-cell-style="tableHeaderStyle"
  220. >
  221. <el-table-column
  222. label="用户名"
  223. align="left"
  224. prop="user">
  225. <template slot-scope="scope">
  226. <a v-if="scope.row.relAvatarLink!=''" :href="AppSubUrl +'../../../'+ scope.row.user"><img class="ui avatar s16 image js-popover-card" :src="scope.row.relAvatarLink">{{scope.row.user}} </a>
  227. <a v-else :href="'mailto:'+ scope.row.email "> <img class="ui avatar s16 image js-popover-card" :avatar="scope.row.email"> {{scope.row.user}}</a>
  228. </template>
  229. </el-table-column>
  230. <el-table-column
  231. label="身份"
  232. align="center"
  233. prop="mode"
  234. v-if='0'>
  235. <template slot-scope="scope">
  236. {{scope.row.mode | showMode}}
  237. </template>
  238. </el-table-column>
  239. <el-table-column
  240. prop="pr"
  241. label="PR"
  242. width="50px"
  243. align="center">
  244. </el-table-column>
  245. <el-table-column
  246. prop="commit"
  247. label="commit"
  248. align="center">
  249. </el-table-column>
  250. </el-table>
  251. </div>
  252. </div>
  253. </div>
  254. </el-col>
  255. </el-row>
  256. </div>
  257. <div style="margin-top: 20px;">
  258. <span class="sta_iterm">统计周期:</span>
  259. <button type="button" class='btnFirst' id ="yesterday_pro" v-bind:class="{colorChange:1==dynamic_pro}" @click="resetCurrentPage(),getOneProList(pro_id,'yesterday',false,1)">昨天</button>
  260. <button type="button" class='btn' id = "current_week_pro" v-bind:class="{colorChange:2==dynamic_pro}" @click="resetCurrentPage(),getOneProList(pro_id,'current_week',false,2)">本周</button>
  261. <button type="button" class='btn' id = "current_month_pro" v-bind:class="{colorChange:3==dynamic_pro}" @click="resetCurrentPage(),getOneProList(pro_id,'current_month',false,3)">本月</button>
  262. <button type="button" class='btn' id = "last_month_pro" v-bind:class="{colorChange:4==dynamic_pro}" @click="resetCurrentPage(),getOneProList(pro_id,'last_month',false,4)">上月</button>
  263. <button type="button" class='btn' id = "monthly_pro" v-bind:class="{colorChange:5==dynamic_pro}" @click="resetCurrentPage(),getOneProList(pro_id,'monthly',false,5)">近30天</button>
  264. <button type="button" class='btn' id = "current_year_pro" v-bind:class="{colorChange:6==dynamic_pro}" @click="resetCurrentPage(),getOneProList(pro_id,'current_year',false,6)">今年</button>
  265. <button type="button" class='btnLast' id = "all_pro" v-bind:class="{colorChange:7==dynamic_pro}" @click="resetCurrentPage(),getOneProList(pro_id,'all',false,7)">所有</button>
  266. <span style="margin-left: 20px;">
  267. <el-date-picker
  268. v-model="create_time_pro"
  269. prefix-icon="el-icon-time"
  270. @change="resetCurrentPage(),getOneProList(pro_id,'',false,0),clickCheckBox"
  271. type="daterange"
  272. size='small'
  273. range-separator="至"
  274. start-placeholder="开始日期"
  275. end-placeholder="结束日期">
  276. </el-date-picker>
  277. </span>
  278. <span style="float:right; margin-right: 20px;">
  279. <div style="display:inline-block;margin-left: 20px;">
  280. <a v-if="tableDataID!=''" @click="exportData()" class="el-icon-download"></a>
  281. <a v-else="tableDataID=''" @click="exportData()" style="color:rgba(187, 187, 187, 100);" class="el-icon-download"></a>
  282. <span >
  283. <a v-if="tableDataID!=''" @click="exportData()">下载报告</a>
  284. <a v-else="tableDataID=''" @click="exportData()" style="color:rgba(187, 187, 187, 100);">下载报告</a>
  285. </span>
  286. </div>
  287. </span>
  288. </div>
  289. <div class="item_echart" id ='linecharts'>
  290. <div style="margin-top:10px;margin-left: 5px;">
  291. <label for="label" @change='clickCheckBox'>
  292. <input type="checkbox" class="checkboxchart" name="checkboxchart" checked="checked" value="浏览量"/>浏览量
  293. <input type="checkbox" class="checkboxchart" name="checkboxchart" checked="checked" value="下载量"/>下载量
  294. <input type="checkbox" class="checkboxchart" name="checkboxchart" checked="checked" value="commit"/>commit
  295. </label>
  296. </div>
  297. <div id ="selectData" style="height: 300px;">
  298. </div>
  299. </div>
  300. <div style="margin-top: 30px;">
  301. <el-table
  302. :data="tableDataID.slice((currentPage-1)*pageSize1,currentPage*pageSize1)"
  303. style="width: 100%"
  304. :header-cell-style="tableHeaderStyle"
  305. :cell-style='cellStyle'>
  306. <el-table-column
  307. label="日期"
  308. align="center"
  309. prop="date"
  310. stripe
  311. >
  312. </el-table-column>
  313. <el-table-column
  314. label="浏览量"
  315. align="center"
  316. prop="view">
  317. </el-table-column>
  318. <el-table-column
  319. prop="download"
  320. label="下载量"
  321. align="center">
  322. </el-table-column>
  323. <el-table-column
  324. prop="commit"
  325. label="commit"
  326. align="center">
  327. </el-table-column>
  328. </el-table>
  329. </div>
  330. <div style="margin-top:50px;text-align:center">
  331. <el-pagination
  332. background
  333. @size-change="handleSizeChangeID"
  334. @current-change="handleCurrentChangeID"
  335. :current-page="currentPage"
  336. :page-size="pageSize1"
  337. :page-sizes="[5,10,20]"
  338. layout="total, sizes,prev, pager, next,jumper"
  339. :total="tableDataID.length">
  340. </el-pagination>
  341. </div>
  342. </div>
  343. </div>
  344. </template>
  345. <script>
  346. // import barLabel from './basic/barLabel.vue';
  347. const {AppSubUrl, StaticUrlPrefix, csrf} = window.config;
  348. import { export2Excel } from '../excel/util.js'
  349. export default{
  350. name:'ProAnalysis',
  351. components: {
  352. // barLabel,
  353. },
  354. data() {
  355. return {
  356. recordBeginTime:'',
  357. lastUpdatedTime:'',
  358. page:1,
  359. pageSize:10,
  360. params:{type:'all',page:1,pagesize:10,beginTime:'',endTime:'',q:'',sort:'openi'},
  361. tableData: [],
  362. totalPage:0,
  363. totalNum:0,
  364. pickerOptions: {
  365. },
  366. value_time: '',
  367. search:'',
  368. dynamic:7,
  369. download_a:"",
  370. downLoadSrc:'',
  371. //单个项目参数
  372. columns: [{title: '日期',key: 'date'},{title: '浏览量',key: 'view'},{title: '下载量',key: 'download'},{title: 'commit',key: 'commit'}],
  373. currentPage:1,
  374. pageSize1:10,
  375. paramsID:{type:'all' ,beginTime:'',endTime:'',openi:'false'},
  376. tableDataIDTotal: [],
  377. tableDataID: [],
  378. tableDataIDOpenI:[],
  379. tableDataContTop10:[],
  380. create_time_pro: '',
  381. dynamic_pro:7,
  382. pro_name:'',
  383. alias:'',
  384. pro_id:'',
  385. ownerName:'',
  386. radarOpenI:'',
  387. echartsOITd:'',
  388. echartsSelectData:'',
  389. option:'',
  390. };
  391. },
  392. methods: {
  393. // download_file(){
  394. // this.params.type='all'
  395. // },
  396. popMark(){
  397. alert("数据为空时,不能下载!")
  398. },
  399. exportData(){
  400. // this.getOneProList(this.pro_id,'all',true,7)
  401. // this.getOneProList(this.pro_id,'all',false,7)
  402. // this.fileName()
  403. if (this.tableDataID!=''){
  404. this.currentPage=1
  405. var saveFileName = this.getFileName()
  406. export2Excel(this.columns,this.tableDataID,saveFileName)
  407. }else{
  408. alert("数据为空时,不能下载!")
  409. }
  410. },
  411. getFileName(){
  412. var now = new Date(); // 当前日期
  413. var nowDayOfWeek = now.getDay(); // 今天本周的第几天
  414. var nowDay = now.getDate(); // 当前日
  415. var nowMonth = now.getMonth(); // 当前月
  416. var nowYear = now.getFullYear(); // 当前年
  417. var today = this.saveFormatDate(nowYear,nowMonth+1,nowDay);
  418. var tmp = new Date(now.setTime(now.getTime()-24*60*60*1000));
  419. var yesterday = this.saveFormatDate(tmp.getFullYear(),tmp.getMonth()+1,tmp.getDate());
  420. var yesterday_tmp = this.formatDate(tmp.getFullYear(),tmp.getMonth()+1,tmp.getDate())
  421. var startDate=''
  422. var endDate=''
  423. var saveFileName = ''
  424. if (typeof this.paramsID.type=="undefined" || this.paramsID.type=="null" || this.paramsID.type==""){
  425. // startDate= this.saveFormatDate(this.create_time_pro[0].getFullYear(),this.create_time_pro[0].getMonth() + 1,this.create_time_pro[0].getDate());
  426. endDate = this.saveFormatDate(this.create_time_pro[1].getFullYear(),this.create_time_pro[1].getMonth() + 1,this.create_time_pro[1].getDate());
  427. var tmp = this.formatDate(this.create_time_pro[0].getFullYear(),this.create_time_pro[0].getMonth() + 1,this.create_time_pro[0].getDate())
  428. startDate = this.comparedate(tmp,this.recordBeginTime)
  429. console.log("comparedate:"+startDate)
  430. saveFileName = this.alias+"_"+startDate+'_'+endDate
  431. }else{
  432. switch(this.paramsID.type){
  433. case "yesterday":{
  434. startDate = this.comparedate(yesterday_tmp,this.recordBeginTime)
  435. endDate = startDate
  436. saveFileName = this.alias+"_"+startDate+'_'+ endDate
  437. break
  438. }
  439. case "current_week":{
  440. var now = new Date(); // 当前日期
  441. var nowDayOfWeek = now.getDay(); // 今天本周的第几天
  442. var day = nowDayOfWeek || 7;
  443. startDate = this.formatDate(now.getFullYear(), nowMonth+1, nowDay + 1 - day);
  444. startDate = this.comparedate(startDate,this.recordBeginTime)
  445. endDate = yesterday
  446. saveFileName = this.alias+"_"+startDate+'_'+ endDate
  447. break
  448. }
  449. case "current_month":{
  450. startDate = this.formatDate(nowYear,nowMonth+1,1);
  451. startDate = this.comparedate(startDate,this.recordBeginTime)
  452. endDate = yesterday
  453. saveFileName = this.alias+"_"+startDate+'_'+ endDate
  454. break
  455. }
  456. case "last_month":{
  457. let lastMonthDate = new Date(); // 上月日期
  458. lastMonthDate.setDate(1);
  459. lastMonthDate.setMonth(lastMonthDate.getMonth()-1);
  460. let lastYear = lastMonthDate.getFullYear();
  461. let lastMonth = lastMonthDate.getMonth();
  462. startDate=this.formatDate(lastYear, lastMonth+1, 1);
  463. startDate = this.comparedate(startDate,this.recordBeginTime)
  464. var monthStartDate = new Date(lastYear, lastMonth, 1);
  465. var monthEndDate = new Date(lastYear, lastMonth+1, 1);
  466. var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24)
  467. endDate=this.saveFormatDate(lastYear, lastMonth+1, days); //月份从0开始,所以+1保存月份
  468. saveFileName = this.alias+"_"+startDate+'_'+ endDate
  469. break
  470. }
  471. case "monthly":{
  472. var temp=new Date(now - 1000 * 60 * 60 * 24 * 30)
  473. startDate = this.formatDate(temp.getFullYear(),temp.getMonth()+1,temp.getDate());
  474. startDate = this.comparedate(startDate,this.recordBeginTime)
  475. endDate = yesterday
  476. saveFileName = this.alias+"_"+startDate+'_'+ endDate
  477. break
  478. }
  479. case "current_year":{
  480. startDate = this.formatDate(now.getFullYear(), 1, 1);
  481. startDate = this.comparedate(startDate,this.recordBeginTime)
  482. endDate = yesterday
  483. saveFileName = this.alias+"_"+startDate+'_'+ endDate
  484. break
  485. }
  486. case "all":{
  487. console.log("e:"+today)
  488. startDate = 'all'
  489. endDate = yesterday
  490. saveFileName = this.alias+'_所有'
  491. break
  492. }
  493. }
  494. }
  495. return saveFileName
  496. },
  497. resetPage(){
  498. this.page=1
  499. this.params.page = 1
  500. },
  501. resetCurrentPage(){
  502. this.currentPage=1
  503. },
  504. handleSizeChange(val){
  505. this.params.pagesize = val
  506. this.resetPage()
  507. this.getAllProList(this.params.type, this.dynamic)
  508. },
  509. handleCurrentChange(val){
  510. console.log(val)
  511. this.params.page = val
  512. this.page = val
  513. switch(this.params.type){
  514. case "yesterday":{
  515. this.value_time=''
  516. this.getAllProList(this.params.type,1)
  517. break
  518. }
  519. case "current_week":{
  520. this.value_time=''
  521. this.getAllProList(this.params.type,2)
  522. break
  523. }
  524. case "current_month":{
  525. this.value_time=''
  526. this.getAllProList(this.params.type,3)
  527. break
  528. }
  529. case "last_month":{
  530. this.value_time=''
  531. this.getAllProList(this.params.type,4)
  532. break
  533. }
  534. case "monthly":{
  535. this.value_time=''
  536. this.getAllProList(this.params.type,5)
  537. break
  538. }
  539. case "current_year":{
  540. this.value_time=''
  541. this.getAllProList(this.params.type,6)
  542. break
  543. }
  544. case "all":{
  545. this.value_time=''
  546. this.getAllProList(this.params.type,7)
  547. break
  548. }
  549. case "":{
  550. // this.value_time=''
  551. this.getAllProList(this.params.type,0)
  552. break
  553. }
  554. }
  555. },
  556. saveFormatDate(myyear,mymonth,myweekday) {
  557. // var myyear = this.date.getFullYear();
  558. // var mymonth = this.date.getMonth() + 1;
  559. // var myweekday = this.date.getDate();
  560. if (mymonth < 10) {
  561. mymonth = "0" + mymonth;
  562. }
  563. if (myweekday < 10) {
  564. myweekday = "0" + myweekday;
  565. }
  566. console.log((myyear +''+ mymonth +''+ myweekday))
  567. return (myyear +''+ mymonth +''+ myweekday);
  568. },
  569. formatDate(myyear,mymonth,myweekday) {
  570. // var myyear = this.date.getFullYear();
  571. // var mymonth = this.date.getMonth() + 1;
  572. // var myweekday = this.date.getDate();
  573. if (mymonth < 10) {
  574. mymonth = "0" + mymonth;
  575. }
  576. if (myweekday < 10) {
  577. myweekday = "0" + myweekday;
  578. }
  579. return (myyear +'-'+ mymonth +'-'+ myweekday);
  580. },
  581. //获得某月的天数
  582. getAllProList(type_val,index){
  583. console.log("类型:"+type_val)
  584. this.dynamic = index
  585. if (typeof type_val=="undefined" || type_val=="null" || type_val==""){
  586. this.params.type=''
  587. this.params.beginTime=this.formatDate(this.value_time[0].getFullYear(),this.value_time[0].getMonth() + 1,this.value_time[0].getDate())
  588. this.params.endTime=this.formatDate(this.value_time[1].getFullYear(),this.value_time[1].getMonth() + 1,this.value_time[1].getDate())
  589. }else{
  590. this.params.type=type_val
  591. this.params.beginTime=''
  592. this.params.endTime=''
  593. this.value_time=[]
  594. }
  595. this.$axios.get('../api/v1/projectboard/project',{
  596. params:this.params
  597. }).then((res)=>{
  598. this.recordBeginTime=res.data.recordBeginTime
  599. this.lastUpdatedTime=res.data.lastUpdatedTime
  600. this.tableData = res.data.pageRecords
  601. this.totalPage=res.data.totalPage
  602. this.totalNum = res.data.totalCount//this.totalPage*this.params.pagesize
  603. // console.log("this.totalPage:"+this.totalPage)
  604. })
  605. },
  606. searchName(){
  607. this.params.q = this.search
  608. this.params.page = 1
  609. this.page=1
  610. this.getAllProList(this.params.type, this.dynamic)
  611. },
  612. goToDetailPage(pro_id,pro_name,ownerName,alias){
  613. this.currentPage=1
  614. document.getElementById("pro_main").style.display="none";
  615. document.getElementById("pro_detail").style.display="block";
  616. // console.log(pro_id)
  617. // console.log(pro_name)
  618. this.pro_name=pro_name;
  619. this.alias=alias;
  620. this.pro_id=pro_id;
  621. this.ownerName=ownerName
  622. this.getOneProData(pro_id);
  623. this.getOneProList(pro_id,"current_year",true,0);
  624. this.getOneProList(pro_id,"monthly",false,5);
  625. },
  626. tableHeaderStyle({row,column,rowIndex,columnIndex}){
  627. if(rowIndex===0){
  628. return 'background:#f5f5f6;color:#606266'
  629. }
  630. },
  631. cellStyle({row,column,rowIndex,columnIndex}){
  632. if(rowIndex%2 === 1){
  633. return 'background:#f5f5f6;color:#606266'
  634. }
  635. },
  636. handleSizeChangeID(val){
  637. this.pageSize1=val
  638. },
  639. handleCurrentChangeID(currentPage){
  640. this.currentPage = currentPage;
  641. },
  642. getOneProData(pro_id){
  643. this.$axios.get('../api/v1/projectboard/project/'+pro_id,{
  644. }).then((res)=>{
  645. this.tableDataIDTotal = res.data
  646. this.tableDataContTop10=res.data.top10
  647. // this.drawLine()
  648. this.drawRadarOpenI()
  649. })
  650. },
  651. getOneProList(pro_id,type_val,bool_val,index){
  652. this.dynamic_pro=index
  653. console.log("日期类型:"+type_val)
  654. if (typeof type_val=="undefined" || type_val=="null" || type_val==""){
  655. this.paramsID.type=''
  656. this.paramsID.beginTime= this.formatDate(this.create_time_pro[0].getFullYear(),this.create_time_pro[0].getMonth() + 1,this.create_time_pro[0].getDate())
  657. this.paramsID.endTime=this.formatDate(this.create_time_pro[1].getFullYear(),this.create_time_pro[1].getMonth() + 1,this.create_time_pro[1].getDate())
  658. }else{
  659. this.create_time_pro=[]
  660. this.paramsID.type=type_val
  661. this.paramsID.beginTime=''
  662. this.paramsID.endTime=''
  663. }
  664. this.paramsID.openi=bool_val
  665. this.$axios.get('../api/v1/projectboard/project/'+pro_id+"/period",{
  666. params:this.paramsID
  667. }).then((res)=>{
  668. if (bool_val){
  669. this.tableDataIDOpenI = res.data
  670. this.drawOpenItrend()
  671. }else{
  672. this.tableDataID = res.data
  673. this.drawSelectData()
  674. }
  675. })
  676. },
  677. drawRadarOpenI(){
  678. var ydata = [this.roundingF(this.tableDataIDTotal.impact),this.roundingF(this.tableDataIDTotal.completeness),this.roundingF(this.tableDataIDTotal.liveness),this.roundingF(this.tableDataIDTotal.projectHealth),this.roundingF(this.tableDataIDTotal.teamHealth),this.roundingF(this.tableDataIDTotal.growth)]
  679. console.log("ydata:",ydata)
  680. var i = -1;
  681. var option = {
  682. titile:{
  683. text:""
  684. },
  685. tooltip: {
  686. trigger: 'item',
  687. backgroundColor:'rgba(255,255,255,0.8)',
  688. color:'black',
  689. borderWidth:'1',
  690. borderColor:'gray',
  691. textStyle:{
  692. color:'black'
  693. },
  694. position: 'right',
  695. // formatter: function (params) {
  696. // console.log('params:',params)
  697. // console.log('params.data:',params[0])
  698. // let str = params.data.name + "<br />";
  699. // params.data.forEach((item) => {
  700. // str +=
  701. // '<span style="display:inline-block;margin-right:5px;border-radius:50%;width:10px;height:10px;left:5px;background-color:'+params.color+'"></span>' + item.seriesName + " : " + '<span style="float:right">'+item.data[1] +'</span>'+ "<br />";
  702. // });
  703. // return str;
  704. // },
  705. // formatter: function (params, ticket, callback) {
  706. // console.log(params);
  707. // var showHtm="";
  708. // var data = params.data.value
  709. // for(var i=0;i<data.length;i++){
  710. // //x轴名称
  711. // var name = data[i];
  712. // //值
  713. // var value = params[i][2];
  714. // showHtm+= text+ '--' + name + ' :' + value+'<br>'
  715. // }
  716. // return showHtm;
  717. // }
  718. },//提示层
  719. legend: {
  720. // data: ['']
  721. },
  722. radar: {
  723. name: {
  724. textStyle: {
  725. color: 'rgb(0,0,0)', //字体颜色
  726. borderRadius: 3, //圆角
  727. padding: [3, 5] //padding
  728. }
  729. },
  730. slpitNumber:5,
  731. center: ['50%', '50%'],
  732. splitArea: { // 坐标轴在 grid 区域中的分隔区域
  733. show: false,
  734. },
  735. indicator: [{
  736. name: '社区影响力',
  737. max: 100
  738. },
  739. {
  740. name: '项目成熟度',
  741. max: 100
  742. },
  743. {
  744. name: '开发活跃度',
  745. max: 100
  746. },
  747. {
  748. name: '项目健康度',
  749. max: 100
  750. },
  751. {
  752. name: '团队健康度',
  753. max: 100
  754. },
  755. {
  756. name: '项目发展趋势',
  757. max: 100
  758. }
  759. ],
  760. },
  761. series: [{
  762. type: 'radar',
  763. lineStyle:{
  764. width:2,
  765. color: '#0366D6',
  766. normal:{
  767. color:'#0366D6 '
  768. }
  769. },
  770. itemStyle : {
  771. normal : {
  772. color:'#0366D6'
  773. }
  774. },
  775. data: [{
  776. value: ydata,
  777. name:"数据"
  778. }]
  779. }]
  780. }
  781. this.radarOpenI.setOption(option)
  782. },
  783. drawOpenItrend(){
  784. var xdata_openI=[]
  785. var ydata_openI=[]
  786. for(var i =0;i<this.tableDataIDOpenI.length;i++){
  787. xdata_openI.push(this.tableDataIDOpenI[i].date);
  788. ydata_openI.push(this.roundingF(this.tableDataIDOpenI[i].openi))
  789. }
  790. console.log("ydata_openI:"+ydata_openI)
  791. console.log(xdata_openI)
  792. var option = {
  793. title : {
  794. text: 'OpenI指数趋势',
  795. textStyle: {
  796.                 fontSize: 12,
  797.             },
  798. left:'center',
  799. top:'bottom',
  800. subtext: '',
  801. },
  802. tooltip : {
  803. trigger: 'axis',
  804. backgroundColor:'rgba(255,255,255,0.8)',
  805. color:'black',
  806. borderWidth:'1',
  807. borderColor:'#DCE7FB',
  808. textStyle:{
  809. color:'black'
  810. },
  811. },
  812. legend: {
  813. orient: 'vertical',
  814. top:'top',  
  815. },
  816. // calculable : true,
  817. xAxis : [
  818. {
  819. type : 'category',
  820. boundaryGap: false,
  821. data : xdata_openI,
  822. }
  823. ],
  824. yAxis : [
  825. {
  826. type : 'value',
  827. }
  828. ],
  829. series : [
  830. {
  831. data: ydata_openI,
  832. type: 'line',
  833. areaStyle: {
  834. type:'linear',
  835. color:'#DCE7FB',
  836. opacity: 0.3,
  837. origin:"start",
  838. normal:{
  839. color:'#DCE7FB'
  840. }
  841. },
  842. lineStyle:{
  843. width:1,
  844. normal:{
  845. color:'#0366D6'
  846. }
  847. },
  848. itemStyle : {
  849. normal : {
  850. color:'#0366D6'
  851. }
  852. },
  853. }
  854. ]
  855. };
  856. this.echartsOITd.setOption(option)
  857. // setTimeout(function (){
  858. // window.onresize = function () {
  859. // this.echartsOITd.resize();
  860. // }
  861. // },200)
  862. },
  863. drawSelectData(){
  864. // $("#selectData").removeAttr("selectData").empty();
  865. var xdata=[]
  866. var ydata_view=[]
  867. var ydata_download=[]
  868. var ydata_commit=[]
  869. // if ()
  870. for(var i =0;i<this.tableDataID.length;i++){
  871. xdata.push(this.tableDataID[this.tableDataID.length-1-i].date);
  872. ydata_view.push(this.tableDataID[this.tableDataID.length-1-i].view)
  873. ydata_download.push(this.tableDataID[this.tableDataID.length-1-i].download)
  874. ydata_commit.push(this.tableDataID[this.tableDataID.length-1-i].commit)
  875. }
  876. console.log("ydata_openI:"+ydata_download)
  877. console.log(xdata)
  878. this.option = {
  879. title : {
  880. text: '',
  881. textStyle: {
  882.                 fontSize: 12,
  883.             },
  884. left:'center',
  885. top:'bottom',
  886. subtext: '',
  887. },
  888. tooltip : {
  889. trigger: 'axis',
  890. backgroundColor:'rgba(255,255,255,0.8)',
  891. color:'black',
  892. borderWidth:'1',
  893. borderColor:'gray',
  894. textStyle:{
  895. color:'black'
  896. },
  897. },
  898. legend: {
  899. data:['浏览量','下载量','commit'],
  900. // orient: 'vertical',
  901. // top:'top',  
  902. },
  903. toolbox: {
  904. show : false,
  905. feature : {
  906. mark : {show: true},
  907. dataView : {show: false, readOnly: false},
  908. magicType : {show: true, type: ['line', 'bar']},
  909. restore : {show: false},
  910. saveAsImage : {show: true}
  911. }
  912. },
  913. calculable : true,
  914. xAxis : [
  915. {
  916. type : 'category',
  917. data : xdata,
  918. }
  919. ],
  920. yAxis : [
  921. {
  922. type : 'value',
  923. }
  924. ],
  925. series : [
  926. { name:"浏览量",
  927. data: ydata_view,
  928. type: 'line',
  929. areaStyle: {},
  930. },
  931. {
  932. name:"下载量",
  933. data: ydata_download,
  934. type: 'line',
  935. areaStyle: {},
  936. },
  937. {
  938. name:"commit",
  939. data: ydata_commit,
  940. type: 'line',
  941. areaStyle: {},
  942. },
  943. ]
  944. };
  945. // this.echartsSelectData.resize()
  946. this.echartsSelectData.setOption(this.option)
  947. // setTimeout(function (){
  948. // window.onresize = function () {
  949. // this.echartsSelectData.resize;
  950. // }
  951. // },200)
  952. // // 使用刚指定的选择项数据显示图表。
  953. // var selectArr = this.echartsSelectData.getOption().legend[0].data;//legend所有值
  954. // var checkboxs=document.getElementsByName('checkboxchart');
  955. // $(".checkboxchart").click(function(){
  956. // var obj = {};
  957. // for(var i=0; i<checkboxs.length; i++){
  958. // if(checkboxs[i].checked){
  959. // obj[selectArr[i]] = true;
  960. // }else{
  961. // obj[selectArr[i]] = false;
  962. // }
  963. // }
  964. // option.legend.selected = obj;
  965. // this.echartsSelectData.setOption(option);
  966. // });
  967. },
  968. roundingF(value){
  969. return Number(value).toFixed(2)
  970. },
  971. clickCheckBox(){
  972. // 使用刚指定的选择项数据显示图表。
  973. var selectArr = this.echartsSelectData.getOption().legend[0].data;//legend所有值
  974. var checkboxs=document.getElementsByName('checkboxchart');
  975. // $(".checkboxchart").click(function(){
  976. var obj = {};
  977. for(var i=0; i<checkboxs.length; i++){
  978. if(checkboxs[i].checked){
  979. obj[selectArr[i]] = true;
  980. }else{
  981. obj[selectArr[i]] = false;
  982. }
  983. }
  984. this.option.legend.selected = obj;
  985. this.echartsSelectData.setOption(this.option);
  986. // });
  987. },
  988. comparedate(date1,date2){
  989. console.log("date1:"+date1)
  990. console.log("date1:"+date2)
  991. var oDate1 = new Date(date1);
  992. var oDate2 = new Date(date2);
  993. if(oDate1.getTime() < oDate2.getTime()){
  994. var data = date2.split('-')
  995. return data[0]+''+data[1]+''+data[2]
  996. } else {
  997. var data = date1.split('-')
  998. return data[0]+''+data[1]+''+data[2]
  999. }
  1000. },
  1001. goBack(){
  1002. if( $("#pro_detail").is(':visible') ){
  1003. document.getElementById("pro_main").style.display = "block";
  1004. document.getElementById("pro_detail").style.display = "none";
  1005. }
  1006. },
  1007. },
  1008. filters:{
  1009. rounding (value) {
  1010. return Number(value).toFixed(2)
  1011. },
  1012. changeType(value){
  1013. if(value==false){
  1014. return "否"
  1015. }else{
  1016. return "是"
  1017. }
  1018. },
  1019. discriptionFun(value){
  1020. if(value==''){
  1021. return "暂无描述"
  1022. }
  1023. },
  1024. showMode(value){
  1025. if(value==1){
  1026. return "可读权限"
  1027. }else if(value==2){
  1028. return "可写权限"
  1029. }else if(value==3){
  1030. return "管理员"
  1031. }else if(value==4){
  1032. return "所有者"
  1033. }else{
  1034. return "未定义"
  1035. }
  1036. },
  1037. showContext(value){
  1038. if (value.mode!=-1){
  1039. return " <img class=\"ui avatar image\" src= \" "+ value.RelAvatarLink+ " \" > "+" <a href= \" " + AppSubUrl+"/"+value.user+ "\">"+value.user+" </a>"
  1040. }
  1041. else{
  1042. return " <a href=\" mailto:" + value.email + "class=\"circular ui button\">" +value.user+ "</a>"
  1043. }
  1044. },
  1045. },
  1046. mounted() {
  1047. this.getAllProList("all",7)
  1048. console.log("id:"+this.pro_id);
  1049. document.getElementById('radar_openi').style.width = document.getElementById('pro_main').offsetWidth*0.22+'px'
  1050. document.getElementById('line_openi').style.width = document.getElementById('pro_main').offsetWidth*0.33+'px'
  1051. document.getElementById('selectData').style.width = document.getElementById('pro_main').offsetWidth*0.8+'px'
  1052. this.radarOpenI = this.$echarts.init(document.getElementById('radar_openi'))
  1053. this.echartsOITd = this.$echarts.init(document.getElementById('line_openi'))
  1054. this.echartsSelectData = this.$echarts.init(document.getElementById('selectData'))
  1055. if (window.history && window.history.pushState) {
  1056. history.pushState(null, null, document.URL);
  1057. window.addEventListener('popstate', this.goBack, false);
  1058. }
  1059. // window.onresize=function(){
  1060. // this.radarOpenI.resize();
  1061. // this.echartsOITd.resize();
  1062. // this.echartsSelectData.resize();
  1063. // }
  1064. // console.log("this.radarOpenI:"+this.radarOpenI)
  1065. },
  1066. watch:{
  1067. search(val){
  1068. if(!val){
  1069. this.params.q = this.search
  1070. this.params.page = 1
  1071. this.page=1
  1072. this.getAllProList(this.params.type, this.dynamic)
  1073. }
  1074. }
  1075. },
  1076. created() {
  1077. // this.download_a=document.getElementById("download_file")
  1078. },
  1079. updated(){
  1080. if(document.querySelectorAll('img[avatar]').length!==0){
  1081. window.LetterAvatar.transform()
  1082. }
  1083. }
  1084. }
  1085. </script>
  1086. <style scoped>
  1087. .pro_item{
  1088. font-size: 16px;
  1089. color: rgba(16, 16, 16, 100);
  1090. font-family: SourceHanSansSC-bold;
  1091. }
  1092. .sta_item{
  1093. font-size: 14px;
  1094. color: rgb(0 0 0);
  1095. font-family: SourceHanSansSC-bold;
  1096. }
  1097. .update_time{
  1098. line-height: 17px;
  1099. font-size: 12px;
  1100. color:rgba(187, 187, 187, 100);
  1101. margin-left: 10px;
  1102. }
  1103. .btnFirst{
  1104. line-height: 1.5;
  1105. margin: -3.5px;
  1106. border: 1px solid rgba(22, 132, 252, 100);
  1107. border-right: none;
  1108. background: #FFFF;
  1109. color: #1684FC;
  1110. width: 60px;
  1111. height: 30px;
  1112. border-radius:4px 0px 0px 4px;
  1113. }
  1114. .btn{
  1115. line-height: 1.5;
  1116. margin: -3.5px;
  1117. border: 1px solid rgba(22, 132, 252, 100);
  1118. border-right: none;
  1119. background: #FFFF;
  1120. color: #1684FC;
  1121. width: 60px;
  1122. height: 30px;
  1123. }
  1124. .btnLast{
  1125. line-height: 1.5;
  1126. margin: -3.5px;
  1127. border: 1px solid rgba(22, 132, 252, 100);
  1128. /* border-right: none; */
  1129. background: #FFFF;
  1130. color: #1684FC;
  1131. width: 60px;
  1132. height: 30px;
  1133. border-radius:0px 4px 4px 0px;
  1134. }
  1135. .btnFirst, .btn, .btnLast {
  1136. cursor: pointer;
  1137. }
  1138. /*
  1139. .btn:focus,
  1140. .btn:active{
  1141. background-color:#409effd6 ;
  1142. } */
  1143. /* /deep/ .el-date-picker {
  1144. width: 250px;
  1145. } */
  1146. /deep/ .el-table tbody tr:hover>td {
  1147. background-color:#D3D3D3!important;
  1148. opacity:1
  1149. }
  1150. /deep/ .el-table {
  1151. font-size: 12px;
  1152. }
  1153. /deep/ .el-range-separator{
  1154. width: 20% !important;
  1155. }
  1156. .colorChange {
  1157. background-color: #1684FC;
  1158. color: #FFFF;
  1159. cursor: default;
  1160. }
  1161. .items{
  1162. text-align: center;
  1163. border-right:1px solid rgba(219, 219, 219, 100);
  1164. }
  1165. .item_l{
  1166. margin-right: 5px;
  1167. border:1px solid rgba(219, 219, 219, 100);
  1168. height: 370px;
  1169. width: 100%;
  1170. }
  1171. .item_r{
  1172. margin-right:5px;
  1173. border:1px solid rgba(219, 219, 219, 100);
  1174. height: 370px;
  1175. overflow:auto
  1176. }
  1177. .item_echart{
  1178. margin-top: 10px;
  1179. margin-right: 5px;
  1180. border:1px solid rgba(219, 219, 219, 100);
  1181. height: 350px;
  1182. width: 100%;
  1183. }
  1184. .item_content{
  1185. color:#0366D6;
  1186. margin-top: 10px;
  1187. font-weight:bold;
  1188. }
  1189. </style>