Commit b85cf42e authored by liudong1993's avatar liudong1993

1

parent 3dee9245
...@@ -87,7 +87,9 @@ ...@@ -87,7 +87,9 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </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"/> <addCustomerContact v-if="addTeammanShow" :ContactData="ContactData" @addTeammanOk="addTeammanOk" @closeaddTeamman="addTeammanShow=false"/>
</el-dialog> </el-dialog>
...@@ -126,6 +128,10 @@ ...@@ -126,6 +128,10 @@
data() { data() {
return { return {
loadingOut: false, loadingOut: false,
pageIndex:1,
pageSize:3,
currentPage: 1,
total: 0,
loadingRom: false, loadingRom: false,
ContactData:{ ContactData:{
InfoID: 0, InfoID: 0,
...@@ -193,10 +199,11 @@ ...@@ -193,10 +199,11 @@
GetCustomerContactList(){ GetCustomerContactList(){
if(this.customerId === 0) return if(this.customerId === 0) return
this.loading = true 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) { if (res.data.resultCode == 1) {
this.loading = false this.loading = false;
this.dataList = res.data.data this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
}else{ }else{
this.loading = false this.loading = false
} }
...@@ -229,7 +236,11 @@ ...@@ -229,7 +236,11 @@
this.showUpdatePW=false; this.showUpdatePW=false;
} }
}) })
} },
handleCurrentChange(val) {
this.pageIndex = val;
this.GetCustomerContactList();
},
}, },
mounted() { mounted() {
this.GetCustomerContactList() 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