zhangyanpeng
2020-02-11 fb897b38980a0d8e043c0415e84f3677e7e0cef0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<template>
  <div class="class_dataImport">
   
     <div style="height: 55vh; padding:0px; box-sizing:boder-box;">
       <div style="width: 1px; height: 1px;" align="center">
                       <substep  v-if="isShow1" ref="substep_zj" v-bind:xmId="xmId"></substep>
       </div>
      <div style="width: 100%; height: 100%;" align="center">
        <substepReadOnly v-if="isShow" v-bind:form_objs="form_objs" v-bind:showData_="showData_"></substepReadOnly>
      </div>
    </div>
         
  </div>
</template>
 
<script>
import substep from './portion/substep.vue'
import substepReadOnly from './portion/substepReadOnly.vue'
export default {
  name: 'dataImport',
 props:{
       rowData:{
           type: Object,
           required: true
       }
 },
    components: {
        substepReadOnly,
        substep
    },
  data () {
    return {
        userId: undefined,
        assign: undefined,
            loading_nextStep: false,
            isShow1: false,
            isShow: false,
            loading_cancel: false,
            
            ruleForm: {},
            xmId: null,
            showData_: {},
            form_objs: {},
        
        }
  },
mounted() {
    
    this.userId = localStorage.getItem('userId');
    this.assign = localStorage.getItem('assign');
    this.loadData();
},
  methods:{
        loadData() {
            
            this.xmId = this.rowData.id;
            this.isShow1 = true;
            let me = this;
            
            let interval = setInterval(function(){
                let isFinish = me.$refs.substep_zj.finish;
                if(isFinish) {
                    me.showData_ = me.$refs.substep_zj.showData;
                    me.form_objs = me.$refs.substep_zj.form_;
                    me.isShow = true;
                    clearInterval(interval);
                }
                
            },1000);
            
        },
  }
}
</script>
 
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
  .class_dataImport .el-tabs__content{
    position: inherit;
  }
 
  .class_dataImport .grid-content {
    border-radius: 4px;
    height: 60px;
    min-height: 26px; 
  }
  .class_dataImport .main-row .grid-content {
    line-height: 60px;
  }
 
  .class_dataImport .z_grid-content2{
    display:table-cell;
    vertical-align:bottom;
    color: #2c3e50;
    height: 50px;
  }
 
</style>