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.3 KiB

<template>
<view>
<u-navbar :is-back="false" back-text="返回" class="overflow-hidden">
<view class="flex justify-start px-3 font-bold" style="width: 460rpx">
<view class="truncate">{{ project.name }}</view>
</view>
<view class="mr-2" slot="right">
<u-icon class="m-1" name="xuanzhong2" custom-prefix="custom-icon" size="20px" @click="lwbs"></u-icon>
<u-icon class="m-1" name="shuaxin1" custom-prefix="custom-icon" size="20px" @click="projectOverview"></u-icon>
<u-icon class="m-1" name="home" custom-prefix="custom-icon" size="20px" @click="openIndex"></u-icon>
<u-icon class="m-1" name="xuanxiang" custom-prefix="custom-icon" size="20px" @click="operation"></u-icon>
</view>
</u-navbar>
</view>
</template>
<script>
import { mapGetters, mapState } from 'vuex';
export default {
name: 'ProjectTitle',
computed: {
...mapState('project', ['project']),
...mapGetters('user', ['userId']),
},
methods: {
// LWBS提示
lwbs() {
// this.$t.ui.showToast('LWBS');
},
//项目概览
projectOverview() {
// this.$t.ui.showToast('项目概览');
},
// 回到首页
openIndex() {
this.$u.route('/', { u: this.userId });
},
//操作
operation() {
// this.$t.ui.showToast('操作');
},
},
};
</script>