|
@@ -80,7 +80,14 @@
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
<a-form-model-item label="角色" prop="roleNames" :label-col="{span: 3}" :wrapper-col="{span: 20}">
|
|
<a-form-model-item label="角色" prop="roleNames" :label-col="{span: 3}" :wrapper-col="{span: 20}">
|
|
- <a-select placeholder="请选择角色" id="userSyncEdit-roleNames" allowClear v-model="form.roleNames" mode="multiple">
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ show-search
|
|
|
|
+ :filter-option="filterOption"
|
|
|
|
+ placeholder="请选择角色"
|
|
|
|
+ id="userSyncEdit-roleNames"
|
|
|
|
+ allowClear
|
|
|
|
+ v-model="form.roleNames"
|
|
|
|
+ mode="multiple">
|
|
<a-select-option v-for="item in roleList" :key="item.id" :value="item.id" :disabled="item.isEnable == '0' ? true : false">{{ item.name }}</a-select-option>
|
|
<a-select-option v-for="item in roleList" :key="item.id" :value="item.id" :disabled="item.isEnable == '0' ? true : false">{{ item.name }}</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
@@ -205,6 +212,11 @@ export default {
|
|
this.$message.warning(res.message)
|
|
this.$message.warning(res.message)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ filterOption (input, option) {
|
|
|
|
+ return (
|
|
|
|
+ option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
+ )
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|