Compare commits

...

85 Commits

Author SHA1 Message Date
c49a304357 Merge pull request '콘텐츠 수정 - 태그 수정 추가' (#32) from test into main
Reviewed-on: #32
2025-06-02 13:59:01 +00:00
Yu Sung
54216198e1 콘텐츠 수정 - 태그 수정 추가 2025-06-02 21:44:07 +09:00
625c8a121f Merge pull request '콘텐츠 등록/수정 - 포인트 사용 가능 여부 추가' (#31) from test into main
Reviewed-on: #31
2025-04-24 10:28:17 +00:00
Yu Sung
3432af8e24 콘텐츠 등록/수정 - 포인트 사용 가능 여부 추가 2025-04-22 21:26:03 +09:00
efa1643359 Merge pull request '콘텐츠 등록 - 콘텐츠 설명 전체 오픈 여부 추가' (#30) from test into main
Reviewed-on: #30
2024-11-23 18:07:30 +00:00
Yu Sung
ccb3135d48 콘텐츠 등록 - 콘텐츠 설명 전체 오픈 여부 추가 2024-11-24 02:57:10 +09:00
3b294ba020 Merge pull request ''소다라이브' -> '보이스온' 으로 변경' (#29) from test into main
Reviewed-on: #29
2024-11-21 12:43:18 +00:00
Yu Sung
107a802dc9 '소다라이브' -> '보이스온' 으로 변경 2024-11-21 21:39:41 +09:00
8cdbea59de Merge pull request '소장만 기능 추가' (#28) from test into main
Reviewed-on: #28
2024-11-12 14:25:52 +00:00
Yu Sung
1c45a30f59 소장만 기능 추가 2024-11-12 23:11:43 +09:00
8ac488bf6f Merge pull request '콘텐츠 업로드 - 미리듣기 최소 시간 30초에서 15초로 변경' (#27) from test into main
Reviewed-on: #27
2024-09-25 11:17:15 +00:00
Yu Sung
21cfd00c92 콘텐츠 업로드 - 미리듣기 최소 시간 30초에서 15초로 변경 2024-09-25 20:10:11 +09:00
5664f1be9e Merge pull request '시리즈 관리 페이지에서만 html전체 scroll을 동작하지 않도록 수정' (#26) from test into main
Reviewed-on: #26
2024-08-16 13:28:47 +00:00
Yu Sung
c6ba77fde6 시리즈 관리 페이지에서만 html전체 scroll을 동작하지 않도록 수정 2024-08-16 22:26:02 +09:00
c5f707efb9 Merge pull request '시리즈 관리 - 시리즈 크기 한줄에 6개가 들어가도록 수정' (#25) from test into main
Reviewed-on: #25
2024-08-14 08:32:30 +00:00
Yu Sung
baa6253b71 시리즈 관리 - 시리즈 크기 한줄에 6개가 들어가도록 수정 2024-08-14 17:31:02 +09:00
27a827662e Merge pull request 'test' (#24) from test into main
Reviewed-on: #24
2024-08-14 07:44:43 +00:00
Yu Sung
3a0ee08ab0 시리즈 관리 - 드래그 앤 드롭으로 순서변경 기능 추가 2024-08-14 16:40:00 +09:00
Yu Sung
d459d42a60 시리즈 관리 - scroll infinite loading으로 paging 처리 2024-08-14 15:43:40 +09:00
b7c8bed727 Merge pull request '커뮤니티 정산 - 합계 추가' (#23) from test into main
Reviewed-on: #23
2024-06-20 06:03:29 +00:00
Yu Sung
65276f5281 커뮤니티 정산 - 합계 추가 2024-06-20 15:01:15 +09:00
f059dda7eb Merge pull request 'test' (#22) from test into main
Reviewed-on: #22
2024-06-03 22:26:57 +00:00
Yu Sung
75aa5beff7 커뮤니티 정산 - 날짜 조회 기능 추가 2024-06-02 20:58:26 +09:00
Yu Sung
a7a7d24052 커뮤니티 정산 - 게시물 1개 판매가격 추가 2024-05-30 13:09:38 +09:00
4cdcf1d0b6 Merge pull request '콘텐츠 가격 수정, 시그니처 정렬' (#21) from test into main
Reviewed-on: #21
2024-05-29 17:16:28 +00:00
Yu Sung
387c1c2abd 시그니처 리스트 정렬 버튼 - 상단 margin 40px 추가 2024-05-30 01:53:42 +09:00
Yu Sung
d2ab7c12f1 시그니처 리스트 정렬 추가 2024-05-30 01:34:16 +09:00
Yu Sung
91f803f7a8 콘텐츠 등록 - 미리보기 생성 기본값 false로 변경 2024-05-29 17:07:20 +09:00
Yu Sung
f4ae6888ac 콘텐츠 가격 수정기능 추가 2024-05-29 15:45:11 +09:00
4497141061 Merge pull request '커뮤니티 정산페이지 추가' (#20) from test into main
Reviewed-on: #20
2024-05-27 08:33:24 +00:00
Yu Sung
3cfa73c37b 커뮤니티 정산페이지 추가 2024-05-27 16:41:31 +09:00
dfaac20b63 Merge pull request '시그니처 후원 생성/수정 - 재생시간 추가' (#19) from test into main
Reviewed-on: #19
2024-05-02 06:28:56 +00:00
Yu Sung
83bbf0a505 시그니처 후원 생성/수정 - 재생시간 추가 2024-05-01 15:17:50 +09:00
0d3bc1c16e Merge pull request '시리즈 등록 - 크리에이터 -> 장르로 변경' (#18) from test into main
Reviewed-on: #18
2024-04-26 19:15:33 +00:00
Yu Sung
4967f4e93e 시리즈 등록 - 크리에이터 -> 장르로 변경 2024-04-27 04:13:43 +09:00
c88aa227fd Merge pull request '시리즈' (#17) from test into main
Reviewed-on: #17
2024-04-26 18:57:40 +00:00
Yu Sung
756e0321f8 시리즈에 콘텐츠 추가하는 기능 2024-04-24 14:22:41 +09:00
Yu Sung
80e2e7d802 시리즈 상세 페이지 - 콘텐츠 리스트/콘텐츠 삭제 기능 추가 2024-04-24 01:13:28 +09:00
Yu Sung
d9aaca3827 시리즈 상세페이지 추가 2024-04-23 18:49:40 +09:00
Yu Sung
1082c9334f 시리즈 등록/수정/삭제 페이지 추가 2024-04-23 00:18:32 +09:00
3631919245 Merge pull request '콘텐츠 리스트 한정판 표시 - 판매된 개수/전체개수, 다 팔리면 Sold Out으로 표시하도록 수정' (#16) from test into main
Reviewed-on: #16
2024-03-29 03:21:24 +00:00
Yu Sung
b16e85a27f 콘텐츠 리스트 한정판 표시 - 판매된 개수/전체개수, 다 팔리면 Sold Out으로 표시하도록 수정 2024-03-29 11:50:59 +09:00
4a4783563e Merge pull request 'test' (#15) from test into main
Reviewed-on: #15
2024-03-28 06:58:57 +00:00
Yu Sung
c7b8e68b32 콘텐츠 리스트 - 한정판 여부 표시 2024-03-27 19:49:30 +09:00
Yu Sung
dd0bcd323b 콘텐츠 한정판 등록 기능 추가 2024-03-27 19:21:06 +09:00
28d56ab59a Merge pull request '시그니처 관리' (#14) from test into main
Reviewed-on: #14
2024-03-13 11:39:55 +00:00
Yu Sung
17bc67b4d4 시그니처 관리
- 캔 수정, 19금 설정 추가
2024-03-13 19:31:15 +09:00
be97e0ab31 Merge pull request '시그니처 조회/등록/수정/삭제 페이지 추가' (#13) from test into main
Reviewed-on: #13
2024-03-12 06:34:30 +00:00
Yu Sung
c00abb103f 시그니처 조회/등록/수정/삭제 페이지 추가 2024-03-12 14:46:19 +09:00
5e8ec80621 Merge pull request '파비콘 변경' (#12) from test into main
Reviewed-on: #12
2024-02-17 15:02:19 +00:00
Yu Sung
fae6c5410b 파비콘 변경 2024-02-17 23:57:53 +09:00
0efb3ea86d Merge pull request 'test' (#11) from test into main
Reviewed-on: #11
2024-02-07 09:53:49 +00:00
Yu Sung
b0767578f7 헤더 가운데 정렬 2024-02-07 10:03:16 +09:00
Yu Sung
463d71b579 콘텐츠 카테고리 API 추가 2024-02-07 07:30:08 +09:00
Yu Sung
565205be92 콘텐츠 카테고리 관리 UI 추가 2024-02-06 21:50:19 +09:00
c0b6a23782 Merge pull request '콘텐츠 업로드 - 미리듣기 생성하지 않을 수 있도록 수정' (#10) from test into main
Reviewed-on: #10
2024-01-30 03:31:28 +00:00
Yu Sung
82674796e8 콘텐츠 업로드 - 미리듣기 생성하지 않을 수 있도록 수정 2024-01-30 12:02:43 +09:00
a838b3673c Merge pull request '콘텐츠 등록 - 예약 업로드 추가' (#9) from test into main
Reviewed-on: #9
2024-01-11 09:16:41 +00:00
Yu Sung
9434c2caac 콘텐츠 등록 - 예약 업로드 추가 2024-01-11 17:36:52 +09:00
f64f1f0fb7 Merge pull request '일자별 콘텐츠 후원 페이지 - 유/무료 구분 추가' (#8) from test into main
Reviewed-on: #8
2023-11-14 13:24:07 +00:00
Yu Sung
77756d1a9a 일자별 콘텐츠 후원 페이지 - 유/무료 구분 추가 2023-11-14 22:07:16 +09:00
3088f957e2 Merge pull request 'test' (#7) from test into main
Reviewed-on: #7
2023-11-14 12:11:01 +00:00
Yu Sung
850c7d038a 일자별 콘텐츠 후원 페이지 - 페이징 추가 2023-11-14 21:02:18 +09:00
Yu Sung
d890e84a20 일자별 콘텐츠 후원 페이지 추가 2023-11-14 20:48:49 +09:00
41f99a175c Merge pull request '콘텐츠별 누적 현황 페이지 추가' (#6) from test into main
Reviewed-on: #6
2023-11-13 15:31:10 +00:00
Yu Sung
9482c0622b 콘텐츠별 누적 현황 페이지 추가 2023-11-14 00:22:19 +09:00
61b5d785a3 Merge pull request '일자별 콘텐츠 정산 페이지 추가' (#5) from test into main
Reviewed-on: #5
2023-11-13 10:07:06 +00:00
Yu Sung
caaa4f9422 일자별 콘텐츠 정산 페이지 추가 2023-11-13 18:59:20 +09:00
3fe7554e06 Merge pull request '콘텐츠 등록 - 대여만 가능한 콘텐츠 등록할 수 있도록 체크박스 추가' (#4) from test into main
Reviewed-on: #4
2023-10-30 02:10:49 +00:00
Yu Sung
acca2d3f2d 콘텐츠 등록 - 대여만 가능한 콘텐츠 등록할 수 있도록 체크박스 추가 2023-10-29 02:14:01 +09:00
1def9ddd4a Merge pull request '미리듣기 시간설정 기능 추가' (#3) from test into main
Reviewed-on: #3
2023-10-04 15:43:22 +00:00
Yu Sung
90d5b23737 콘텐츠 등록 미리듣기 시간 설정 안내문구 추가 2023-10-05 00:33:31 +09:00
Yu Sung
6e5ab5bcc7 유료콘텐츠의 경우에만 미리듣기 시간설정 영역이 표시되도록 수정 2023-10-04 22:16:09 +09:00
Yu Sung
9e4ff25c8d 미리듣기 시간설정 기능 추가 2023-10-04 22:10:14 +09:00
a13d442924 Merge pull request '정산 - 합계 추가' (#2) from test into main
Reviewed-on: #2
2023-10-04 07:22:59 +00:00
Yu Sung
15f1136499 정산 - 합계 추가 2023-10-04 16:20:27 +09:00
a1f206a3c0 Merge pull request 'test' (#1) from test into main
Reviewed-on: #1
2023-10-04 03:34:29 +00:00
Yu Sung
cab4e00626 액셀다운로드 제거 2023-10-04 12:28:50 +09:00
Yu Sung
787643977d 라이브 정산 페이지 추가 2023-10-04 00:34:22 +09:00
Yu Sung
9a4bbbe241 콘텐츠 삭제 기능 추가 2023-08-23 22:53:33 +09:00
Yu Sung
6583227b84 콘텐츠 내용 - textarea로 변경 2023-08-23 22:21:03 +09:00
Yu Sung
693fb7dc70 isLoading -> is_loading 2023-08-23 22:11:51 +09:00
Yu Sung
848f736b8f 콘텐츠 삭제 기능 추가 2023-08-23 22:00:49 +09:00
Yu Sung
11eaaaa180 콘텐츠 업로드 기능 추가 2023-08-23 21:37:08 +09:00
Yu Sung
647a0cfd66 콘텐츠 업데이트 - 커버이미지 추가 및 multipart 방식으로 수정 2023-08-23 18:47:30 +09:00
24 changed files with 5249 additions and 479 deletions

297
package-lock.json generated
View File

@@ -10,9 +10,11 @@
"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11",
"vue-excel-xlsx": "^1.2.2",
"vue-router": "^3.2.0",
"vue-show-more-text": "^2.0.2",
"vue2-datepicker": "^3.11.1",
"vue2-editor": "^2.10.3",
"vue2-timepicker": "^1.1.6",
"vuedraggable": "^2.24.3",
"vuejs-datetimepicker": "^1.1.13",
"vuetify": "2.6.10",
@@ -2760,21 +2762,6 @@
"node": ">= 0.12.0"
}
},
"node_modules/adler-32": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.2.0.tgz",
"integrity": "sha512-/vUqU/UY4MVeFsg+SsK6c+/05RZXIHZMGJA+PX5JyWI0ZRcBpupnRuPLU/NXXoFwMYCPCoxIfElM2eS+DUXCqQ==",
"dependencies": {
"exit-on-epipe": "~1.0.1",
"printj": "~1.1.0"
},
"bin": {
"adler32": "bin/adler32.njs"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
@@ -3876,26 +3863,6 @@
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
"dev": true
},
"node_modules/cfb": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/cfb/-/cfb-1.2.2.tgz",
"integrity": "sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==",
"dependencies": {
"adler-32": "~1.3.0",
"crc-32": "~1.2.0"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/cfb/node_modules/adler-32": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.3.1.tgz",
"integrity": "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A==",
"engines": {
"node": ">=0.8"
}
},
"node_modules/chalk": {
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
@@ -4322,26 +4289,6 @@
"node": ">= 4.0"
}
},
"node_modules/codepage": {
"version": "1.14.0",
"resolved": "https://registry.npmjs.org/codepage/-/codepage-1.14.0.tgz",
"integrity": "sha512-iz3zJLhlrg37/gYRWgEPkaFTtzmnEv1h+r7NgZum2lFElYQPi0/5bnmuDfODHxfp0INEfnRqyfyeIJDbb7ahRw==",
"dependencies": {
"commander": "~2.14.1",
"exit-on-epipe": "~1.0.1"
},
"bin": {
"codepage": "bin/codepage.njs"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/codepage/node_modules/commander": {
"version": "2.14.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz",
"integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw=="
},
"node_modules/collection-visit": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
@@ -4405,7 +4352,8 @@
"node_modules/commander": {
"version": "2.17.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz",
"integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg=="
"integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==",
"dev": true
},
"node_modules/commondir": {
"version": "1.0.1",
@@ -4848,17 +4796,6 @@
"node": ">=4"
}
},
"node_modules/crc-32": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",
"integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",
"bin": {
"crc32": "bin/crc32.njs"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/create-ecdh": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz",
@@ -5237,6 +5174,11 @@
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz",
"integrity": "sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw=="
},
"node_modules/date-format-parse": {
"version": "0.2.7",
"resolved": "https://registry.npmjs.org/date-format-parse/-/date-format-parse-0.2.7.tgz",
"integrity": "sha512-/+lyMUKoRogMuTeOVii6lUwjbVlesN9YRYLzZT/g3TEZ3uD9QnpjResujeEqUW+OSNbT7T1+SYdyEkTcRv+KDQ=="
},
"node_modules/de-indent": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
@@ -6382,14 +6324,6 @@
"node": ">=6"
}
},
"node_modules/exit-on-epipe": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz",
"integrity": "sha512-h2z5mrROTxce56S+pnvAV890uu7ls7f1kEvVGJbw1OlFH3/mlJ5bkXu0KRyW94v37zzHPiUd55iLn3DA7TjWpw==",
"engines": {
"node": ">=0.8"
}
},
"node_modules/expand-brackets": {
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz",
@@ -7027,14 +6961,6 @@
"node": ">= 0.6"
}
},
"node_modules/frac": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/frac/-/frac-1.1.2.tgz",
"integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA==",
"engines": {
"node": ">=0.8"
}
},
"node_modules/fragment-cache": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz",
@@ -11283,17 +11209,6 @@
"renderkid": "^2.0.4"
}
},
"node_modules/printj": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/printj/-/printj-1.1.2.tgz",
"integrity": "sha512-zA2SmoLaxZyArQTOPj5LXecR+RagfPSU5Kw1qP+jkWeNlrq+eJZyY2oS68SU1Z/7/myXM4lo9716laOFAVStCQ==",
"bin": {
"printj": "bin/printj.njs"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
@@ -12920,20 +12835,6 @@
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
"dev": true
},
"node_modules/ssf": {
"version": "0.10.3",
"resolved": "https://registry.npmjs.org/ssf/-/ssf-0.10.3.tgz",
"integrity": "sha512-pRuUdW0WwyB2doSqqjWyzwCD6PkfxpHAHdZp39K3dp/Hq7f+xfMwNAWIi16DyrRg4gg9c/RvLYkJTSawTPTm1w==",
"dependencies": {
"frac": "~1.1.2"
},
"bin": {
"ssf": "bin/ssf.njs"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/sshpk": {
"version": "1.17.0",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz",
@@ -14439,14 +14340,6 @@
"node": ">=8.0.0"
}
},
"node_modules/vue-excel-xlsx": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/vue-excel-xlsx/-/vue-excel-xlsx-1.2.2.tgz",
"integrity": "sha512-/kXVlfoeiScN792FwkzybylLT7zv94vTgpX1PQeUK0rl+wUci+Z+W1W1ULxiiJX4dHN3gWAIOIpadz+8qNe8Gg==",
"dependencies": {
"xlsx": "^0.14.4"
}
},
"node_modules/vue-hot-reload-api": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
@@ -14596,6 +14489,15 @@
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.3.tgz",
"integrity": "sha512-FUlILrW3DGitS2h+Xaw8aRNvGTwtuaxrRkNSHWTizOfLUie7wuYwezeZ50iflRn8YPV5kxmU2LQuu3nM/b3Zsg=="
},
"node_modules/vue-show-more-text": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/vue-show-more-text/-/vue-show-more-text-2.0.2.tgz",
"integrity": "sha512-x/WuikWAx8Hm4gpZx6KHtJYiXDordGdSoXrd34lTiJeAnlT8Y7Yc0FfGBNdUv6mXncuET3LiRwwNz+X5gI+oiw==",
"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11"
}
},
"node_modules/vue-style-loader": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
@@ -14628,6 +14530,17 @@
"integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==",
"dev": true
},
"node_modules/vue2-datepicker": {
"version": "3.11.1",
"resolved": "https://registry.npmjs.org/vue2-datepicker/-/vue2-datepicker-3.11.1.tgz",
"integrity": "sha512-6PU/+pnp2mgZAfnSXmbdwj9516XsEvTiw61Q5SNrvvdy8W/FCxk1GAe9UZn/m9YfS5A47yK6XkcjMHbp7aFApA==",
"dependencies": {
"date-format-parse": "^0.2.7"
},
"peerDependencies": {
"vue": "^2.5.0"
}
},
"node_modules/vue2-editor": {
"version": "2.10.3",
"resolved": "https://registry.npmjs.org/vue2-editor/-/vue2-editor-2.10.3.tgz",
@@ -14636,6 +14549,14 @@
"quill": "^1.3.6"
}
},
"node_modules/vue2-timepicker": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/vue2-timepicker/-/vue2-timepicker-1.1.6.tgz",
"integrity": "sha512-DhO2UH4CTer/lMWxg+jqxn/+h6g2vZrsM6vCe9u7/Ie+Pej9yA+8mQA3C3VPApZ+LauKc43WxCspOXb6SGBOTw==",
"peerDependencies": {
"vue": "^2.6.5"
}
},
"node_modules/vuedraggable": {
"version": "2.24.3",
"resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.3.tgz",
@@ -15657,26 +15578,6 @@
"async-limiter": "~1.0.0"
}
},
"node_modules/xlsx": {
"version": "0.14.5",
"resolved": "https://registry.npmjs.org/xlsx/-/xlsx-0.14.5.tgz",
"integrity": "sha512-s/5f4/mjeWREmIWZ+HtDfh/rnz51ar+dZ4LWKZU3u9VBx2zLdSIWTdXgoa52/pnZ9Oe/Vu1W1qzcKzLVe+lq4w==",
"dependencies": {
"adler-32": "~1.2.0",
"cfb": "^1.1.2",
"codepage": "~1.14.0",
"commander": "~2.17.1",
"crc-32": "~1.2.0",
"exit-on-epipe": "~1.0.1",
"ssf": "~0.10.2"
},
"bin": {
"xlsx": "bin/xlsx.njs"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/xtend": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
@@ -17944,15 +17845,6 @@
"integrity": "sha512-aT6camzM4xEA54YVJYSqxz1kv4IHnQZRtThJJHhUMRExaU5spC7jX5ugSwTaTgJliIgs4VhZOk7htClvQ/LmRA==",
"dev": true
},
"adler-32": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.2.0.tgz",
"integrity": "sha512-/vUqU/UY4MVeFsg+SsK6c+/05RZXIHZMGJA+PX5JyWI0ZRcBpupnRuPLU/NXXoFwMYCPCoxIfElM2eS+DUXCqQ==",
"requires": {
"exit-on-epipe": "~1.0.1",
"printj": "~1.1.0"
}
},
"ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
@@ -18846,22 +18738,6 @@
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
"dev": true
},
"cfb": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/cfb/-/cfb-1.2.2.tgz",
"integrity": "sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==",
"requires": {
"adler-32": "~1.3.0",
"crc-32": "~1.2.0"
},
"dependencies": {
"adler-32": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.3.1.tgz",
"integrity": "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A=="
}
}
},
"chalk": {
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
@@ -19195,22 +19071,6 @@
"q": "^1.1.2"
}
},
"codepage": {
"version": "1.14.0",
"resolved": "https://registry.npmjs.org/codepage/-/codepage-1.14.0.tgz",
"integrity": "sha512-iz3zJLhlrg37/gYRWgEPkaFTtzmnEv1h+r7NgZum2lFElYQPi0/5bnmuDfODHxfp0INEfnRqyfyeIJDbb7ahRw==",
"requires": {
"commander": "~2.14.1",
"exit-on-epipe": "~1.0.1"
},
"dependencies": {
"commander": {
"version": "2.14.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz",
"integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw=="
}
}
},
"collection-visit": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
@@ -19268,7 +19128,8 @@
"commander": {
"version": "2.17.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz",
"integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg=="
"integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==",
"dev": true
},
"commondir": {
"version": "1.0.1",
@@ -19616,11 +19477,6 @@
"parse-json": "^4.0.0"
}
},
"crc-32": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",
"integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ=="
},
"create-ecdh": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz",
@@ -19930,6 +19786,11 @@
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz",
"integrity": "sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw=="
},
"date-format-parse": {
"version": "0.2.7",
"resolved": "https://registry.npmjs.org/date-format-parse/-/date-format-parse-0.2.7.tgz",
"integrity": "sha512-/+lyMUKoRogMuTeOVii6lUwjbVlesN9YRYLzZT/g3TEZ3uD9QnpjResujeEqUW+OSNbT7T1+SYdyEkTcRv+KDQ=="
},
"de-indent": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
@@ -20830,11 +20691,6 @@
"strip-eof": "^1.0.0"
}
},
"exit-on-epipe": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz",
"integrity": "sha512-h2z5mrROTxce56S+pnvAV890uu7ls7f1kEvVGJbw1OlFH3/mlJ5bkXu0KRyW94v37zzHPiUd55iLn3DA7TjWpw=="
},
"expand-brackets": {
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz",
@@ -21337,11 +21193,6 @@
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
"dev": true
},
"frac": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/frac/-/frac-1.1.2.tgz",
"integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA=="
},
"fragment-cache": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz",
@@ -24735,11 +24586,6 @@
"renderkid": "^2.0.4"
}
},
"printj": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/printj/-/printj-1.1.2.tgz",
"integrity": "sha512-zA2SmoLaxZyArQTOPj5LXecR+RagfPSU5Kw1qP+jkWeNlrq+eJZyY2oS68SU1Z/7/myXM4lo9716laOFAVStCQ=="
},
"process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
@@ -26095,14 +25941,6 @@
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
"dev": true
},
"ssf": {
"version": "0.10.3",
"resolved": "https://registry.npmjs.org/ssf/-/ssf-0.10.3.tgz",
"integrity": "sha512-pRuUdW0WwyB2doSqqjWyzwCD6PkfxpHAHdZp39K3dp/Hq7f+xfMwNAWIi16DyrRg4gg9c/RvLYkJTSawTPTm1w==",
"requires": {
"frac": "~1.1.2"
}
},
"sshpk": {
"version": "1.17.0",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz",
@@ -27311,14 +27149,6 @@
}
}
},
"vue-excel-xlsx": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/vue-excel-xlsx/-/vue-excel-xlsx-1.2.2.tgz",
"integrity": "sha512-/kXVlfoeiScN792FwkzybylLT7zv94vTgpX1PQeUK0rl+wUci+Z+W1W1ULxiiJX4dHN3gWAIOIpadz+8qNe8Gg==",
"requires": {
"xlsx": "^0.14.4"
}
},
"vue-hot-reload-api": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
@@ -27432,6 +27262,15 @@
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.3.tgz",
"integrity": "sha512-FUlILrW3DGitS2h+Xaw8aRNvGTwtuaxrRkNSHWTizOfLUie7wuYwezeZ50iflRn8YPV5kxmU2LQuu3nM/b3Zsg=="
},
"vue-show-more-text": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/vue-show-more-text/-/vue-show-more-text-2.0.2.tgz",
"integrity": "sha512-x/WuikWAx8Hm4gpZx6KHtJYiXDordGdSoXrd34lTiJeAnlT8Y7Yc0FfGBNdUv6mXncuET3LiRwwNz+X5gI+oiw==",
"requires": {
"core-js": "^3.6.5",
"vue": "^2.6.11"
}
},
"vue-style-loader": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
@@ -27466,6 +27305,14 @@
"integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==",
"dev": true
},
"vue2-datepicker": {
"version": "3.11.1",
"resolved": "https://registry.npmjs.org/vue2-datepicker/-/vue2-datepicker-3.11.1.tgz",
"integrity": "sha512-6PU/+pnp2mgZAfnSXmbdwj9516XsEvTiw61Q5SNrvvdy8W/FCxk1GAe9UZn/m9YfS5A47yK6XkcjMHbp7aFApA==",
"requires": {
"date-format-parse": "^0.2.7"
}
},
"vue2-editor": {
"version": "2.10.3",
"resolved": "https://registry.npmjs.org/vue2-editor/-/vue2-editor-2.10.3.tgz",
@@ -27474,6 +27321,12 @@
"quill": "^1.3.6"
}
},
"vue2-timepicker": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/vue2-timepicker/-/vue2-timepicker-1.1.6.tgz",
"integrity": "sha512-DhO2UH4CTer/lMWxg+jqxn/+h6g2vZrsM6vCe9u7/Ie+Pej9yA+8mQA3C3VPApZ+LauKc43WxCspOXb6SGBOTw==",
"requires": {}
},
"vuedraggable": {
"version": "2.24.3",
"resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.3.tgz",
@@ -28283,20 +28136,6 @@
"async-limiter": "~1.0.0"
}
},
"xlsx": {
"version": "0.14.5",
"resolved": "https://registry.npmjs.org/xlsx/-/xlsx-0.14.5.tgz",
"integrity": "sha512-s/5f4/mjeWREmIWZ+HtDfh/rnz51ar+dZ4LWKZU3u9VBx2zLdSIWTdXgoa52/pnZ9Oe/Vu1W1qzcKzLVe+lq4w==",
"requires": {
"adler-32": "~1.2.0",
"cfb": "^1.1.2",
"codepage": "~1.14.0",
"commander": "~2.17.1",
"crc-32": "~1.2.0",
"exit-on-epipe": "~1.0.1",
"ssf": "~0.10.2"
}
},
"xtend": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",

