From a0526237f17b4a260055ba85d082ad65b49862cf Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Fri, 15 Jul 2022 11:14:48 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/inputSelectCheckbox.vue | 32 +++++++++++++++++-- .../components/PutOnTheShelf.vue | 4 +-- 2 files changed, 31 insertions(+), 5 deletions(-) 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: 上架 -->