YueYunyun 1 год назад
Родитель
Сommit
147ac401ca

+ 0 - 3
SourceCode/WeApp.Web/Views/ExerciseV2/Enter.cshtml

@@ -12,9 +12,6 @@
 }
 @section styles{
     <link href="~/Content/Css/ExerciseV2/stu-bg.min.css" rel="stylesheet" />
-    <style>
-    </style>
-
 }
 @Html.Partial("Layout/V2/_Bg",true)
 <div class="box no-select" style="">

+ 0 - 111
SourceCode/WeApp.Web/Views/ExerciseV2/Enter2.cshtml

@@ -1,111 +0,0 @@
-@using WeApp.TrainingCampGroup.Dto
-@{
-    Layout = "~/Views/Shared/Layout/_Layout.Stu.cshtml";
-    CampGroupDto group = ViewBag.Group;
-    bool isLeader = ViewBag.IsLeader;
-    string id = group.Id,
-        campNo = group.CampNo,
-        disabled1 = isLeader ? "" : "disabled",
-        disabled2 = isLeader ? "disabled" : "";
-
-    var name = isLeader ? "指挥长" : "学员";
-    ViewBag.Title = name + "屏(" + group.Name + ")";
-}
-@section css{
-        <style>
-            body {
-                /*background-image: url('../../Content/Image/Stu/bg-lg-1.png');*/
-                background-image: linear-gradient(45deg,#005f61,#007f61);
-            }
-            .btn-box {
-                margin: 10% auto 0;
-                width: 40%;
-                padding: 10px;
-            }
-
-
-        </style>
-    }
-    <div class="btn-box" style="">
-        <button id="" @(disabled1) class="btn btn-dl btn-block" type="button" onclick="Go(true)" style="font-size: 30px; font-weight: 600; padding: 15px 30px;">指挥长</button>
-        <button id="" @(disabled2) class="btn btn-dl btn-block " type="button" onclick="Go(false)" style="font-size: 30px; font-weight: 600; padding: 15px 30px; margin-top: 40px">组员</button>
-    </div>
-
-
-
-@section scripts
-{
-    <script>
-        abp.signalr.connect(['@(id)','@(campNo)']);
-
-        var state = 0;
-        function Go(isLeader) {
-            if (state) {
-                window.location.href = isLeader ? "/Exercise/HeadquarterLeader" : "/Exercise/HeadquarterStu";
-            } else {
-                abp.message.warn("演练还未开始,请稍后再试!");
-            }
-
-        }
-
-    </script>
-
-    <script id="hub">
-        abp.signalr.connect(['@(id)','@(campNo)']);
-        iwbHub.client.getReloadAll = function (msg) {
-            console.log('getReloadAll: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (data) {
-                        if (data.no == '@(id)'|| data.no == '@(campNo)') {
-                            window.location.reload();
-                        }
-                    }
-                } catch (e) {
-                    console.log('getReloadAll: ', e);
-                }
-            }
-        };
-        @if (isLeader)
-        {
-            <text>
-                iwbHub.client.getReloadLeader = function (msg) {
-                    console.log('getReloadLeader: ', msg);
-                    if (msg) {
-                        try {
-                            var data = JSON.parse(msg);
-                            if (data) {
-                                if (data.no == '@(id)'|| data.no == '@(campNo)') {
-                                    window.location.reload();
-                                }
-                            }
-                        } catch (e) {
-                            console.log('getReloadLeader: ', e);
-                        }
-                    }
-                };
-            </text>
-        }
-        else
-        {
-            <text>
-        iwbHub.client.getReloadStu = function (msg) {
-            console.log('getReloadStu: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (data) {
-                        if (data.no == '@(id)'|| data.no == '@(campNo)') {
-                            window.location.reload();
-                        }
-                    }
-                } catch (e) {
-                    console.log('getReloadStu: ', e);
-                }
-            }
-        };
-            </text>
-        }
-    </script>
-}

+ 0 - 309
SourceCode/WeApp.Web/Views/ExerciseV2/Headquarter - 复制.cshtml

