BUG修改

This commit is contained in:
a0049873 2022-07-18 18:01:56 +08:00
parent 259ee9379a
commit cf7fcb4e4a
1 changed files with 30 additions and 30 deletions

View File

@ -126,41 +126,41 @@ export default {
dataList.push(element)
})
this.options = dataList
if (!this.data.note1) {
this.$http.get('/sys/user/info').then(({ data: res }) => {
console.log(res.data)
this.data.note1 = res.data.deptId
})
}
// if (!this.data.note1) {
// this.$http.get('/sys/user/info').then(({ data: res }) => {
// console.log(res.data)
// this.data.note1 = res.data.deptId
// })
// }
})
} else if (this.data.name === '部门联系人') {
this.$http.get('/sys/dept/all').then(res => {
const dataList = []
res.data.data.forEach((element) => {
dataList.push(element)
// this.$http.get('/sys/dept/all').then(res => {
// const dataList = []
// res.data.data.forEach((element) => {
// dataList.push(element)
// })
// this.options = dataList
if (!this.data.note1) {
this.$http.get('/sys/user/info').then(({ data: res }) => {
console.log(res.data)
this.data.note1 = res.data.realName || ''
})
this.options = dataList
if (!this.data.note1) {
this.$http.get('/sys/user/info').then(({ data: res }) => {
console.log(res.data)
this.data.note1 = res.data.realName || ''
})
}
})
}
// })
} else if (this.data.name === '部门联系人电话') {
this.$http.get('/sys/dept/all').then(res => {
const dataList = []
res.data.data.forEach((element) => {
dataList.push(element)
// this.$http.get('/sys/dept/all').then(res => {
// const dataList = []
// res.data.data.forEach((element) => {
// dataList.push(element)
// })
// this.options = dataList
if (!this.data.note1) {
this.$http.get('/sys/user/info').then(({ data: res }) => {
console.log(res.data)
this.data.note1 = res.data.mobile || ''
})
this.options = dataList
if (!this.data.note1) {
this.$http.get('/sys/user/info').then(({ data: res }) => {
console.log(res.data)
this.data.note1 = res.data.mobile || ''
})
}
})
}
// })
}
},
chekBoxChange (list) {