浏览代码

系统-选择弹窗-添加分页请求参数

jingbb 9 月之前
父节点
当前提交
2fa4487f14

+ 1 - 1
src/views/production/Popup/ClassNamePopup.vue

@@ -155,7 +155,7 @@
             handleTableChange(pagination, filters, sorter) {
                 this.queryParam.pageNo = pagination.current
                 this.queryParam.pageSize = pagination.pageSize
-                this.getData()
+                this.getData(this.queryParam.Org)
             },
             onSelectChange(selectedRowKeys, selectionRows) {
               this.selectedRowKeys = selectedRowKeys;

+ 1 - 1
src/views/production/Popup/OperatorsPopup.vue

@@ -125,7 +125,7 @@
             handleTableChange(pagination, filters, sorter) {
                 this.queryParam.pageNo = pagination.current
                 this.queryParam.pageSize = pagination.pageSize
-                this.getData()
+                this.getData(this.queryParam.Org)
             },
             onSelectChange(selectedRowKeys, selectionRows) {
               this.selectedRowKeys = selectedRowKeys;

+ 1 - 1
src/views/production/Popup/deparmentPopup.vue

@@ -125,7 +125,7 @@
             handleTableChange(pagination, filters, sorter) {
                 this.queryParam.pageNo = pagination.current
                 this.queryParam.pageSize = pagination.pageSize
-                this.getData()
+                this.getData(this.queryParam.Org)
             },
             onSelectChange(selectedRowKeys, selectionRows) {
               this.selectedRowKeys = selectedRowKeys;

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

@@ -156,6 +156,7 @@
                 this.dataSource = [] 
                 this.selectedRowKeys = []
                 this.selectedRows = []
+                this.queryParam ={}
             },
             handleOk(){
                 if(this.selectedRowKeys.length!==1){
@@ -199,7 +200,7 @@
             handleTableChange(pagination, filters, sorter) {
                 this.queryParam.pageNo = pagination.current
                 this.queryParam.pageSize = pagination.pageSize
-                this.getData()
+                this.getData(this.queryParam.Org)
             },
             onSelectChange(selectedRowKeys, selectionRows) {
               this.selectedRowKeys = selectedRowKeys;

+ 1 - 1
src/views/production/Popup/projectPopup.vue

@@ -156,7 +156,7 @@
             handleTableChange(pagination, filters, sorter) {
                 this.queryParam.pageNo = pagination.current
                 this.queryParam.pageSize = pagination.pageSize
-                this.getData()
+                this.getData(this.queryParam.Org)
             },
             onSelectChange(selectedRowKeys, selectionRows) {
               this.selectedRowKeys = selectedRowKeys;

+ 13 - 13
src/views/production/Popup/unitPopup.vue

@@ -39,19 +39,19 @@
         </div>
       <a-form-model ref="formRef">
             <a-table
-            ref="table"
-            size="middle"
-            bordered
-            id='sonList1'
-            :loading="loading"
-            :columns="columns"
-            rowKey="rowIndex"
-            :dataSource="dataSource"
-            :pagination="pagination"
-            :scroll="{ x: 800, y: 300 }"
-            :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
-            @change="handleTableChange"
-            :customRow ="clickRow"
+                ref="table"
+                size="middle"
+                bordered
+                id='sonList1'
+                :loading="loading"
+                :columns="columns"
+                rowKey="rowIndex"
+                :dataSource="dataSource"
+                :pagination="pagination"
+                :scroll="{ x: 800, y: 300 }"
+                :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+                @change="handleTableChange"
+                :customRow ="clickRow"
             >
             </a-table>
         </a-form-model>