BUG 28456

This commit is contained in:
aixianling
2022-03-22 21:11:18 +08:00
parent 18d2614b13
commit 9e10f2b77c
2 changed files with 5 additions and 4 deletions

View File

@@ -114,7 +114,7 @@
</div>
</ai-dialog>
<ai-dialog :visible.sync="authDialog" title="授权" @onConfirm="handleAuth" @closed="form={}" width="500px">
<ai-user-picker :instance="instance" v-model="form.operators" multiple/>
<ai-user-picker :instance="instance" v-model="form.operators" multiple action="/user/page" label="name"/>
</ai-dialog>
</section>
</template>

View File

@@ -2,7 +2,7 @@
<section class="AiUserPicker">
<el-select size="small" :value="value" placeholder="选择人员" clearable @change="v=>$emit('select',v)" v-bind="$attrs"
filterable>
<el-option v-for="row in list" :key="row.id" :value="row.id" :label="row.phone"/>
<el-option v-for="row in list" :key="row.id" :value="row.id" :label="row[label]"/>
</el-select>
</section>
</template>
@@ -18,7 +18,8 @@ export default {
value: {default: ""},
instance: Function,
action: {default: "/appportaluser/list"},
params: {default: () => ({})}
params: {default: () => ({})},
label: {default: "phone"}
},
data() {
return {
@@ -43,7 +44,7 @@ export default {
<style lang="scss" scoped>
.AiUserPicker {
.el-select{
.el-select {
width: 100%;
}
}