Commit b85cf42e authored by liudong1993's avatar liudong1993

1

parent 3dee9245
......@@ -87,7 +87,9 @@
</template>
</el-table-column>
</el-table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="pageSize" :total="total">
</el-pagination>
<addCustomerContact v-if="addTeammanShow" :ContactData="ContactData" @addTeammanOk="addTeammanOk" @closeaddTeamman="addTeammanShow=false"/>
</el-dialog>
......@@ -126,6 +128,10 @@
data() {
return {
loadingOut: false,
pageIndex:1,
pageSize:3,
currentPage: 1,
total: 0,
loadingRom: false,
ContactData:{
InfoID: 0,
......@@ -193,10 +199,11 @@
GetCustomerContactList(){
if(this.customerId === 0) return
this.loading = true
this.crmapipost('/api/Customer/GetContactByCustomerID', {CustomerId: this.customerId}, res=>{
this.crmapipost('/api/Customer/GetCustomerContactPageList', {pageIndex:this.pageIndex,pageSize:this.pageSize,CustomerId: this.customerId}, res=>{
if (res.data.resultCode == 1) {
this.loading = false
this.dataList = res.data.data
this.loading = false;
this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
}else{
this.loading = false
}
......@@ -229,7 +236,11 @@
this.showUpdatePW=false;
}
})
}
},
handleCurrentChange(val) {
this.pageIndex = val;
this.GetCustomerContactList();
},
},
mounted() {
this.GetCustomerContactList()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment