Merge branch 'hi-ucs-dev' of http://15.2.21.221:3000/wuhongjian/hi-ucs into hi-ucs-dev

This commit is contained in:
851673013@qq.com 2022-07-18 18:17:53 +08:00
commit fd32fd6769
2 changed files with 31 additions and 31 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.options = dataList
// 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 || ''
})
}
})
// })
} else if (this.data.name === '部门联系人电话') {
this.$http.get('/sys/dept/all').then(res => {
const dataList = []
res.data.data.forEach((element) => {
dataList.push(element)
})
this.options = dataList
// 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 || ''
})
}
})
// })
}
},
chekBoxChange (list) {

View File

@ -67,7 +67,7 @@
<upload :key="showKey" :child='val' limit='1' accept='.jpg,.png' v-else-if="val.type == 'image'"></upload>
</div>
<div class="submit">
<a-button type="primary" @click="add(configure.name)">提交</a-button>
<a-button type="primary" @click="add(configure.name)">添加更多</a-button>
</div>
</div>
</div>