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

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