chenrui hai 9 meses
pai
achega
69e3bca009

+ 2 - 1
src/views/easyPassManagement/shoppingManagement/chooseProduct.vue

@@ -13,7 +13,7 @@
       </a-page-header>
       <a-card size="small" :bordered="false" class="chooseProductEdit-cont table-page-search-wrapper">
         <!-- 主要内容 -->
-        <main-content :itemCategorySn="$route.params.sn"></main-content>
+        <main-content ref="mainCon" :itemCategorySn="$route.params.sn"></main-content>
       </a-card>
     </a-spin>
   </div>
@@ -40,6 +40,7 @@ export default {
     //  返回列表并刷新
     handleBack () {
       this.$router.push({ name: 'shoppingManagementList', query: { closeLastOldTab: true } })
+      this.$refs.mainCon.closeProductModal()
     },
     // 获取目录详情
     getCategoryDetail () {

+ 1 - 2
src/views/easyPassManagement/shoppingProducts/list.vue

@@ -305,6 +305,7 @@ export default {
     // 关闭选择弹窗
     closeProductModal () {
       this.showProModal = false
+      this.chooseDataList = []
     },
     // 导入产品
     handleAddProduct () {
@@ -431,8 +432,6 @@ export default {
       if (!_this.itemCategorySn) {
         _this.getCategoryList()
       }
-      _this.chooseDataList = []
-      _this.showProModal = false
       _this.$nextTick(() => { // 页面渲染完成后的回调
         _this.setTableH()
       })