| | |
| | | <Row class="operation" style="padding-bottom: 20px"> |
| | | <Button @click="addCustomer" type="primary" icon="md-add">添加</Button> |
| | | <Button @click="init" icon="md-refresh">刷新</Button> |
| | | <Input v-model="searchForm.name" suffix="ios-search" @on-change="getCustList" placeholder="输入商户名称搜索" clearable style="width: 250px" |
| | | <Input v-model="searchForm.customerName" suffix="ios-search" @on-change="getCustList" placeholder="输入商户名称搜索" clearable style="width: 250px" |
| | | /> |
| | | </Row> |
| | | <Table :loading="loading" border :columns="columns3" :data="data3" ref="table" |
| | | sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"> |
| | | </Table> |
| | | <Row type="flex" justify="end" class="page"> |
| | | <Page :current="searchForm.pageNumber" :total="total2" |
| | | <Page :current.sync="searchForm.pageNumber" :total="total2" |
| | | :page-size="searchForm.pageSize" |
| | | @on-change="changePage1" |
| | | @on-page-size-change="changePageSize" |
| | |
| | | size="small" |
| | | show-total |
| | | show-elevator |
| | | show-sizer |
| | | ></Page> |
| | | </Row> |
| | | </Modal> |
| | |
| | | changePage1(v) { |
| | | this.searchForm.pageNumber = v; |
| | | this.getCustomerList(this.areaSectionId); |
| | | this.clearSelectAll(); |
| | | }, |
| | | changePageSize(v) { |
| | | this.searchForm.pageSize = v; |
| | |
| | | }, |
| | | getCustList() { |
| | | this.loading = true; |
| | | this.searchForm.pageNumber=1; |
| | | getCustomer(this.searchForm).then((res) => { |
| | | this.loading = false; |
| | | if (res.success) { |
| | |
| | | this.total2 = res.result.total; |
| | | } |
| | | }); |
| | | this.$emit('update:current',this.searchForm.pageNumber); |
| | | }, |
| | | getAllUser(){ |
| | | getDriver({type:1}).then((res)=>{ |
| | |
| | | this.loading = true; |
| | | this.searchForm.areaSectionId=areaSectionId; |
| | | getCustomer(this.searchForm).then((res) => { |
| | | console.log(this.searchForm) |
| | | this.loading = false; |
| | | if (res.success) { |
| | | this.data3 = res.result.records; |
| | |
| | | this.$refs.areaForm.resetFields(); |
| | | delete this.areaForm.id; |
| | | this.customerVisible = true; |
| | | console.log(this.areaSectionId); |
| | | }, |
| | | addCar() { |
| | | this.getAllUser(); |