StatisticalRisk.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. <template>
  2. <transition
  3. appear
  4. name="animate__animated animate__move"
  5. enter-active-class="animate__slideInLeft"
  6. leave-active-class="animate__slideOutLeft"
  7. >
  8. <div class="widget-StatisticalRisk">
  9. <div class="head">
  10. <div class="title">
  11. <div class="icon"></div>
  12. <span class="site-info">{{contentTitle}}</span>
  13. </div>
  14. </div>
  15. <div class="content-info">
  16. <div class="rankingOfTypes">
  17. <div class="title">
  18. <!-- <div class="icon"></div> -->
  19. <span class="item-name">{{listTitle}}:</span>
  20. </div>
  21. <div class="content">
  22. <ul class="but_ul">
  23. <li :key="'but_ul_'+item.id+index" v-for="(item,index) in listData">
  24. <div class="but_ul_name">{{ item.name }}</div>
  25. <div class="progressDiv" :class="item.value<60?'disqualification':''">
  26. <div class="progressRateDiv" :style="'width:calc((100% - 70px)*'+(item.value/100)+')'">
  27. </div>
  28. <div class="progressValue">{{item.value||0}}分</div>
  29. </div>
  30. </li>
  31. </ul>
  32. </div>
  33. </div>
  34. <div class="rankingBut">
  35. <h4>{{contentItemTitle}}:</h4>
  36. <p :title="contentItemTitleInfo">{{contentItemTitleInfo}}</p>
  37. <div class="resultDiv">
  38. <span class="resultTitle" style="font-size: 12px !important;" >{{resultTitle}}:</span>
  39. <span class="resultValue" :title="resultValue" style="font-size: 12px !important;">{{resultValue}}</span>
  40. </div>
  41. <div class="rankPmd" v-if="problemlist.length>0">
  42. <el-carousel @change="changeCarousel" trigger="click" height="70px">
  43. <el-carousel-item v-for="(i, k) in problemlist" :key="k">
  44. <span>{{ i.problem }}</span>
  45. <i>{{ i.correction }}</i>
  46. </el-carousel-item>
  47. </el-carousel>
  48. <div class="pageInfo">{{(currentIndex+1)+"/"+problemlist.length}}</div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </transition>
  54. </template>
  55. <script >
  56. import { getDangerCheckCountData } from '../../../apis'
  57. import { roundFun } from '@/views/groupPage/util'
  58. export default {
  59. name: 'StatisticalRisk',
  60. components: { },
  61. props:{
  62. //总标题
  63. contentTitle:{
  64. type:String,
  65. default:"信息",
  66. },
  67. //列表标题
  68. listTitle:{
  69. type:String,
  70. default:"信息分析结果"
  71. },
  72. //内容子标题
  73. contentItemTitle:{
  74. type:String,
  75. default:"评分最低会议纪要分析"
  76. },
  77. //内容子标题内容
  78. contentItemTitleInfo:{
  79. type:String,
  80. default:"2025年4月28日宜昌两网二期工程第XX次建设管理协 调周例会"
  81. },
  82. resultTitle:{
  83. type:String,
  84. default:"评价结果"
  85. },
  86. resultValue:{
  87. type:String,
  88. default:"信息协同度良好,反馈较及时,准确度较高,偶尔存在信息滞后2。"
  89. },
  90. listData:{
  91. type:Array,
  92. default:()=>[{
  93. id:1,
  94. value:50,
  95. name:"01 宜昌二期“两网”项目部周例会第2期会议纪要 20200923",
  96. },
  97. {
  98. id:2,
  99. value:70,
  100. name:"02 宜昌二期“两网”项目部周例会第2期会议纪要 20200923",
  101. }
  102. ,
  103. {
  104. id:2,
  105. value:70,
  106. name:"02 宜昌二期“两网”项目部周例会第2期会议纪要 20200923",
  107. }
  108. ,
  109. {
  110. id:2,
  111. value:70,
  112. name:"02 宜昌二期“两网”项目部周例会第2期会议纪要 20200923",
  113. }
  114. ,
  115. {
  116. id:2,
  117. value:70,
  118. name:"02 宜昌二期“两网”项目部周例会第2期会议纪要 20200923",
  119. }
  120. ,
  121. {
  122. id:2,
  123. value:70,
  124. name:"02 宜昌二期“两网”项目部周例会第2期会议纪要 20200923",
  125. }
  126. ,
  127. {
  128. id:2,
  129. value:70,
  130. name:"02 宜昌二期“两网”项目部周例会第2期会议纪要 20200923",
  131. }]
  132. },//列表数据
  133. problemlist:{
  134. type:Array,
  135. default:()=>[
  136. {
  137. problem: '信息共享不及时,导致项目进度滞后。',
  138. correction: '充分利用信息共享平台,确保及时沟通。'
  139. },
  140. {
  141. problem: '12121信息共享不及时,导致项目进度滞后。',
  142. correction: '1212充分利用信息共享平台,确保及时沟通。'
  143. }
  144. ]
  145. } ,
  146. },
  147. data() {
  148. return {
  149. currentIndex:0,
  150. riskPercent: 0,
  151. staList: [],
  152. chartData: {},
  153. rectifyList: [
  154. { title: '待整改', num: 3 },
  155. { title: '整改中', num: 3 },
  156. { title: '已整改', num: 3 }
  157. ],
  158. rankingBarChartData: null,
  159. projectCode: this.$store.state.bigScreen.currentProjectCode
  160. }
  161. },
  162. mounted() {
  163. },
  164. methods: {
  165. changeCarousel(data){
  166. this.currentIndex=data;
  167. },
  168. }
  169. }
  170. </script>
  171. <style lang="scss" scoped>
  172. .rankPmd span {
  173. font-weight: 400;
  174. font-size: 14px;
  175. white-space: nowrap;
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. width: 100%;
  179. padding-left: 43px;
  180. color: #ffffff;
  181. height: 22px;
  182. line-height: 22px;
  183. display: inline-block;
  184. margin-bottom: 10px;
  185. background: url('~@/assets/images/jczc/wt1.png') no-repeat center left;
  186. margin-left: 8px;
  187. }
  188. .rankPmd i {
  189. margin-left: 8px;
  190. font-weight: 400;
  191. font-size: 14px;
  192. color: #ffffff;
  193. white-space: nowrap;
  194. overflow: hidden;
  195. text-overflow: ellipsis;
  196. width: 100%;
  197. height: 22px;
  198. line-height: 22px;
  199. padding-left: 43px;
  200. display: inline-block;
  201. background: url('~@/assets/images/jczc/zg1.png') no-repeat center left;
  202. }
  203. .rankingBut h4 {
  204. font-weight: bold;
  205. font-size: 14px;
  206. color: #1adbff;
  207. padding-left: 7px;
  208. line-height: 24px;
  209. margin-bottom: 5px;
  210. }
  211. .rankingBut p {
  212. font-weight: 500;
  213. font-size: 14px;
  214. color: #ffffff;
  215. line-height: 20px;
  216. padding-left: 40px;
  217. background: url('~@/assets/images/jczc/baog.png') no-repeat center left;
  218. display: -webkit-box;
  219. -webkit-box-orient: vertical;
  220. -webkit-line-clamp: 2;
  221. overflow: hidden;
  222. }
  223. .animate__slideInLeft,
  224. .animate__slideOutLeft {
  225. animation-duration: 3s; //动画持续时间
  226. animation-delay: 0s; //动画延迟时间
  227. }
  228. .widget-StatisticalRisk {
  229. width: 100%;
  230. height: 100%;
  231. position: relative;
  232. .head {
  233. height: 0.166667rem /* 32/192 */;
  234. width: 100%;
  235. background: linear-gradient(-90deg, rgba(43, 167, 255, 0.2) 0%, rgba(43, 167, 255, 0.08) 100%);
  236. font-family: Source Han Sans CN-HEAVY;
  237. .title {
  238. width: 100%;
  239. height: 100%;
  240. display: flex;
  241. font-weight: 400;
  242. align-items: center;
  243. .icon {
  244. height: 0.166667rem /* 32/192 */;
  245. width: 0.34375rem /* 66/192 */;
  246. background: url('~@/views/groupPage/images/模块图标/统计分析/隐患统计.png') no-repeat center center;
  247. background-size: 100% 100%;
  248. }
  249. span {
  250. flex: 1;
  251. font-weight: bold;
  252. font-size: 0.083333rem /* 16/192 */;
  253. color: #ffffff;
  254. padding: 0.041667rem /* 8/192 */;
  255. background: linear-gradient(0deg, #9bd2fa 0%, #ffffff 100%);
  256. background-clip: text;
  257. -webkit-text-fill-color: transparent;
  258. }
  259. }
  260. }
  261. .content-info {
  262. width: 100%;
  263. padding: 10px;
  264. height: calc(100% - 30px);
  265. display: inline-block;
  266. font-family: Source Han Sans CN;
  267. background: linear-gradient(0deg, rgba(14, 167, 255, 0.16) 0%, rgba(14, 167, 255, 0.02) 100%);
  268. .title {
  269. width: 100%;
  270. display: flex;
  271. margin-bottom: 10px;
  272. .icon {
  273. height: 0.072917rem /* 14/192 */;
  274. width: 0.078125rem /* 15/192 */;
  275. margin: 0 0.046875rem /* 9/192 */;
  276. background: url('~@/views/groupPage/images/三角.png') no-repeat center center;
  277. background-size: 100% 100%;
  278. }
  279. .item-name {
  280. font-family: Source Han Sans CN;
  281. color: #0ea7ff;
  282. font-size: 0.072917rem /* 14/192 */;
  283. font-weight: 500;
  284. }
  285. }
  286. .rankingOfTypes {
  287. width: 100%;
  288. height: calc(100% - 207px /* 292/192 */);
  289. .content {
  290. width: 100%;
  291. height: calc(100% - 30px);
  292. position: relative;
  293. .but_ul{
  294. height: 100%;
  295. overflow-y:auto;
  296. }
  297. }
  298. }
  299. .but_ul_name{
  300. color:white;
  301. font-size: 12px;
  302. line-height: 1.3;
  303. }
  304. .progressDiv{
  305. width: 100%;
  306. position: relative;
  307. float: left;
  308. height: 39px;
  309. padding: 7px 0px 15px 0px;
  310. display: flex;
  311. align-items: center;
  312. }
  313. .progressRateDiv{
  314. float: left;
  315. height: 14px;
  316. background: linear-gradient(90deg, #0e7bc9 0%, #91a9bd 100%);
  317. position: relative;
  318. &::after {
  319. content: '';
  320. position: absolute;
  321. top: -2px;
  322. left: calc(100% + 3px);
  323. width: 19.5px;
  324. height: 3px;
  325. // background-color: black; /* 斜线的颜色 */
  326. transform: rotate(100deg); /* 旋转角度 */
  327. transform-origin: left top; /* 旋转原点 */
  328. background: #91a9bd ;
  329. }
  330. }
  331. .progressValue{
  332. padding-left: 10px;
  333. width: 60px;
  334. float: left;
  335. /* 设置字体透明 */
  336. color: transparent;
  337. /* 设置线性渐变,从红色渐变到蓝色 */
  338. background-image:linear-gradient(180deg, #3ca4ee 0%, #ffffff 50%, #3ca4ee 100%);
  339. /* 使用 -webkit-background-clip 属性将背景剪裁至文本形状 */
  340. -webkit-background-clip: text;
  341. /* 非Webkit内核浏览器需要使用标准前缀 */
  342. background-clip: text;
  343. /* 把当前元素设置为行内块,以便能够应用背景 */
  344. display: inline-block;
  345. font-size: 16px;
  346. }
  347. .disqualification{
  348. .progressRateDiv{
  349. background:linear-gradient(90deg, #de951bf0 0%, #ccb895f0 100%) ;
  350. &::after {
  351. background: #ccb895f0 ;
  352. }
  353. }
  354. .progressValue{
  355. background-image:linear-gradient(180deg, #de951bf0 0%, #ffffff 50%, #de951bf0 100%) ;
  356. }
  357. }
  358. }
  359. .resultDiv{
  360. color: rgb(230,184,107);
  361. padding: 10px;
  362. line-height: 1.5;
  363. display: -webkit-box;
  364. -webkit-box-orient: vertical;
  365. -webkit-line-clamp: 2;
  366. overflow: hidden;
  367. }
  368. /deep/.el-carousel__indicators--horizontal{
  369. display: none;
  370. }
  371. /deep/.el-carousel__arrow{
  372. display: block !important;
  373. transition:none !important;
  374. }
  375. /deep/.el-icon-arrow-left{
  376. display: none !important;
  377. }
  378. /deep/.el-icon-arrow-right{
  379. display: none !important;
  380. }
  381. /deep/.el-carousel__arrow--left{
  382. background: url('../../../../../assets/images/jczc/z.png') no-repeat;
  383. height: 23px;
  384. width: 17px;
  385. background-size:100% 100%;
  386. background-repeat:no-repeat ;
  387. left: 5px;
  388. }
  389. /deep/.el-carousel__arrow--right{
  390. background: url('../../../../../assets/images/jczc/y.png') no-repeat;
  391. height: 23px;
  392. width: 17px;
  393. background-size:100% 100%;
  394. background-repeat:no-repeat ;
  395. right: 5px;
  396. }
  397. /deep/ .el-carousel__item{
  398. padding:0px 40px 0px 30px;
  399. width: 100%;
  400. }
  401. .pageInfo{
  402. color: white;
  403. width: 100%;
  404. text-align: center;
  405. }
  406. }
  407. </style>