chenrui 2 rokov pred
rodič
commit
e45cbfbb25

+ 0 - 1
src/views/promotionRulesManagement/promotionManagement/addModal.vue

@@ -169,7 +169,6 @@ export default {
     },
     // 添加经销商
     handleAddDealer (list) {
-      console.log('2222222222222222222222222222:', list)
       this.chooseDealerList = list.map(con => {
         return {
           buyerSn: con.dealerSn,

+ 0 - 1
src/views/promotionRulesManagement/promotionManagement/chooseDealer.vue

@@ -233,7 +233,6 @@ export default {
         _this.$message.warning('请在列表勾选后再进行批量操作!')
         return
       }
-      console.log('111111111111111111111111:', _this.rowSelectionInfo)
       const dealerSnList = _this.rowSelectionInfo.selectedRows
       // const newDealerSnList = dealerSnList.map(con => {
       //   const obj = {

+ 5 - 5
src/views/promotionRulesManagement/promotionManagement/list.vue

@@ -46,7 +46,7 @@
           </a-row>
         </a-form>
         <!-- 操作按钮 -->
-        <div class="table-operator">
+        <div class="table-operator" v-if="$hasPermissions('B_promotionManagement_add')">
           <a-button type="primary" class="button-error" @click="openAddModal = true">新增</a-button>
         </div>
       </div>
@@ -117,27 +117,27 @@
               type="link"
               class="button-warning"
               @click="promotionEdit(record)"
-              v-if="record.state=='UNPUBLISH' ||record.state=='CLOSE'"
+              v-if="(record.state=='UNPUBLISH' || record.state=='CLOSE') && $hasPermissions('B_promotionManagement_add')"
               id="promotion-edit-btn">促销编辑</a-button>
             <a-button
               size="small"
               type="link"
               class="button-warning"
               @click="handleRelease(record,'edit')"
-              v-if="record.state=='PUBLISH' || record.state=='CLOSE'"
+              v-if="(record.state=='PUBLISH' || record.state=='CLOSE')&&$hasPermissions('B_promotionManagement_content')"
               id="promotion-modify-btn">发布修改</a-button>
             <a-button
               size="small"
               type="link"
               class="button-info"
               @click="handleRelease(record,'add')"
-              v-if="record.state=='UNPUBLISH'"
+              v-if="record.state=='UNPUBLISH'&&$hasPermissions('B_promotionManagement_content')"
               id="promotion-release-btn">促销发布</a-button>
             <a-button
               size="small"
               type="link"
               class="button-error"
-              v-if="record.state=='UNPUBLISH'"
+              v-if="record.state=='UNPUBLISH'&&$hasPermissions('B_promotionManagement_del')"
               @click="handleDel(record)"
               id="promotion-del-btn">删除</a-button>
             <span v-if="record.state=='End'">--</span>