View File

@@ -12,9 +12,11 @@
"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11",
"vue-excel-xlsx": "^1.2.2",
"vue-router": "^3.2.0",
"vue-show-more-text": "^2.0.2",
"vue2-datepicker": "^3.11.1",
"vue2-editor": "^2.10.3",
"vue2-timepicker": "^1.1.6",
"vuedraggable": "^2.24.3",
"vuejs-datetimepicker": "^1.1.13",
"vuetify": "2.6.10",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>소다라이브</title>
<title>보이스온 크리에이터 관리자</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
</head>

View File

@@ -7,7 +7,7 @@
dark
>
<v-spacer />
<v-toolbar-title>소다라이브 크리에이터</v-toolbar-title>
<v-toolbar-title>보이스온 크리에이터 관리자</v-toolbar-title>
<v-spacer />
</v-app-bar>
@@ -38,4 +38,13 @@
}
}
}
.noscroll {
overflow-y: hidden;
}
.noscroll::-webkit-scrollbar {
overflow-y: hidden;
display: none;
}
</style>

View File

@@ -7,7 +7,7 @@ async function getAudioContentList(page) {
)
}
async function searchAudioContent(searchWord, page){
async function searchAudioContent(searchWord, page) {
return Vue.axios.get(
"/creator-admin/audio-content/search?search_word=" + searchWord +
"&page=" + (page - 1) +
@@ -15,12 +15,30 @@ async function searchAudioContent(searchWord, page){
)
}
async function modifyAudioContent(request) {
return Vue.axios.put("/creator-admin/audio-content", request)
async function modifyAudioContent(formData) {
return Vue.axios.put("/creator-admin/audio-content", formData, {
headers: {
"Content-Type": "multipart/form-data",
},
})
}
async function createAudioContent(formData) {
return Vue.axios.post('/audio-content', formData, {
headers: {
"Content-Type": "multipart/form-data",
},
});
}
async function getAudioContentThemeList() {
return Vue.axios.get("/audio-content/theme")
}
export {
createAudioContent,
getAudioContentList,
searchAudioContent,
modifyAudioContent
modifyAudioContent,
getAudioContentThemeList
}

View File

@@ -0,0 +1,76 @@
import Vue from 'vue';
async function getGenreList() {
return Vue.axios.get("/creator-admin/audio-content/series/genre");
}
async function getSeriesList(page) {
return Vue.axios.get("/creator-admin/audio-content/series?page=" + (page - 1) + "&size=20");
}
async function createSeries(formData) {
return Vue.axios.post("/creator-admin/audio-content/series", formData, {
headers: {
"Content-Type": "multipart/form-data",
},
});
}
async function modifySeries(formData) {
return Vue.axios.put("/creator-admin/audio-content/series", formData, {
headers: {
"Content-Type": "multipart/form-data",
},
});
}
async function getSeriesDetail(seriesId) {
return Vue.axios.get("/creator-admin/audio-content/series/" + seriesId);
}
async function getSeriesContent(seriesId, page) {
return Vue.axios.get(
"/creator-admin/audio-content/series/" + seriesId + "/content?page=" + (page - 1) + "&size=10"
);
}
async function searchContentNotInSeries(seriesId, searchWord) {
return Vue.axios.get(
"/creator-admin/audio-content/series/content/search?series_id=" + seriesId +
"&search_word=" + searchWord
)
}
async function addingContentToTheSeries(seriesId, contentIdList) {
return Vue.axios.post(
"/creator-admin/audio-content/series/add/content",
{seriesId: seriesId, contentIdList: contentIdList}
)
}
async function removeContentInTheSeries(seriesId, contentId) {
return Vue.axios.put(
"/creator-admin/audio-content/series/remove/content",
{seriesId: seriesId, contentId: contentId}
)
}
async function updateSeriesOrders(ids) {
return Vue.axios.put(
"/creator-admin/audio-content/series/orders",
{ids: ids}
)
}
export {
getGenreList,
getSeriesList,
createSeries,
modifySeries,
getSeriesDetail,
getSeriesContent,
updateSeriesOrders,
addingContentToTheSeries,
removeContentInTheSeries,
searchContentNotInSeries
}

38
src/api/calculate.js Normal file
View File

@@ -0,0 +1,38 @@
import Vue from 'vue';
async function getCalculateLive(startDate, endDate) {
return Vue.axios.get('/creator-admin/calculate/live?startDateStr=' + startDate + '&endDateStr=' + endDate);
}
async function getCalculateContent(startDate, endDate, page, size) {
return Vue.axios.get(
'/creator-admin/calculate/content-list?startDateStr=' +
startDate + '&endDateStr=' + endDate + "&page=" + (page - 1) + "&size=" + size
);
}
async function getCumulativeSalesByContent(page, size) {
return Vue.axios.get('/creator-admin/calculate/cumulative-sales-by-content?page=' + (page - 1) + "&size=" + size);
}
async function getCalculateContentDonation(startDate, endDate, page, size) {
return Vue.axios.get(
'/creator-admin/calculate/content-donation-list?startDateStr=' +
startDate + '&endDateStr=' + endDate + "&page=" + (page - 1) + "&size=" + size
);
}
async function getCalculateCommunityPost(startDate, endDate, page, size) {
return Vue.axios.get(
'/creator-admin/calculate/community-post?startDateStr=' +
startDate + '&endDateStr=' + endDate + "&page=" + (page - 1) + "&size=" + size
);
}
export {
getCalculateLive,
getCalculateContent,
getCumulativeSalesByContent,
getCalculateContentDonation,
getCalculateCommunityPost
}

28
src/api/category.js Normal file
View File

@@ -0,0 +1,28 @@
import Vue from 'vue';
async function saveCategory(title) {
return Vue.axios.post('/category', {title: title, contentIdList: []});
}
async function modifyCategory(categoryId, title = null, addContentIdList = [], removeContentIdList = []) {
return Vue.axios.put('/category', {
categoryId: categoryId,
title: title,
addContentIdList: addContentIdList,
removeContentIdList: removeContentIdList
});
}
async function deleteCategory(categoryId) {
return Vue.axios.delete('/category/' + categoryId)
}
async function getCategoryList(creatorId) {
return Vue.axios.get('/category?creatorId=' + creatorId)
}
async function updateCategoryOrders(ids) {
return Vue.axios.put('/category/orders', {ids: ids})
}
export {saveCategory, modifyCategory, deleteCategory, getCategoryList, updateCategoryOrders}

View File

@@ -0,0 +1,18 @@
import Vue from "vue";
async function getContentInCategory(categoryId, page) {
return Vue.axios.get(
"/creator-admin/content-category?category_id=" + categoryId +
"&page=" + (page - 1) +
"&size=10"
)
}
async function searchContentNotInCategory(categoryId, searchWord) {
return Vue.axios.get(
"/creator-admin/content-category/search?category_id=" + categoryId +
"&search_word=" + searchWord
)
}
export {getContentInCategory, searchContentNotInCategory}

23
src/api/signature.js Normal file
View File

@@ -0,0 +1,23 @@
import Vue from 'vue'
async function getSignatureList(page, sort) {
return Vue.axios.get('/creator-admin/signature?page=' + (page - 1) + "&size=20" + "&sort-type=" + sort);
}
async function createSignature(formData) {
return Vue.axios.post('/creator-admin/signature', formData, {
headers: {
"Content-Type": "multipart/form-data",
},
});
}
async function modifySignature(formData) {
return Vue.axios.put('/creator-admin/signature', formData, {
headers: {
"Content-Type": "multipart/form-data",
},
});
}
export { getSignatureList, createSignature, modifySignature }

View File

@@ -20,11 +20,10 @@
:to="item.route"
active-class="blue white--text"
>
<v-list-item-icon>
<v-icon>{{ item.icon }}</v-icon>
</v-list-item-icon>
<v-list-item-title>{{ item.title }}</v-list-item-title>
<v-list-item-icon>
<v-icon>mdi-chevron-right</v-icon>
</v-list-item-icon>
</v-list-item>
</div>

View File

@@ -7,7 +7,6 @@ import store from './store'
import VuetifyDialog from 'vuetify-dialog'
import 'vuetify-dialog/dist/vuetify-dialog.css'
import VueExcelXlsx from "vue-excel-xlsx";
Vue.config.productionTip = false
Vue.use(VuetifyDialog, {
@@ -16,8 +15,6 @@ Vue.use(VuetifyDialog, {
}
})
Vue.use(VueExcelXlsx);
new Vue({
vuetify,
router,

View File

@@ -19,6 +19,51 @@ const routes = [
path: '/content/list',
name: 'ContentList',
component: () => import(/* webpackChunkName: "content" */ '../views/Content/ContentList.vue')
},
{
path: '/content/category/list',
name: 'ContentCategoryList',
component: () => import(/* webpackChunkName: "content" */ '../views/Content/ContentCategoryList.vue')
},
{
path: '/content/series/list',
name: 'ContentSeriesList',
component: () => import(/* webpackChunkName: "content" */ '../views/Content/ContentSeriesList.vue')
},
{
path: '/content/series/detail',
name: 'ContentSeriesDetail',
component: () => import(/* webpackChunkName: "content" */ '../views/Content/ContentSeriesDetail.vue')
},
{
path: '/calculate/live',
name: 'CalculateLive',
component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateLive.vue')
},
{
path: '/calculate/content-by-date',
name: 'CalculateContent',
component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateContent.vue')
},
{
path: '/calculate/content-accumulation',
name: 'CalculateAccumulation',
component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateAccumulation.vue')
},
{
path: '/calculate/content-donation-by-date',
name: 'CalculateContentDonation',
component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateContentDonation.vue')
},
{
path: '/calculate/community-post',
name: 'CalculateCommunityPost',
component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateCommunityPost.vue')
},
{
path: '/signature',
name: 'SignatureManagement',
component: () => import(/* webpackChunkName: "signature" */ '../views/Signature/SignatureManagement.vue')
}
]
},
@@ -37,6 +82,12 @@ const router = new VueRouter({
router.beforeEach((to, from, next) => {
if (to.path !== '/login') {
if (to.path === '/content/series/list') {
document.documentElement.classList.add('noscroll'); // html에 클래스 추가
} else {
document.documentElement.classList.remove('noscroll');
}
const isAuthenticated = store.getters['accountStore/isAuthenticated']
if (isAuthenticated) {
next();

View File

@@ -0,0 +1,209 @@
<template>
<div>
<v-toolbar dark>
<v-spacer />
<v-toolbar-title>콘텐츠별 누적 현황</v-toolbar-title>
<v-spacer />
</v-toolbar>
<br>
<v-container>
<v-row>
<v-col>
<v-data-table
:headers="headers"
:items="items"
:loading="is_loading"
:items-per-page="-1"
class="elevation-1"
hide-default-footer
>
<template v-slot:item.orderPrice="{ item }">
{{ item.orderPrice.toLocaleString() }}
</template>
<template v-slot:item.totalCan="{ item }">
{{ item.totalCan.toLocaleString() }}
</template>
<template v-slot:item.totalKrw="{ item }">
{{ item.totalKrw.toLocaleString() }}
</template>
<template v-slot:item.paymentFee="{ item }">
{{ item.paymentFee.toLocaleString() }}
</template>
<template v-slot:item.settlementAmount="{ item }">
{{ item.settlementAmount.toLocaleString() }}
</template>
<template v-slot:item.tax="{ item }">
{{ item.tax.toLocaleString() }}
</template>
<template v-slot:item.depositAmount="{ item }">
{{ item.depositAmount.toLocaleString() }}
</template>
</v-data-table>
</v-col>
</v-row>
<v-row class="text-center">
<v-col>
<v-pagination
v-model="page"
:length="total_page"
circle
@input="next"
/>
</v-col>
</v-row>
</v-container>
</div>
</template>
<script>
import * as api from "@/api/calculate";
export default {
name: "CalculateAccumulation",
data() {
return {
is_loading: false,
page: 1,
page_size: 20,
total_page: 0,
items: [],
headers: [
{
text: '크리에이터',
align: 'center',
sortable: false,
value: 'nickname',
},
{
text: '등록일',
align: 'center',
sortable: false,
value: 'registrationDate',
},
{
text: '제목',
sortable: false,
value: 'title',
align: 'center',
width: "300px"
},
{
text: '구분',
align: 'center',
sortable: false,
value: 'orderType',
},
{
text: '판매금액(캔)',
align: 'center',
sortable: false,
value: 'orderPrice',
},
{
text: '누적 판매수',
align: 'center',
sortable: false,
value: 'numberOfPeople',
},
{
text: '합계(캔)',
align: 'center',
sortable: false,
value: 'totalCan',
},
{
text: '원화',
align: 'center',
sortable: false,
value: 'totalKrw',
},
{
text: '수수료\n(6.6%)',
align: 'center',
sortable: false,
value: 'paymentFee',
},
{
text: '정산금액',
align: 'center',
sortable: false,
value: 'settlementAmount',
},
{
text: '원천세\n(3.3%)',
align: 'center',
sortable: false,
value: 'tax',
},
{
text: '입금액',
align: 'center',
sortable: false,
value: 'depositAmount',
},
],
}
},
async created() {
await this.getCumulativeSalesByContent();
},
methods: {
notifyError(message) {
this.$dialog.notify.error(message)
},
notifySuccess(message) {
this.$dialog.notify.success(message)
},
sumField(key) {
return this.items.reduce((a, b) => a + (b[key] || 0), 0)
},
async next() {
await this.getCumulativeSalesByContent()
},
async getCumulativeSalesByContent() {
this.is_loading = true
try {
const res = await api.getCumulativeSalesByContent(this.page, this.page_size)
if (res.status === 200 && res.data.success === true) {
const data = res.data.data
const totalPage = Math.ceil(data.totalCount / this.page_size)
this.items = data.items
if (totalPage <= 0)
this.total_page = 1
else
this.total_page = totalPage
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
this.is_loading = false
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
}
}
}
}
</script>
<style scoped>
</style>

View File

@@ -0,0 +1,261 @@
<template>
<div>
<v-toolbar dark>
<v-spacer />
<v-toolbar-title>커뮤니티 정산</v-toolbar-title>
<v-spacer />
</v-toolbar>
<br>
<v-container>
<v-row>
<v-col cols="2">
<datetime
v-model="start_date"
class="datepicker"
format="YYYY-MM-DD"
/>
</v-col>
<v-col cols="1">
~
</v-col>
<v-col cols="2">
<datetime
v-model="end_date"
class="datepicker"
format="YYYY-MM-DD"
/>
</v-col>
<v-col cols="1" />
<v-col cols="2">
<v-btn
block
color="#9970ff"
dark
depressed
@click="getCalculateCommunityPost"
>
조회
</v-btn>
</v-col>
<v-spacer />
</v-row>
<v-row>
<v-col>
<v-data-table
:headers="headers"
:items="items"
:loading="is_loading"
:items-per-page="-1"
class="elevation-1"
hide-default-footer
>
<template slot="body.prepend">
<tr>
<td colspan="4">
합계
</td>
<td>{{ sumField('totalCan').toLocaleString() }} </td>
<td>{{ sumField('totalKrw').toLocaleString() }} </td>
<td>{{ sumField('paymentFee').toLocaleString() }} </td>
<td>{{ sumField('settlementAmount').toLocaleString() }} </td>
<td>{{ sumField('tax').toLocaleString() }} </td>
<td>{{ sumField('depositAmount').toLocaleString() }} </td>
</tr>
</template>
<template v-slot:item.title="{ item }">
{{ item.title }}...
</template>
<template v-slot:item.totalCan="{ item }">
{{ item.totalCan.toLocaleString() }}
</template>
<template v-slot:item.totalKrw="{ item }">
{{ item.totalKrw.toLocaleString() }}
</template>
<template v-slot:item.paymentFee="{ item }">
{{ item.paymentFee.toLocaleString() }}
</template>
<template v-slot:item.settlementAmount="{ item }">
{{ item.settlementAmount.toLocaleString() }}
</template>
<template v-slot:item.tax="{ item }">
{{ item.tax.toLocaleString() }}
</template>
<template v-slot:item.depositAmount="{ item }">
{{ item.depositAmount.toLocaleString() }}
</template>
</v-data-table>
</v-col>
</v-row>
<v-row class="text-center">
<v-col>
<v-pagination
v-model="page"
:length="total_page"
circle
@input="next"
/>
</v-col>
</v-row>
</v-container>
</div>
</template>
<script>
import datetime from "vuejs-datetimepicker";
import * as api from "@/api/calculate";
export default {
name: "CalculateCommunityPost",
components: {datetime},
data() {
return {
is_loading: false,
start_date: null,
end_date: null,
page: 1,
page_size: 20,
total_page: 0,
items: [],
headers: [
{
text: '날짜',
align: 'center',
sortable: false,
value: 'date',
},
{
text: '내용(앞 10글자)',
sortable: false,
value: 'title',
align: 'center',
width: "300px"
},
{
text: '판매금액(캔)',
align: 'center',
sortable: false,
value: 'can',
},
{
text: '구매유저수',
align: 'center',
sortable: false,
value: 'numberOfPurchase',
},
{
text: '합계(캔)',
align: 'center',
sortable: false,
value: 'totalCan',
},
{
text: '원화',
align: 'center',
sortable: false,
value: 'totalKrw',
},
{
text: '수수료\n(6.6%)',
align: 'center',
sortable: false,
value: 'paymentFee',
},
{
text: '정산금액',
align: 'center',
sortable: false,
value: 'settlementAmount',
},
{
text: '원천세\n(3.3%)',
align: 'center',
sortable: false,
value: 'tax',
},
{
text: '입금액',
align: 'center',
sortable: false,
value: 'depositAmount',
}
],
}
},
async created() {
const date = new Date();
const firstDate = new Date(date.getFullYear(), date.getMonth(), 1);
const lastDate = new Date(date.getFullYear(), date.getMonth() + 1, 0);
let firstDateMonth = (firstDate.getMonth() + 1).toString()
if (firstDateMonth.length < 2) {
firstDateMonth = '0' + firstDateMonth
}
let lastDateMonth = (lastDate.getMonth() + 1).toString()
if (lastDateMonth.length < 2) {
lastDateMonth = '0' + lastDateMonth
}
this.start_date = firstDate.getFullYear() + '-' + firstDateMonth + '-0' + firstDate.getDate()
this.end_date = lastDate.getFullYear() + '-' + lastDateMonth + '-' + lastDate.getDate()
await this.getCalculateCommunityPost();
},
methods: {
notifyError(message) {
this.$dialog.notify.error(message)
},
sumField(key) {
return this.items.reduce((a, b) => a + (b[key] || 0), 0)
},
async next() {
await this.getCalculateCommunityPost()
},
async getCalculateCommunityPost() {
this.is_loading = true
try {
const res = await api.getCalculateCommunityPost(this.start_date, this.end_date, this.page, this.page_size)
if (res.status === 200 && res.data.success === true) {
const data = res.data.data
const totalPage = Math.ceil(data.totalCount / this.page_size)
this.items = data.items
if (totalPage <= 0)
this.total_page = 1
else
this.total_page = totalPage
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
this.is_loading = false
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
}
}
}
}
</script>

View File

@@ -0,0 +1,291 @@
<template>
<div>
<v-toolbar dark>
<v-spacer />
<v-toolbar-title>콘텐츠 정산</v-toolbar-title>
<v-spacer />
</v-toolbar>
<br>
<v-container>
<v-row>
<v-col cols="2">
<datetime
v-model="start_date"
class="datepicker"
format="YYYY-MM-DD"
/>
</v-col>
<v-col cols="1">
~
</v-col>
<v-col cols="2">
<datetime
v-model="end_date"
class="datepicker"
format="YYYY-MM-DD"
/>
</v-col>
<v-col cols="1" />
<v-col cols="2">
<v-btn
block
color="#9970ff"
dark
depressed
@click="getCalculateContent"
>
조회
</v-btn>
</v-col>
<v-spacer />
</v-row>
<v-row>
<v-col>
<v-data-table
:headers="headers"
:items="items"
:loading="is_loading"
:items-per-page="-1"
class="elevation-1"
hide-default-footer
>
<template slot="body.prepend">
<tr>
<td colspan="5">
합계
</td>
<td>{{ sumField('numberOfPeople').toLocaleString() }}</td>
<td>{{ sumField('totalCan').toLocaleString() }} </td>
<td>{{ sumField('totalKrw').toLocaleString() }} </td>
<td>{{ sumField('paymentFee').toLocaleString() }} </td>
<td>{{ sumField('settlementAmount').toLocaleString() }} </td>
<td>{{ sumField('tax').toLocaleString() }} </td>
<td>{{ sumField('depositAmount').toLocaleString() }} </td>
<td />
</tr>
</template>
<template v-slot:item.orderPrice="{ item }">
{{ item.orderPrice.toLocaleString() }}
</template>
<template v-slot:item.orderType="{ item }">
{{ item.orderType }}
</template>
<template v-slot:item.totalCan="{ item }">
{{ item.totalCan.toLocaleString() }}
</template>
<template v-slot:item.totalKrw="{ item }">
{{ item.totalKrw.toLocaleString() }}
</template>
<template v-slot:item.paymentFee="{ item }">
{{ item.paymentFee.toLocaleString() }}
</template>
<template v-slot:item.settlementAmount="{ item }">
{{ item.settlementAmount.toLocaleString() }}
</template>
<template v-slot:item.tax="{ item }">
{{ item.tax.toLocaleString() }}
</template>
<template v-slot:item.depositAmount="{ item }">
{{ item.depositAmount.toLocaleString() }}
</template>
</v-data-table>
</v-col>
</v-row>
<v-row class="text-center">
<v-col>
<v-pagination
v-model="page"
:length="total_page"
circle
@input="next"
/>
</v-col>
</v-row>
</v-container>
</div>
</template>
<script>
import * as api from "@/api/calculate";
import datetime from 'vuejs-datetimepicker';
export default {
name: "CalculateContent",
components: {datetime},
data() {
return {
is_loading: false,
start_date: null,
end_date: null,
page: 1,
page_size: 20,
total_page: 0,
items: [],
headers: [
{
text: '판매일',
align: 'center',
sortable: false,
value: 'saleDate',
},
{
text: '크리에이터',
align: 'center',
sortable: false,
value: 'nickname',
},
{
text: '제목',
sortable: false,
value: 'title',
align: 'center',
width: "300px"
},
{
text: '구분',
align: 'center',
sortable: false,
value: 'orderType',
},
{
text: '판매금액(캔)',
align: 'center',
sortable: false,
value: 'orderPrice',
},
{
text: '판매수',
align: 'center',
sortable: false,
value: 'numberOfPeople',
},
{
text: '합계(캔)',
align: 'center',
sortable: false,
value: 'totalCan',
},
{
text: '원화',
align: 'center',
sortable: false,
value: 'totalKrw',
},
{
text: '수수료\n(6.6%)',
align: 'center',
sortable: false,
value: 'paymentFee',
},
{
text: '정산금액',
align: 'center',
sortable: false,
value: 'settlementAmount',
},
{
text: '원천세\n(3.3%)',
align: 'center',
sortable: false,
value: 'tax',
},
{
text: '입금액',
align: 'center',
sortable: false,
value: 'depositAmount',
},
{
text: '등록일',
align: 'center',
sortable: false,
value: 'registrationDate',
},
],
}
},
async created() {
const date = new Date();
const firstDate = new Date(date.getFullYear(), date.getMonth(), 1);
const lastDate = new Date(date.getFullYear(), date.getMonth() + 1, 0);
let firstDateMonth = (firstDate.getMonth() + 1).toString()
if (firstDateMonth.length < 2) {
firstDateMonth = '0' + firstDateMonth
}
let lastDateMonth = (lastDate.getMonth() + 1).toString()
if (lastDateMonth.length < 2) {
lastDateMonth = '0' + lastDateMonth
}
this.start_date = firstDate.getFullYear() + '-' + firstDateMonth + '-0' + firstDate.getDate()
this.end_date = lastDate.getFullYear() + '-' + lastDateMonth + '-' + lastDate.getDate()
await this.getCalculateContent();
},
methods: {
notifyError(message) {
this.$dialog.notify.error(message)
},
notifySuccess(message) {
this.$dialog.notify.success(message)
},
sumField(key) {
return this.items.reduce((a, b) => a + (b[key] || 0), 0)
},
async next() {
await this.getCalculateContent()
},
async getCalculateContent() {
this.is_loading = true
try {
const res = await api.getCalculateContent(this.start_date, this.end_date, this.page, this.page_size)
if (res.status === 200 && res.data.success === true) {
const data = res.data.data
const totalPage = Math.ceil(data.totalCount / this.page_size)
this.items = data.items
if (totalPage <= 0)
this.total_page = 1
else
this.total_page = totalPage
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
this.is_loading = false
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
}
}
}
}
</script>

View File

@@ -0,0 +1,261 @@
<template>
<div>
<v-toolbar dark>
<v-spacer />
<v-toolbar-title>콘텐츠 정산</v-toolbar-title>
<v-spacer />
</v-toolbar>
<br>
<v-container>
<v-row>
<v-col cols="2">
<datetime
v-model="start_date"
class="datepicker"
format="YYYY-MM-DD"
/>
</v-col>
<v-col cols="1">
~
</v-col>
<v-col cols="2">
<datetime
v-model="end_date"
class="datepicker"
format="YYYY-MM-DD"
/>
</v-col>
<v-col cols="1" />
<v-col cols="2">
<v-btn
block
color="#9970ff"
dark
depressed
@click="getCalculateContentDonation"
>
조회
</v-btn>
</v-col>
<v-spacer />
</v-row>
<v-row>
<v-col>
<v-data-table
:headers="headers"
:items="items"
:loading="is_loading"
:items-per-page="-1"
class="elevation-1"
hide-default-footer
>
<template v-slot:item.totalCan="{ item }">
{{ item.totalCan.toLocaleString() }}
</template>
<template v-slot:item.totalKrw="{ item }">
{{ item.totalKrw.toLocaleString() }}
</template>
<template v-slot:item.paymentFee="{ item }">
{{ item.paymentFee.toLocaleString() }}
</template>
<template v-slot:item.settlementAmount="{ item }">
{{ item.settlementAmount.toLocaleString() }}
</template>
<template v-slot:item.tax="{ item }">
{{ item.tax.toLocaleString() }}
</template>
<template v-slot:item.depositAmount="{ item }">
{{ item.depositAmount.toLocaleString() }}
</template>
</v-data-table>
</v-col>
</v-row>
<v-row class="text-center">
<v-col>
<v-pagination
v-model="page"
:length="total_page"
circle
@input="next"
/>
</v-col>
</v-row>
</v-container>
</div>
</template>
<script>
import * as api from "@/api/calculate";
import datetime from "vuejs-datetimepicker";
export default {
name: "CalculateContentDonation",
components: {datetime},
data() {
return {
is_loading: false,
start_date: null,
end_date: null,
page: 1,
page_size: 20,
total_page: 0,
items: [],
headers: [
{
text: '후원날짜',
align: 'center',
sortable: false,
value: 'donationDate',
},
{
text: '크리에이터',
align: 'center',
sortable: false,
value: 'nickname',
},
{
text: '콘텐츠 제목',
sortable: false,
value: 'title',
align: 'center',
width: "300px"
},
{
text: '구분',
sortable: false,
value: 'paidOrFree',
align: 'center'
},
{
text: '후원수',
align: 'center',
sortable: false,
value: 'numberOfDonation',
},
{
text: '합계(캔)',
align: 'center',
sortable: false,
value: 'totalCan',
},
{
text: '원화',
align: 'center',
sortable: false,
value: 'totalKrw',
},
{
text: '수수료\n(6.6%)',
align: 'center',
sortable: false,
value: 'paymentFee',
},
{
text: '정산금액',
align: 'center',
sortable: false,
value: 'settlementAmount',
},
{
text: '원천세\n(3.3%)',
align: 'center',
sortable: false,
value: 'tax',
},
{
text: '입금액',
align: 'center',
sortable: false,
value: 'depositAmount',
},
{
text: '콘텐츠 등록일',
align: 'center',
sortable: false,
value: 'registrationDate',
},
],
}
},
async created() {
const date = new Date();
const firstDate = new Date(date.getFullYear(), date.getMonth(), 1);
const lastDate = new Date(date.getFullYear(), date.getMonth() + 1, 0);
let firstDateMonth = (firstDate.getMonth() + 1).toString()
if (firstDateMonth.length < 2) {
firstDateMonth = '0' + firstDateMonth
}
let lastDateMonth = (lastDate.getMonth() + 1).toString()
if (lastDateMonth.length < 2) {
lastDateMonth = '0' + lastDateMonth
}
this.start_date = firstDate.getFullYear() + '-' + firstDateMonth + '-0' + firstDate.getDate()
this.end_date = lastDate.getFullYear() + '-' + lastDateMonth + '-' + lastDate.getDate()
await this.getCalculateContentDonation();
},
methods: {
notifyError(message) {
this.$dialog.notify.error(message)
},
notifySuccess(message) {
this.$dialog.notify.success(message)
},
sumField(key) {
return this.items.reduce((a, b) => a + (b[key] || 0), 0)
},
async next() {
await this.getCalculateContentDonation()
},
async getCalculateContentDonation() {
this.is_loading = true
try {
const res = await api.getCalculateContentDonation(this.start_date, this.end_date, this.page, this.page_size)
if (res.status === 200 && res.data.success === true) {
const data = res.data.data
const totalPage = Math.ceil(data.totalCount / this.page_size)
this.items = data.items
if (totalPage <= 0)
this.total_page = 1
else
this.total_page = totalPage
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
this.is_loading = false
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
}
}
}
}
</script>

View File

@@ -0,0 +1,305 @@
<template>
<div>
<v-toolbar dark>
<v-spacer />
<v-toolbar-title>라이브 정산</v-toolbar-title>
<v-spacer />
</v-toolbar>
<br>
<v-container>
<v-row>
<v-col cols="2">
<datetime
v-model="start_date"
class="datepicker"
format="YYYY-MM-DD"
/>
</v-col>
<v-col cols="1">
~
</v-col>
<v-col cols="2">
<datetime
v-model="end_date"
class="datepicker"
format="YYYY-MM-DD"
/>
</v-col>
<v-col cols="1" />
<v-col cols="2">
<v-btn
block
color="#9970ff"
dark
depressed
@click="getCalculateLive"
>
조회
</v-btn>
</v-col>
</v-row>
<v-row>
<v-col>
<v-data-table
:headers="headers"
:items="items"
:loading="is_loading"
:items-per-page="-1"
class="elevation-1"
hide-default-footer
>
<template slot="body.prepend">
<tr>
<td colspan="5">
합계
</td>
<td>{{ sumField('numberOfPeople').toLocaleString() }} </td>
<td>{{ sumField('totalAmount').toLocaleString() }} </td>
<td>{{ sumField('totalKrw').toLocaleString() }} </td>
<td>{{ sumField('paymentFee').toLocaleString() }} </td>
<td>{{ sumField('settlementAmount').toLocaleString() }} </td>
<td>{{ sumField('tax').toLocaleString() }} </td>
<td>{{ sumField('depositAmount').toLocaleString() }} </td>
</tr>
</template>
<template v-slot:item.entranceFee="{ item }">
{{ item.entranceFee.toLocaleString() }}
</template>
<template v-slot:item.canUsageStr="{ item }">
{{ item.canUsageStr }}
</template>
<template v-slot:item.totalAmount="{ item }">
{{ item.totalAmount.toLocaleString() }}
</template>
<template v-slot:item.totalKrw="{ item }">
{{ item.totalKrw.toLocaleString() }}
</template>
<template v-slot:item.paymentFee="{ item }">
{{ item.paymentFee.toLocaleString() }}
</template>
<template v-slot:item.settlementAmount="{ item }">
{{ item.settlementAmount.toLocaleString() }}
</template>
<template v-slot:item.tax="{ item }">
{{ item.tax.toLocaleString() }}
</template>
<template v-slot:item.depositAmount="{ item }">
{{ item.depositAmount.toLocaleString() }}
</template>
</v-data-table>
</v-col>
</v-row>
</v-container>
</div>
</template>
<script>
import * as api from "@/api/calculate";
import datetime from 'vuejs-datetimepicker';
export default {
name: "CalculateLive",
components: {datetime},
data() {
return {
is_loading: false,
start_date: null,
end_date: null,
items: [],
columns: [
{
label: "크리에이터",
field: "nickname",
},
{
label: "날짜",
field: "date",
},
{
label: "제목",
field: "title",
},
{
label: "구분",
field: "canUsageStr",
},
{
label: "입장캔",
field: "entranceFee",
},
{
label: "유료방참여인원",
field: "numberOfPeople",
},
{
label: "합계(캔)",
field: "totalAmount",
},
{
label: "원화",
field: "totalKrw",
},
{
label: "결제수수료(6.6%)",
field: "paymentFee",
},
{
label: "정산금액",
field: "settlementAmount",
},
{
label: "원천세(3.3%)",
field: "tax",
},
{
label: "입금액",
field: "depositAmount",
},
],
headers: [
{
text: '크리에이터',
align: 'center',
sortable: false,
value: 'nickname',
},
{
text: '날짜',
align: 'center',
sortable: false,
value: 'date',
},
{
text: '제목',
sortable: false,
value: 'title',
},
{
text: '구분',
align: 'center',
sortable: false,
value: 'canUsageStr',
},
{
text: '입장캔',
align: 'center',
sortable: false,
value: 'entranceFee',
},
{
text: '유료방참여인원',
align: 'center',
sortable: false,
value: 'numberOfPeople',
},
{
text: '합계(캔)',
align: 'center',
sortable: false,
value: 'totalAmount',
},
{
text: '원화',
align: 'center',
sortable: false,
value: 'totalKrw',
},
{
text: '수수료\n(6.6%)',
align: 'center',
sortable: false,
value: 'paymentFee',
},
{
text: '정산금액',
align: 'center',
sortable: false,
value: 'settlementAmount',
},
{
text: '원천세\n(3.3%)',
align: 'center',
sortable: false,
value: 'tax',
},
{
text: '입금액',
align: 'center',
sortable: false,
value: 'depositAmount',
}
],
}
},
async created() {
const date = new Date();
const firstDate = new Date(date.getFullYear(), date.getMonth(), 1);
const lastDate = new Date(date.getFullYear(), date.getMonth() + 1, 0);
let firstDateMonth = (firstDate.getMonth() + 1).toString()
if (firstDateMonth.length < 2) {
firstDateMonth = '0' + firstDateMonth
}
let lastDateMonth = (lastDate.getMonth() + 1).toString()
if (lastDateMonth.length < 2) {
lastDateMonth = '0' + lastDateMonth
}
this.start_date = firstDate.getFullYear() + '-' + firstDateMonth + '-0' + firstDate.getDate()
this.end_date = lastDate.getFullYear() + '-' + lastDateMonth + '-' + lastDate.getDate()
await this.getCalculateLive()
},
methods: {
notifyError(message) {
this.$dialog.notify.error(message)
},
notifySuccess(message) {
this.$dialog.notify.success(message)
},
sumField(key) {
return this.items.reduce((a, b) => a + (b[key] || 0), 0)
},
async getCalculateLive() {
this.is_loading = true
try {
const res = await api.getCalculateLive(this.start_date, this.end_date)
if (res.status === 200 && res.data.success === true) {
this.items = res.data.data
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
this.is_loading = false
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
}
}
}
}
</script>

View File

@@ -0,0 +1,650 @@
<template>
<div>
<v-container>
<v-row>
<v-col cols="3">
<v-btn
block
color="#3bb9f1"
dark
depressed
@click="showCreateCategoryDialog"
>
카테고리 추가
</v-btn>
<br><br>
<draggable
:list="category_list"
class="list-group"
@end="onDropCategoryCallback()"
>
<v-list
v-for="category in category_list"
:key="category.category"
class="py-0"
rounded
>
<v-list-item :class="{ 'category-selected-item': category === selected_category }">
<v-list-item-title @click="clickCategory(category)">
{{ category.category }}
</v-list-item-title>
<v-list-item-icon @click="clickModifyCategory(category)">
<v-icon>mdi-pencil</v-icon>
</v-list-item-icon>
</v-list-item>
</v-list>
</draggable>
</v-col>
<v-col cols="1" />
<v-col cols="8">
<v-row>
<v-col cols="9" />
<v-col cols="3">
<v-btn
block
color="#3bb9f1"
dark
depressed
@click="showAddContent"
>
콘텐츠 추가
</v-btn>
</v-col>
</v-row>
<br><br>
<p v-if="selected_category !== null && selected_category !== undefined">
선택된 카테고리 : {{ selected_category.category }}
</p>
<p v-else>
카테고리를 선택해 주세요
</p>
<v-simple-table>
<template>
<thead>
<tr>
<th class="text-center">
썸네일
</th>
<th class="text-center">
제목
</th>
<th class="text-center">
19
</th>
<th class="text-center">
관리
</th>
</tr>
</thead>
<tbody class="category-content-table-tbody">
<tr
v-for="content in content_list"
:key="content.contentId"
class="category-content-table-tr"
>
<td align="center">
<v-img
max-width="100"
max-height="100"
:src="content.image"
/>
</td>
<td align="center">
{{ content.title }}
</td>
<td align="center">
<div v-if="content.isAdult">
O
</div>
<div v-else>
X
</div>
</td>
<td align="center">
<v-btn
color="#3bb9f1"
@click="removeContentInCategory(content)"
>
삭제
</v-btn>
</td>
</tr>
</tbody>
</template>
</v-simple-table>
<br><br>
<v-row
v-if="total_page > 0"
class="text-center"
>
<v-col>
<v-pagination
v-model="page"
:length="total_page"
circle
@input="next"
/>
</v-col>
</v-row>
</v-col>
</v-row>
</v-container>
<v-container>
<v-row>
<v-dialog
v-model="show_create_category_dialog"
max-width="1000px"
persistent
>
<v-card>
<v-card-title v-if="modify_category">
카테고리 수정
</v-card-title>
<v-card-title v-else>
카테고리 추가
</v-card-title>
<v-card-text>
<v-text-field
v-model="title"
label="카테고리 제목"
required
/>
</v-card-text>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="blue darken-1"
text
@click="cancelCreateCategory"
>
취소
</v-btn>
<v-btn
v-if="modify_category"
color="blue darken-1"
text
@click="deleteCategory"
>
삭제
</v-btn>
<v-btn
v-if="modify_category"
color="blue darken-1"
text
@click="modifyCategory"
>
수정
</v-btn>
<v-btn
v-else
color="blue darken-1"
text
@click="saveCategory"
>
등록
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
</v-container>
<v-container>
<v-row>
<v-dialog
v-model="show_add_content_dialog"
max-width="1000px"
persistent
>
<v-card>
<v-card-title>
콘텐츠 추가&nbsp;-&nbsp;
<span v-if="selected_category !== null">
선택된 카테고리 : {{ selected_category.category }}
</span>
</v-card-title>
<v-card-text>
<v-text-field
v-model="search_word"
label="콘텐츠 제목"
@keyup.enter="searchContentNotInCategory"
>
<v-btn
slot="append"
color="#3bb9f1"
dark
@click="searchContentNotInCategory"
>
검색
</v-btn>
</v-text-field>
</v-card-text>
<v-card-text v-if="search_content_list.length > 0 || add_content_list.length > 0">
<v-row>
<v-col>
검색결과
<v-simple-table>
<template v-slot:default>
<thead>
<tr>
<th class="text-center">
제목
</th>
<th />
</tr>
</thead>
<tbody>
<tr
v-for="content in search_content_list"
:key="content.contentId"
>
<td>{{ content.title }}</td>
<td>
<v-btn
color="#3bb9f1"
@click="addContent(content)"
>
추가
</v-btn>
</td>
</tr>
</tbody>
</template>
</v-simple-table>
</v-col>
<v-col v-if="add_content_list.length > 0">
추가할 콘텐츠
<v-simple-table>
<template>
<thead>
<tr>
<th class="text-center">
제목
</th>
<th />
</tr>
</thead>
<tbody>
<tr
v-for="content in add_content_list"
:key="content.contentId"
>
<td>{{ content.title }}</td>
<td>
<v-btn
color="#3bb9f1"
@click="removeContent(content)"
>
제거
</v-btn>
</td>
</tr>
</tbody>
</template>
</v-simple-table>
</v-col>
</v-row>
</v-card-text>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="blue darken-1"
text
@click="cancelAddContent"
>
취소
</v-btn>
<v-btn
color="blue darken-1"
text
@click="addContentInCategory"
>
추가
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
</v-container>
</div>
</template>
<script>
import Draggable from 'vuedraggable';
import * as api from "@/api/category";
import * as contentCategoryApi from "@/api/content_category";
export default {
name: "ContentCategoryList",
components: {Draggable},
data() {
return {
is_loading: false,
show_add_content_dialog: false,
show_create_category_dialog: false,
modify_category: false,
title: '',
selected_category: null,
modify_selected_category: null,
search_word: '',
search_content_list: [],
add_content_list: [],
category_list: [],
content_list: [],
page: 1,
total_page: 0,
}
},
async created() {
await this.getCategoryList()
},
methods: {
notifyError(message) {
this.$dialog.notify.error(message)
},
notifySuccess(message) {
this.$dialog.notify.success(message)
},
showCreateCategoryDialog() {
if (this.category_list.length >= 10) {
this.notifyError('카테고리는 최대 10개 까지 등록 가능합니다.')
return
}
this.show_create_category_dialog = true
},
showAddContent() {
if (this.selected_category === null || this.selected_category === undefined) {
this.notifyError('카테고리를 선택하세요')
return
}
this.show_add_content_dialog = true
},
cancelCreateCategory() {
this.title = ''
this.modify_category = false
this.modify_selected_category = null
this.show_create_category_dialog = false
},
clickModifyCategory(category) {
this.modify_category = true
this.modify_selected_category = category
this.title = category.category
this.show_create_category_dialog = true
},
addContent(content) {
this.search_content_list = this.search_content_list.filter((item) => {
return item.contentId !== content.contentId
});
this.add_content_list.push(content)
},
removeContent(content) {
this.add_content_list = this.add_content_list.filter((item) => {
return item.contentId !== content.contentId
});
this.search_content_list.push(content)
},
cancelAddContent() {
this.search_word = ''
this.search_content_list = []
this.add_content_list = []
this.show_add_content_dialog = false
},
async removeContentInCategory(content) {
this.is_loading = true
const contentIdList = [content.contentId]
try {
const res = await api.modifyCategory(
this.selected_category.categoryId,
null,
[],
contentIdList,
)
if (res.status === 200 && res.data.success === true) {
this.cancelCreateCategory()
this.cancelAddContent()
this.page = 1
this.total_page = 0
this.notifySuccess('삭제되었습니다.')
await this.getContentInCategory()
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async addContentInCategory() {
this.is_loading = true
const contentIdList = this.add_content_list.map((item) => {
return item.contentId
})
try {
const res = await api.modifyCategory(
this.selected_category.categoryId,
null,
contentIdList,
[]
)
if (res.status === 200 && res.data.success === true) {
this.cancelCreateCategory()
this.cancelAddContent()
this.page = 1
this.total_page = 0
await this.getContentInCategory()
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async getCategoryList() {
this.is_loading = true
try {
let res = await api.getCategoryList(this.$store.state.accountStore.userId)
if (res.data.success === true) {
this.category_list = res.data.data
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async saveCategory() {
if (this.title.trim().length <= 0) {
this.notifyError("제목을 입력하세요")
return
}
if (this.is_loading) return;
try {
this.is_loading = true
let res = await api.saveCategory(this.title)
if (res.data.success === true) {
this.title = ''
this.category_list = []
this.selected_category = null
this.cancelCreateCategory()
await this.getCategoryList()
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async deleteCategory() {
try {
this.is_loading = true
let res = await api.deleteCategory(this.modify_selected_category.categoryId)
if (res.data.success === true) {
this.title = ''
this.category_list = []
this.selected_category = null
this.cancelCreateCategory()
await this.getCategoryList()
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async modifyCategory() {
if (this.title.trim().length <= 0) {
this.notifyError("제목을 입력하세요")
return
}
if (this.is_loading) return;
try {
this.is_loading = true
let res = await api.modifyCategory(this.modify_selected_category.categoryId, this.title)
if (res.data.success === true) {
this.title = ''
this.category_list = []
this.selected_category = null
this.cancelCreateCategory()
await this.getCategoryList()
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async onDropCategoryCallback() {
const ids = this.category_list.map((category) => {
return category.categoryId
})
const res = await api.updateCategoryOrders(ids)
if (res.status === 200 && res.data.success === true) {
this.notifySuccess('수정되었습니다.')
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
},
async clickCategory(category) {
this.selected_category = category
this.page = 1
this.total_page = 0
this.content_list = []
await this.getContentInCategory()
},
async getContentInCategory() {
try {
this.is_loading = true
const res = await contentCategoryApi.getContentInCategory(this.selected_category.categoryId, this.page)
if (res.data.success === true) {
const data = res.data.data
const total_page = Math.ceil(data.totalCount / 10)
this.content_list = data.items
if (total_page <= 0)
this.total_page = 1
else
this.total_page = total_page
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async next() {
await this.getContentInCategory()
},
async searchContentNotInCategory() {
if (this.search_word.length < 2) {
this.notifyError('검색어를 2글자 이상 입력하세요.')
return
}
this.is_loading = true
try {
this.is_loading = true
const res = await contentCategoryApi.searchContentNotInCategory(
this.selected_category.categoryId,
this.search_word
)
if (res.data.success === true) {
this.search_content_list = res.data.data
if (res.data.data.length <= 0) {
this.notifyError('검색결과가 없습니다.')
}
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
}
}
}
</script>
<style scoped>
.category-selected-item {
background-color: #3bb9f1;
color: white !important;
}
.v-data-table__wrapper > table > tbody > .category-content-table-tr > td {
padding-top: 10px;
padding-bottom: 10px;
}
</style>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,517 @@
<template>
<div>
<v-container>
<v-row>
<v-col cols="4">
<v-card>
<v-img
:src="series_detail.coverImageUrl"
class="cover-image"
/>
<v-card-text>
제목 : {{ series_detail.title }}
</v-card-text>
<v-card-text>
소개 :
<vue-show-more-text
:text="series_detail.introduction"
:lines="2"
/>
</v-card-text>
<v-card-text>
연재요일 : {{ series_detail.publishedDaysOfWeek }}
</v-card-text>
<v-card-text>
장르 : {{ series_detail.genre }}
</v-card-text>
<v-card-text>
키워드 : {{ series_detail.keywords }}
</v-card-text>
<v-card-text>
연령제한 : <span v-if="series_detail.isAdult">19세이상</span><span v-else>전체이용가</span>
</v-card-text>
<v-card-text>
완결여부 : {{ series_detail.state }}
</v-card-text>
<v-card-text v-show="series_detail.writer !== undefined && series_detail.writer !== null">
작가 : {{ series_detail.writer }}
</v-card-text>
<v-card-text v-show="series_detail.studio !== undefined && series_detail.studio !== null">
제작사 : {{ series_detail.studio }}
</v-card-text>
</v-card>
</v-col>
<v-col cols="8">
<v-row>
<v-col cols="8" />
<v-col cols="4">
<v-btn
block
color="#3bb9f1"
dark
depressed
@click="showAddContent"
>
콘텐츠 추가
</v-btn>
</v-col>
</v-row>
<v-row>
<v-col v-if="series_content_list.length > 0">
<v-simple-table>
<template>
<thead>
<tr>
<th class="text-center">
썸네일
</th>
<th class="text-center">
제목
</th>
<th class="text-center">
19
</th>
<th class="text-center">
관리
</th>
</tr>
</thead>
<tbody>
<tr
v-for="content in series_content_list"
:key="content.contentId"
>
<td align="center">
<v-img
:src="content.coverImage"
max-width="100"
class="content-cover-image"
/>
</td>
<td align="center">
{{ content.title }}
</td>
<td align="center">
<div v-if="content.isAdult">
O
</div>
<div v-else>
X
</div>
</td>
<td align="center">
<v-btn
color="#3bb9f1"
@click="deleteConfirm(content)"
>
삭제
</v-btn>
</td>
</tr>
</tbody>
</template>
</v-simple-table>
<br><br>
<v-row
v-if="total_page > 0"
class="text-center"
>
<v-col>
<v-pagination
v-model="page"
:length="total_page"
circle
@input="next"
/>
</v-col>
</v-row>
</v-col>
<v-col
v-else
class="no-series-content"
>
등록된 콘텐츠가 없습니다.
</v-col>
</v-row>
</v-col>
</v-row>
</v-container>
<v-dialog
v-model="show_add_series_content"
max-width="1000px"
persistent
>
<v-card>
<v-card-title>
콘텐츠 추가
</v-card-title>
<v-card-text>
<v-text-field
v-model="search_word"
label="콘텐츠 제목"
@keyup.enter="searchContentNotInSeries"
>
<v-btn
slot="append"
color="#3bb9f1"
dark
@click="searchContentNotInSeries"
>
검색
</v-btn>
</v-text-field>
</v-card-text>
<v-card-text v-if="search_content_list.length > 0 || add_content_list.length > 0">
<v-row>
<v-col>
검색결과
<v-simple-table>
<template v-slot:default>
<thead>
<tr>
<th class="text-center">
제목
</th>
<th />
</tr>
</thead>
<tbody>
<tr
v-for="content in search_content_list"
:key="content.contentId"
>
<td>{{ content.title }}</td>
<td>
<v-btn
color="#3bb9f1"
@click="addContent(content)"
>
추가
</v-btn>
</td>
</tr>
</tbody>
</template>
</v-simple-table>
</v-col>
<v-col v-if="add_content_list.length > 0">
추가할 콘텐츠
<v-simple-table>
<template>
<thead>
<tr>
<th class="text-center">
제목
</th>
<th />
</tr>
</thead>
<tbody>
<tr
v-for="content in add_content_list"
:key="content.contentId"
>
<td>{{ content.title }}</td>
<td>
<v-btn
color="#3bb9f1"
@click="removeContent(content)"
>
제거
</v-btn>
</td>
</tr>
</tbody>
</template>
</v-simple-table>
</v-col>
</v-row>
</v-card-text>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="blue darken-1"
text
@click="cancel"
>
취소
</v-btn>
<v-btn
color="blue darken-1"
text
@click="addContentInSeries"
>
추가
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog
v-model="show_delete_confirm_dialog"
max-width="400px"
persistent
>
<v-card>
<v-card-text />
<v-card-text v-if="selected_series_content !== null">
{{ selected_series_content.title }} 삭제하시겠습니까?
</v-card-text>
<v-card-text v-else>
삭제하시겠습니까?
</v-card-text>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="blue darken-1"
text
@click="deleteCancel"
>
취소
</v-btn>
<v-btn
color="blue darken-1"
text
@click="removeContentInSeries"
>
확인
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog
v-model="is_loading"
max-width="400px"
persistent
>
<v-card>
<v-card-text>
<v-progress-circular
indeterminate
/>
</v-card-text>
</v-card>
</v-dialog>
</div>
</template>
<script>
import * as api from '@/api/audio_content_series';
import VueShowMoreText from 'vue-show-more-text'
export default {
name: "ContentSeriesDetail",
components: {VueShowMoreText},
data() {
return {
is_loading: false,
series_id: 0,
series_detail: {},
series_content_list: [],
selected_series_content: null,
page: 1,
total_page: 0,
search_word: '',
add_content_list: [],
search_content_list: [],
show_add_series_content: false,
show_delete_confirm_dialog: false,
}
},
async created() {
this.series_id = this.$route.params.seriesId
if (this.series_id !== undefined && this.series_id > 0) {
await this.getSeriesDetail()
await this.getSeriesContentList()
} else {
this.$router.go(-1);
}
},
methods: {
notifyError(message) {
this.$dialog.notify.error(message)
},
notifySuccess(message) {
this.$dialog.notify.success(message)
},
cancel() {
this.search_word = ''
this.add_content_list = []
this.search_content_list = []
this.selected_series_content = null
this.show_add_series_content = false
this.show_delete_confirm_dialog = false
},
deleteConfirm(series_content) {
this.selected_series_content = series_content
this.show_delete_confirm_dialog = true
},
deleteCancel() {
this.cancel();
},
showAddContent() {
this.show_add_series_content = true
},
addContent(content) {
this.search_content_list = this.search_content_list.filter((item) => {
return item.contentId !== content.contentId
});
this.add_content_list.push(content)
},
removeContent(content) {
this.add_content_list = this.add_content_list.filter((item) => {
return item.contentId !== content.contentId
});
this.search_content_list.push(content)
},
async searchContentNotInSeries() {
if (this.search_word.length < 2) {
this.notifyError('검색어를 2글자 이상 입력하세요.')
return
}
this.is_loading = true
try {
const res = await api.searchContentNotInSeries(this.series_id, this.search_word)
if (res.data.success === true) {
this.search_content_list = res.data.data
if (res.data.data.length <= 0) {
this.notifyError('검색결과가 없습니다.')
}
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async addContentInSeries() {
this.is_loading = true
const contentIdList = this.add_content_list.map((item) => {
return item.contentId
})
try {
const res = await api.addingContentToTheSeries(this.series_id, contentIdList)
if (res.status === 200 && res.data.success === true) {
this.cancel()
this.page = 1
this.total_page = 0
await this.getSeriesContentList()
} else {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async getSeriesDetail() {
this.is_loading = true
try {
const res = await api.getSeriesDetail(this.series_id)
if (res.status === 200 && res.data.success === true) {
this.series_detail = res.data.data
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async next() {
await this.getSeriesContentList()
},
async getSeriesContentList() {
try {
const res = await api.getSeriesContent(this.series_id, this.page)
if (res.status === 200 && res.data.success === true) {
const data = res.data.data
this.series_content_list = data.items
const total_page = Math.ceil(data.totalCount / 10)
if (total_page <= 0)
this.total_page = 1
else
this.total_page = total_page
} else {
this.notifyError(res.data.message || '콘텐츠를 불러오지 못했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
},
async removeContentInSeries() {
this.is_loading = true
try {
const res = await api.removeContentInTheSeries(this.series_id, this.selected_series_content.contentId)
if (res.status === 200 && res.data.success === true) {
this.page = 1
this.total_page = 0
this.series_content_list = []
this.cancel()
this.notifySuccess('삭제되었습니다.')
await this.getSeriesContentList()
} else {
this.notifyError('콘텐츠를 삭제하지 못했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('콘텐츠를 삭제하지 못했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
},
}
</script>
<style scoped>
.v-card__text {
text-align: left;
}
.cover-image {
aspect-ratio: 1/1.4;
}
.content-cover-image {
aspect-ratio: 1;
}
.no-series-content {
height: 50vh;
margin-top: 100px;
}
</style>

View File

@@ -0,0 +1,747 @@
<template>
<div>
<v-toolbar dark>
<v-spacer />
<v-toolbar-title>시리즈 관리</v-toolbar-title>
<v-spacer />
</v-toolbar>
<br>
<v-container>
<v-row>
<v-col cols="10" />
<v-col>
<v-btn
block
color="#3bb9f1"
dark
depressed
@click="showWriteDialog"
>
시리즈 등록
</v-btn>
</v-col>
</v-row>
<div
ref="scroll_container"
class="scroll_container"
@scroll="onScroll"
>
<draggable
v-model="series_list"
class="row"
@end="onDropCallback(series_list)"
>
<v-col
v-for="(item, i) in series_list"
:key="i"
cols="2"
>
<v-card>
<v-card-title>
<v-spacer />
<v-img
:src="item.coverImageUrl"
class="cover-image"
@click="selectSeries(item)"
/>
<v-spacer />
</v-card-title>
<v-card-text class="series-title-container">
{{ item.title }}
</v-card-text>
<v-card-actions>
<v-spacer />
<v-btn
text
@click="showModifyDialog(item)"
>
수정
</v-btn>
<v-btn
text
@click="deleteConfirm(item)"
>
삭제
</v-btn>
<v-spacer />
</v-card-actions>
</v-card>
</v-col>
</draggable>
</div>
</v-container>
<v-dialog
v-model="show_write_dialog"
max-width="1000px"
persistent
>
<v-card>
<v-card-title>
시리즈 등록
</v-card-title>
<div class="image-select">
<label for="image">
커버 이미지 등록
</label>
<v-file-input
id="image"
v-model="series.cover_image"
accept="image/*"
@change="imageAdd"
/>
</div>
<img
v-if="series.cover_image_url"
:src="series.cover_image_url"
alt=""
class="image-preview"
>
<v-card-text>
<v-row align="center">
<v-col cols="4">
제목*
</v-col>
<v-col cols="8">
<v-text-field
v-model="series.title"
label="제목"
required
/>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row align="center">
<v-col cols="4">
소개*
</v-col>
<v-col cols="8">
<v-textarea
v-model="series.introduction"
label="소개"
required
/>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row>
<v-col cols="4">
연재요일*
</v-col>
<v-col
cols="8"
align="left"
>
<v-row>
<v-col
v-for="(day, index) in days_of_week"
:key="index"
>
<input
:id="'checkbox_' + day.value"
v-model="series.published_days_of_week"
type="checkbox"
:value="day.value"
@change="handleCheckboxChange(day.value, $event)"
>
<label :for="'checkbox_' + day.value"> {{ day.str }}</label><br>
</v-col>
</v-row>
<input
id="checkbox_random"
v-model="series.published_days_of_week"
type="checkbox"
value="RANDOM"
@change="handleCheckboxChange('RANDOM', $event)"
>
<label for="checkbox_random"> 랜덤</label>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row align="center">
<v-col cols="4">
장르
</v-col>
<v-col cols="8">
<v-select
v-model="series.genre_id"
:items="series_genre_list"
item-text="name"
item-value="value"
label="장르 선택"
/>
</v-col>
</v-row>
</v-card-text>
<v-card-text v-show="selected_series === undefined || selected_series === null">
<v-row align="center">
<v-col cols="4">
키워드*
</v-col>
<v-col cols="8">
<v-text-field
v-model="series.keyword"
label="키워드 예 : #달달 #장기연애 #첫사랑"
required
/>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row>
<v-col cols="4">
연령제한
</v-col>
<v-col
cols="8"
align="left"
>
<input
v-model="series.is_adult"
type="checkbox"
>
</v-col>
</v-row>
</v-card-text>
<v-card-text v-show="selected_series !== undefined && selected_series !== null">
<v-row>
<v-col cols="4">
완결여부*
</v-col>
<v-col
cols="8"
align="left"
>
<v-row>
<v-col>
<input
id="radio_proceeding"
v-model="series.state"
type="radio"
value="PROCEEDING"
>
<label for="radio_proceeding"> 연재중</label>
</v-col>
<v-col>
<input
id="radio_suspend"
v-model="series.state"
type="radio"
value="SUSPEND"
>
<label for="radio_suspend"> 휴재중</label>
</v-col>
<v-col>
<input
id="radio_complete"
v-model="series.state"
type="radio"
value="COMPLETE"
>
<label for="radio_complete"> 완결</label>
</v-col>
</v-row>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row align="center">
<v-col cols="4">
작가
</v-col>
<v-col cols="8">
<v-text-field
v-model="series.writer"
label="작가"
required
/>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row align="center">
<v-col cols="4">
제작사
</v-col>
<v-col cols="8">
<v-text-field
v-model="series.studio"
label="제작사"
required
/>
</v-col>
</v-row>
</v-card-text>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="blue darken-1"
text
@click="cancel"
>
취소
</v-btn>
<v-btn
v-if="selected_series !== undefined && selected_series !== null"
color="blue darken-1"
text
@click="modify"
>
수정
</v-btn>
<v-btn
v-else
color="blue darken-1"
text
@click="validate"
>
등록
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog
v-model="show_delete_confirm_dialog"
max-width="400px"
persistent
>
<v-card>
<v-card-text />
<v-card-text>
삭제하시겠습니까?
</v-card-text>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="blue darken-1"
text
@click="deleteCancel"
>
취소
</v-btn>
<v-btn
color="blue darken-1"
text
@click="deleteSeries"
>
확인
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog
v-model="is_loading"
max-width="400px"
persistent
>
<v-card>
<v-card-text>
<v-progress-circular
indeterminate
/>
</v-card-text>
</v-card>
</v-dialog>
</div>
</template>
<script>
import * as api from '@/api/audio_content_series';
import Draggable from "vuedraggable";
export default {
name: "ContentSeriesList",
components: {Draggable},
data() {
return {
is_loading: false,
show_write_dialog: false,
show_delete_confirm_dialog: false,
series: {is_adult: false, published_days_of_week: []},
series_list: [],
selected_series: null,
series_genre_list: [],
page: 1,
total_page: 0,
days_of_week: [
{value: 'SUN', str: '일'},
{value: 'MON', str: '월'},
{value: 'TUE', str: '화'},
{value: 'WED', str: '수'},
{value: 'THU', str: '목'},
{value: 'FRI', str: '금'},
{value: 'SAT', str: '토'},
],
}
},
async created() {
await this.getSeriesGenreList();
await this.getSeriesList();
},
methods: {
async onScroll() {
const scrollContainer = this.$refs.scroll_container;
const threshold = scrollContainer.scrollHeight - scrollContainer.clientHeight;
if (scrollContainer.scrollTop >= threshold - 10 && this.total_page >= this.page) {
await this.getSeriesList();
}
},
imageAdd(payload) {
const file = payload;
if (file) {
this.series.cover_image_url = URL.createObjectURL(file)
URL.revokeObjectURL(file)
} else {
this.series.cover_image_url = null
}
},
notifyError(message) {
this.$dialog.notify.error(message)
},
notifySuccess(message) {
this.$dialog.notify.success(message)
},
showWriteDialog() {
this.show_write_dialog = true
},
showModifyDialog(series) {
this.series = {
title: series.title,
introduction: series.introduction,
published_days_of_week: series.publishedDaysOfWeek,
genre_id: series.genreId,
is_adult: series.isAdult,
state: series.state,
cover_image_url: series.coverImageUrl
}
if (series.writer !== undefined && series.writer !== null) {
this.series.writer = series.writer
}
if (series.studio !== undefined && series.studio !== null) {
this.series.studio = series.studio
}
this.selected_series = series
this.show_write_dialog = true
},
cancel() {
this.series = {is_adult: false, published_days_of_week: []}
this.selected_series = null
this.show_write_dialog = false
this.show_delete_confirm_dialog = false
},
deleteConfirm(series) {
this.selected_series = series
this.show_delete_confirm_dialog = true
},
deleteCancel() {
this.cancel();
},
handleCheckboxChange(checked_days_of_week, event) {
if (checked_days_of_week === 'RANDOM' && event.target.checked) {
this.series.published_days_of_week = ['RANDOM'];
} else {
this.series.published_days_of_week = this.series.published_days_of_week.filter(item => item !== 'RANDOM');
}
},
validate() {
if (this.series.cover_image === undefined || this.series.cover_image === null) {
this.notifyError('커버 이미지를 선택하세요')
return
}
if (this.series.title === undefined || this.series.title === null || this.series.title.trim().length <= 0) {
this.notifyError('시리즈 제목을 입력하세요')
return
}
if (this.series.introduction === undefined || this.series.introduction === null || this.series.introduction.trim().length <= 0) {
this.notifyError('시리즈 소개를 입력하세요')
return
}
if (this.series.published_days_of_week === undefined || this.series.published_days_of_week === null || this.series.published_days_of_week.length <= 0) {
this.notifyError('시리즈 연재요일을 선택하세요')
return
}
if (this.series.keyword === undefined || this.series.keyword === null || this.series.keyword.replaceAll('#', '').trim().length <= 0) {
this.notifyError('시리즈를 설명할 수 있는 키워드를 입력하세요')
return
}
if (this.series.genre_id === undefined || this.series.genre_id === null || this.series.genre_id <= 0) {
this.notifyError('올바른 장르를 선택하세요')
return
}
this.submit();
},
selectSeries(series) {
this.$router.push({name: 'ContentSeriesDetail', params: {seriesId: series.seriesId}})
},
async onDropCallback(items) {
const ids = items.map((item) => {
return item.seriesId
})
const res = await api.updateSeriesOrders(ids)
if (res.status === 200 && res.data.success === true) {
this.notifySuccess(res.data.message)
}
},
async getSeriesGenreList() {
try {
const res = await api.getGenreList()
if (res.status === 200 && res.data.success === true) {
this.series_genre_list = res.data.data.map((item) => {
return {name: item.genre, value: item.id}
})
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
},
async getSeriesList() {
if (this.is_loading) return;
this.is_loading = true
try {
const res = await api.getSeriesList(this.page)
if (res.status === 200 && res.data.success === true) {
const data = res.data.data
const total_page = Math.ceil(data.totalCount / 10)
if (this.page === 1) this.series_list.length = 0;
this.page += 1;
this.series_list.push(...data.items);
if (total_page <= 0)
this.total_page = 1
else
this.total_page = total_page
} else {
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
this.is_loading = false
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
}
},
async submit() {
if (this.is_loading) return;
this.is_loading = true
try {
const request = {
title: this.series.title,
introduction: this.series.introduction,
publishedDaysOfWeek: this.series.published_days_of_week,
keyword: this.series.keyword,
genreId: this.series.genre_id,
isAdult: this.series.is_adult,
writer: this.series.writer || null,
studio: this.series.studio || null
}
const formData = new FormData()
formData.append("image", this.series.cover_image);
formData.append("request", JSON.stringify(request))
const res = await api.createSeries(formData);
if (res.status === 200 && res.data.success === true) {
this.cancel();
this.notifySuccess(res.data.message || '등록되었습니다.')
this.page = 1
await this.getSeriesList()
} else {
this.is_loading = false
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async modify() {
if (this.is_loading) return;
this.is_loading = true
try {
const request = {seriesId: this.selected_series.seriesId}
if (this.selected_series.title !== this.series.title) {
request.title = this.series.title
}
if (this.selected_series.introduction !== this.series.introduction) {
request.introduction = this.series.introduction
}
if (this.selected_series.publishedDaysOfWeek !== this.series.published_days_of_week) {
request.publishedDaysOfWeek = this.series.published_days_of_week
}
if (this.selected_series.genreId !== this.series.genre_id) {
request.genreId = this.series.genre_id
}
if (this.selected_series.isAdult !== this.series.is_adult) {
request.isAdult = this.series.is_adult
}
if (this.selected_series.state !== this.series.state) {
request.state = this.series.state
}
if (this.selected_series.state !== this.series.state) {
request.state = this.series.state
}
if (this.selected_series.writer !== this.series.writer) {
request.writer = this.series.writer
}
if (this.selected_series.studio !== this.series.studio) {
request.studio = this.series.studio
}
const formData = new FormData()
formData.append("request", JSON.stringify(request))
if (this.series.cover_image !== undefined && this.series.cover_image !== null) {
formData.append("image", this.series.cover_image);
}
const res = await api.modifySeries(formData);
if (res.status === 200 && res.data.success === true) {
this.cancel();
this.notifySuccess(res.data.message || '등록되었습니다.')
this.page = 1
await this.getSeriesList()
} else {
this.is_loading = false
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
},
async deleteSeries() {
if (this.is_loading) return;
this.is_loading = true
try {
const request = {seriesId: this.selected_series.seriesId, isActive: false}
const formData = new FormData()
formData.append("request", JSON.stringify(request))
const res = await api.modifySeries(formData)
if (res.status === 200 && res.data.success === true) {
this.cancel();
this.notifySuccess('시리즈가 삭제되었습니다.')
this.page = 1
await this.getSeriesList()
} else {
this.is_loading = false
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
} finally {
this.is_loading = false
}
}
},
}
</script>
<style scoped>
.scroll_container {
margin-top: 30px;
height: 100vh;
overflow-y: auto;
}
.scroll_container > .row {
padding-bottom: 280px;
}
.image-select label {
display: inline-block;
padding: 10px 20px;
background-color: #232d4a;
color: #fff;
vertical-align: middle;
font-size: 15px;
cursor: pointer;
border-radius: 5px;
}
.v-file-input {
position: absolute;
width: 0;
height: 0;
padding: 0;
overflow: hidden;
border: 0;
}
.image-preview {
max-width: 100%;
width: 250px;
object-fit: cover;
margin-top: 10px;
}
.series-title-container {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
max-height: 2em;
}
.cover-image {
aspect-ratio: 1/1.3;
}
</style>

View File

@@ -0,0 +1,716 @@
<template>
<div>
<v-toolbar dark>
<v-spacer />
<v-toolbar-title>시그니처 관리</v-toolbar-title>
<v-spacer />
</v-toolbar>
<v-container>
<v-row>
<v-col cols="10" />
<v-col>
<v-btn
block
color="#3bb9f1"
dark
depressed
@click="showWriteDialog"
>
시그니처 등록
</v-btn>
</v-col>
</v-row>
<v-row class="row-sort">
<v-col>
<input
id="sort-newest"
v-model="sort_type"
type="radio"
value="NEWEST"
class="radio-sort"
@change="changeSortType"
>
<label
for="sort-newest"
class="radio-label-sort"
>
최신순
</label>
</v-col>
<v-col>
<input
id="sort-can-high"
v-model="sort_type"
type="radio"
value="CAN_HIGH"
class="radio-sort"
@change="changeSortType"
>
<label
for="sort-can-high"
class="radio-label-sort"
>
높은캔순
</label>
</v-col>
<v-col>
<input
id="sort-can-low"
v-model="sort_type"
type="radio"
value="CAN_LOW"
class="radio-sort"
@change="changeSortType"
>
<label
for="sort-can-low"
class="radio-label-sort"
>
낮은캔순
</label>
</v-col>
<v-col cols="10" />
</v-row>
<v-row>
<v-col>
<v-data-table
:headers="headers"
:items="signature_list"
:loading="is_loading"
:items-per-page="-1"
item-key="id"
class="elevation-1"
hide-default-footer
>
<template v-slot:item.can="{ item }">
{{ item.can }}
</template>
<template v-slot:item.isAdult="{ item }">
<h3 v-if="item.isAdult">
O
</h3>
<h3 v-else>
X
</h3>
</template>
<template v-slot:item.image="{ item }">
<v-img
:src="item.image"
max-width="200"
max-height="200"
align="center"
class="center-image"
/>
</template>
<template v-slot:item.management="{ item }">
<v-row>
<v-col />
<v-col>
<v-btn
:disabled="is_loading"
@click="showModifyDialog(item)"
>
수정
</v-btn>
</v-col>
<v-col>
<v-btn
:disabled="is_loading"
@click="showDeleteConfirm(item)"
>
삭제
</v-btn>
</v-col>
<v-col />
</v-row>
</template>
</v-data-table>
</v-col>
</v-row>
<v-row class="text-center">
<v-col>
<v-pagination
v-model="page"
:length="total_page"
circle
@input="next"
/>
</v-col>
</v-row>
</v-container>
<v-row>
<v-dialog
v-model="show_write_dialog"
max-width="1000px"
persistent
>
<v-card>
<v-card-title>
시그니처 등록
</v-card-title>
<v-card-text>
<v-row align="center">
<v-col cols="4">
</v-col>
<v-col cols="8">
<v-text-field
v-model="can"
label="캔"
/>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row>
<v-col cols="4">
19
</v-col>
<v-col cols="8">
<input
v-model="is_adult"
type="checkbox"
>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row align="center">
<v-col cols="4">
이미지
</v-col>
<v-col cols="8">
<div class="image-select">
<label for="image">
이미지 불러오기
</label>
<v-file-input
id="image"
v-model="image"
accept="image/*"
@change="imageAdd"
/>
</div>
<img
v-if="image_url"
:src="image_url"
alt=""
class="image-preview"
>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row align="center">
<v-col cols="4">
시간()
</v-col>
<v-col cols="8">
<v-text-field
v-model="time"
label="시간(초)"
/>
</v-col>
</v-row>
</v-card-text>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="blue darken-1"
text
@click="cancel"
>
취소
</v-btn>
<v-btn
color="blue darken-1"
text
@click="validate"
>
등록
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
<v-row>
<v-dialog
v-model="show_modify_dialog"
max-width="1000px"
persistent
>
<v-card>
<v-card-title>
시그니처 수정
</v-card-title>
<v-card-text>
<v-row align="center">
<v-col cols="4">
</v-col>
<v-col cols="8">
<v-text-field
v-model="can"
label="캔"
/>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row>
<v-col cols="4">
19
</v-col>
<v-col cols="8">
<input
v-model="is_adult"
type="checkbox"
>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row align="center">
<v-col cols="4">
이미지
</v-col>
<v-col cols="8">
<div class="image-select">
<label for="image">
이미지 불러오기
</label>
<v-file-input
id="image"
v-model="image"
accept="image/*"
@change="imageAdd"
/>
</div>
<img
v-if="image_url"
:src="image_url"
alt=""
class="image-preview"
>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row align="center">
<v-col cols="4">
시간()
</v-col>
<v-col cols="8">
<v-text-field
v-model="time"
label="시간(초)"
/>
</v-col>
</v-row>
</v-card-text>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="blue darken-1"
text
@click="cancel"
>
취소
</v-btn>
<v-btn
color="blue darken-1"
text
@click="modifySignatureCan"
>
수정
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
<v-row>
<v-dialog
v-model="show_delete_confirm_dialog"
max-width="400px"
persistent
>
<v-card>
<v-card-text />
<v-card-text>
삭제하시겠습니까?
</v-card-text>
<v-card-actions v-show="!is_loading">
<v-spacer />
<v-btn
color="blue darken-1"
text
@click="cancel"
>
취소
</v-btn>
<v-btn
color="blue darken-1"
text
@click="deleteSignature"
>
확인
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
</div>
</template>
<script>
import * as api from "@/api/signature";
export default {
name: "SignatureManagement",
data() {
return {
is_loading: false,
show_write_dialog: false,
show_modify_dialog: false,
show_delete_confirm_dialog: false,
signature_list: [],
page: 1,
total_page: 0,
can: 0,
time: 7,
image: null,
is_adult: false,
image_url: null,
is_active: null,
selected_signature_can: {},
sort_type: 'NEWEST',
headers: [
{
text: '캔',
align: 'center',
sortable: false,
value: 'can',
},
{
text: '19금',
align: 'center',
sortable: false,
value: 'isAdult',
},
{
text: '이미지',
align: 'center',
sortable: false,
value: 'image',
},
{
text: '시간(초)',
align: 'center',
sortable: false,
value: 'time',
},
{
text: '관리',
align: 'center',
sortable: false,
value: 'management',
},
],
}
},
async created() {
await this.getSignatureList();
},
methods: {
notifyError(message) {
this.$dialog.notify.error(message)
},
notifySuccess(message) {
this.$dialog.notify.success(message)
},
imageAdd(payload) {
const file = payload;
if (file) {
this.image_url = URL.createObjectURL(file)
URL.revokeObjectURL(file)
} else {
this.image_url = null
}
},
showWriteDialog() {
this.show_write_dialog = true
},
validate() {
if (
this.can === 0 ||
this.image === null
) {
this.notifyError('내용을 입력하세요')
} else if (this.time < 3 || this.time > 20) {
this.notifyError('시간은 3초 이상 20초 이하를 입력하세요.')
} else {
this.submit()
}
},
cancel() {
this.show_write_dialog = false
this.show_modify_dialog = false
this.show_delete_confirm_dialog = false
this.image = null
this.image_url = null
this.can = 0
this.time = 7
this.is_adult = false
this.is_active = null
this.selected_signature_can = {}
},
showDeleteConfirm(item) {
this.selected_signature_can = item
this.show_delete_confirm_dialog = true
},
showModifyDialog(item) {
this.can = item.can;
this.time = item.time;
this.is_adult = item.isAdult
this.image_url = item.image
this.selected_signature_can = item
this.show_modify_dialog = true
},
async changeSortType() {
await this.getSignatureList();
},
async getSignatureList() {
this.is_loading = true
try {
let res = await api.getSignatureList(this.page, this.sort_type);
if (res.status === 200 && res.data.success === true) {
const data = res.data.data
const total_page = Math.ceil(data.totalCount / 20)
this.signature_list = data.items
if (total_page <= 0)
this.total_page = 1
else
this.total_page = total_page
}
} catch (e) {
this.notifyError("알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.")
} finally {
this.is_loading = false
}
},
async submit() {
if (this.is_loading) return;
this.is_loading = true
try {
const formData = new FormData()
formData.append("can", this.can)
formData.append("time", this.time)
formData.append("image", this.image)
formData.append("isAdult", this.is_adult)
const res = await api.createSignature(formData)
if (res.status === 200 && res.data.success === true) {
this.cancel()
this.notifySuccess(res.data.message || '등록되었습니다.')
this.page = 1
await this.getSignatureList()
} else {
this.is_loading = false
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
} finally {
this.is_loading = false
}
},
async modifySignatureCan() {
if (
this.image === null &&
this.is_adult === this.selected_signature_can.isAdult &&
this.can === this.selected_signature_can.can &&
this.time === this.selected_signature_can.time
) {
this.notifyError('변경사항이 없습니다.')
return;
}
if (this.is_loading) return;
this.is_loading = true
try {
const formData = new FormData()
formData.append("id", this.selected_signature_can.id)
if (this.image !== null) {
formData.append("image", this.image)
}
if (this.is_adult !== this.selected_signature_can.isAdult) {
formData.append("isAdult", this.is_adult)
}
if (this.can !== this.selected_signature_can.can) {
formData.append("can", this.can)
}
if (this.time !== this.selected_signature_can.time) {
formData.append("time", this.time)
}
const res = await api.modifySignature(formData)
if (res.status === 200 && res.data.success === true) {
this.cancel()
this.notifySuccess(res.data.message || '수정되었습니다.')
this.page = 1
await this.getSignatureList()
} else {
this.is_loading = false
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
} finally {
this.is_loading = false
}
},
async deleteSignature() {
if (this.is_loading) return;
this.is_loading = true
try {
const formData = new FormData()
formData.append("id", this.selected_signature_can.id)
formData.append("isActive", false)
const res = await api.modifySignature(formData)
if (res.status === 200 && res.data.success === true) {
this.cancel()
this.notifySuccess(res.data.message || '등록되었습니다.')
this.page = 1
await this.getSignatureList()
} else {
this.is_loading = false
this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
}
} catch (e) {
this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
this.is_loading = false
} finally {
this.is_loading = false
}
},
async next() {
await this.getSignatureList();
}
}
}
</script>
<style scoped>
.image-select label {
display: inline-block;
padding: 10px 20px;
background-color: #232d4a;
color: #fff;
vertical-align: middle;
font-size: 15px;
cursor: pointer;
border-radius: 5px;
}
.v-file-input {
position: absolute;
width: 0;
height: 0;
padding: 0;
overflow: hidden;
border: 0;
}
.image-preview {
max-width: 100%;
width: 250px;
object-fit: cover;
margin-top: 10px;
}
.v-card__text {
margin-top: 20px;
}
.v-card__actions {
margin-top: 100px;
}
.v-card__actions > .v-btn {
font-size: 20px;
}
.center-image {
display: block;
margin: 0 auto;
}
.row-sort {
margin-top: 40px;
}
.radio-sort {
display: none;
}
.radio-label-sort {
font-weight: normal;
color: black;
}
.radio-sort:checked + .radio-label-sort {
font-weight: bold;
color: #3bb9f1;
}
</style>