@@ -1,309 +0,0 @@
-@using WeApp.TrainingCampGroup.Dto
-@{
-    Layout = "~/Views/Shared/Layout/_Layout.Stu.cshtml";
-    CampGroupDto group = ViewBag.Group;
-    bool isLeader = ViewBag.IsLeader, hasBuilded= ViewBag.HasBuilded;
-    string id = group.Id, 
-        groupName = group.Name,
-        campNo= group.CampNo;
-    ViewBag.Title = (isLeader ? "指挥长组建指挥部" : "学员屏指挥部") + "(" + group.Name + ")";
-}
-@section css{
-    <link href="~/Content/Css/Exercise/student.min.css" rel="stylesheet" />
-}
-<div class="stu-box">
-    <div class="box-h"> 
-        @if (hasBuilded)
-        {
-            <div class="title">
-                <h3 class="">@(groupName)指挥部</h3>
-            </div>
-     
-        }
-        else
-        {
-            if (isLeader)
-            {
-                <div class="title">
-                    <h3>创建指挥部</h3>
-                    <button type="button" class="btn btn-dl" onclick="CreateGroupRole()" title="选择一组(或多组)角色方案后点击提交">提交</button>
-                </div>
-             
-            }
-            else
-            {
-                <div>
-                    <h3 class="">指挥部创建中...</h3>
-                    @*<button type="button" class="btn btn-outline-iwb">待选角色方案</button>*@
-                </div>
-            }
-        }
-    </div>
-
-    <div id="role-group-box" class="box-b"></div>
-
-</div>
-
-@section scripts
-{
-    <script>
-        $(function() {
-            @if (hasBuilded)
-            {
-                <text>
-                    GetGroupRoles();
-                </text>
-            }
-            else
-            {
-                <text>
-                    GetCampRoleGroups();
-                </text>
-            }
-        });
-
-        function GetGroupRoles() {
-            $.iwbAjax4({
-                url: abp.appUrl + "Query/GetGroupRoleInfos?no=@(id)",
-                success: function(res) {
-                    FormatterGroupRole(res);
-                }
-            });
-        }
-
-        function FormatterGroupRole(data) {
-            if (data && data.length > 0) {
-                var roleInfo =
-                    '<div class="role-info"><div class="image"><img src="../../Content/Image/user.png" /></div><div class="name">{0}</div></div>';
-                var roleStr = '';
-                data.forEach(function(r) {
-                    roleStr += roleInfo.format(r);
-                });
-                var $body = $('<div>', { 'class': 'card-body', 'css': { 'background': 'transparent' } })
-                    .append('<div class="content-box">{0}</div>'.format(roleStr));
-                var $box = $('<div>',
-                    {
-                        'class': 'card card-dl',
-                        'css': { 'borderTop': '0', 'marginBottom': '0', 'background': 'transparent' }
-                    }).append($body);
-                $('#role-group-box').append($box);
-            }
-        }
-
-        function GetCampRoleGroups() {
-            $.iwbAjax4({
-                url: abp.appUrl + "Query/GetCampRoleGroupInfos?no=@(campNo)",
-                success: function(res) {
-                    FormatterCampRoleGroup(res);
-                }
-            });
-        }
-
-        function FormatterCampRoleGroup(data) {
-            if (data && data.length > 0) {
-                var $tab = $("<ul>", { 'class': 'nav nav-tabs' }),
-                    $content = $('<div>', { 'class': 'tab-content' });
-                var tabStr = '',
-                    selectRole = '',
-                    tabContent =
-                        '<div class="tab-pane fade" id="tab-content-{0}"><div class="content-box" >{1}</div></div>';
-                tabStr +=
-                    ' <li class="nav-item" style="position: relative;"><a class="nav-link" data-toggle="pill" href="#tab-content-{0}" role="tab" style="padding-left: 35px;">{1}</a>';
-                @if (isLeader)
-                {
-                    <text>
-                        selectRole =
-                            '<div style="width:100%;cursor: pointer;"><div class="check-group" id="role-group-check_{0}" onclick="CheckRoleGroup(this,1)" data-value="{0}">选择此方案</div></div>';
-                        tabStr +=
-                            ' <label class="iwb-checkbox iwb-dl" style="position: absolute; left: 10px; top: 9px;" ><input class="role-group-check" type="checkbox" value="{0}"  data-value="{0}" autocomplete="off" onchange="CheckRoleGroup(this,2)"> <span></span></label>';
-                    </text>
-                }
-                tabStr += '</li>';
-
-                var roleInfo =
-                    '<div class="role-info"><div class="image"><img src="../../Content/Image/user.png" /></div><div class="name">{0}</div></div>';
-                data.forEach(function(v) {
-                    $tab.append($(tabStr.format(v.id, v.roleGroupName)));
-                    var roleStr = "";
-                    if (selectRole) {
-                        roleStr += selectRole.format(v.id);
-                    }
-                    if (v.roleNames) {
-                        var arr = v.roleNames.split(',');
-                        arr.forEach(function(r) {
-                            roleStr += roleInfo.format(r);
-                        });
-                    }
-
-                    $content.append($(tabContent.format(v.id, roleStr)));
-                });
-                @if (isLeader)
-                {
-                    <text>
-                        $tab.append(
-                            '<li class="nav-item"><a class="nav-link" data-toggle="pill" href="#tab-content-self" role="tab" style="padding-left: 35px;">自定义角色</a></li>');
-                        var selfRole =
-                            '<div class="role-info self"><div class="image"><img src="../../Content/Image/user.png" /></div><div class="input"><input type="text" placeholder="自定义角色..."></div><div class="image add" onclick="AddSelfRole(this)"><img src="../../Content/Image/Stu/add.png" /></div></div>';
-                        $content.append($(tabContent.format('self', selfRole)));
-                    </text>
-                }
-
-                var $head = $('<div>', { 'class': 'card-header p-0 border-bottom-0' }).append($tab);
-                var $body = $('<div>', { 'class': 'card-body', 'css': { 'background': 'transparent' } })
-                    .append($content);
-                var $box = $('<div>',
-                    {
-                        'class': 'card card-dl card-outline card-outline-tabs',
-                        'css': { 'borderTop': '0', 'marginBottom': '0', 'background': 'transparent' }
-                    }).append($head).append($body);
-                $('#role-group-box').append($box);
-                $tab.find("li").eq(0).find('a').tab('show');
-            }
-        }
-
-        function CheckRoleGroup(that, type) {
-            var val = $(that).data("value"), $input, $that;
-            if (type == 1) {
-                $input = $("input[type='checkbox'][value='" + val + "']");
-                $that = $(that);
-                if ($input.length === 1) {
-                    if ($input.is(':checked')) {
-                        $input.prop("checked", false);
-                        $that.text("选择此方案");
-                        $that.removeClass("hasCheck");
-                    } else {
-                        $input.prop("checked", true);
-                        $that.text("已选择(点击取消)");
-                        $that.addClass("hasCheck");
-                    }
-                }
-            } else {
-                $input = $(that);
-                $that = $('#role-group-check_' + val);
-                if ($input.length === 1) {
-                    if ($input.is(':checked')) {
-                        $that.text("已选择(点击取消)");
-                        $that.addClass("hasCheck");
-                    } else {
-                        $that.text("选择此方案");
-                        $that.removeClass("hasCheck");
-                    }
-                }
-            }
-            
-           
-        }
-
-        function AddSelfRole(that) {
-            var $that = $(that).closest(".role-info"), name = $that.find("input").val();
-            console.log("AddSelfRole", name);
-            if (name) {
-
-                var str =
-                    '<div class="role-info self-role"><div class="image"><img src="../../Content/Image/user.png" /></div><div class="name">{0}</div><span class="iconfont icon-times-circle-fill" style="margin-right: 5px;margin-top: 3px;font-size: 16px;color: #aaa;cursor: pointer;" onclick="RemoveSelfRole(this)"></span></div>'
-                        .format(name);
-                $that.before(str);
-                $that.find("input").val("");
-            }
-        }
-
-        function RemoveSelfRole(that) {
-            $(that).closest(".role-info").remove();
-        }
-
-        function CreateGroupRole() {
-            var groupNo = "@(id)";
-            abp.message.confirm("您确认提交吗?提交后不可再更改。",
-                "创建指挥部",
-                function() {
-                    var roleGroupNos = [], selfRoleNames = [];
-                    $(".role-group-check:checked").each(function(i, v) {
-                        roleGroupNos.push($(v).val());
-                    });
-                    $(".self-role .name").each(function(i, v) {
-                        selfRoleNames.push($(v).text());
-                    });
-                    console.log(roleGroupNos, selfRoleNames);
-                    if (roleGroupNos.length <= 0 && selfRoleNames.length <= 0) {
-                        abp.message.warn("您还未选择角色。");
-                        return;
-                    }
-                    $.iwbAjax1({
-                        url: abp.appUrl + "/Eval/CreateGroupRole",
-                        isAlert: false,
-                        isValidate: false,
-                        data: { GroupNo: groupNo, RoleGroupNos: roleGroupNos, SelfRoleNames: selfRoleNames },
-                        success: function() {
-                            //window.iwbHub.server.sendPageState(JSON.stringify({ groupNo: groupNo, cmd: "reload" }));
-                            //window.iwbHub.server.sendPageState(JSON.stringify({ groupNo: groupNo, cmd: "reload-public" }));
-                            //window.iwbHub.server.sendRefreshRole(groupNo);
-                            window.location.reload();
-                            abp.message.success("角色预案创建成功");
-                        }
-                    });
-
-
-                });
-        }
-
-    </script>
-
-    <script id="hub">
-        abp.signalr.connect(['@(id)', '@(campNo)']);
-        iwbHub.client.getReloadAll = function(msg) {
-            console.log('getReloadAll: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (data) {
-                        if (data.no == '@(id)' || data.no == '@(campNo)') {
-                            window.location.reload();
-                        }
-                    }
-                } catch (e) {
-                    console.log('getReloadAll: ', e);
-                }
-            }
-        };
-        @if (isLeader)
-        {
-            <text>
-                iwbHub.client.getReloadLeader = function(msg) {
-                    console.log('getReloadLeader: ', msg);
-                    if (msg) {
-                        try {
-                            var data = JSON.parse(msg);
-                            if (data) {
-                                if (data.no == '@(id)' || data.no == '@(campNo)') {
-                                    window.location.reload();
-                                }
-                            }
-                        } catch (e) {
-                            console.log('getReloadLeader: ', e);
-                        }
-                    }
-                };
-            </text>
-        }
-        else
-        {
-            <text>
-        iwbHub.client.getReloadStu = function(msg) {
-            console.log('getReloadStu: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (data) {
-                        if (data.no == '@(id)' || data.no == '@(campNo)') {
-                            window.location.reload();
-                        }
-                    }
-                } catch (e) {
-                    console.log('getReloadStu: ', e);
-                }
-            }
-        };
-            </text>
-        }
-    </script>
-}

