瀏覽代碼

修改bug

chenrui 3 月之前
父節點
當前提交
50d33659ee

+ 2 - 1
src/views/promotionManagement/subsidizedProducts/list.vue

@@ -40,7 +40,8 @@
     </div>
     <!-- 操作按钮 -->
     <div class="table-operator-nobor">
-      <a-button id="subsidizedProducts-add"  v-if="$hasPermissions('B_subsidizedProducts_add')" type="primary" class="button-error" @click="openAddModal=true">新增</a-button>
+       <!-- v-if="$hasPermissions('B_subsidizedProducts_add')" -->
+      <a-button id="subsidizedProducts-add" type="primary" class="button-error" @click="openAddModal=true">新增</a-button>
       <a-button id="subsidizedProducts-edit"  v-if="$hasPermissions('B_subsidizedProducts_edit')" type="primary" class="button-info" @click="handleEdit()">批量编辑</a-button>
       <a-button id="subsidizedProducts-del"  v-if="$hasPermissions('B_subsidizedProducts_del')" type="primary" class="button-error" ghost @click="handleDel()">批量删除</a-button>
       <a-button id="subsidizedProducts-import"  v-if="$hasPermissions('B_subsidizedProducts_import')" style="margin-left:5px;" @click="openGuideModal=true">导入</a-button>

+ 3 - 3
src/views/promotionManagement/subsidizedProducts/subsidyAddModal.vue

@@ -190,7 +190,7 @@ export default {
         this.$message.info('产品抵扣金额不能为空')
         return
       }
-      let  chooseList =JSON.parse(JSON.stringify(this.rowSelectionInfo.selectedRows))
+      const chooseList = JSON.parse(JSON.stringify(this.rowSelectionInfo.selectedRows))
       const newList = chooseList.map(item => {
         item.subsidyAmount = this.subsidyAmount
         delete item.id
@@ -210,8 +210,8 @@ export default {
       this.subsidyAmount = undefined
       this.productType = []
       this.category = []
-      // this.rowSelectionInfo = null
-      // this.$refs.table.clearSelected()
+      this.rowSelectionInfo = null
+      this.$refs.table.clearSelected()
       this.$refs.table.refresh()
     }
   },