{"action":"created","comment":{"url":"https://api.github.com/repos/ex-em/EVUI/pulls/comments/203261628","pull_request_review_id":138114914,"id":203261628,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzI2MTYyOA==","diff_hunk":"@@ -0,0 +1,153 @@\n+<template>\n+  <div class=\"evui-table-filter\">\n+    <div class=\"evui-table-filter-body\">\n+      <select\n+        v-model=\"firstFilterData.condition\"\n+        @change=\"changeFilterValue(firstFilterData.index)\"\n+      >\n+        <option\n+          v-for=\"item in condition\"\n+          :value=\"item.value\"\n+          :key=\"item.value\"\n+        >\n+          {{ item.name }}\n+        </option>\n+      </select>\n+      <input\n+        v-model=\"firstFilterData.text\"\n+        type=\"text\"\n+        @input=\"changeFilterValue($event, firstFilterData.index)\"\n+      >\n+      <div>\n+        <input\n+          v-model=\"andOrCondition\"\n+          type=\"radio\"\n+          value=\"and\"\n+        >\n+        <label> AND </label>\n+        <input\n+          v-model=\"andOrCondition\"\n+          type=\"radio\"\n+          value=\"or\"\n+        >\n+        <label> OR </label>\n+        <div>\n+          <select v-model=\"secondFilterData.condition\">\n+            <option\n+              v-for=\"item in condition\"\n+              :value=\"item.value\"\n+              :key=\"item.value\"\n+            >\n+              {{ item.name }}\n+            </option>\n+          </select>\n+          <input\n+            v-model=\"secondFilterData.text\"\n+            type=\"text\"\n+            @input=\"changeFilterValue($event, secondFilterData.index)\"\n+          >\n+          {{ field }}\n+        </div>\n+      </div>\n+    </div>\n+    <div class=\"evui-table-filter-foot\">\n+      <div style=\"float:right\">\n+        <button>Clear Filter</button>\n+      </div>\n+    </div>\n+  </div>\n+</template>\n+<script>\n+  import _ from 'lodash';\n+\n+  export default {\n+    props: {\n+      filterCondition: {\n+        type: Array,\n+        default() {\n+          return [];\n+        },\n+      },\n+      field: {\n+        type: String,\n+        default: '', // 수정 필요 테스트\n+      },\n+    },\n+    data() {\n+      return {\n+        condition: [\n+          { name: 'Equal', value: 'equal' },\n+          { name: 'Not equal', value: 'notEqual' },\n+          { name: 'Like', value: 'like' },\n+          { name: 'Not Like', value: 'notLike' },\n+        ],\n+        filterDataList: [],\n+        initFilterCondition: this.filterCondition,\n+        firstFilterData: {\n+          index: 0,\n+          condition: 'equal',\n+          text: '',\n+        },\n+        secondFilterData: {\n+          index: 1,\n+          condition: 'equal',\n+          text: '',\n+        },\n+        andOrCondition: 'and',\n+        resultFilteredData: [],\n+      };\n+    },\n+    watch: {\n+      field() {\n+        if (this.filterCondition.length === 0) {\n+          for (let ix = 0, ixLen = this.resultFilteredData.length; ix < ixLen; ix++) {\n+            this.resultFilteredData[ix].text = '';\n+            this.resultFilteredData[ix].condition = 'equal';\n+          }\n+        } else {\n+          for (let ix = 0, ixLen = this.resultFilteredData.length; ix < ixLen; ix++) {\n+            this.resultFilteredData[ix].text = '';\n+            this.resultFilteredData[ix].condition = 'equal';\n+          }\n+          for (let jx = 0, jxLen = this.filterCondition.length; jx < jxLen; jx++) {\n+            const index = this.filterCondition[jx].index;","path":"src/components/table/table.filter.lite.vue","position":null,"original_position":113,"commit_id":"c026215e9d86f218fa3147830d69debfb6728e34","original_commit_id":"a0f76bc61ff78d5fe7970c3b850cf05e942644c9","user":{"login":"darkstyles","id":3774171,"node_id":"MDQ6VXNlcjM3NzQxNzE=","avatar_url":"https://avatars0.githubusercontent.com/u/3774171?v=4","gravatar_id":"","url":"https://api.github.com/users/darkstyles","html_url":"https://github.com/darkstyles","followers_url":"https://api.github.com/users/darkstyles/followers","following_url":"https://api.github.com/users/darkstyles/following{/other_user}","gists_url":"https://api.github.com/users/darkstyles/gists{/gist_id}","starred_url":"https://api.github.com/users/darkstyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkstyles/subscriptions","organizations_url":"https://api.github.com/users/darkstyles/orgs","repos_url":"https://api.github.com/users/darkstyles/repos","events_url":"https://api.github.com/users/darkstyles/events{/privacy}","received_events_url":"https://api.github.com/users/darkstyles/received_events","type":"User","site_admin":false},"body":"어차피 순차적인 인덱스 접근으로 index 값이 변경될거니까 let으로 해도 되지 않아요?","created_at":"2018-07-18T06:16:59Z","updated_at":"2018-07-18T06:16:59Z","html_url":"https://github.com/ex-em/EVUI/pull/147#discussion_r203261628","pull_request_url":"https://api.github.com/repos/ex-em/EVUI/pulls/147","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ex-em/EVUI/pulls/comments/203261628"},"html":{"href":"https://github.com/ex-em/EVUI/pull/147#discussion_r203261628"},"pull_request":{"href":"https://api.github.com/repos/ex-em/EVUI/pulls/147"}},"in_reply_to_id":202944271},"pull_request":{"url":"https://api.github.com/repos/ex-em/EVUI/pulls/147","id":201798526,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNzk4NTI2","html_url":"https://github.com/ex-em/EVUI/pull/147","diff_url":"https://github.com/ex-em/EVUI/pull/147.diff","patch_url":"https://github.com/ex-em/EVUI/pull/147.patch","issue_url":"https://api.github.com/repos/ex-em/EVUI/issues/147","number":147,"state":"open","locked":false,"title":"[#86] 테이블 filter 개발","user":{"login":"caferion","id":10249078,"node_id":"MDQ6VXNlcjEwMjQ5MDc4","avatar_url":"https://avatars0.githubusercontent.com/u/10249078?v=4","gravatar_id":"","url":"https://api.github.com/users/caferion","html_url":"https://github.com/caferion","followers_url":"https://api.github.com/users/caferion/followers","following_url":"https://api.github.com/users/caferion/following{/other_user}","gists_url":"https://api.github.com/users/caferion/gists{/gist_id}","starred_url":"https://api.github.com/users/caferion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caferion/subscriptions","organizations_url":"https://api.github.com/users/caferion/orgs","repos_url":"https://api.github.com/users/caferion/repos","events_url":"https://api.github.com/users/caferion/events{/privacy}","received_events_url":"https://api.github.com/users/caferion/received_events","type":"User","site_admin":false},"body":"##########\r\n1차 기능 개발 및 기존 테이블 예제 소스쪽 수정","created_at":"2018-07-17T01:03:57Z","updated_at":"2018-07-18T06:16:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56894167f5500db519a65572ada0cdda8162a736","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ex-em/EVUI/pulls/147/commits","review_comments_url":"https://api.github.com/repos/ex-em/EVUI/pulls/147/comments","review_comment_url":"https://api.github.com/repos/ex-em/EVUI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ex-em/EVUI/issues/147/comments","statuses_url":"https://api.github.com/repos/ex-em/EVUI/statuses/c026215e9d86f218fa3147830d69debfb6728e34","head":{"label":"ex-em:pr_86_table_dgeun","ref":"pr_86_table_dgeun","sha":"c026215e9d86f218fa3147830d69debfb6728e34","user":{"login":"ex-em","id":30035546,"node_id":"MDQ6VXNlcjMwMDM1NTQ2","avatar_url":"https://avatars0.githubusercontent.com/u/30035546?v=4","gravatar_id":"","url":"https://api.github.com/users/ex-em","html_url":"https://github.com/ex-em","followers_url":"https://api.github.com/users/ex-em/followers","following_url":"https://api.github.com/users/ex-em/following{/other_user}","gists_url":"https://api.github.com/users/ex-em/gists{/gist_id}","starred_url":"https://api.github.com/users/ex-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ex-em/subscriptions","organizations_url":"https://api.github.com/users/ex-em/orgs","repos_url":"https://api.github.com/users/ex-em/repos","events_url":"https://api.github.com/users/ex-em/events{/privacy}","received_events_url":"https://api.github.com/users/ex-em/received_events","type":"User","site_admin":false},"repo":{"id":96735983,"node_id":"MDEwOlJlcG9zaXRvcnk5NjczNTk4Mw==","name":"EVUI","full_name":"ex-em/EVUI","owner":{"login":"ex-em","id":30035546,"node_id":"MDQ6VXNlcjMwMDM1NTQ2","avatar_url":"https://avatars0.githubusercontent.com/u/30035546?v=4","gravatar_id":"","url":"https://api.github.com/users/ex-em","html_url":"https://github.com/ex-em","followers_url":"https://api.github.com/users/ex-em/followers","following_url":"https://api.github.com/users/ex-em/following{/other_user}","gists_url":"https://api.github.com/users/ex-em/gists{/gist_id}","starred_url":"https://api.github.com/users/ex-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ex-em/subscriptions","organizations_url":"https://api.github.com/users/ex-em/orgs","repos_url":"https://api.github.com/users/ex-em/repos","events_url":"https://api.github.com/users/ex-em/events{/privacy}","received_events_url":"https://api.github.com/users/ex-em/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ex-em/EVUI","description":"Exem Visualization UI","fork":false,"url":"https://api.github.com/repos/ex-em/EVUI","forks_url":"https://api.github.com/repos/ex-em/EVUI/forks","keys_url":"https://api.github.com/repos/ex-em/EVUI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ex-em/EVUI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ex-em/EVUI/teams","hooks_url":"https://api.github.com/repos/ex-em/EVUI/hooks","issue_events_url":"https://api.github.com/repos/ex-em/EVUI/issues/events{/number}","events_url":"https://api.github.com/repos/ex-em/EVUI/events","assignees_url":"https://api.github.com/repos/ex-em/EVUI/assignees{/user}","branches_url":"https://api.github.com/repos/ex-em/EVUI/branches{/branch}","tags_url":"https://api.github.com/repos/ex-em/EVUI/tags","blobs_url":"https://api.github.com/repos/ex-em/EVUI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ex-em/EVUI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ex-em/EVUI/git/refs{/sha}","trees_url":"https://api.github.com/repos/ex-em/EVUI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ex-em/EVUI/statuses/{sha}","languages_url":"https://api.github.com/repos/ex-em/EVUI/languages","stargazers_url":"https://api.github.com/repos/ex-em/EVUI/stargazers","contributors_url":"https://api.github.com/repos/ex-em/EVUI/contributors","subscribers_url":"https://api.github.com/repos/ex-em/EVUI/subscribers","subscription_url":"https://api.github.com/repos/ex-em/EVUI/subscription","commits_url":"https://api.github.com/repos/ex-em/EVUI/commits{/sha}","git_commits_url":"https://api.github.com/repos/ex-em/EVUI/git/commits{/sha}","comments_url":"https://api.github.com/repos/ex-em/EVUI/comments{/number}","issue_comment_url":"https://api.github.com/repos/ex-em/EVUI/issues/comments{/number}","contents_url":"https://api.github.com/repos/ex-em/EVUI/contents/{+path}","compare_url":"https://api.github.com/repos/ex-em/EVUI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ex-em/EVUI/merges","archive_url":"https://api.github.com/repos/ex-em/EVUI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ex-em/EVUI/downloads","issues_url":"https://api.github.com/repos/ex-em/EVUI/issues{/number}","pulls_url":"https://api.github.com/repos/ex-em/EVUI/pulls{/number}","milestones_url":"https://api.github.com/repos/ex-em/EVUI/milestones{/number}","notifications_url":"https://api.github.com/repos/ex-em/EVUI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ex-em/EVUI/labels{/name}","releases_url":"https://api.github.com/repos/ex-em/EVUI/releases{/id}","deployments_url":"https://api.github.com/repos/ex-em/EVUI/deployments","created_at":"2017-07-10T04:33:40Z","updated_at":"2018-06-14T02:16:41Z","pushed_at":"2018-07-18T02:06:49Z","git_url":"git://github.com/ex-em/EVUI.git","ssh_url":"git@github.com:ex-em/EVUI.git","clone_url":"https://github.com/ex-em/EVUI.git","svn_url":"https://github.com/ex-em/EVUI","homepage":null,"size":46259,"stargazers_count":7,"watchers_count":7,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":26,"watchers":7,"default_branch":"master"}},"base":{"label":"ex-em:2.0","ref":"2.0","sha":"a9860f1ca1f46c2879ae7c70a648fccdc863892d","user":{"login":"ex-em","id":30035546,"node_id":"MDQ6VXNlcjMwMDM1NTQ2","avatar_url":"https://avatars0.githubusercontent.com/u/30035546?v=4","gravatar_id":"","url":"https://api.github.com/users/ex-em","html_url":"https://github.com/ex-em","followers_url":"https://api.github.com/users/ex-em/followers","following_url":"https://api.github.com/users/ex-em/following{/other_user}","gists_url":"https://api.github.com/users/ex-em/gists{/gist_id}","starred_url":"https://api.github.com/users/ex-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ex-em/subscriptions","organizations_url":"https://api.github.com/users/ex-em/orgs","repos_url":"https://api.github.com/users/ex-em/repos","events_url":"https://api.github.com/users/ex-em/events{/privacy}","received_events_url":"https://api.github.com/users/ex-em/received_events","type":"User","site_admin":false},"repo":{"id":96735983,"node_id":"MDEwOlJlcG9zaXRvcnk5NjczNTk4Mw==","name":"EVUI","full_name":"ex-em/EVUI","owner":{"login":"ex-em","id":30035546,"node_id":"MDQ6VXNlcjMwMDM1NTQ2","avatar_url":"https://avatars0.githubusercontent.com/u/30035546?v=4","gravatar_id":"","url":"https://api.github.com/users/ex-em","html_url":"https://github.com/ex-em","followers_url":"https://api.github.com/users/ex-em/followers","following_url":"https://api.github.com/users/ex-em/following{/other_user}","gists_url":"https://api.github.com/users/ex-em/gists{/gist_id}","starred_url":"https://api.github.com/users/ex-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ex-em/subscriptions","organizations_url":"https://api.github.com/users/ex-em/orgs","repos_url":"https://api.github.com/users/ex-em/repos","events_url":"https://api.github.com/users/ex-em/events{/privacy}","received_events_url":"https://api.github.com/users/ex-em/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ex-em/EVUI","description":"Exem Visualization UI","fork":false,"url":"https://api.github.com/repos/ex-em/EVUI","forks_url":"https://api.github.com/repos/ex-em/EVUI/forks","keys_url":"https://api.github.com/repos/ex-em/EVUI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ex-em/EVUI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ex-em/EVUI/teams","hooks_url":"https://api.github.com/repos/ex-em/EVUI/hooks","issue_events_url":"https://api.github.com/repos/ex-em/EVUI/issues/events{/number}","events_url":"https://api.github.com/repos/ex-em/EVUI/events","assignees_url":"https://api.github.com/repos/ex-em/EVUI/assignees{/user}","branches_url":"https://api.github.com/repos/ex-em/EVUI/branches{/branch}","tags_url":"https://api.github.com/repos/ex-em/EVUI/tags","blobs_url":"https://api.github.com/repos/ex-em/EVUI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ex-em/EVUI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ex-em/EVUI/git/refs{/sha}","trees_url":"https://api.github.com/repos/ex-em/EVUI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ex-em/EVUI/statuses/{sha}","languages_url":"https://api.github.com/repos/ex-em/EVUI/languages","stargazers_url":"https://api.github.com/repos/ex-em/EVUI/stargazers","contributors_url":"https://api.github.com/repos/ex-em/EVUI/contributors","subscribers_url":"https://api.github.com/repos/ex-em/EVUI/subscribers","subscription_url":"https://api.github.com/repos/ex-em/EVUI/subscription","commits_url":"https://api.github.com/repos/ex-em/EVUI/commits{/sha}","git_commits_url":"https://api.github.com/repos/ex-em/EVUI/git/commits{/sha}","comments_url":"https://api.github.com/repos/ex-em/EVUI/comments{/number}","issue_comment_url":"https://api.github.com/repos/ex-em/EVUI/issues/comments{/number}","contents_url":"https://api.github.com/repos/ex-em/EVUI/contents/{+path}","compare_url":"https://api.github.com/repos/ex-em/EVUI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ex-em/EVUI/merges","archive_url":"https://api.github.com/repos/ex-em/EVUI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ex-em/EVUI/downloads","issues_url":"https://api.github.com/repos/ex-em/EVUI/issues{/number}","pulls_url":"https://api.github.com/repos/ex-em/EVUI/pulls{/number}","milestones_url":"https://api.github.com/repos/ex-em/EVUI/milestones{/number}","notifications_url":"https://api.github.com/repos/ex-em/EVUI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ex-em/EVUI/labels{/name}","releases_url":"https://api.github.com/repos/ex-em/EVUI/releases{/id}","deployments_url":"https://api.github.com/repos/ex-em/EVUI/deployments","created_at":"2017-07-10T04:33:40Z","updated_at":"2018-06-14T02:16:41Z","pushed_at":"2018-07-18T02:06:49Z","git_url":"git://github.com/ex-em/EVUI.git","ssh_url":"git@github.com:ex-em/EVUI.git","clone_url":"https://github.com/ex-em/EVUI.git","svn_url":"https://github.com/ex-em/EVUI","homepage":null,"size":46259,"stargazers_count":7,"watchers_count":7,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":26,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ex-em/EVUI/pulls/147"},"html":{"href":"https://github.com/ex-em/EVUI/pull/147"},"issue":{"href":"https://api.github.com/repos/ex-em/EVUI/issues/147"},"comments":{"href":"https://api.github.com/repos/ex-em/EVUI/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/ex-em/EVUI/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/ex-em/EVUI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ex-em/EVUI/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/ex-em/EVUI/statuses/c026215e9d86f218fa3147830d69debfb6728e34"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"darkstyles"}}