+ 0 - 2
SourceCode/WeApp.Web/Views/ExerciseV2/Leader.cshtml

@@ -10,8 +10,6 @@
 }
 @section css{
     <link href="~/Content/Css/ExerciseV2/stu-cmd_leader.min.css" rel="stylesheet" />
-    <style>
-    </style>
 }
 @Html.Partial("Layout/V2/_Bg",false)
 <div class="box  no-select" style="">

+ 0 - 3
SourceCode/WeApp.Web/Views/ExerciseV2/Public.cshtml

@@ -10,9 +10,6 @@
     var model = new ScreenModel(1, id, campNo, true);
 }
 
-@*@section css{
-        <link href="~/Content/Css/Exercise/public.min.css" rel="stylesheet" />
-    }*@
 @Html.Partial("Camp/_Effect", id + "," + campNo)
 @Html.Partial("Layout/V2/_Bg",false)
 

+ 0 - 1
SourceCode/WeApp.Web/Views/ExerciseV2/PublicWait.cshtml

@@ -12,7 +12,6 @@
 
 @section styles{
     <link href="~/Content/Css/ExerciseV2/stu-bg.min.css" rel="stylesheet" />
-
 }
 @Html.Partial("Layout/V2/_Bg",true)
 <div class="box public no-select" style="">

