14 changed files with 215 additions and 84 deletions
@ -0,0 +1,14 @@ |
|||
<template> |
|||
<div> |
|||
<customer-info></customer-info> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import CustomerInfo from './customer/manage/CustomerInfo' |
|||
export default { |
|||
components: { |
|||
CustomerInfo |
|||
} |
|||
} |
|||
</script> |
@ -1,15 +1,47 @@ |
|||
<template> |
|||
<el-card shadow="never" class="aui-card--fill"> |
|||
<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> |
|||
<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> |
|||
|
Binary file not shown.
Loading…
Reference in new issue