Preview.cshtml 21 KB
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header
    {
    <link rel="stylesheet" href="/css/treetable.css" />
    <link href="/js/mapdesign/GooFlow.css" rel="stylesheet" />
    <link href="/css/formpreview.css" rel="stylesheet" />
}
<style>
    html {
        background-size: cover;
    }
</style>

<form class="layui-form layui-form-pane" action="" id="formEdit">
    <input type="hidden" name="Id" v-model="Id" />
    <div class="layui-row">
        <div class="layui-tab layui-tab-brief" lay-filter="mytab" style="margin: 0px">
            <ul class="layui-tab-title">
                <li id="tab1" lay-id="1" class="layui-this" style=""><span name="LP_MapInfo"></span></li>
                <li id="tab2" lay-id="2" style="pointer-events:none; color:#A0A0A0;"><span name="LP_MapPreview"></span></li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i style="color:red;font-size:14px;">*</i><span name="LP_Name"></span></label>
                        <div class="layui-input-inline" style="width:300px">
                            <input name="Name" v-model="Name" type="text" autocomplete="off" maxlength="200" class="layui-input" lay-verify="required" disabled="">
                        </div>
                    </div>
                    <div hidden>
                        <label class="layui-form-label"><span name="LP_Width"></span></label>
                        <div class="layui-input-inline">
                            <input name="Width" v-model="Width" type="text" autocomplete="off" class="layui-input NumText">
                        </div>
                    </div>
                    <div hidden>
                        <label class="layui-form-label"><span name="LP_Height"></span></label>
                        <div class="layui-input-inline">
                            <input name="Height" v-model="Height" type="text" autocomplete="off" class="layui-input NumText">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i style="color:red;font-size:14px;">*</i><span name="LP_Default"></span></label>
                        <div class="layui-input-block">
                            <input type="checkbox" value="1" v-model="IsDefault" name="IsDefault" lay-skin="switch"
                                   lay-text="是|否" lay-filter="IsDefault" disabled="">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><span name="LP_Remark"></span></label>
                        <div class="layui-input-block">
                            <textarea name="Description" v-model="Description" placeholder=""
                                      class="layui-textarea" disabled=""></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i style="color:red;font-size:14px;">*</i><span name="LP_Next"></span></label>
                        <div class="layui-input-inline">
                            <button type="button" class="layui-btn" id="btnApply" style="width:300px" lay-submit lay-filter=""><span name="LP_MapPreview"></span></button>
                        </div>
                    </div>
                </div>

                <div class="layui-tab-item">
                    <div id="treeDiv" style="width:465px;height:350px;position:absolute;right:0px;padding:10px;border-radius:2px;box-shadow: 1px 1px 50px rgba(0,0,0,.3);background:#fff;z-index:1000;display:inline-block;">
                        <div class="layui-row">
                            <div id="treeDiv1" class="layui-col-sm12" style="text-align:center;background-color:#eee;margin-bottom:20px;cursor:move">
                                <div class="layui-col-sm3" style="font-size:24px;pointer-events: none;">
                                    <span name="LP_LimitPath"></span>
                                </div>
                                <div class="layui-col-sm8" style="text-align:center;line-height: 43px;height: 31px;font-size: 16px;pointer-events: none;">
                                    &nbsp;
                                </div>
                                <div class="layui-col-sm1" style="text-align:right;height: 31px;line-height:31px;">
                                    <a href="javascript:;" class="SwitchRegion"><i class="layui-icon" data-icon="" style="font-size:24px">&#xe663;</i></a>
                                </div>
                            </div>
                            <div id="SwitchRegion">
                                <div class="layui-col-sm12" style="text-align:left;background-color:#eee;height:40px;line-height:40px;font-size:16px;padding-left: 20px;">
                                    <span name="LP_LimitPathList"></span>
                                </div>
                                <div class="layui-col-sm12">
                                    <table id="mainList" lay-filter="mainList"></table>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="flowPanel"></div>
                    <div class="layui-col-md12 GooFlow" style="background-color:white;">
                        <table>
                            <tr>
                                <td style="width:70px;text-align:left"><p name="LP_IconInfo"></p></td>

                                <td><i class="ico_user_rfid_yxd_0000" style="width:30px;height:30px;"></i></td>
                                <td style="width:45px;text-align:left"><p name="LP_IconYXD"></p></td>
                                <td style="width:80px;"><label class="layui-form-label" style="text-decoration: underline;text-align: left;" id="icon_yxd">0</label></td>

                                <td><i class="ico_user_rfid_xzd_0000" style="width:30px;height:30px;"></i></td>
                                <td style="width: 45px; text-align: left"><p name="LP_IconXZD"></p></td>
                                <td style="width:80px;text-align:left"><label class="layui-form-label" style="text-decoration:underline;text-align:left;" id="icon_xzd">0</label></td>

                                <td><i class="ico_user_rfid_xnd_0000" style="width: 30px;height: 30px;"></i></td>
                                <td style="width:45px;text-align:left"><p name="LP_IconXND"></p></td>
                                <td style="width:80px;text-align:left"><label class="layui-form-label" style="text-decoration:underline;text-align:left;" id="icon_xnd">0</label></td>

                                <td><i class="ico_user_rfid_ztd_0000" style="width:30px;height:30px;"></i></td>
                                <td style="width:45px;text-align:left"><p name="LP_IconZTD"></p></td>
                                <td style="width:80px;text-align:left"><label class="layui-form-label" style="text-decoration:underline;text-align:left;" id="icon_ztd">0</label></td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" lay-submit id="btnSubmit" lay-filter="formSubmit" />
