patientInspectionDetail.vue 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <el-button type="primary" @click="$router.back(-1)">返回</el-button>
  6. </div>
  7. <div class="app-container">
  8. <div class="cell clearfix">
  9. <label class="title">
  10. <span class="name">病人搜索</span> :
  11. </label>
  12. <div >
  13. <el-form :inline="true">
  14. <el-form-item label>
  15. <el-autocomplete
  16. class="checkSearch"
  17. style="margin-top: 20px;"
  18. popper-class="my-autocomplete"
  19. v-model="search_value"
  20. :fetch-suggestions="querySearchAsync"
  21. :trigger-on-focus="false"
  22. placeholder="请输入病人名字"
  23. @select="handleSelect"
  24. >
  25. <i class="el-icon-search el-input__icon" slot="suffix"></i>
  26. <template slot-scope="{ item }">
  27. <div class="name">{{ item.name }}</div>
  28. </template>
  29. </el-autocomplete>
  30. </el-form-item>
  31. </el-form>
  32. </div>
  33. </div>
  34. <div class="cell clearfix">
  35. <label class="title">
  36. <span class="name">日期</span> :
  37. </label>
  38. <div class="time">
  39. <ul class>
  40. <li
  41. :class="item.state == stateType ? 'active' : ''"
  42. @click="selectStateType(item.state)"
  43. v-for="item in month"
  44. :key="item.value"
  45. >{{ item.label }}
  46. </li>
  47. </ul>
  48. </div>
  49. <el-date-picker
  50. v-if="stateType == 5"
  51. v-model="query.start_time"
  52. prefix-icon="el-icon-date"
  53. @change="changeTime"
  54. :editable="false"
  55. style="width: 196px;"
  56. type="date"
  57. placeholder="选择日期时间"
  58. align="right"
  59. format="yyyy-MM-dd"
  60. value-format="yyyy-MM-dd"
  61. :picker-options="pickerOptions"
  62. ></el-date-picker>
  63. <span v-if="stateType == 5"
  64. class>-</span>
  65. <el-date-picker
  66. v-if="stateType == 5"
  67. v-model="query.end_time"
  68. prefix-icon="el-icon-date"
  69. @change="changeEndTime"
  70. :editable="false"
  71. style="width: 196px;"
  72. type="date"
  73. placeholder="选择日期时间"
  74. align="right"
  75. format="yyyy-MM-dd"
  76. value-format="yyyy-MM-dd"
  77. :picker-options="pickerOptions"
  78. ></el-date-picker>
  79. </div>
  80. <el-container>
  81. <div style="width:150px">
  82. <div class="tableTitle">患者列表</div>
  83. <div class="tableTitle">当前患者: {{patient_name}}</div>
  84. <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500"
  85. :row-style="{ color: '#303133' }"
  86. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  87. highlight-current-row
  88. @current-change="handleChange">
  89. <el-table-column prop="dialysis_no" label="透析号" width="80">
  90. <template slot-scope="scope">{{scope.row.dialysis_no}}</template>
  91. </el-table-column>
  92. <el-table-column prop="name" label="姓名" width="80">
  93. <template slot-scope="scope">{{ scope.row.name }}</template>
  94. </el-table-column>
  95. </el-table>
  96. </div>
  97. <div style="padding-left:10px;flex:1">
  98. <div class="tableTitle">统计图</div>
  99. <div>
  100. <!--<line-chart :options="options2"></line-chart>-->
  101. <line-chart v-if="this.$route.query.range_type == 1" :options="options"></line-chart>
  102. <line-chart v-if="this.$route.query.range_type == 2" :options="options2"></line-chart>
  103. </div>
  104. </div>
  105. </el-container>
  106. </div>
  107. </div>
  108. </template>
  109. <script>
  110. const moment = require('moment')
  111. import echarts from 'echarts'
  112. import LineChart from '../../qcd/components/LineChart'
  113. import { uParseTime } from '@/utils/tools'
  114. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  115. import { getCurrentOrgPatients } from '@/api/common/common'
  116. import {
  117. GetDefalutPatient,
  118. GetInspectionIndexChart,
  119. GetInspectionIndexInit,
  120. GetInspectionIndexTable,
  121. GetPatientInspectionIndexBarChart,
  122. GetPatientInspectionIndexChart,
  123. GetRangeValue
  124. } from '@/api/common/statistics'
  125. import { PostSearch } from '@/api/patient'
  126. export default {
  127. name: 'dialysisTotal',
  128. components: {
  129. LineChart,
  130. BreadCrumb
  131. },
  132. data() {
  133. return {
  134. custom_chart_data_color: [],
  135. patient_name: '',
  136. options2: {
  137. title: {
  138. text: 'ECharts 入门示例'
  139. },
  140. tooltip: {},
  141. legend: {
  142. data: ['次数'],
  143. left: 0
  144. },
  145. xAxis: {
  146. data: [],
  147. axisLine: {
  148. lineStyle: {
  149. color: '#FF0000',
  150. width: 8 //这里是为了突出显示加上的
  151. }
  152. },
  153. axisLabel: {
  154. interval: 0,
  155. formatter: function(value) {
  156. var ret = '' //拼接加\n返回的类目项
  157. var maxLength = 8 //每项显示文字个数
  158. var valLength = value.length //X轴类目项的文字个数
  159. var rowN = Math.ceil(valLength / maxLength) //类目项需要换行的行数
  160. if (rowN > 1) {
  161. //如果类目项的文字大于3,
  162. for (var i = 0; i < rowN; i++) {
  163. var temp = '' //每次截取的字符串
  164. var start = i * maxLength //开始截取的位置
  165. var end = start + maxLength //结束截取的位置
  166. //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
  167. temp = value.substring(start, end) + '\n'
  168. ret += temp //凭借最终的字符串
  169. }
  170. return ret
  171. } else {
  172. return value
  173. }
  174. }
  175. }
  176. },
  177. yAxis: {
  178. axisLabel: {
  179. formatter: '{value} %'
  180. },
  181. show: false,
  182. axisLine: {
  183. lineStyle: {
  184. color: '#00FF00',
  185. width: 8 //这里是为了突出显示加上的
  186. }
  187. }
  188. },
  189. series: [
  190. {
  191. name: '',
  192. type: 'line',
  193. data: [],
  194. barWidth: 30,
  195. label: {
  196. normal: {
  197. show: true,
  198. position: 'top',
  199. formatter: '{c}'
  200. }
  201. },
  202. //配置样式
  203. itemStyle: {
  204. //通常情况下:
  205. //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
  206. normal: {
  207. color: function(params) {
  208. //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
  209. var colorList = [
  210. ['#A9E0F3', '#9FBDFC'],
  211. ['#FFD7C0', '#FF9994']
  212. ]
  213. var index = params.dataIndex
  214. if (params.dataIndex >= colorList.length) {
  215. index = params.dataIndex % colorList.length
  216. }
  217. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  218. { offset: 0, color: colorList[index][0] },
  219. // { offset: 0.5, color: colorList[index][1] },
  220. { offset: 1, color: colorList[index][1] }
  221. ])
  222. },
  223. barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
  224. },
  225. //鼠标悬停时:
  226. emphasis: {
  227. shadowBlur: 10,
  228. shadowOffsetX: 0,
  229. shadowColor: 'rgba(0, 0, 0, 0.5)'
  230. }
  231. }
  232. }
  233. ]
  234. },
  235. options: {
  236. title: {
  237. text: "ECharts 入门示例"
  238. },
  239. tooltip: {},
  240. legend: {
  241. data: [""],
  242. left: 0
  243. },
  244. xAxis: {
  245. data: [],
  246. axisLabel: {
  247. interval: 0,
  248. formatter: function(value) {
  249. var ret = ""; //拼接加\n返回的类目项
  250. var maxLength = 4; //每项显示文字个数
  251. var valLength = value.length; //X轴类目项的文字个数
  252. var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
  253. if (rowN > 1) {
  254. //如果类目项的文字大于3,
  255. for (var i = 0; i < rowN; i++) {
  256. var temp = ""; //每次截取的字符串
  257. var start = i * maxLength; //开始截取的位置
  258. var end = start + maxLength; //结束截取的位置
  259. //这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
  260. temp = value.substring(start, end) + "\n";
  261. ret += temp; //凭借最终的字符串
  262. }
  263. return ret;
  264. } else {
  265. return value;
  266. }
  267. },
  268. }
  269. },
  270. yAxis: {
  271. axisLabel: {
  272. formatter: "{value} %"
  273. },
  274. show: false
  275. },
  276. series: [
  277. {
  278. name: "",
  279. type: "line",
  280. data: [],
  281. barWidth: 30,
  282. label: {
  283. normal: {
  284. show: true,
  285. position: "top",
  286. formatter: "{c}"
  287. }
  288. },
  289. //配置样式
  290. itemStyle: {
  291. //通常情况下:
  292. //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
  293. normal: {
  294. color: function (params) {
  295. //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
  296. var colorList = [
  297. ["#A9E0F3", "#9FBDFC"],
  298. ["#FFD7C0", "#FF9994"]
  299. ];
  300. var index = params.dataIndex;
  301. if (params.dataIndex >= colorList.length) {
  302. index = params.dataIndex % colorList.length;
  303. }
  304. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  305. {offset: 0, color: colorList[index][0]},
  306. // { offset: 0.5, color: colorList[index][1] },
  307. {offset: 1, color: colorList[index][1]}
  308. ]);
  309. },
  310. lineStyle: {
  311. color: '#5B98FF' //改变折线颜色
  312. },
  313. barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
  314. },
  315. //鼠标悬停时:
  316. emphasis: {
  317. shadowBlur: 10,
  318. shadowOffsetX: 0,
  319. shadowColor: "rgba(0, 0, 0, 0.5)"
  320. }
  321. }
  322. },
  323. {
  324. name: "",
  325. type: "line",
  326. data: [],
  327. barWidth: 30,
  328. label: {
  329. normal: {
  330. show: true,
  331. position: "top",
  332. formatter: "{c}"
  333. }
  334. },
  335. //配置样式
  336. itemStyle: {
  337. //通常情况下:
  338. //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
  339. normal: {
  340. color: function (params) {
  341. //我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
  342. var colorList = [
  343. ["#A9E0F3", "#9FBDFC"],
  344. ["#FFD7C0", "#FF9994"]
  345. ];
  346. var index = params.dataIndex;
  347. if (params.dataIndex >= colorList.length) {
  348. index = params.dataIndex % colorList.length;
  349. }
  350. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  351. {offset: 0, color: colorList[index][0]},
  352. // { offset: 0.5, color: colorList[index][1] },
  353. {offset: 1, color: colorList[index][1]}
  354. ]);
  355. },
  356. lineStyle: {
  357. color: '#f56c6c' //改变折线颜色
  358. },
  359. barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
  360. },
  361. //鼠标悬停时:
  362. emphasis: {
  363. shadowBlur: 10,
  364. shadowOffsetX: 0,
  365. shadowColor: "rgba(0, 0, 0, 0.5)"
  366. }
  367. }
  368. }
  369. ],
  370. dataZoom: [
  371. {
  372. //Y轴固定,让内容滚动
  373. type: "slider",
  374. show: false,
  375. xAxisIndex: [0],
  376. start: 1,
  377. end: 20, //设置X轴刻度之间的间隔(根据数据量来调整)
  378. zoomLock: true //锁定区域禁止缩放(鼠标滚动会缩放,所以禁止)
  379. },
  380. {
  381. type: "inside",
  382. xAxisIndex: [0],
  383. start: 1,
  384. end: 20,
  385. zoomLock: true //锁定区域禁止缩放
  386. }
  387. ],
  388. },
  389. query: {
  390. patient_id: this.$route.query.patient_id,
  391. start_time: '',
  392. end_time: '',
  393. limit: 20,
  394. page: 1,
  395. project_id: this.$route.query.project_id,
  396. item_id: this.$route.query.item_id,
  397. range_type: this.$route.query.range_type,
  398. range_value: ''
  399. },
  400. patientsData: [],
  401. pickerOptions: {
  402. disabledDate(time) {
  403. let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear() - 1)).getTime() - 24 * 3600 * 1000
  404. return time.getTime() > Date.now() || time.getTime() < threeMonths
  405. }
  406. },
  407. crumbs: [
  408. { path: false, name: '质控管理' },
  409. { path: false, name: '基本信息统计' }
  410. ],
  411. listQuery: {
  412. start_time: '',
  413. end_time: '',
  414. page: 1,
  415. limit: 10
  416. },
  417. stateType: 1,
  418. month: [
  419. { value: 1, label: '近一个月', state: 1 },
  420. { value: 2, label: '近三个月', state: 2 },
  421. { value: 3, label: '近半年', state: 3 },
  422. { value: 4, label: '近一年', state: 4 },
  423. { value: 5, label: '自定义', state: 5 }
  424. ],
  425. search_value: ''
  426. }
  427. },
  428. methods: {
  429. handleSelect(val) {
  430. this.query.patient_id = val.id
  431. this.patient_name = val.name
  432. // this.GetPatientInspectionIndexChart(this.query)
  433. for (let i = 0; i < this.patientsData.length; i++) {
  434. if (this.patientsData[i].id == val.id) {
  435. this.$refs.table.setCurrentRow(this.patientsData[i])
  436. }
  437. }
  438. },
  439. querySearchAsync(keyword, cb) {
  440. let key = ''
  441. if (keyword != undefined) {
  442. key = keyword
  443. }
  444. let searchArray = []
  445. PostSearch(key).then(response => {
  446. if (response.data.state == 1) {
  447. searchArray = response.data.data.patient
  448. cb(searchArray)
  449. } else {
  450. cb([])
  451. }
  452. })
  453. },
  454. selectStateType(val) {
  455. this.stateType = val
  456. switch (val) {
  457. case 1: //本月
  458. this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
  459. // 本月的结束时间
  460. this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
  461. this.query.patient_id = this.$route.query.patient_id
  462. this.query.project_id = this.$route.query.project_id
  463. this.query.item_id = this.$route.query.item_id
  464. this.query.range_type = this.$route.query.range_type
  465. this.GetPatientInspectionIndexChart(this.query)
  466. break
  467. case 2: //近3个月
  468. const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
  469. this.query.start_time = startDate
  470. const endDate = moment(new Date()).format('YYYY-MM-DD')
  471. this.query.patient_id = this.$route.query.patient_id
  472. this.query.project_id = this.$route.query.project_id
  473. this.query.item_id = this.$route.query.item_id
  474. this.query.range_type = this.$route.query.range_type
  475. this.GetPatientInspectionIndexChart(this.query)
  476. break
  477. case 3: //近半年
  478. this.query.start_time = moment().subtract('month', 6).format('YYYY-MM-DD')
  479. this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
  480. this.query.patient_id = this.$route.query.patient_id
  481. this.query.project_id = this.$route.query.project_id
  482. this.query.item_id = this.$route.query.item_id
  483. this.query.range_type = this.$route.query.range_type
  484. this.GetPatientInspectionIndexChart(this.query)
  485. break
  486. case 4: //近一年
  487. this.query.start_time = moment().subtract('month', 12).format('YYYY-MM-DD')
  488. this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
  489. this.query.patient_id = this.$route.query.patient_id
  490. this.query.project_id = this.$route.query.project_id
  491. this.query.item_id = this.$route.query.item_id
  492. this.query.range_type = this.$route.query.range_type
  493. this.GetPatientInspectionIndexChart(this.query)
  494. break
  495. case 5: //自定义
  496. this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
  497. // 本月的结束时间
  498. this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
  499. this.query.patient_id = this.$route.query.patient_id
  500. this.query.project_id = this.$route.query.project_id
  501. this.query.item_id = this.$route.query.item_id
  502. this.query.range_type = this.$route.query.range_type
  503. this.GetPatientInspectionIndexChart(this.query)
  504. break
  505. }
  506. },
  507. getCurrentOrgPatients() {
  508. getCurrentOrgPatients().then(response => {
  509. if (response.data.state == 1) {
  510. var patients = response.data.data.patients
  511. this.patientsData = patients
  512. for (let i = 0; i < this.patientsData.length; i++) {
  513. if (this.patientsData[i].id == this.query.patient_id) {
  514. this.patient_name = this.patientsData[i].name
  515. this.$refs.table.setCurrentRow(this.patientsData[i])
  516. }
  517. }
  518. }
  519. })
  520. }, handleChange(val) {
  521. this.query.patient_id = val.id
  522. this.query.page = 1
  523. this.patient_name = val.name
  524. this.GetPatientInspectionIndexChart(this.query)
  525. }, changeTime(val) {
  526. var time = this.getTimestamp(val) - this.getTimestamp(this.query.end_time)
  527. if (time > 0) {
  528. this.$message.error('结束时间不能小于开始时间')
  529. } else {
  530. console.log(this.query)
  531. this.GetPatientInspectionIndexChart(this.query)
  532. }
  533. },
  534. changeEndTime(val) {
  535. var time =
  536. this.getTimestamp(val) - this.getTimestamp(this.query.start_time)
  537. if (time < 0) {
  538. this.$message.error('结束时间不能小于开始时间')
  539. } else {
  540. console.log(this.query)
  541. this.GetPatientInspectionIndexChart(this.query)
  542. }
  543. },
  544. GetPatientInspectionIndexChart(params) {
  545. this.options.xAxis.data = []
  546. this.options.series[0].data = []
  547. this.options2.xAxis.data = []
  548. this.options2.series[0].data = []
  549. GetPatientInspectionIndexChart(params)
  550. .then(rs => {
  551. var resp = rs.data
  552. if (resp.state == 1) {
  553. let tempData = []
  554. let otherData = []
  555. for (let i = 0; i < resp.data.data.length; i++) {
  556. if (this.$route.query.range_type == 1) {
  557. this.options.xAxis.data.push(resp.data.data[i].date)
  558. this.options.series[0].data.push(resp.data.data[i].value)
  559. }else{
  560. this.options2.series[0].data.push("1")
  561. this.options2.xAxis.data.push(resp.data.data[i].date)
  562. tempData.push(resp.data.data[i].value)
  563. otherData.push(resp.data.data[i].value)
  564. }
  565. }
  566. console.log(this.options.series[0].data)
  567. //获取无法确定选项的颜色
  568. if (this.query.range_type == 2) {
  569. //去重复
  570. let obj = {}
  571. tempData = tempData.reduce((cur, next) => {
  572. obj[next] ? '' : (obj[next] = true && cur.push(next))
  573. return cur
  574. }, [])
  575. //随机获取颜色值
  576. let newObj = {}
  577. for (let i = 0; i < tempData.length; i++) {
  578. newObj[tempData[i]] = this.getColor()
  579. }
  580. //匹配对应的颜色值
  581. for (let i = 0; i < otherData.length; i++) {
  582. for (let key in newObj) {
  583. if (otherData[i] === key) {
  584. this.custom_chart_data_color.push(newObj[key])
  585. }
  586. }
  587. }
  588. }
  589. } else {
  590. }
  591. })
  592. .catch(error => {
  593. })
  594. }, getTimestamp(time) {
  595. // 把时间日期转成时间戳
  596. return new Date(time).getTime() / 1000
  597. }
  598. },
  599. created() {
  600. this.getCurrentOrgPatients()
  601. this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
  602. this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
  603. this.query.patient_id = this.$route.query.patient_id
  604. this.query.project_id = this.$route.query.project_id
  605. this.query.item_id = this.$route.query.item_id
  606. this.query.range_type = this.$route.query.range_type
  607. this.GetPatientInspectionIndexChart(this.query)
  608. }
  609. }
  610. </script>
  611. <style rel="stylesheet/scss" lang="scss" scoped>
  612. .tableTitle {
  613. font-size: 16px;
  614. color: #000;
  615. font-weight: bold;
  616. margin-bottom: 10px;
  617. }
  618. .infoBox {
  619. display: flex;
  620. flex-wrap: wrap;
  621. .infoOne {
  622. margin-right: 30px;
  623. margin-top: 30px;
  624. .titleBox {
  625. display: flex;
  626. align-items: center;
  627. }
  628. .point {
  629. display: inline-block;
  630. width: 7px;
  631. height: 7px;
  632. background: linear-gradient(
  633. 90deg,
  634. rgba(169, 224, 243, 1),
  635. rgba(159, 189, 252, 1)
  636. );
  637. border-radius: 50%;
  638. }
  639. .point1 {
  640. width: 7px;
  641. height: 7px;
  642. background: linear-gradient(
  643. 90deg,
  644. rgba(255, 215, 192, 1),
  645. rgba(255, 153, 148, 1)
  646. );
  647. border-radius: 50%;
  648. }
  649. .point2 {
  650. width: 7px;
  651. height: 7px;
  652. background: linear-gradient(
  653. 90deg,
  654. rgba(215, 195, 253, 1),
  655. rgba(179, 168, 247, 1)
  656. );
  657. border-radius: 50%;
  658. }
  659. .infoTitle {
  660. font-size: 16px;
  661. font-weight: bold;
  662. margin-left: 5px;
  663. color: #000;
  664. }
  665. .borderBox {
  666. width: 340px;
  667. min-height: 140px;
  668. background: rgba(255, 255, 255, 1);
  669. border: 1px solid rgba(229, 229, 229, 1);
  670. border-radius: 10px;
  671. padding: 0 14px 20px;
  672. margin-top: 10px;
  673. p {
  674. font-size: 14px;
  675. color: #000;
  676. margin: 10px 0 3px;
  677. }
  678. }
  679. .borderBox1 {
  680. width: 340px;
  681. min-height: 140px;
  682. background: rgba(255, 255, 255, 1);
  683. border: 1px solid rgba(229, 229, 229, 1);
  684. border-radius: 10px;
  685. padding: 0 14px 20px;
  686. margin-top: 10px;
  687. p {
  688. font-size: 14px;
  689. color: #000;
  690. margin: 10px 0 3px;
  691. }
  692. }
  693. .borderBox2 {
  694. width: 340px;
  695. min-height: 140px;
  696. background: rgba(255, 255, 255, 1);
  697. border: 1px solid rgba(229, 229, 229, 1);
  698. border-radius: 10px;
  699. padding: 0 14px 20px;
  700. margin-top: 10px;
  701. p {
  702. font-size: 14px;
  703. color: #000;
  704. margin: 10px 0 3px;
  705. }
  706. }
  707. }
  708. }
  709. </style>
  710. <style lang="scss">
  711. .infoBox {
  712. .infoOne {
  713. .borderBox {
  714. .el-progress-bar__inner {
  715. background: linear-gradient(
  716. 90deg,
  717. rgba(169, 224, 243, 1),
  718. rgba(159, 189, 252, 1)
  719. );
  720. }
  721. .el-progress-bar {
  722. margin-right: -59px;
  723. padding-right: 60px;
  724. }
  725. }
  726. .borderBox1 {
  727. .el-progress-bar__inner {
  728. background: linear-gradient(
  729. 90deg,
  730. rgba(255, 215, 192, 1),
  731. rgba(255, 153, 148, 1)
  732. );
  733. }
  734. .el-progress-bar {
  735. margin-right: -59px;
  736. padding-right: 60px;
  737. }
  738. }
  739. .borderBox2 {
  740. .el-progress-bar__inner {
  741. background: linear-gradient(
  742. 90deg,
  743. rgba(215, 195, 253, 1),
  744. rgba(179, 168, 247, 1)
  745. );
  746. }
  747. .el-progress-bar {
  748. margin-right: -59px;
  749. padding-right: 60px;
  750. }
  751. }
  752. }
  753. }
  754. </style>