enterAudit.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!--单位审核-->
  2. <template>
  3. <div class="content-div">
  4. <a-card class="info-submit" :bordered="false">
  5. <a-radio-group v-model="defaultValue" button-style="solid" @change="changeContent">
  6. <a-radio-button v-for="(item, index) in menus" :key="item.action" :value="item.value" :name="item.value">
  7. {{ item.describe }}
  8. </a-radio-button>
  9. </a-radio-group>
  10. </a-card>
  11. <a-card :bordered="false">
  12. <!--省属企业信息待审核-->
  13. <company-audit v-show="'ssqyxxdsh' == defaultValue"></company-audit>
  14. <!--省直单位信息待审核-->
  15. <depart-audit v-show="'szdwxxdsh' == defaultValue"></depart-audit>
  16. <!--省属企业信息已审核-->
  17. <company-approved v-show="'ssqyxxysh' == defaultValue"></company-approved>
  18. <!--省直单位信息已审核-->
  19. <depart-approved v-show="'szdwxxysh' == defaultValue"></depart-approved>
  20. </a-card>
  21. </div>
  22. </template>
  23. <script>
  24. import companyAudit from '../qcsb/qyxx/QcQyxxList1.vue'
  25. import departAudit from '../sydwqcsb/sydwxx/QcQyxxList1.vue'
  26. import companyApproved from '../qcsb/qyxx/QcQyxxList2.vue'
  27. import departApproved from '../sydwqcsb/sydwxx/QcQyxxList2.vue'
  28. export default {
  29. name: 'enterAudit',
  30. components: {
  31. companyAudit,
  32. departAudit,
  33. companyApproved,
  34. departApproved,
  35. },
  36. data() {
  37. return {
  38. defaultValue: '',
  39. menus: [],
  40. }
  41. },
  42. created() {
  43. this.menus = this.$store.state.menu.menuList['dwsh'];
  44. let menuIndex = this.$route.params.index != undefined ? (this.menus.length > this.$route.params.index ? this.$route.params.index : 0) : 0;
  45. console.log("enterAudit...menuIndex", menuIndex);
  46. this.defaultValue = this.menus.length > 0 ? this.menus[menuIndex].value : '';
  47. },
  48. methods: {
  49. changeContent(key) {
  50. console.log(key);
  51. },
  52. }
  53. }
  54. </script>
  55. <style scoped>
  56. .content-div {
  57. height: 100%;
  58. }
  59. .ant-card:not(:last-child) {
  60. margin-bottom: 10px;
  61. }
  62. .ant-card:last-child {
  63. height: calc(100% - 70px);
  64. overflow-y: auto;
  65. }
  66. </style>
  67. <style lang="less" scoped>
  68. .info-submit {
  69. & ::v-deep > .ant-card-body {
  70. padding: 14px 24px;
  71. }
  72. &::v-deep .ant-radio-button-wrapper {
  73. //border: 1px solid ;
  74. border-radius: 4px;
  75. padding-left: 25px;
  76. padding-right: 25px;
  77. //border-left: 1px;
  78. border: 1px solid @primary-color;
  79. margin-left: 15px;
  80. color: @primary-color;
  81. }
  82. & /deep/ .ant-radio-button-wrapper:not(:first-child)::before {
  83. width: 0px;
  84. }
  85. & .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  86. color: #fff;
  87. }
  88. }
  89. .content-div {
  90. &::v-deep .ant-card:last-child .ant-card-body {
  91. padding: 10px 24px 0;
  92. }
  93. }
  94. </style>