Sfoglia il codice sorgente

调整重置问题

yfh 2 settimane fa
parent
commit
265e702842
1 ha cambiato i file con 8 aggiunte e 3 eliminazioni
  1. 8 3
      src/views/hisStore/storeProduct/index.vue

+ 8 - 3
src/views/hisStore/storeProduct/index.vue

@@ -38,7 +38,7 @@
         </el-select>
       </el-form-item>
       <el-form-item label="所属公司">
-        <el-select style="width: 240px" v-model="companyId" multiple placeholder="请选择企业" clearable size="small" >
+          <el-select style="width: 240px" v-model="companyId" multiple placeholder="请选择企业" clearable size="small" >
           <el-option
             v-for="item in companyOptions"
             :key="item.companyId"
@@ -1577,13 +1577,18 @@ export default {
     },
     /** 搜索按钮操作 */
     handleQuery() {
-      this.queryParams.pageNum = 1;
-      this.queryParams.companyIds = this.companyId +''
+      this.queryParams.pageNum = 1
+      if (this.companyId){
+        this.queryParams.companyIds = this.companyId +''
+      }
       this.getList();
     },
     /** 重置按钮操作 */
     resetQuery() {
       this.resetForm("queryForm");
+      this.companyId = null;
+      this.queryParams.companyIds = null;
+      this.queryParams.storeIds = null;
       this.handleQuery();
     },
     // 多选框选中数据