</form>

<div id="nodeForm" hidden>
    <form class="layui-form layui-form-pane" action="" lay-filter="nodeForm">
        <div class="layui-row">
            <div hidden>
                <label class="layui-form-label">Id</label>
                <div class="layui-input-block">
                    <input type="text" name="Id" required lay-verify="required"
                           placeholder="Id" autocomplete="off" class="layui-input" readonly disabled>
                </div>
            </div>
            <div hidden>
                <label class="layui-form-label">X</label>
                <div class="layui-input-inline">
                    <input type="text" name="Left" style="width:80px"
                           placeholder="X" autocomplete="off" class="layui-input NumText" readonly disabled>
                </div>
            </div>
            <div hidden>
                <label class="layui-form-label">Y</label>
                <div class="layui-input-inline">
                    <input type="text" name="Top" style="width:80px"
                           placeholder="Y" autocomplete="off" class="layui-input NumText" readonly disabled>
                </div>
            </div>
            <div hidden>
                <label class="layui-form-label"><span name="LP_Enable"></span></label>
                <div class="layui-input-block">
                    <input type="checkbox" name="IsEnable" checked="checked" lay-ignore readonly disabled/>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label"><i style="color:red;font-size:14px;">*</i>RFID</label>
                <div class="layui-input-block">
                    <input type="text" name="RFID" placeholder="" autocomplete="off" class="layui-input NumText" readonly disabled>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><span name="LP_Name"></span></label>
                <div class="layui-input-block">
                    <input type="text" name="Name" lay-verify="required"
                           placeholder="" autocomplete="off" class="layui-input" readonly disabled>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><i style="color:red;font-size:14px;">*</i><span name="LP_Location"></span></label>
                <div class="layui-input-block">
                    <input type="text" name="X_Y" lay-verify="required" placeholder="(,)" autocomplete="off" class="layui-input" readonly disabled>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><i style="color:red;font-size:14px;">*</i><span name="LP_PointType"></span></label>
                <div class="layui-input-block">
                    <select name="Edit_PointType" lay-filter="SelectPointType" readonly disabled>
                    </select>
                </div>
            </div>
            <div class="layui-form-item" id="divPointTurn">
                <label class="layui-form-label"><i style="color:red;font-size:14px;">*</i><span name="LP_IsTurn"></span></label>
                <div class="layui-input-block">
                    <select name="Edit_PointTurn" lay-filter="Edit_PointTurn"  readonly disabled>
                        <option value="0" selected="selected">否</option>
                        <option value="1">是</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><i style="color:red;font-size:14px;">*</i><span name="LP_WaitTime"></span></label>
                <div class="layui-input-inline" style="width:285px;margin-right: 0px;">
                    <input type="text" name="PauseTime" style="width:220px;"
                           placeholder="" autocomplete="off" class="layui-input NumText" readonly disabled>
                    <input type="text" style="width:60px;text-align:center;"
                           placeholder="S" autocomplete="off" class="layui-input" disabled>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width:395px;text-align:left;"><i style="color:red;font-size:14px;">*</i><span name="LP_DirectLength"></span></label>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md3 DirectionDiv" data-type="left" id="divleft" style="height: 95px;background: url('/images/map/direct/left0.png') no-repeat center top; background-size: 95%;">
                    <input type="hidden" id="hidleft" value="0" />
                </div>
                <div class="layui-col-md3 DirectionDiv" data-type="up" id="divup" style="height:95px;background: url('/images/map/direct/up0.png') no-repeat center top; background-size: 95%;">
                    <input type="hidden" id="hidup" value="0" />
                </div>
                <div class="layui-col-md3 DirectionDiv" data-type="right" id="divright" style="height:95px;background: url('/images/map/direct/right0.png') no-repeat center top; background-size: 95%;">
                    <input type="hidden" id="hidright" value="0" />
                </div>
                <div class="layui-col-md3 DirectionDiv" data-type="down" id="divdown" style="height:95px;background: url('/images/map/direct/down0.png') no-repeat center top; background-size: 95%;">
                    <input type="hidden" id="hiddown" value="0" />
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md3" style="text-align:center">
                    <input type="text" name="txt_left" placeholder="0.00m" style="width:90px;text-align:center;" class="layui-input NumDecText" readonly disabled/>
                </div>
                <div class="layui-col-md3" style="text-align:center">
                    <input type="text" name="txt_up" placeholder="0.00m" style="width:90px;text-align:center;" class="layui-input NumDecText" readonly disabled/>
                </div>
                <div class="layui-col-md3" style="text-align:center">
                    <input type="text" name="txt_right" placeholder="0.00m" style="width:90px;text-align:center;" class="layui-input NumDecText" readonly disabled/>
                </div>
                <div class="layui-col-md3" style="text-align:center">
                    <input type="text" name="txt_down" placeholder="0.00m" style="width:90px;text-align:center;" class="layui-input NumDecText" readonly disabled/>
                </div>
            </div>
        </div>
    </form>
