lilei пре 4 година
родитељ
комит
249ac7a854

+ 1 - 0
src/views/salesManagement/salesQuery/edit.vue

@@ -372,6 +372,7 @@ export default {
       }).then(res => {
         if (res.status == 200) {
           this.resetSearchForm()
+          this.$refs.partQuery.resetCurForm()
           this.$message.success('产品添加成功', 2.5)
         }
         this.isInster = false

+ 4 - 0
src/views/salesManagement/salesQuery/queryPart.vue

@@ -336,6 +336,10 @@ export default {
       this.productType = []
       this.$refs.table.refresh(true)
     },
+    // 刷新当前页面
+    resetCurForm () {
+      this.$refs.table.refresh()
+    },
     filterOption (input, option) {
       return (
         option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0