look-approve.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <el-dialog
  3. title="查看"
  4. width="60%"
  5. :close-on-click-modal="false"
  6. :visible.sync="visible">
  7. <el-row class="my-row">
  8. <el-col :span="24">
  9. <div style="height: 300px;">
  10. <el-steps direction="vertical" :active="1">
  11. <el-step v-for="(item,index) in dataForm.workFlowStepInfoList" :key="index" :title="item.stepName"
  12. :description="item.processLogInfoList.length > 0 ? item.processLogInfoList[0].approvalValue : ''"></el-step>
  13. </el-steps>
  14. </div>
  15. </el-col>
  16. </el-row>
  17. <span slot="footer" class="dialog-footer">
  18. <el-button @click="visible = false">返回</el-button>
  19. </span>
  20. </el-dialog>
  21. </template>
  22. <script>
  23. import { getApprovalInfo } from '@/api/msg'
  24. export default {
  25. name: 'notice-add-or-update',
  26. data () {
  27. return {
  28. visible: false,
  29. dictType: 'material_type',
  30. options: [],
  31. options1: [],
  32. dataList: [],
  33. fileList: [],
  34. id: 0,
  35. dataForm: {
  36. workFlowStepInfoList: []
  37. },
  38. display: false
  39. }
  40. },
  41. methods: {
  42. async init (id) {
  43. this.visible = true
  44. this.id = id || 0
  45. this.getApprovalInfo()
  46. },
  47. getApprovalInfo () {
  48. getApprovalInfo(this.id).then(({data}) => {
  49. if (data && data.code === '200') {
  50. this.dataForm = data.data
  51. }
  52. })
  53. },
  54. submitUpload () {
  55. this.$refs.upload.submit()
  56. },
  57. handleRemove (file, fileList) {
  58. console.log(file, fileList)
  59. },
  60. handlePreview (file) {
  61. console.log(file)
  62. },
  63. // 表单提
  64. validateField (type) {
  65. this.$refs.dataForm.validateField(type)
  66. }
  67. }
  68. }
  69. </script>
  70. <style scoped>
  71. .my-line{
  72. border-bottom: 1px solid #c0c4cc;
  73. margin-bottom: 10px;
  74. }
  75. .title{
  76. padding: 10px 0 ;
  77. }
  78. </style>