</div>

<div id="areaForm" hidden>
    <form class="layui-form layui-form-pane" action="" lay-filter="areaForm">
        <div class="layui-row">
            <div hidden>
                <label class="layui-form-label">Id</label>
                <div class="layui-input-block">
                    <input type="text" name="Id" lay-verify="required"
                           placeholder="Id" autocomplete="off" class="layui-input" readonly disabled>
                </div>
            </div>
            <div hidden>
                <label class="layui-form-label">X</label>
                <div class="layui-input-inline">
                    <input type="text" name="Left" style="width:80px"
                           placeholder="X" autocomplete="off" class="layui-input NumText" readonly disabled>
                </div>
            </div>
            <div hidden>
                <label class="layui-form-label">Y</label>
                <div class="layui-input-inline">
                    <input type="text" name="Top" style="width:80px"
                           placeholder="Y" autocomplete="off" class="layui-input NumText" readonly disabled>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label"><span name="LP_Location"></span></label>
                <div class="layui-input-block">
                    <input type="text" name="XY"
                           placeholder="(X,Y)" autocomplete="off" class="layui-input" readonly disabled>
                </div>
            </div>

            <div class="layui-col-sm6">
                <label class="layui-form-label"><span name="LP_Width"></span></label>
                <div class="layui-input-inline">
                    <input type="text" name="Width" style="width:50px"
                           autocomplete="off" class="layui-input NumText" readonly disabled>
                </div>
                <div class="layui-input-inline" style="width:30px;margin-top:-5px;">
                    <table style="width:100%; height:40px;display:block;background-color:#FBFBFB;">
                        <tr>
                            <td style="text-align:center;width:30px;">
                                <a href="javascript:;" class="WidthPixUp" readonly disabled><i class="layui-icon" data-icon="" style="font-size:12px">&#xe619;</i></a>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align:center;">
                                <a href="javascript:;" class="WidthPixDown" readonly disabled><i class="layui-icon" data-icon="" style="font-size:12px">&#xe61a;</i></a>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="layui-col-sm6">
                <label class="layui-form-label"><span name="LP_Height"></span></label>
                <div class="layui-input-inline">
                    <input type="text" name="Height" style="width:50px"
                           autocomplete="off" class="layui-input NumText" readonly disabled>
                </div>
                <div class="layui-input-inline" style="width:30px;margin-top:-5px;">
                    <table style="width:100%; height:40px;display:block;background-color:#FBFBFB;">
                        <tr>
                            <td style="text-align:center;width:30px;">
                                <a href="javascript:;" class="HeightPixUp" readonly disabled><i class="layui-icon" data-icon="" style="font-size:12px">&#xe619;</i></a>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align:center;">
                                <a href="javascript:;" class="HeightPixDown" readonly disabled><i class="layui-icon" data-icon="" style="font-size:12px">&#xe61a;</i></a>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><span name="LP_Name"></span></label>
                <div class="layui-input-block">
                    <input type="text" name="Name" required lay-verify="required"
                           autocomplete="off" class="layui-input" readonly disabled>
                </div>
            </div>
            <div id="divCharge">
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width:395px;text-align:left;"><i style="color:red;font-size:14px;">*</i><span name="LP_ChargingInfo"></span></label>
                    <input type="hidden" name="hidChargeDirection" value="" />
                    <input type="hidden" name="hidChargeRFID" value="" />
                    <input type="hidden" name="hidChargeLength" value="" />
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md3" id="DivRadioLeft" readonly disabled>
                    </div>
                    <div class="layui-col-md3" id="DivRadioUp" readonly disabled>
                    </div>
                    <div class="layui-col-md3" id="DivRadioRight" readonly disabled>
                    </div>
                    <div class="layui-col-md3" id="DivRadioDown" readonly disabled>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md3" style="text-align:center">
                        <input type="text" name="txt_left" placeholder="0.00m" style="width:90px;text-align:center;" class="layui-input NumDecText" readonly disabled />
                    </div>
                    <div class="layui-col-md3" style="text-align:center">
                        <input type="text" name="txt_up" placeholder="0.00m" style="width:90px;text-align:center;" class="layui-input NumDecText" readonly disabled />
                    </div>
                    <div class="layui-col-md3" style="text-align:center">
                        <input type="text" name="txt_right" placeholder="0.00m" style="width:90px;text-align:center;" class="layui-input NumDecText" readonly disabled />
                    </div>
                    <div class="layui-col-md3" style="text-align:center">
                        <input type="text" name="txt_down" placeholder="0.00m" style="width:90px;text-align:center;" class="layui-input NumDecText" readonly disabled />
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<style>
    #nodeForm .layui-form-item {
        margin-bottom: 0px;
    }

    #areaForm .layui-form-item {
        margin-bottom: 0px;
    }
</style>

<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/productjs/map/MapPreview.js?v=2020.08.24"></script>