feat(src/views/home/index.vue): 主页新增标准品路由跳转

duizhaopin_ui
duan 2 years ago
parent c65bc1fe14
commit 258c1220fd

@ -8,21 +8,21 @@
<div class="home-content">
<div class="home-pic">
<div class="home-pic-item" @click="picClick('reagent')"><img src="@/assets/2-主界面/试剂管理.png" alt=""></div>
<div key="2" class="home-pic-item"><img src="@/assets/2-主界面/standard.png" alt=""></div>
<div key="2" class="home-pic-item" @click="picClick('standard')"><img src="@/assets/2-主界面/standard.png" alt=""></div>
<div key="3" class="home-pic-item"><img src="@/assets/2-主界面/耗材管理.png" alt=""></div>
<div key="4" class="home-pic-item"><img src="@/assets/2-主界面/instrument.png" alt=""></div>
<div key="5" class="home-pic-item" @click="picClick('user')"><img src="@/assets/2-主界面/用户管理.png" alt=""></div>
</div>
<div class="home-menu">
<div v-for="item in 8" :key="item" class="home-menu-item">
<div class="home-menu-item-img"><img src="@/assets/2-主界面/库存盘点.png" alt=""></div>
<div class="home-menu-item-text">库存盘点</div>
</div>
<div class="home-menu-item" @click="$router.push('/shortcut')">
<div class="home-menu-item-img"><img src="@/assets/2-主界面/更多.png" alt=""></div>
<div class="home-menu-item-text">更多</div>
</div>
</div>
<!-- <div class="home-menu">-->
<!-- <div v-for="item in 8" :key="item" class="home-menu-item">-->
<!-- <div class="home-menu-item-img"><img src="@/assets/2-主界面/库存盘点.png" alt=""></div>-->
<!-- <div class="home-menu-item-text">库存盘点</div>-->
<!-- </div>-->
<!-- <div class="home-menu-item" @click="$router.push('/shortcut')">-->
<!-- <div class="home-menu-item-img"><img src="@/assets/2-主界面/更多.png" alt=""></div>-->
<!-- <div class="home-menu-item-text">更多</div>-->
<!-- </div>-->
<!-- </div>-->
</div>
</div>
</template>
@ -33,6 +33,7 @@ export default {
methods: {
picClick(name) {
const r = this.$store.getters.opts.find(item => item.name === name)
console.log(r)
this.$router.push(r.router.path)
}
}

Loading…
Cancel
Save