+ 0 - 257
SourceCode/WeApp.Web/Views/ExerciseV2/PublicWait_old.cshtml

@@ -1,257 +0,0 @@
-@using IwbZero.ToolCommon.StringModel
-@using WeApp.Configuration
-@using WeApp.TrainingCampGroup.Dto
-@{
-    Layout = "~/Views/Shared/Layout/_Layout.Stu.cshtml";
-    CampGroupDto group = ViewBag.Group;
-    string id = group.Id,
-        campNo = group.CampNo, 
-        groupName = group.Name, 
-        text = ViewBag.Text;
-    int state = ViewBag.State;
-    ViewBag.Title = "公共屏(" + group.Name + ")";
-}
-
-
-@section styles{
-    <style>
-        body {
-            cursor: none
-        }
-        .body {
-            padding: 15px;
-            /*background: #3c3f3c;*/
-            background-image: linear-gradient(200deg,#005f61,#007f61);
-            display: flex;
-            justify-content: center;
-            align-items: center;
-        }
-
-        .title {
-            margin-top: -10vh;
-            font-size: 110px;
-            color: #fff;
-            text-align: center;
-        }
-
-
-        .title > span {
-            color: #fff;
-            display: table;
-            width: 100%;
-        }
-        @{
-            if (state == CampGroupStateDefinition.New)
-            {
-                <text>
-        .title {
-            font-size: 80px;
-        }
-        .title > span:nth-of-type(2) {
-            padding: 20px 0 30px
-
-        }
-        </text>
-            }
-        }
-            .title > span > strong {
-                font-size: 130px;
-                letter-spacing: 50px;
-                padding-left: 50px;
-            }
-
-            .title > .wait {
-                width: auto;
-                margin: 10px auto 0;
-                text-align: center;
-                line-height: 50px;
-                font-weight: 600;
-            }
-        .object{
-            width: 30px;
-            height: 30px;
-            background-color: #ffffff;
-            float: left;
-            margin-top: 25px;
-            margin-right: 25px;
-            -moz-border-radius: 50% 50% 50% 50%;
-            -webkit-border-radius: 50% 50% 50% 50%;
-            border-radius: 50% 50% 50% 50%;
-            -webkit-animation: object 2.2s infinite;
-            animation: object 2.2s infinite;
-        }
-        .object:last-child {
-            margin-right: 0;
-        }
-
-        .object:nth-child(20){
-            -webkit-animation-delay: 2.0s;
-            animation-delay: 2.0s;
-        }
-        .object:nth-child(19){
-            -webkit-animation-delay: 1.9s;
-            animation-delay: 1.9s;
-        }
-        .object:nth-child(18){
-            -webkit-animation-delay: 1.8s;
-            animation-delay: 1.8s;
-        }
-        .object:nth-child(17){
-            -webkit-animation-delay: 1.7s;
-            animation-delay: 1.7s;
-        }
-
-        .object:nth-child(16){
-            -webkit-animation-delay: 1.6s;
-            animation-delay: 1.6s;
-        }
-        .object:nth-child(15){
-            -webkit-animation-delay: 1.5s;
-            animation-delay: 1.5s;
-        }
-        .object:nth-child(14){
-            -webkit-animation-delay: 1.4s;
-            animation-delay: 1.4s;
-        }
-        .object:nth-child(13){
-            -webkit-animation-delay: 1.3s;
-            animation-delay: 1.3s;
-        }
-        .object:nth-child(12){
-            -webkit-animation-delay: 3.3s;
-            animation-delay: 1.2s;
-        }
-
-        .object:nth-child(11){
-            -webkit-animation-delay: 1.1s;
-            animation-delay: 1.1s;
-        }
-        .object:nth-child(10){
-            -webkit-animation-delay: 1.0s;
-            animation-delay: 1.0s;
-        }
-        .object:nth-child(9){
-            -webkit-animation-delay: 0.9s;
-            animation-delay: 0.9s;
-        }
-        .object:nth-child(8){
-            -webkit-animation-delay: 0.8s;
-            animation-delay: 0.8s;
-        }
-        .object:nth-child(7){
-            -webkit-animation-delay: 1.8s;
-            animation-delay: 0.7s;
-        }
-        .object:nth-child(6){
-            -webkit-animation-delay: 0.5s;
-            animation-delay: 0.5s;
-        }
-        .object:nth-child(5){
-            -webkit-animation-delay: 0.5s;
-            animation-delay: 0.5s;
-        }
-        .object:nth-child(4){
-            -webkit-animation-delay: 0.4s;
-            animation-delay: 0.4s;
-        }
-        .object:nth-child(3) {
-            -webkit-animation-delay: 0.3s;
-            animation-delay: 0.3s;
-        }
-        .object:nth-child(2){
-            -webkit-animation-delay: 0.2s;
-            animation-delay: 0.2s;
-        }
-
-        @@-webkit-keyframes object{
-            50% {
-                /*-ms-transform: translate(0,-50px);
-                -webkit-transform: translate(0,-50px);
-                transform: translate(0,-50px);*/
-                background-color: #ffffff;
-                background-color: rgba(255,255,255,.25);
-            }
-            100% {
-                /*-ms-transform: translate(0,-50px);
-                -webkit-transform: translate(0,-50px);
-                transform: translate(0,-50px);*/
-                background-color: #ffffff;
-                background-color: rgba(255,255,255,.25);
-            }
-        }
-        @@keyframes object {
-            50% {
-                /*-ms-transform: translate(0,-50px);
-                -webkit-transform: translate(0,-50px);
-                transform: translate(0,-50px);*/
-                background-color: #ffffff;
-                background-color: rgba(255,255,255,.25);
-            }
-
-            100% {
-                /*-ms-transform: translate(0,-50px);
-                -webkit-transform: translate(0,-50px);
-                transform: translate(0,-50px);*/
-                background-color: #ffffff;
-                background-color: rgba(255,255,255,.25);
-            }
-        }
-    </style>
-}
-<div class="body no-select" style="height: 100vh; width: 100vw;box-sizing: padding-box;">
-    <div class="title">
-        <span>
-            <strong>@(groupName)</strong>
-        </span>
-        @if (text.IsNotEmpty())
-        {
-            <span>@(text)</span>
-            <span class="wait ">
-                @{
-                    for (int i = 0; i < 20; i++)
-                    {
-                        <span class="object"></span>
-                    
-                    }
-                }
-            </span>
-        }
-        
-    </div>
-</div>
-@section scripts
-{
-    <script id="hub">
-        abp.signalr.connect(['@(id)','@(campNo)']);
-        iwbHub.client.getReloadAll = function (msg) {
-            console.log('getReloadAll: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (data) {
-                        if (data.no == '@(id)'|| data.no == '@(campNo)') {
-                            window.location.reload();
-                        }
-                    }
-                } catch (e) {
-                    console.log('getReloadAll: ', e);
-                }
-            }
-        };
-        iwbHub.client.getReloadPublic = function (msg) {
-            console.log('getReloadPublic: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (data) {
-                        if (data.no == '@(id)'|| data.no == '@(campNo)') {
-                            window.location.reload();
-                        }
-                    }
-                } catch (e) {
-                    console.log('getReloadPublic: ', e);
-                }
-            }
-        };
-    </script>
-}

