Blame view

juvenile-prosecution-vue/src/views/business/SourceCom.vue 976 Bytes
416e1e27   wxy   未检人员删除、源数据管理查看
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
  <template>
    <a-card :bordered="false">
      <source-statistics ref="sourceStatistics"  v-if="show" @to_source_list="toSourceList"/>
      <source-list ref="sourceList" v-if="!show" @to_statistics="toStatistics"/>
    </a-card>
  </template>
  
  <script>
    import '@/assets/less/TableExpand.less'
    import SourceStatistics from './SourceStatistics'
    import SourceList from './SourceList'
  
    export default {
      name: 'SourceCom',
      components: {
        SourceStatistics,SourceList
      },
      data () {
        return {
          description: '来源数据管理管理页面',
          show:true,
        }
      },
      created() {
        this.show=true;
      },
      computed: {
      },
      methods: {
        toStatistics(){
          this.show=true;
        },
        toSourceList(record){
          this.show=false;
          this.$nextTick(() => {
            this.$refs.sourceList.getData(record.name);
          })
        }
      }
    }
  </script>
  <style scoped>
    @import '~@assets/less/common.less';
  </style>