WIP Начала делать select с поиском
This commit is contained in:
@@ -36,6 +36,10 @@
|
||||
:delete-schedule="deleteSchedule",
|
||||
:template="template"
|
||||
)
|
||||
base-search-select(
|
||||
:items="options",
|
||||
v-model="input"
|
||||
)
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -45,10 +49,17 @@ import ScheduleBar from "@/pages/schedule/components/ScheduleBar.vue";
|
||||
import ScheduleTable from "@/pages/schedule/components/ScheduleTable.vue";
|
||||
import { fetchWrapper } from "@/shared/fetchWrapper.js";
|
||||
import BaseLoader from "@/components/Loader/BaseLoader.vue";
|
||||
import BaseSearchSelect from "@/components/base/BaseSearchSelect.vue";
|
||||
|
||||
export default {
|
||||
name: "TheSchedule",
|
||||
components: { ScheduleHeader, ScheduleBar, ScheduleTable, BaseLoader },
|
||||
components: {
|
||||
ScheduleHeader,
|
||||
ScheduleBar,
|
||||
ScheduleTable,
|
||||
BaseLoader,
|
||||
BaseSearchSelect,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
employeeList: [
|
||||
@@ -95,6 +106,20 @@ export default {
|
||||
startMonth: moment().startOf("month"),
|
||||
showTime: false,
|
||||
schedulesDate: {},
|
||||
input: {
|
||||
id: null,
|
||||
label: null,
|
||||
},
|
||||
options: [
|
||||
{
|
||||
id: 1,
|
||||
label: "1",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
label: "2",
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user