|
@@ -1,8 +1,7 @@
|
|
|
<template>
|
|
|
- <div class="pa-3 white" :class="{content: switchShow}">
|
|
|
- <m-filter switchover @search="handleSearch" v-model="switchShow"></m-filter>
|
|
|
+ <div class="pa-3 white">
|
|
|
+ <m-filter @search="handleSearch"></m-filter>
|
|
|
<m-table
|
|
|
- v-if="!switchShow"
|
|
|
class="mt-3"
|
|
|
:loading="loading"
|
|
|
:headers="headers"
|
|
@@ -45,9 +44,6 @@
|
|
|
<v-chip v-for="chip in item.alias" :key="chip">{{ chip }}</v-chip>
|
|
|
</template>
|
|
|
</m-table>
|
|
|
- <div v-else style="flex: 1" class="mt-3">
|
|
|
- <m-graph-list ref="graph" download-image-file-name="数据资源图谱"></m-graph-list>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -55,7 +51,6 @@
|
|
|
import MFilter from '../../dataGovernance/components/Filter'
|
|
|
import MTable from '@/components/List/table.vue'
|
|
|
import MGraphDrill from '../components/mGraphDrill'
|
|
|
-import MGraphList from '../components/mGraphList'
|
|
|
import { api } from '@/api/dataGovernance'
|
|
|
import {
|
|
|
frequency,
|
|
@@ -63,11 +58,10 @@ import {
|
|
|
} from '@/utils/dataGovernance'
|
|
|
export default {
|
|
|
name: 'data-book-resource',
|
|
|
- components: { MFilter, MTable, MGraphDrill, MGraphList },
|
|
|
+ components: { MFilter, MTable, MGraphDrill },
|
|
|
data () {
|
|
|
return {
|
|
|
api,
|
|
|
- switchShow: false,
|
|
|
loading: false,
|
|
|
show: false,
|
|
|
queryData: {
|
|
@@ -126,12 +120,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleSearch (val) {
|
|
|
- if (this.switchShow) {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.graph.init(val)
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
Object.assign(this.queryData, val)
|
|
|
this.pageInfo.current = 1
|
|
|
this.init()
|