From aab5bcc9959ea1f917b77f09560166b5287a58c0 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Wed, 21 Aug 2019 18:45:16 +0800
Subject: [PATCH] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E5=BD=95=E5=88=B6=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E6=88=90=E5=91=98=E8=A7=92=E8=89=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/simulation.js | 34 +++++
.../scriptManage/scriptRecord/addAction.vue | 19 ++-
.../scriptManage/scriptRecord/addRole.vue | 123 ++++++++++++++++++
.../scriptManage/scriptRecord/getAction.vue | 108 ++++++++++-----
4 files changed, 241 insertions(+), 43 deletions(-)
create mode 100644 src/views/scriptManage/scriptRecord/addRole.vue
diff --git a/src/api/simulation.js b/src/api/simulation.js
index 5f334e718..60e1053b1 100644
--- a/src/api/simulation.js
+++ b/src/api/simulation.js
@@ -209,6 +209,40 @@ export function getScriptMemberData(group) {
});
}
+/** 获取剧本出演成员角色 */
+export function getScriptPlayMember(group) {
+ return request({
+ url: `/api/simulation/${group}/scriptWrite/players`,
+ method: 'get'
+ });
+}
+
+/** 取消剧本演出成员角色 */
+export function cancleScriptMembers(group, data) {
+ return request({
+ url: `/api/simulation/${group}/scriptWrite/removePlayers`,
+ method: 'put',
+ data
+ });
+}
+
+/** 选择剧本演出成员角色 */
+export function selectScriptMembers(group, data) {
+ return request({
+ url: `/api/simulation/${group}/scriptWrite/choosePlayers`,
+ method: 'put',
+ data
+ });
+}
+
+/** 修改剧本演出成员性别 */
+export function modifyScriptMemberSex(group, playerId, data) {
+ return request({
+ url: `/api/simulation/${group}/scriptWrite/player/${playerId}?gender=${data.gender}`,
+ method: 'put',
+ });
+}
+
/** 清除仿真剧本数据*/
export function dumpScriptData(group) {
return request({
diff --git a/src/views/scriptManage/scriptRecord/addAction.vue b/src/views/scriptManage/scriptRecord/addAction.vue
index f75997e0b..fb179e807 100644
--- a/src/views/scriptManage/scriptRecord/addAction.vue
+++ b/src/views/scriptManage/scriptRecord/addAction.vue
@@ -1,8 +1,11 @@