xm-audit-tx-1-qyjyhx.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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="8" :class="$style.col">
  7. <div :class="$style.box">
  8. <a-card :bordered="false" :class="$style.cardBody">
  9. <div slot="title"> 企业基本信息</div>
  10. <div>
  11. <a-row :gutter="24">
  12. <a-col
  13. v-for="(one, index) in colspandata"
  14. :key="index"
  15. :class="{
  16. ['audittxdiv1select']: selectindexdiv === index,
  17. [$style.zcol]: true,
  18. }"
  19. :span="12"
  20. >
  21. <div :class="$style.title" @click="fndivclick(index)"
  22. ><span
  23. style="
  24. padding-bottom: 9px;
  25. border-bottom: 3px solid #dadada;
  26. "
  27. >{{ one.title }}</span
  28. ></div
  29. >
  30. </a-col>
  31. </a-row>
  32. </div>
  33. </a-card>
  34. </div>
  35. </a-col>
  36. <a-col :span="16" :class="$style.col">
  37. <div :class="$style.box">
  38. <a-card :bordered="false" :class="$style.cardBody">
  39. <div slot="title">
  40. 发展指标
  41. </div>
  42. <iframe :class="$style.iframe" src=""></iframe>
  43. </a-card>
  44. </div>
  45. </a-col>
  46. </a-row>
  47. <a-row :gutter="24" :class="$style.rowHeight" type="flex">
  48. <a-col :span="8" :class="$style.col2">
  49. <div :class="$style.box">
  50. <a-card :bordered="false" :class="$style.cardBody">
  51. <div slot="title"> 企业收入情况<span style="font-size:14px">(万元)</span> </div>
  52. <div class="tx1qyjyhxtable">
  53. <sd-table
  54. size="middle"
  55. :columns="configColumns"
  56. sortable
  57. :data-source="value"
  58. :row-key="(record, index) => index"
  59. :pagination="false"
  60. :row-selection="readOnly"
  61. >
  62. </sd-table>
  63. </div>
  64. </a-card>
  65. </div>
  66. </a-col>
  67. <a-col :span="16" :class="$style.col2">
  68. <div :class="$style.box">
  69. <a-card :bordered="false" :class="$style.cardBody">
  70. <div slot="title">
  71. 经营指标
  72. </div>
  73. <iframe :class="$style.iframe" src=""></iframe>
  74. </a-card>
  75. </div>
  76. </a-col>
  77. </a-row>
  78. </div>
  79. </a-layout-content>
  80. </a-layout>
  81. </template>
  82. <script>
  83. import components from './_import-components/xm-audit-tx-1-qyjyhx-import'
  84. export default {
  85. name: 'XmAuditTx1Qyjyhx',
  86. metaInfo: {
  87. title: '企业经营画像',
  88. },
  89. components,
  90. data() {
  91. return {
  92. colspandata: [
  93. { title: '经营范围' },
  94. { title: '管控模式' },
  95. { title: '组织架构' },
  96. { title: '职责范围' },
  97. { title: '人员编制' },
  98. { title: '领导分工' },
  99. { title: '子公司数量规模' },
  100. { title: '管控模式' },
  101. ],
  102. selectindexdiv: '',
  103. configColumns: [
  104. {
  105. title: '分类',
  106. dataIndex: 'class',
  107. width: '40%',
  108. },
  109. {
  110. title: '金额',
  111. dataIndex: 'money',
  112. },
  113. {
  114. title: '占比',
  115. dataIndex: 'ratio',
  116. },
  117. ],
  118. value: [
  119. { class: '主营业务收入', money: '78838', ratio: '83.80%' },
  120. { class: '其他业务收入', money: '9552', ratio: '9.12%' },
  121. { class: '营业外收入', money: '4052', ratio: '3.87%' },
  122. { class: '利息收入', money: '3350', ratio: '3.21%' },
  123. { class: '总计', money: '104701', ratio: '100%' },
  124. ],
  125. }
  126. },
  127. methods: {
  128. fndivclick(id) {
  129. this.selectindexdiv = id
  130. },
  131. },
  132. }
  133. </script>
  134. <style module lang="scss">
  135. @use '@/common/design' as *;
  136. .main-div {
  137. min-height: 100%;
  138. .row-height {
  139. height: 100%;
  140. margin-right: 0 !important;
  141. margin-left: 0 !important;
  142. }
  143. :global .ant-row {
  144. height: 100%;
  145. }
  146. }
  147. .content-div {
  148. .main-wrap {
  149. height: 100%;
  150. }
  151. .row-height > .col:nth-child(2) {
  152. padding-right: 0 !important;
  153. }
  154. .row-height > .col2:nth-child(2) {
  155. padding-right: 0 !important;
  156. }
  157. .col {
  158. padding-right: 20px !important;
  159. padding-bottom: 20px !important;
  160. padding-left: 0 !important;
  161. :global .ant-card {
  162. border-radius: 4px;
  163. }
  164. }
  165. .col2 {
  166. padding-right: 20px !important;
  167. padding-left: 0 !important;
  168. :global .ant-card {
  169. border-radius: 4px;
  170. }
  171. }
  172. .zcol:first-child {
  173. padding-top: 0 !important;
  174. }
  175. .zcol:nth-child(2) {
  176. padding-top: 0 !important;
  177. }
  178. .zcol {
  179. padding: 10px !important;
  180. div {
  181. height: 45px;
  182. padding: 10px 0;
  183. font-size: 16px;
  184. color: #000;
  185. text-align: center;
  186. background-color: #f3f3f3;
  187. border-radius: 4px;
  188. }
  189. }
  190. :global(.audittxdiv1select div) {
  191. box-sizing: border-box;
  192. border-bottom: 3px solid #ed2c2c;
  193. :global span {
  194. border-bottom: none !important;
  195. }
  196. }
  197. .box {
  198. height: 100%;
  199. overflow-y: auto;
  200. background: $card-background;
  201. background-color: #fff;
  202. border-radius: 4px;
  203. :global(.ant-card-head) {
  204. border-bottom: none !important;
  205. }
  206. :global(.ant-card-head-title) {
  207. padding-top: 0;
  208. padding-bottom: 0;
  209. padding-left: 24px;
  210. font-size: 18px;
  211. color: #000;
  212. :global(.anticon) {
  213. color: $primary-color;
  214. }
  215. }
  216. .card-body {
  217. :global(.ant-card-body) {
  218. padding: 10px 20px;
  219. }
  220. :global(.ant-card-head-wrapper) {
  221. margin-top: 20px;
  222. margin-bottom: 10px;
  223. margin-left: -24px;
  224. border-left: 4px solid red;
  225. }
  226. }
  227. :global(.tx1qyjyhxtable) {
  228. :global(td) {
  229. color: #9a9a9a;
  230. border: 1px solid #ebebeb;
  231. }
  232. :global(tr:last-child td) {
  233. color: #000;
  234. }
  235. :global(th) {
  236. background-color: #f5f6fa;
  237. border: 1px solid #ebebeb;
  238. }
  239. }
  240. }
  241. .iframe {
  242. width: 100%;
  243. height: 99%;
  244. border: none;
  245. }
  246. }
  247. </style>