|
@@ -153,12 +153,13 @@
|
|
|
<el-table-column align="center" prop="studentId" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- <el-dropdown trigger="click" placement="bottom" :hide-on-click="false">
|
|
|
+ <el-dropdown trigger="click" placement="bottom" :hide-on-click="false" >
|
|
|
<span class="el-dropdown-link">
|
|
|
操作<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</span>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-menu slot="dropdown" style="width:100px">
|
|
|
<el-dropdown-item
|
|
|
+ style="width:100px"
|
|
|
v-if="permission('/liveStudentList')&&scope.row.popularizeType!=='ALL'"
|
|
|
@click.native="lookStudentDetail(scope.row)"
|
|
|
>
|
|
@@ -208,7 +209,7 @@
|
|
|
>
|
|
|
</el-dropdown-item>
|
|
|
</auth>
|
|
|
- <el-dropdown-item v-if="permission('liveGoodsMapper/page')" @click.native="setShop(scope.row)">
|
|
|
+ <el-dropdown-item v-if="permission('liveGoodsMapper/page')&&ishowCart(scope.row)" @click.native="setShop(scope.row)">
|
|
|
<el-button type="text"
|
|
|
>商品设置</el-button
|
|
|
>
|
|
@@ -541,6 +542,14 @@ export default {
|
|
|
query: { roomUid: row.roomUid, name: row.roomTitle },
|
|
|
});
|
|
|
},
|
|
|
+ ishowCart(row){
|
|
|
+ let json = JSON.parse(row.roomConfig)
|
|
|
+ if(json.whether_view_shop_cart == 0) {
|
|
|
+ return true
|
|
|
+ }else{
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|