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