From d87748b8cf4fbb0c47dfc3886ec46902fecbf5d1 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Fri, 5 Jun 2020 18:08:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E7=90=86=E5=92=A8=E8=AF=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=A4=B4=E8=A1=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../psychology/psychologist-add-or-update.vue | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/views/modules/psychology/psychologist-add-or-update.vue b/src/views/modules/psychology/psychologist-add-or-update.vue index d1d5605..cc77a82 100644 --- a/src/views/modules/psychology/psychologist-add-or-update.vue +++ b/src/views/modules/psychology/psychologist-add-or-update.vue @@ -62,6 +62,23 @@ + + + + + + @@ -96,11 +113,13 @@ export default { createdBy: '', createdTime: '', updatedBy: '', - updatedTime: '' + updatedTime: '', + titles: [], }, loading: false, uploadUrl: '', options: [], + titles: [], sex: [ { dictValue: '1', dictName: '男' }, { dictValue: '0', dictName: '女' } @@ -113,7 +132,10 @@ export default { }); }, mounted() { + this.options=[]; + this.titles=[]; this.getUser(''); + this.getTitle(); }, computed: { dataRule () { @@ -200,6 +222,17 @@ export default { }; }).catch(() => {}) }, + getTitle () { + let postData = { delFlag: '0' }; + this.$http.get(`/property/psychologisttitle/list`, { params: postData}).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.titles={ + ...res.data + }; + }).catch(() => {}) + }, remoteMethod(query) { if (query !== '') { this.loading = true;