소스 검색

鸿森堂--隐藏按钮

wjj 4 일 전
부모
커밋
76933fe12e
2개의 변경된 파일13개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 0
      .env.prod-hst
  2. 10 2
      src/views/his/company/index.vue

+ 3 - 0
.env.prod-hst

@@ -50,3 +50,6 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
 
 #上面地址是为了解决跨越,用nginx进行了转发
 VUE_APP_LIVE_WS_URL = wss://websocket.schstyl.cn/ws
+
+# 鸿森堂
+VUE_APP_FS_USER_INFO = 'hst'

+ 10 - 2
src/views/his/company/index.vue

@@ -201,6 +201,7 @@
             type="text"
             icon="el-icon-edit"
             @click="handleRedRecharge(scope.row)"
+            v-if="hstInfo !== 'hst'"
             v-hasPermi="['his:company:redRecharge']"
           >红包充值
           </el-button>
@@ -210,6 +211,7 @@
             icon="el-icon-edit"
             @click="handleRedDeduct(scope.row)"
             v-hasPermi="['his:company:redDeduct']"
+            v-if="hstInfo !== 'hst'"
           >红包扣款
           </el-button>
           <el-button
@@ -218,19 +220,21 @@
             icon="el-icon-edit"
             @click="handleRevenue(scope.row)"
             v-hasPermi="['company:company:revenue']"
+            v-if="hstInfo !== 'hst'"
           >分账配置</el-button>
 
           <el-button
-            v-if="!scope.row.accountId"
+            v-if="!scope.row.accountId && hstInfo !== 'hst'"
             size="mini"
             type="text"
             icon="el-icon-link"
             @click="handleBindXsy(scope.row)"
+            
           >绑定销售易
           </el-button>
 
           <el-button
-            v-if="scope.row.accountId"
+            v-if="scope.row.accountId && hstInfo !== 'hst'"
             size="mini"
             type="text"
             icon="el-icon-close"
@@ -245,6 +249,7 @@
             icon="el-icon-edit"
             @click="handleRedPacket(scope.row)"
             v-hasPermi="['company:company:redPacket']"
+            v-if="hstInfo !== 'hst'"
           >绑定红包商户</el-button>
 
           <el-button
@@ -253,6 +258,7 @@
             icon="el-icon-edit"
             @click="handleAppRedPacket(scope.row)"
             v-hasPermi="['company:company:AppRedPacket']"
+            v-if="hstInfo !== 'hst'"
           >绑定app提现商户</el-button>
 
           <el-button
@@ -260,6 +266,7 @@
             type="text"
             icon="el-icon-edit"
             @click="handleSidebarChange(scope.row)"
+            v-if="hstInfo !== 'hst'"
           >侧边栏封面设置</el-button>
 
 
@@ -964,6 +971,7 @@ export default {
   name: 'Company',
   data() {
     return {
+      hstInfo: process.env.VUE_APP_FS_USER_INFO,
       uploadUrl:process.env.VUE_APP_BASE_API+"/common/uploadOSS",
       redPacketConfigOpen:{
         open: false,