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 @@ + + + + + diff --git a/src/views/scriptManage/scriptRecord/getAction.vue b/src/views/scriptManage/scriptRecord/getAction.vue index c35a0d558..ca25fa906 100644 --- a/src/views/scriptManage/scriptRecord/getAction.vue +++ b/src/views/scriptManage/scriptRecord/getAction.vue @@ -4,41 +4,52 @@ 剧本编制
- - - - -
- - - - -
- - - - - - {{actionInfo.memberName}} - - {{actionInfo.targetName}} - : - {{actionInfo.reply}} - - - {{actionInfo.memberName}} - 执行指令: - {{actionInfo.command}} - -
-
- 修改 - -
-
-
-
-
+
+ + + + +
+ + + +
+ + + + +
+ + + + + {{actionInfo.memberName}} + + {{actionInfo.targetName}} + : + {{actionInfo.reply}} + + + {{actionInfo.memberName}} + 执行指令: + {{actionInfo.command}} + +
+
+ 修改 + +
+
+
+
+
+
+
@@ -46,7 +57,8 @@