Browse Source

修改bug

chenrui 3 months ago
parent
commit
6f7a82c0c5

+ 1 - 1
src/views/numsGoodsShelves/customerAccount/zeroClearingModal.vue

@@ -52,7 +52,7 @@ export default {
     // 清零保存
     handleSave () {
       const _this = this
-      if (!_this.accountType) {
+      if (!_this.accountType || (_this.accountType && _this.accountType.length === 0)) {
         _this.$message.warning('请选择清空目标')
         return
       }

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

@@ -40,8 +40,7 @@
     </div>
     <!-- 操作按钮 -->
     <div class="table-operator-nobor">
-       <!-- 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-add"  v-if="$hasPermissions('B_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>