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;