|
@@ -4,10 +4,10 @@
|
|
<el-drawer title="选择职位" :visible.sync="drawer" :direction="`btt`" size="40%">
|
|
<el-drawer title="选择职位" :visible.sync="drawer" :direction="`btt`" size="40%">
|
|
<el-row v-for="(item, index) in data" :key="index" @click.native="select(item)" class="select__options">
|
|
<el-row v-for="(item, index) in data" :key="index" @click.native="select(item)" class="select__options">
|
|
<el-col :span="20">
|
|
<el-col :span="20">
|
|
- {{ item.label }}
|
|
|
|
|
|
+ {{ item.name }}
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-col :span="4">
|
|
- <span class="el-icon-check icons" v-if="isSelect(item.label)"></span>
|
|
|
|
|
|
+ <span class="el-icon-check icons" v-if="isSelect(item.name)"></span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-drawer>
|
|
</el-drawer>
|
|
@@ -44,7 +44,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
select(item) {
|
|
select(item) {
|
|
this.$emit('select', { type: this.type, value: this.need ? _.get(item, `${this.need}`) : item });
|
|
this.$emit('select', { type: this.type, value: this.need ? _.get(item, `${this.need}`) : item });
|
|
- this.$set(this, `label`, item.label);
|
|
|
|
|
|
+ this.$set(this, `label`, item.name);
|
|
this.drawer = false;
|
|
this.drawer = false;
|
|
},
|
|
},
|
|
filterData() {
|
|
filterData() {
|
|
@@ -57,7 +57,7 @@ export default {
|
|
return boo === true ? item : '';
|
|
return boo === true ? item : '';
|
|
});
|
|
});
|
|
if (result.length > 0) {
|
|
if (result.length > 0) {
|
|
- this.$set(this, `label`, result[0].label);
|
|
|
|
|
|
+ this.$set(this, `label`, result[0].name);
|
|
}
|
|
}
|
|
return result.length > 0;
|
|
return result.length > 0;
|
|
},
|
|
},
|