lilei 3 tahun lalu
induk
melakukan
7a66d02876

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1654053785968
+  "version": 1654054754862
 }

+ 2 - 2
src/views/productManagement/productInfo/list.vue

@@ -53,7 +53,7 @@
       <div class="table-operator">
         <a-button v-if="$hasPermissions('B_product_dealerProduct_add')" id="productInfoList-add" type="primary" class="button-error" @click="handleEdit()">新增</a-button>
         <!-- <a-button id="productInfoList-import" @click="handleImport" style="margin: 0 15px;">批量导入产品</a-button> -->
-        <a-dropdown>
+        <a-dropdown v-if="$hasPermissions('B_product_dealerProduct_enable')">
           <a-menu slot="overlay" @click="handleMenuClick">
             <a-menu-item key="1"> 批量启用</a-menu-item>
             <a-menu-item key="2"> 批量禁用</a-menu-item>
@@ -68,7 +68,7 @@
         ref="table"
         :style="{ height: tableHeight + 84.5 + 'px' }"
         size="small"
-        :row-selection="rowSelection"
+        :row-selection="$hasPermissions('B_product_dealerProduct_enable')?rowSelection:null"
         @rowSelection="rowSelectionFun"
         rowKeyName="productSn"
         :rowKey="(record) => record.productSn"

+ 2 - 2
src/views/productManagement/productInfoJg/list.vue

@@ -49,7 +49,7 @@
       </a-form>
     </div>
     <!-- 操作按钮 -->
-    <div class="table-operator">
+    <div class="table-operator" v-if="$hasPermissions('B_JgProduct_enable')">
       <a-dropdown>
         <a-menu slot="overlay" @click="handleMenuClick">
           <a-menu-item key="1"> 批量启用</a-menu-item>
@@ -65,7 +65,7 @@
       ref="table"
       :style="{ height: tableHeight+84.5+'px' }"
       size="small"
-      :row-selection="rowSelection"
+      :row-selection="$hasPermissions('B_JgProduct_enable')?rowSelection:null"
       @rowSelection="rowSelectionFun"
       rowKeyName="productSn"
       :rowKey="(record) => record.productSn"