|
@@ -2,15 +2,22 @@
|
|
<el-container class="workspace-dashboard">
|
|
<el-container class="workspace-dashboard">
|
|
<el-main>
|
|
<el-main>
|
|
<CommonUse class="main-module"></CommonUse>
|
|
<CommonUse class="main-module"></CommonUse>
|
|
- <BusinessProfile class="main-module"></BusinessProfile>
|
|
|
|
- <div class="main-module card-list-module">
|
|
|
|
- <MyCustomer></MyCustomer>
|
|
|
|
- <CustomerWatcher></CustomerWatcher>
|
|
|
|
|
|
+ <BusinessProfile v-if="businessProfileShow" class="main-module"></BusinessProfile>
|
|
|
|
+ <div class="main-module card-list-module" v-if="myCustomerShow || customerWatcherShow">
|
|
|
|
+ <MyCustomer v-if="myCustomerShow"></MyCustomer>
|
|
|
|
+ <CustomerWatcher v-if="customerWatcherShow"></CustomerWatcher>
|
|
</div>
|
|
</div>
|
|
<div class="main-module card-list-module">
|
|
<div class="main-module card-list-module">
|
|
<SubscribeList></SubscribeList>
|
|
<SubscribeList></SubscribeList>
|
|
<MyCollections></MyCollections>
|
|
<MyCollections></MyCollections>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="main-module card-list-module">
|
|
|
|
+ <ProjectFollow></ProjectFollow>
|
|
|
|
+ <EntFollow></EntFollow>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="main-module card-list-module" v-if="dataReportShow">
|
|
|
|
+ <DataReport></DataReport>
|
|
|
|
+ </div>
|
|
</el-main>
|
|
</el-main>
|
|
<el-aside width="396px">
|
|
<el-aside width="396px">
|
|
<MessageTips></MessageTips>
|
|
<MessageTips></MessageTips>
|
|
@@ -19,6 +26,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { mapGetters } from 'vuex'
|
|
import { Container, Aside, Main } from 'element-ui'
|
|
import { Container, Aside, Main } from 'element-ui'
|
|
import MessageTips from './components//MessageTips.vue'
|
|
import MessageTips from './components//MessageTips.vue'
|
|
import CommonUse from './components/CommonUse.vue'
|
|
import CommonUse from './components/CommonUse.vue'
|
|
@@ -27,6 +35,9 @@ import MyCustomer from './components/MyCustomer.vue'
|
|
import CustomerWatcher from './components/CustomerWatcher.vue'
|
|
import CustomerWatcher from './components/CustomerWatcher.vue'
|
|
import SubscribeList from './components/SubscribeList.vue'
|
|
import SubscribeList from './components/SubscribeList.vue'
|
|
import MyCollections from './components/MyCollections.vue'
|
|
import MyCollections from './components/MyCollections.vue'
|
|
|
|
+import ProjectFollow from './components/ProjectFollow.vue'
|
|
|
|
+import EntFollow from './components/EntFollow.vue'
|
|
|
|
+import DataReport from './components/DataReport.vue'
|
|
export default {
|
|
export default {
|
|
name: 'WorkspaceDashboard',
|
|
name: 'WorkspaceDashboard',
|
|
components: {
|
|
components: {
|
|
@@ -39,10 +50,18 @@ export default {
|
|
MyCustomer,
|
|
MyCustomer,
|
|
CustomerWatcher,
|
|
CustomerWatcher,
|
|
SubscribeList,
|
|
SubscribeList,
|
|
- MyCollections
|
|
|
|
|
|
+ MyCollections,
|
|
|
|
+ ProjectFollow,
|
|
|
|
+ DataReport,
|
|
|
|
+ EntFollow
|
|
},
|
|
},
|
|
- data () {
|
|
|
|
- return {}
|
|
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters('workspace', [
|
|
|
|
+ 'businessProfileShow',
|
|
|
|
+ 'myCustomerShow',
|
|
|
|
+ 'customerWatcherShow',
|
|
|
|
+ 'dataReportShow'
|
|
|
|
+ ])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -61,11 +80,13 @@ export default {
|
|
}
|
|
}
|
|
.card-list-module {
|
|
.card-list-module {
|
|
display: flex;
|
|
display: flex;
|
|
- .list-card {
|
|
|
|
- flex: 1;
|
|
|
|
- max-width: 49%;
|
|
|
|
- &:not(:first-of-type) {
|
|
|
|
- margin-left: 16px;
|
|
|
|
|
|
+ ::v-deep {
|
|
|
|
+ .list-card {
|
|
|
|
+ flex: 1;
|
|
|
|
+ max-width: 49%;
|
|
|
|
+ &:not(:first-of-type) {
|
|
|
|
+ margin-left: 16px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|