Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
1 changed file
with
10 additions
and
30 deletions
... | @@ -44,8 +44,7 @@ | ... | @@ -44,8 +44,7 @@ |
44 | <!-- 表格 --> | 44 | <!-- 表格 --> |
45 | <div class="from-clues-content"> | 45 | <div class="from-clues-content"> |
46 | <lb-table :page-size="pageData.pageSize" heightNumSetting :current-page.sync="pageData.currentPage" | 46 | <lb-table :page-size="pageData.pageSize" heightNumSetting :current-page.sync="pageData.currentPage" |
47 | :total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" | 47 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
48 | @selection-change="handleSelectionChange" | ||
49 | :column="tableData.columns" :data="tableData.data"> | 48 | :column="tableData.columns" :data="tableData.data"> |
50 | </lb-table> | 49 | </lb-table> |
51 | </div> | 50 | </div> |
... | @@ -56,8 +55,10 @@ | ... | @@ -56,8 +55,10 @@ |
56 | </template> | 55 | </template> |
57 | <script> | 56 | <script> |
58 | import { datas } from "../ywsqdata.js"; | 57 | import { datas } from "../ywsqdata.js"; |
58 | import table from "@/utils/mixin/table"; | ||
59 | import { getselectBdcdy } from "@/api/ywbl.js" | 59 | import { getselectBdcdy } from "@/api/ywbl.js" |
60 | export default { | 60 | export default { |
61 | mixins: [table], | ||
61 | props: { | 62 | props: { |
62 | value: { type: Boolean, default: false }, | 63 | value: { type: Boolean, default: false }, |
63 | }, | 64 | }, |
... | @@ -69,31 +70,22 @@ export default { | ... | @@ -69,31 +70,22 @@ export default { |
69 | bdcdyh: "", | 70 | bdcdyh: "", |
70 | ywh: "", | 71 | ywh: "", |
71 | bdcqzh: "", | 72 | bdcqzh: "", |
72 | sqywbm:'A03100' | 73 | sqywbm: 'A03100' |
73 | }, | 74 | }, |
74 | qllxs: [], | 75 | qllxs: [], |
75 | pageData: { | ||
76 | pageSize: 10, | ||
77 | currentPage: 1, | ||
78 | total: 0, | ||
79 | }, | ||
80 | tableData: { | 76 | tableData: { |
77 | total: 0, | ||
81 | columns: datas.columns(), | 78 | columns: datas.columns(), |
82 | data: [ | 79 | data: [] |
83 | |||
84 | ] | ||
85 | } | 80 | } |
86 | } | 81 | } |
87 | }, | 82 | }, |
88 | created(){ | ||
89 | this.list() | ||
90 | }, | ||
91 | methods: { | 83 | methods: { |
92 | list(data){ | 84 | fetchData () { |
93 | getselectBdcdy({ ...this.queryForm, ...this.pageData,...data }).then(res => { | 85 | getselectBdcdy({ ...this.queryForm, ...this.pageData }).then(res => { |
94 | if (res.code === 200) { | 86 | if (res.code === 200) { |
95 | let { total, records } = res.result | 87 | let { total, records } = res.result |
96 | this.pageData.total = total; | 88 | this.tableData.total = total; |
97 | this.tableData.data = records | 89 | this.tableData.data = records |
98 | } | 90 | } |
99 | }) | 91 | }) |
... | @@ -105,19 +97,7 @@ export default { | ... | @@ -105,19 +97,7 @@ export default { |
105 | }, | 97 | }, |
106 | closeDialog () { | 98 | closeDialog () { |
107 | this.$emit('input', false) | 99 | this.$emit('input', false) |
108 | }, | 100 | } |
109 | handleSizeChange (val) { | ||
110 | this.list({ | ||
111 | pageSize: val, | ||
112 | currentPage: this.pageData.currentPage, | ||
113 | }); | ||
114 | }, | ||
115 | handleCurrentChange (val) { | ||
116 | this.list({ pageSize: this.pageData.pageSize, currentPage: val }); | ||
117 | }, | ||
118 | handleSelectionChange(val){ | ||
119 | |||
120 | }, | ||
121 | } | 101 | } |
122 | } | 102 | } |
123 | </script> | 103 | </script> | ... | ... |
-
Please register or sign in to post a comment