1b746301 by liangyifan
2 parents 4b8afd4d 026d25bc
......@@ -44,8 +44,7 @@
<!-- 表格 -->
<div class="from-clues-content">
<lb-table :page-size="pageData.pageSize" heightNumSetting :current-page.sync="pageData.currentPage"
:total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
@selection-change="handleSelectionChange"
:total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
:column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
......@@ -56,8 +55,10 @@
</template>
<script>
import { datas } from "../ywsqdata.js";
import table from "@/utils/mixin/table";
import { getselectBdcdy } from "@/api/ywbl.js"
export default {
mixins: [table],
props: {
value: { type: Boolean, default: false },
},
......@@ -69,31 +70,22 @@ export default {
bdcdyh: "",
ywh: "",
bdcqzh: "",
sqywbm:'A03100'
sqywbm: 'A03100'
},
qllxs: [],
pageData: {
pageSize: 10,
currentPage: 1,
total: 0,
},
tableData: {
total: 0,
columns: datas.columns(),
data: [
]
data: []
}
}
},
created(){
this.list()
},
methods: {
list(data){
getselectBdcdy({ ...this.queryForm, ...this.pageData,...data }).then(res => {
fetchData () {
getselectBdcdy({ ...this.queryForm, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.pageData.total = total;
this.tableData.total = total;
this.tableData.data = records
}
})
......@@ -105,19 +97,7 @@ export default {
},
closeDialog () {
this.$emit('input', false)
},
handleSizeChange (val) {
this.list({
pageSize: val,
currentPage: this.pageData.currentPage,
});
},
handleCurrentChange (val) {
this.list({ pageSize: this.pageData.pageSize, currentPage: val });
},
handleSelectionChange(val){
},
}
}
}
</script>
......