|
@@ -69,8 +69,8 @@
|
|
|
vt:'',
|
|
|
centerDialogVisible: false,
|
|
|
searchVal: '',
|
|
|
- personList: [{"id":4357,"name":"企业管理员","phone":"18738625921"}],
|
|
|
- personSpareList:[{"id":4357,"name":"企业管理员","phone":"18738625921"}],
|
|
|
+ personList: [],
|
|
|
+ personSpareList:[],
|
|
|
selectedList: [],
|
|
|
checked: false,
|
|
|
titleMsg: '',
|
|
@@ -197,6 +197,7 @@
|
|
|
region: num ? '' : selectAreas.toString(),
|
|
|
queryType: num || ''
|
|
|
}
|
|
|
+ let this_ = this
|
|
|
// eType 企业
|
|
|
$.ajax({
|
|
|
type: 'post',
|
|
@@ -205,37 +206,37 @@
|
|
|
data: JSON.stringify(params),
|
|
|
dataType: 'json',
|
|
|
success: function (res) {
|
|
|
- if (res.error_code === 0 && res.data && res) {
|
|
|
+ if (res.error_code == 0 && res.data) {
|
|
|
// this.personList = data
|
|
|
- this.personList = {}
|
|
|
- this.loading = false
|
|
|
+ this_.personList = {}
|
|
|
+ this_.loading = false
|
|
|
res.data.forEach(v => {
|
|
|
v.toggle = true
|
|
|
v.status = false
|
|
|
})
|
|
|
- this.personList = res.data
|
|
|
- this.personSpareList = res.data
|
|
|
+ this_.personList = res.data
|
|
|
+ this_.personSpareList = res.data
|
|
|
if (flag === 'yes') {
|
|
|
- if (this.searchVal) {
|
|
|
- this.allQuan = false
|
|
|
+ if (this_.searchVal) {
|
|
|
+ this_.allQuan = false
|
|
|
}
|
|
|
return
|
|
|
}
|
|
|
- this.maxLength = res.data.checked
|
|
|
- if (this.pagetype !== 'manage') {
|
|
|
- this.selectedList = res.data.checkedList
|
|
|
+ this_.maxLength = res.data.checked
|
|
|
+ if (this_.pagetype !== 'manage') {
|
|
|
+ this_.selectedList = res.data.checkedList
|
|
|
}
|
|
|
- this.allChecked = true
|
|
|
+ this_.allChecked = true
|
|
|
if (res.data.checked === 0) {
|
|
|
- this.quan = false
|
|
|
+ this_.quan = false
|
|
|
}
|
|
|
} else {
|
|
|
- this.personList = {}
|
|
|
- this.loading = false
|
|
|
+ this_.personList = {}
|
|
|
+ this_.loading = false
|
|
|
}
|
|
|
|
|
|
- if (this.searchVal === '') {
|
|
|
- this.allQuan = true
|
|
|
+ if (this_.searchVal === '') {
|
|
|
+ this_.allQuan = true
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -275,7 +276,7 @@
|
|
|
$.ajax({
|
|
|
type: 'post',
|
|
|
contentType: "application/json",
|
|
|
- url: '/jybx/subscribe/bidDistributor',
|
|
|
+ url: '/jyapi/jybx/subscribe/bidDistributor',
|
|
|
data: JSON.stringify(params_Data),
|
|
|
dataType: 'json',
|
|
|
success: function (res) {
|