Browse Source

心理咨询增加头衔

feature/yujt_analysis_pc
zhangyuan 5 years ago
parent
commit
d87748b8cf
  1. 35
      src/views/modules/psychology/psychologist-add-or-update.vue

35
src/views/modules/psychology/psychologist-add-or-update.vue

@ -62,6 +62,23 @@
<el-form-item label="简介" prop="briefIntroduction">
<el-input v-model="dataForm.briefIntroduction" placeholder="简介"></el-input>
</el-form-item>
<el-form-item label="头衔" prop="titles">
<el-select
style="width: 100%"
v-model="dataForm.titles"
multiple
filterable
reserve-keyword
placeholder="请输入关键词"
:loading="loading">
<el-option
v-for="item in titles"
:key="item.id"
:label="item.title"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="排序" prop="sort">
<el-input v-model="dataForm.sort" type="number" placeholder="排序 从小到大"></el-input>
</el-form-item>
@ -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;

Loading…
Cancel
Save