diff --git a/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue b/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue index d6dafd7c..88ac92a0 100644 --- a/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue +++ b/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue @@ -113,10 +113,36 @@ export default { 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 - 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 || '' }) } }) diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue index 3ab54b83..fbc5935c 100644 --- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue +++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-17 14:11:08 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-15 11:06:55 + * @LastEditTime: 2022-07-15 11:08:09 * @Description: 上架 -->