Commit 3c7b9713 authored by 黄奎's avatar 黄奎

页面修改

parent a834bf06
...@@ -1179,13 +1179,6 @@ ...@@ -1179,13 +1179,6 @@
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let x = res.data.data; let x = res.data.data;
// this.customerInfo=res.data.data
// if(this.customerInfo.address.indexOf(',')!=-1){
// this.customerInfo.address=this.customerInfo.address.split(',')[1]
// }else{
// this.customerInfo.address=this.customerInfo.address
// }
// this.contact=res.data.data.contact
this.updateMsg.contactNumber = x.contactNumber this.updateMsg.contactNumber = x.contactNumber
this.updateMsg.CustomerName = x.customerName this.updateMsg.CustomerName = x.customerName
this.updateMsg.Contact = x.contactName this.updateMsg.Contact = x.contactName
...@@ -1220,9 +1213,6 @@ ...@@ -1220,9 +1213,6 @@
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.cityList = res.data.data; this.cityList = res.data.data;
// this.regionList=[]
// this.updateMsg.City=''
// this.updateMsg.District=''
} }
}, err => {}) }, err => {})
}, },
...@@ -1232,8 +1222,7 @@ ...@@ -1232,8 +1222,7 @@
"level": 3 "level": 3
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.regionList = res.data.data this.regionList = res.data.data;
// this.updateMsg.District=''
} }
}, err => {}) }, err => {})
}, },
...@@ -1324,7 +1313,6 @@ ...@@ -1324,7 +1313,6 @@
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if (res.data.data.customerInfo.customerId > 0) { if (res.data.data.customerInfo.customerId > 0) {
this.isOldPerson = true this.isOldPerson = true
let x = res.data.data.customerInfo let x = res.data.data.customerInfo
this.addMsg = x this.addMsg = x
...@@ -1459,7 +1447,6 @@ ...@@ -1459,7 +1447,6 @@
blank: 'y' blank: 'y'
} }
}) })
}, },
goUrlT(path, id) { goUrlT(path, id) {
this.$router.push({ this.$router.push({
...@@ -1477,17 +1464,19 @@ ...@@ -1477,17 +1464,19 @@
this.msg.CustomerStatus = type this.msg.CustomerStatus = type
this.getList() this.getList()
}, },
getList() { // 获取列表数据 // 获取列表数据
getList() {
this.dataList = []
this.loading = true;
this.apipost('app_get_my_customer_list', this.msg, res => { this.apipost('app_get_my_customer_list', this.msg, res => {
if (res.data.resultCode == 0) { this.loading = false;
this.loading = false; if (res.data.resultCode == 1) {
this.dataList = []
} else {
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
this.loading = false;
} }
}, err => {}) }, err => {
this.loading = false;
})
}, },
getCustomerBrandList() { // 获取品牌 getCustomerBrandList() { // 获取品牌
this.apipost('app_get_customer_brand', {}, res => { this.apipost('app_get_customer_brand', {}, res => {
...@@ -1519,7 +1508,6 @@ ...@@ -1519,7 +1508,6 @@
if (this.saveMsg && this.saveMsg.length > 0) { if (this.saveMsg && this.saveMsg.length > 0) {
this.addMsg.SigningFile = this.saveMsg[0].Path this.addMsg.SigningFile = this.saveMsg[0].Path
} }
} }
if (this.updateMsg.Email) { if (this.updateMsg.Email) {
......
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