BUG修改

This commit is contained in:
a0049873 2022-07-15 11:14:48 +08:00
parent 622f2f645b
commit a0526237f1
2 changed files with 31 additions and 5 deletions

View File

@ -113,10 +113,36 @@ export default {
this.options = dataList this.options = dataList
if (!this.data.note1) { if (!this.data.note1) {
this.$http.get('/sys/user/info').then(({ data: res }) => { this.$http.get('/sys/user/info').then(({ data: res }) => {
console.log(res.data)
this.data.note1 = res.data.deptId this.data.note1 = res.data.deptId
this.$http.get('/sys/dept/' + res.data.deptId).then(res => { })
console.log(res.data.data, '部门信息=============================') }
}) })
} 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
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
if (!this.data.note1) {
this.$http.get('/sys/user/info').then(({ data: res }) => {
console.log(res.data)
this.data.note1 = res.data.mobile || ''
}) })
} }
}) })

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-17 14:11:08 * @Date: 2022-06-17 14:11:08
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-15 11:06:55 * @LastEditTime: 2022-07-15 11:08:09
* @Description: 上架 * @Description: 上架
--> -->
<template> <template>
@ -110,7 +110,7 @@
:options="item.options" :options="item.options"
/> />
<a-input <a-input
v-else-if="item.type == 'AbilityType '" v-else-if="item.type == 'AbilityType'"
v-model:value="item.note1" v-model:value="item.note1"
:placeholder="'请输入' + item.name" :placeholder="'请输入' + item.name"
:disabled="true" :disabled="true"