xm-audit-tx-3-lclyfxhx.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <template>
  2. <a-layout :class="$style.mainDiv">
  3. <a-layout-content :class="$style.contentDiv">
  4. <div :class="$style.mainWrap">
  5. <a-row :gutter="24" :class="$style.rowHeight" type="flex">
  6. <a-col :span="16" :class="$style.col">
  7. <div :class="$style.box">
  8. <a-card :bordered="false" :class="$style.cardBody">
  9. <div slot="title"> 风险排名 </div>
  10. <iframe :class="$style.iframe" src=""></iframe>
  11. </a-card>
  12. </div>
  13. </a-col>
  14. <a-col :span="8" :class="$style.col">
  15. <div :class="$style.box">
  16. <a-card :bordered="false" :class="$style.cardBody">
  17. <div slot="title">
  18. 风险分布
  19. </div>
  20. <iframe :class="$style.iframe" src=""></iframe>
  21. </a-card>
  22. </div>
  23. </a-col>
  24. </a-row>
  25. <a-row :gutter="24" :class="$style.rowHeight" type="flex">
  26. <a-col :span="24" :class="$style.col2">
  27. <div :class="$style.box">
  28. <a-card :bordered="false" :class="$style.cardBody">
  29. <div slot="title"> 风险情况 </div>
  30. <div class="tx3lclyfxhxdiv">
  31. <a-row :gutter="24" type="flex">
  32. <a-col
  33. v-for="(one, index) in colspandata"
  34. :key="index"
  35. :class="{
  36. ['audittxdiv1select']: selectindexdiv === index,
  37. [$style.zcol]: true,
  38. }"
  39. :span="8"
  40. >
  41. <table>
  42. <tr>
  43. <td width="25%"
  44. ><span>{{ one.title }}</span></td
  45. >
  46. <td width="25%"></td>
  47. <td rowspan="2">
  48. <iframe :class="$style.iframe" src=""></iframe>
  49. </td> </tr
  50. ><tr>
  51. <td>
  52. <div
  53. ><span style="font-size: 24px;font-weight: bold;">{{ one.num }}</span
  54. ><span style="font-size: 14px;color: #9a9a9a;">个</span></div
  55. ><div><span style="font-size: 14px;color: #9a9a9a;">风险数</span></div>
  56. </td>
  57. <td
  58. ><div style="margin-bottom:-20px;"
  59. ><span style="font-size: 14px;color: #9a9a9a;">同比</span
  60. ><span
  61. :class="[
  62. one.tb.indexOf('+') > -1
  63. ? $style.spancolorred
  64. : $style.spancolorgreen,
  65. ]"
  66. >{{ one.tb }}</span
  67. > </div
  68. ><div
  69. ><span style="font-size: 14px;color: #9a9a9a;">环比</span
  70. ><span
  71. :class="[
  72. one.hb.indexOf('+') > -1
  73. ? $style.spancolorred
  74. : $style.spancolorgreen,
  75. ]"
  76. >{{ one.hb }}</span
  77. ></div
  78. ></td
  79. >
  80. </tr>
  81. </table>
  82. <!-- <div :class="$style.title"
  83. ><span>{{ one.title }}</span
  84. ></div
  85. > -->
  86. </a-col>
  87. </a-row>
  88. </div>
  89. </a-card>
  90. </div>
  91. </a-col>
  92. </a-row>
  93. </div>
  94. </a-layout-content>
  95. </a-layout>
  96. </template>
  97. <script>
  98. import components from './_import-components/xm-audit-tx-3-lclyfxhx-import'
  99. export default {
  100. name: 'XmAuditTx3Lclyfxhx',
  101. metaInfo: {
  102. title: '流程领域风险画像',
  103. },
  104. components,
  105. data() {
  106. return {
  107. colspandata: [
  108. { title: '目标与考核', num: '345', tb: '+0.5%', hb: '-0.2%' },
  109. { title: '投资发展管理', num: '256', tb: '+0.5%', hb: '-0.2%' },
  110. { title: '风险内控管理', num: '35', tb: '+0.5%', hb: '-0.2%' },
  111. { title: '经营生产管理', num: '201', tb: '+0.5%', hb: '-0.2%' },
  112. { title: '财务管理', num: '132', tb: '+0.5%', hb: '-0.2%' },
  113. { title: '公司治理', num: '10', tb: '+0.5%', hb: '-0.2%' },
  114. ],
  115. selectindexdiv: '',
  116. configColumns: [
  117. {
  118. title: '分类',
  119. dataIndex: 'class',
  120. width: '40%',
  121. },
  122. {
  123. title: '金额',
  124. dataIndex: 'money',
  125. },
  126. {
  127. title: '占比',
  128. dataIndex: 'ratio',
  129. },
  130. ],
  131. value: [
  132. { class: '主营业务收入', money: '78838', ratio: '83.80%' },
  133. { class: '其他业务收入', money: '9552', ratio: '9.12%' },
  134. { class: '营业外收入', money: '4052', ratio: '3.87%' },
  135. { class: '利息收入', money: '3350', ratio: '3.21%' },
  136. { class: '总计', money: '104701', ratio: '100%' },
  137. ],
  138. }
  139. },
  140. methods: {
  141. fndivclick(id) {
  142. this.selectindexdiv = id
  143. },
  144. },
  145. }
  146. </script>
  147. <style module lang="scss">
  148. @use '@/common/design' as *;
  149. .main-div {
  150. min-height: 100%;
  151. .row-height {
  152. height: 100%;
  153. margin-right: 0 !important;
  154. margin-left: 0 !important;
  155. }
  156. :global .ant-row {
  157. height: 100%;
  158. }
  159. }
  160. .content-div {
  161. .main-wrap {
  162. height: 100%;
  163. }
  164. .row-height > .col:nth-child(3) {
  165. padding-right: 0 !important;
  166. }
  167. .row-height > .col2:nth-child(2) {
  168. padding-right: 0 !important;
  169. }
  170. .col {
  171. padding-right: 20px !important;
  172. padding-bottom: 20px !important;
  173. padding-left: 0 !important;
  174. :global .ant-card {
  175. border-radius: 4px;
  176. }
  177. }
  178. .col2 {
  179. padding-right: 20px !important;
  180. padding-left: 0 !important;
  181. :global .ant-card {
  182. border-radius: 4px;
  183. }
  184. }
  185. // .zcol:first-child {
  186. // padding-top: 0 !important;
  187. // }
  188. .zcol:nth-child(3),
  189. .zcol:nth-child(6) {
  190. border-right: none;
  191. }
  192. .zcol:nth-child(4),
  193. .zcol:nth-child(5),
  194. .zcol:nth-child(6) :global(table) {
  195. border-bottom: none;
  196. }
  197. // .zcol:nth-child(3) {
  198. // padding-top: 0 !important;
  199. // }
  200. .zcol {
  201. padding: 10px !important;
  202. border-right: 1px solid #ececec;
  203. :global(table) {
  204. margin-left: 20px;
  205. color: #000;
  206. border-bottom: 1px solid #ececec;
  207. }
  208. div {
  209. height: 45px;
  210. padding: 10px 0;
  211. font-size: 16px;
  212. color: #000;
  213. text-align: center;
  214. // background-color: #f3f3f3;
  215. border-radius: 4px;
  216. }
  217. }
  218. :global(.audittxdiv1select div) {
  219. box-sizing: border-box;
  220. border-bottom: 3px solid #ed2c2c;
  221. :global span {
  222. border-bottom: none !important;
  223. }
  224. }
  225. .box {
  226. height: 100%;
  227. overflow-y: auto;
  228. background: $card-background;
  229. background-color: #fff;
  230. border-radius: 4px;
  231. :global(.ant-card-head) {
  232. border-bottom: none !important;
  233. }
  234. :global(.ant-card-head-title) {
  235. padding-top: 0;
  236. padding-bottom: 0;
  237. padding-left: 24px;
  238. font-size: 18px;
  239. color: #000;
  240. :global(.anticon) {
  241. color: $primary-color;
  242. }
  243. }
  244. .card-body {
  245. :global(.ant-card-body) {
  246. padding: 10px 20px;
  247. }
  248. :global(.ant-card-head-wrapper) {
  249. margin-top: 20px;
  250. margin-bottom: 10px;
  251. margin-left: -24px;
  252. border-left: 4px solid red;
  253. }
  254. }
  255. :global(.tx1qyjyhxtable) {
  256. :global(td) {
  257. color: #9a9a9a;
  258. border: 1px solid #ebebeb;
  259. }
  260. :global(tr:last-child td) {
  261. color: #000;
  262. }
  263. :global(th) {
  264. background-color: #f5f6fa;
  265. border: 1px solid #ebebeb;
  266. }
  267. }
  268. }
  269. .spancolorred {
  270. color: red;
  271. }
  272. .spancolorgreen {
  273. color: green;
  274. }
  275. .iframe {
  276. width: 100%;
  277. height: 99%;
  278. border: none;
  279. }
  280. }
  281. </style>