mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-13 23:23:16 +03:30
fix : search user
This commit is contained in:
@@ -1,20 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<v-container>
|
<v-container>
|
||||||
<material-card class color="black" title="New Message" text>
|
<material-card class color="black" text title="New Message">
|
||||||
<v-layout wrap class="px-4 mb-3">
|
<v-layout class="px-4 mb-3" wrap>
|
||||||
<v-flex xs12 sm12 md12>
|
<v-flex md12 sm12 xs12>
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
|
v-model="user_id"
|
||||||
:items="items"
|
:items="items"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:search-input.sync="search"
|
:search-input.sync="search"
|
||||||
v-model="user_id"
|
color="black"
|
||||||
item-text="name"
|
item-text="name"
|
||||||
item-value="id"
|
item-value="id"
|
||||||
label="Search"
|
label="Search"
|
||||||
persistent-hint
|
persistent-hint
|
||||||
prepend-icon="fas fa-search"
|
prepend-icon="fas fa-search"
|
||||||
color="black"
|
|
||||||
>
|
>
|
||||||
<template v-slot:no-data>
|
<template v-slot:no-data>
|
||||||
<v-list-tile>
|
<v-list-tile>
|
||||||
@@ -25,6 +25,23 @@
|
|||||||
</v-list-tile-content>
|
</v-list-tile-content>
|
||||||
</v-list-tile>
|
</v-list-tile>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-slot:chip="{ item }">
|
||||||
|
{{ item.name }}
|
||||||
|
<span class="px-1" v-if="item.roles && item.roles.length"> -
|
||||||
|
<span v-for="(role, key) in item.roles" :key="key">
|
||||||
|
{{ role.name === 'Admin' ? 'Suport' : role.name }}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-slot:item="{ item }">
|
||||||
|
{{ item.name }}
|
||||||
|
<span class="px-1" v-if="item.roles && item.roles.length"> -
|
||||||
|
<span v-for="(role, key) in item.roles" :key="key">
|
||||||
|
{{ role.name === 'Admin' ? 'Suport' : role.name }}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
</v-autocomplete>
|
</v-autocomplete>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
</v-layout>
|
</v-layout>
|
||||||
|
|||||||
Reference in New Issue
Block a user