diff --git a/src/components/todo/ListComponent.vue b/src/components/todo/ListComponent.vue index 802ed47..b27fb6e 100644 --- a/src/components/todo/ListComponent.vue +++ b/src/components/todo/ListComponent.vue @@ -49,7 +49,7 @@ @@ -117,12 +116,12 @@ -

{{ selectedRows }}

+

{{ selected }}

+
+ + + + + + + + 검색 + + + + + + + ~ + + 선택 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

{{ selectedRows }}

+
+ + + + + +
+
+
+ + + diff --git a/src/store/todo.store.js b/src/store/todo.store.js index c80f21b..85ce456 100644 --- a/src/store/todo.store.js +++ b/src/store/todo.store.js @@ -1,6 +1,7 @@ const state = { total: 0, - rows: [] + rows: [], + selected: [] } const getters = { getTotal: function (state) { @@ -14,6 +15,9 @@ const mutations = { setDatas: async function (state, datas) { state.total = datas.total state.rows = datas.rows + }, + setSelected: function (state, datas) { + state.selected = datas } } const actions = {