detail.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div>
  3. <el-radio-group v-model="current" size="mini">
  4. <el-radio-button class="my-width" label="detail">详情</el-radio-button>
  5. <el-radio-button class="my-width" label="record">操作记录</el-radio-button>
  6. </el-radio-group>
  7. <el-form v-show="current === 'detail'" disabled>
  8. <Base :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
  9. <Model :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
  10. <Examine v-if="formData.confirmBy && formData.confirmTime" :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
  11. </el-form>
  12. <OperationRecords v-show="current === 'record'" :detail-id="detailId" />
  13. </div>
  14. </template>
  15. <script>
  16. import Base from '../components/base.vue'
  17. import Model from '../components/model.vue'
  18. import Examine from '../components/examine.vue'
  19. import OperationRecords from '../components/operationRecords.vue'
  20. import Mixin from '../mixin'
  21. export default {
  22. components: {
  23. Base,
  24. Model,
  25. Examine,
  26. OperationRecords
  27. },
  28. mixins: [Mixin],
  29. data() {
  30. return {
  31. current: 'detail'
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .my-width ::v-deep .el-radio-button__inner {
  38. width: 100px;
  39. }
  40. </style>