You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
<template>
|
|
<div>
|
|
<el-card v-if="userType==='oper'"
|
|
shadow="never"
|
|
class="aui-card--fill">
|
|
<div class="mod-home">
|
|
<h3>{{ $t('home.desc.title') }}</h3>
|
|
<ul>
|
|
<li v-for="item in $t('home.desc.list')"
|
|
:key="item"
|
|
v-html="item"></li>
|
|
</ul>
|
|
</div>
|
|
</el-card>
|
|
|
|
<customer-info @changeCustomerName="changeCustomerName"
|
|
v-if="userType==='work'"></customer-info>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import CustomerInfo from './customer/manage/CustomerInfo'
|
|
export default {
|
|
data () {
|
|
return {
|
|
// i18nMessages: messages,
|
|
updatePassowrdVisible: false,
|
|
customerName: localStorage.getItem('customerName'),
|
|
userType: localStorage.getItem('userType')
|
|
|
|
}
|
|
},
|
|
components: {
|
|
CustomerInfo
|
|
},
|
|
mounted () {
|
|
//关闭所有标签页
|
|
// tabs, 关闭全部
|
|
this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name === 'home')
|
|
},
|
|
methods: {
|
|
changeCustomerName (customerName) {
|
|
this.$emit('changeCustomerName', customerName)
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|