更新员工工作台商品详情

This commit is contained in:
zhangmanman
2021-09-16 17:50:51 +08:00
parent 071a96f245
commit 2a10a0dcec
18 changed files with 9402 additions and 4417 deletions

View File

@@ -40,7 +40,7 @@
<!-- 老板 -->
<boss v-if="!employee" :word-data="workbench"/>
<!-- 员工 -->
<staff v-if="employee"/>
<staff v-if="employee" :tool-list="toolList"/>
</block>
</block>
<!-- 登录提示 -->
@@ -60,6 +60,7 @@
<script>
import { index } from '@/apis/interfaces/store'
import { isallow, appliesQuery } from '@/apis/interfaces/company'
import { employeesTool } from '@/apis/interfaces/employees'
import boss from '@/components/store-boss/store-boss'
import staff from '@/components/store-staff/store-staff'
import userAuth from '@/public/userAuth'
@@ -75,11 +76,20 @@
certification: false,
employee : false,
workbench : {},
company : {}
company : {},
toolList : ''
}
},
onShow(){
this.getIndex()
// 获取员工管理列表
if(this.$store.state.token != ''){
if(!this.employee) {
employeesTool().then(res=>{
this.toolList = res.permission
})
}
}
},
methods: {
// 首页数据