剧本编制代码调整

This commit is contained in:
joylink_cuiweidong 2020-06-19 10:06:58 +08:00
parent 411c1cc13e
commit ad756eee10

View File

@ -105,6 +105,7 @@ export default {
return lastData; return lastData;
}, },
covertData(memberVOList, element) { covertData(memberVOList, element) {
debugger;
const member = memberVOList.find(elem=>{ return elem.id == element.memberId; }); const member = memberVOList.find(elem=>{ return elem.id == element.memberId; });
const memberName = member.name; const memberName = member.name;
switch (element.type) { switch (element.type) {
@ -127,9 +128,10 @@ export default {
} }
case 'Command': case 'Command':
{ {
const command = CommandHandler.getScriptDefinition(element.operationType); // const command = CommandHandler.getScriptDefinition(element.operationType);
let operateType = command.operate.split('_')[0]; const commandName = element.operationType;
const data = command.operate.toUpperCase(); let operateType = commandName.split('_')[0];
const data = commandName.toUpperCase();
if (operateType == 'CM') { if (operateType == 'CM') {
operateType = 'ControlConvertMenu'; operateType = 'ControlConvertMenu';
} }