Kaynağa Gözat

系统-选择弹窗-查询数据时清空勾选数据

jingbb 10 ay önce
ebeveyn
işleme
e7ac811494

+ 2 - 0
src/views/production/Popup/ClassNamePopup.vue

@@ -106,6 +106,8 @@
             },
             getData(data){
                 this.queryParam.Org = data
+                this.selectedRowKeys = []
+                this.selectedRows = []
                 getAction('/production/safetyStock/selectCategory',this.queryParam).then(res=>{
                         if(res.success){
                           this.dataSource = res.result.records

+ 2 - 0
src/views/production/Popup/OperatorsPopup.vue

@@ -106,6 +106,8 @@
             },
             getData(data){
                 this.queryParam.Org = data
+                this.selectedRowKeys = []
+                this.selectedRows = []
                 getAction('/production/safetyStock/selectOperators',this.queryParam).then(res=>{
                         if(res.success){
                           this.dataSource = res.result.records

+ 2 - 0
src/views/production/Popup/deparmentPopup.vue

@@ -106,6 +106,8 @@
             },
             getData(data){
                 this.queryParam.Org = data
+                this.selectedRowKeys = []
+                this.selectedRows = []
                 getAction('/production/safetyStock/selectDepartment',this.queryParam).then(res=>{
                         if(res.success){
                           this.dataSource = res.result.records

+ 2 - 0
src/views/production/Popup/inventoryPopup.vue

@@ -128,6 +128,8 @@
             getData(data){
                 this.loading = true 
                 this.queryParam.Org = data
+                this.selectedRowKeys = []
+                this.selectedRows = []
                 getAction('/production/safetyStock/selectItemMaster',this.queryParam).then(res=>{
                         if(res.success){
                           this.dataSource = res.result.records

+ 2 - 0
src/views/production/Popup/inventoryTypePopup.vue

@@ -92,6 +92,8 @@
                 }
             },
             getData(data){
+                this.selectedRowKeys = []
+                this.selectedRows = []
                 getAction('/production/safetyStock/selectCategory',{Org:data}).then(res=>{
                         if(res){
                           this.dataSource = res

+ 2 - 0
src/views/production/Popup/organizationPopup.vue

@@ -105,6 +105,8 @@
                 }
             },
             getData(){
+                this.selectedRowKeys = []
+                this.selectedRows = []
                 getAction('/production/safetyStock/selectOrganization',this.queryParam).then(res=>{
                         if(res.success){
                           this.dataSource = res.result.records

+ 2 - 0
src/views/production/Popup/projectPopup.vue

@@ -112,6 +112,8 @@
             },
             getData(data){
                 this.queryParam.Org = data
+                this.selectedRowKeys = []
+                this.selectedRows = []
                 getAction('/production/safetyStock/selectProject',this.queryParam).then(res=>{
                         if(res.success){
                           this.dataSource = res.result.records