+ 0 - 454
SourceCode/WeApp.Web/Views/ExerciseV2/_Screen - 复制.cshtml

@@ -1,454 +0,0 @@
-@using WeApp.Configuration
-@using WeApp.Helpers
-@model WeApp.Views.Exercise.ScreenModel
-@{
-    string groupNo = Model.GroupNo, campNo = Model.CampNo;
-    bool show = Model.WithScript;
-    int type = Model.Type;
-}
-
-@if (show)
-{
-    <link href="~/Content/Css/Exercise/public.min.css" rel="stylesheet" />
-}
-<a href="javascript:void(0)" onclick="ShowGroupRole('@(groupNo)')" class="btn-info btn" style="right: 30px;">角色方案</a>
-
-<div class="box" style="width: 45%; height: 100%;" id="scene_@(groupNo)" data-isRefresh="true">
-    <div class="box-title">
-        <span>情景区</span>
-    </div>
-    <div class="box-body" style="height:  calc(100% - 370px)"><div class="body-content"></div></div>
-    <div class="media-box" style="height:300px;">
-        <div class="body-content">
-            <span>播放区</span>
-        </div>  
-    </div>
-</div>
-<div class="box" style="width: 38%; height: 100%" id="log_@(groupNo)">
-    <div class="box-title" style="position: relative">
-        <span>决策指挥中心</span>
-        <a id="warning-btn" href="javascript:void(0)" onclick="ShowWaring()" class="btn-danger btn" style="position: absolute; top: 6px; left: 30px; margin-bottom: 0; z-index: 2; padding: 8px 20px;display:none">查看告警</a>
-    </div>
-    <div class="box-body" style=""><div class="body-content"></div></div>
-
-</div>
-<div class="" style="width: 17%; height: 100%; float: left;">
-    <div class="box" style="width: 100%; height: 70%" id="role_@(groupNo)">
-        <div class="box-title">
-            <span>指挥部</span>
-        </div>
-        <div class="box-body" style=""><div class="body-content"></div></div>
-    </div>
-    <div class="box" style="width: 100%; height: 30%; border-top: 0" id="score_@(groupNo)">
-        <div class="box-title" style="border-top: 3px solid #eee;">
-            <span>评估信息</span>
-        </div>
-        <div class="box-body" style="">
-            <div class="body-content">
-
-                @*<div class="score-box">
-                    <span class="name">系统评分</span><span style="padding: 0 5px;">:</span><span class="score">800</span><span style="padding-left: 5px;">分</span>
-                </div>*@
-            </div>
-        </div>
-    </div>
-</div>
-
-@using (Html.BeginScripts())
-{
-<script>
-        $(function() {
-            abp.signalr.connect(['@(groupNo)']);
-            OverlayScrollbar($('.box-body'), { className: "os-theme-thin-light"});
-
-            GetScenes('@(groupNo)');
-            GetLogs('@(groupNo)');
-            GetRoles('@(groupNo)');
-            GetScore('@(groupNo)');
-        });
-</script>
-}
-
-@if (show)
-{
-using (Html.BeginScripts())
-{
-    <script>
-        var overlayScrollbar;
-        $(function() {
-            abp.signalr.connect(['@(campNo)']);
-        });
-
-        function Scroll2Bottom(that) {
-            var instance = window.OverlayScrollbars($(that)[0]);
-            instance.scroll({ y: "100%" });
-        }
-
-        function ShowGroupRole(no) {
-            $.iwbAjax4({
-                url: abp.appUrl + 'Query/GetGroupRolePlans?no=' + no,
-                success: function(res) {
-                    if (res && res.plans && res.plans.length > 0) {
-                        var str = '';
-                        res.plans.forEach(function(v) {
-                            str += FormatterRolePlan(v);
-                        });
-                        if (str) {
-                            $(document).iwbModal('create',
-                                {
-                                    modal: 'modal-role-plan',
-                                    modaltitle: '角色预案详情',
-                                    modalBody: str,
-                                    save: function() {
-                                        $('#modal-role-plan').modal('hide');
-                                    }
-                                });
-                        }
-                    } else {
-                        abp.message.warn("还未创建指挥部!");
-                    }
-                }
-            });
-        }
-
-        function FormatterRolePlan(data) {
-            var str = '';
-            if (data) {
-                str += '<div class="plan-box box">';
-                str += '<div class="plan-name">{0}</div>'.format(data.name);
-                str += '<div class="plan-role">';
-                if (data.roleName) {
-                    data.roleName.forEach(function(v) {
-                        str += '<div class="role-box"><div class="image"><img src="../../Content/Image/user.png" /></div><div class="name">{0}</div></div>'
-                            .format(v);
-                    });
-                }
-                str += '</div>';
-                str += '</div>';
-            }
-            return str;
-        }
-    </script>
-
-    <script id="scene-s">
-        function GetScenes(no) {
-            $.iwbAjax5({
-                url: abp.appUrl + 'Query/GetGroupScenes?no=' + no,
-                success: function (res) {
-                    if (res) {
-                        FormatterScenes(res, no);
-                    }
-                }
-            });
-        }
-
-        function FormatterScenes(data, no) {
-            var str = "";
-            if (data && data.length > 0) {
-                data.forEach(function (v) {
-                    str += FormatterSceneInfo(v, false);
-                });
-            }
-            if (str) {
-                $('#scene_' + no + ' .box-body .body-content').html(str);
-                Scroll2Bottom($('#scene_' + no + ' .box-body'));
-            }
-        }
-
-        function GetSceneInfo(groupNo, sceneNo) {
-            $.iwbAjax5({
-                url: abp.appUrl + 'Query/GetGroupSceneInfo?no=' + groupNo + '&sceneNo=' + sceneNo,
-                success: function (res) {
-                    if (res) {
-                        var str = FormatterSceneInfo(res, true);
-                        if (str) {
-                           
-                            $('#scene_' + groupNo + ' .box-body .body-content').append(str);
-                            AutoPlay();
-                            var t = $('#scene_' + groupNo).data('t');
-                            //clearTimeout(t);
-                            //t = 
-                            //setTimeout(function () {
-                            //    $("#scene_" + groupNo + ' .box-body .body-content').find(".flash-scene").removeClass("flash-scene");
-                            //}, 1000 * 20);
-                            $('#scene_' + groupNo).data('t', t);
-                            Scroll2Bottom($('#scene_' + groupNo + ' .box-body'));
-                        }
-                    } else {
-                        setTimeout(function () { GetSceneInfo(groupNo, sceneNo); }, 5000);
-                    }
-                }
-            });
-        }
-
-        function FormatterSceneInfo(data, isNew) {
-            var str = "";
-            if (data) {
-                var c = isNew ? "flash-scene new-scene" : "", attachStr = '';
-                if (data.attaches && data.attaches.length > 0) {
-                    var template = '<span class="badge badge-{3} attach attach-{0}" data-attach-type="{0}" data-path="{1}"  style="margin-left:10px;cursor: pointer;padding:6px 10px" onclick="EventAttach(this)">{2}</span>';
-                    for (var i = 0; i < data.attaches.length; i++) {
-                        var item = data.attaches[i];
-                        if (item.fileType) {
-                            if (item.fileType === "image") {
-                                attachStr += template.format(item.fileType, item.filePath, '图片', 'success');
-                            } else if (item.fileType === "video") {
-                                attachStr += template.format(item.fileType, item.filePath, '视频', 'danger');
-
-                            }
-
-                        }
-                    }
-                }
-
-                str +=
-                    '<div class="scene-box {3}" data-id="{0}"  data-path="{5}"><div class="title">{1}<div class="attach-box">{4}</div></div><div class="desc">{2}</div></div>'
-                        .format(data.id, data.name, data.description, c, attachStr,data.path);
-            }
-            return str;
-        }
-
-        var imageTemplate = '<img src="{0}" style=""/>',
-            videoTemplate = '<video id="video" style=""  controls  autoplay><source src="{0}" type="video/mp4">您的浏览器不支持 HTML5 video 标签。</video>',
-            audioTemplate = '<audio id="audio" style=""  controls  autoplay><source src="{0}" type="audio/mp3">您的浏览器不支持 HTML5 audio 标签。</audio>';
-        var at;
-        function EventAttach(that, event) {
-            var type = $(that).data('attach-type');
-            var path = $(that).data('path');
-            if (type) {
-                var str = type === "image" ? imageTemplate.format(path) : type === "video" ? videoTemplate.format(path) : type === "audio" ? audioTemplate.format(path) : '';
-                $(that).closest(".box").find(".media-box .body-content").html(str);
-                $(that).closest(".box").find(".current-scene").removeClass("current-scene");
-                $(that).closest(".scene-box").addClass("current-scene");
-                event = event || function () { InitMedia($(that)) };
-                var video = document.getElementById("video");
-                if (video) {
-                    video.loop = false;
-                    video.addEventListener('ended', function () { setTimeout(function () { event.call(that); }, 1000 * 3) }, false);
-                } else {
-                    clearTimeout(at);
-                    at = setTimeout(function () { event.call(that); }, 1000 * 10);
-                }
-            }
-        }
-
-        function AutoPlay($that) {
-            if ($that !== undefined && $that != null && $that.length <= 0) {
-                return;
-            }
-            $that = $that === undefined ? $('.new-scene') : $that;
-            var $attach = $that.find('.attach');
-            if ($attach.length <= 0) {
-                var $next = $that.next();
-                if ($next.length > 0) {
-                    AutoPlay();
-                } else {
-                    InitMedia($that);
-                }
-            } else {
-                if (!$that) { return; }
-                $attach = $that.find('.attach').first();
-                EventAttach($attach, function () { AutoPlay($that); });
-                $attach.removeClass('attach');
-            }
-
-        }
-
-        function InitMedia(that) {
-            var $that = (that).closest(".box");
-            $that.find(".current-scene").removeClass("current-scene");
-            $that.find(".media-box .body-content").html('<span>播放区</span>');
-        }
-    </script>
-
-    <script id="log-s">
-        function GetLogs(no) {
-            $.iwbAjax5({
-                url: abp.appUrl + 'Query/GetGroupLogs?no=' + no,
-                success: function(res) {
-                    if (res) {
-                        FormatterLog(res, no);
-                    }
-                }
-            });
-        }
-
-        function FormatterLog(data, no) {
-            var str = "";
-            if (data && data.length > 0) {
-                data.forEach(function(v) {
-                    str += FormatLog(v);
-                });
-            }
-            if (str) {
-                $('#log_' + no + ' .box-body .body-content').html(str);
-            }
-        }
-
-        function FormatLog(data) {
-            var c = '';
-            if (data.logState == '@(LogStateDefinition.Submit)' || data.logState == '@(LogStateDefinition.Send)'|| data.logState == '@(LogStateDefinition.HasMatch)') {
-                c = "send";
-            }
-            var str =
-                '<div class="log-box {3} log_{0}" data-id="{0}" ><span class="role">{1}</span><span style="padding:0 5px;">:</span><span class="word">{2}</span></div>'
-                    .format(data.id, data.role, data.word, c);
-            return str;
-        }
-    </script>
-
-    <script id="role-s">
-        function GetRoles(no) {
-            $.iwbAjax5({
-                url: abp.appUrl + 'Query/GetGroupRoleInfos?no=' + no,
-                success: function (res) {
-                    if (res) {
-                        FormatterRole(res, no);
-                    }
-                }
-
-            });
-        }
-
-        function FormatterRole(data, no) {
-            var str = "";
-            if (data && data.length > 0) {
-                data.forEach(function (v) {
-                    str +=
-                        '<div class="role-box"><div class="image"><img src="../../Content/Image/user.png" /></div><div class="name">{0}</div></div>'
-                        .format(v);
-                });
-            }
-            if (str) {
-                $('#role_' + no + ' .box-body .body-content').html(str);
-            }
-        }
-    </script>
-
-    <script id="score-s">
-        function GetScore(no) {
-            $.iwbAjax5({
-                url: abp.appUrl + 'Query/GetGroupScoreInfo?no=' + no,
-                success: function (res) {
-                    if (res) {
-                        res.systemScore = undefined;
-                        FormatterScore(res, no);
-                    }
-                }
-
-            });
-        }
-        function FormatterScore(data, no) {
-            var str = "",
-                template =
-                    '<div class="score-box {2}"><span class="name">{0}</span><span style="padding:0 5px;">:</span><span class="score">{1}</span><span style="padding-left: 5px;">分</span></div>';
-            if (data.systemScore) {
-                str += template.format("系统评分", data.systemScore,"system-score");
-            }
-            var tags = data.behaviorTagScoreInfo ? JSON.parse(data.behaviorTagScoreInfo) : data.tagScores;
-            if (tags && tags.length > 0) {
-                tags.forEach(function (v) {
-                    var score = v.correctionScore ? v.correctionScore : v.systemScore;
-                    if (score > 0) {
-                        str += template.format(v.tagNo, score, "tag-score");
-                    }
-                });
-            }
-            if (str) {
-                $('#score_' + no + ' .box-body .body-content').prepend(str);
-            }
-        }
-    </script>
-
-    <script id="hub-s">
-        iwbHub.client.getReloadAll = function(msg) {
-            console.log('getReloadAll: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (data) {
-                        if (data.no == '@(groupNo)' || data.no == '@(campNo)') {
-                            window.location.reload();
-                        }
-                    }
-                } catch (e) {
-                    console.log('getReloadAll: ', e);
-                }
-            }
-        };
-        iwbHub.client.getOperationLog = function(msg) {
-            console.log('getOperationLog: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (@(type) == 2 || data.no=='@(groupNo)') {
-                        var str = FormatLog(data);
-                        $('#log_' + data.no + ' .box-body .body-content').prepend(str);
-                    }
-                } catch (e) {
-                    console.log('getOperationLog: ', e);
-                }
-            }
-        };
-        iwbHub.client.getOperationLogSubmit = function(msg) {
-            console.log('getOperationLogSubmit: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (@(type) == 2 || data.no=='@(groupNo)') {
-                        $('#log_' + data.no + ' .box-body .body-content').find('.log_' + data.logId).addClass('send');
-                    }
-                } catch (e) {
-                    console.log('getOperationLogSubmit: ', e);
-                }
-            }
-        };
-        iwbHub.client.getNewScene = function(msg) {
-            console.log('getNewScene: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (data) {
-                        if (@(type) == 2 || data.no == '@(groupNo)') {
-                            if ($('#scene_' + data.no).find('.scene-box[data-path="' + data.path + '"]').length <= 0) {
-                                GetSceneInfo(data.no, data.sceneNo);
-                            }
-                        }
-                    }
-                } catch (e) {
-                    console.log('getNewScene: ', e);
-                }
-            }
-        };
-        iwbHub.client.getRoundScore = function(msg) {
-            console.log('getRoundScore: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (@(type) == 2 || data.no=='@(groupNo)') {
-                        data.systemScore = undefined;
-                        FormatterScore(data, data.no);
-                    };
-                } catch (e) {
-
-                    console.log('getRoundScore: ', e);
-                }
-            }
-        };
-        iwbHub.client.getSendScore = function(msg) {
-            console.log('getSendScore: ', msg);
-            if (msg) {
-                try {
-                    var data = JSON.parse(msg);
-                    if (@(type) == 2 || data.no=='@(groupNo)') {
-                        FormatterScore(data, data.no);
-                    };
-                } catch (e) {
-
-                    console.log('getSendScore: ', e);
-                }
-            }
-        };
-    </script>
-}
-}