diff --git a/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue b/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue index 1fd6ae7a..b3b00168 100644 --- a/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue +++ b/back/src/views/modules/putOnTheShelf/components/inputSelectCheckbox.vue @@ -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) {