From 05aeb96fa523f5a57bec11bdfb2c7a071b448615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Fri, 16 Sep 2022 18:44:53 +0900 Subject: [PATCH] vue2_frontend... --- src/components/todo/ListComponent.vue | 23 +- src/components/todo/ListComponentOriginal.vue | 320 ++++++++++++++++++ src/store/todo.store.js | 6 +- 3 files changed, 339 insertions(+), 10 deletions(-) create mode 100644 src/components/todo/ListComponentOriginal.vue 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 = {