<!--
 * @Description: 这是折线图页面（组件）
 * @Date: 2021-03-02 16:27:32
 * @Author: Tao
 * @LastEditors: Tao
 * @LastEditTime: 2021-04-02 16:01:14
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    // 离开页面保存功能代码(移动至此处)
    if (window.location.host.indexOf('127.0.0') === -1) {
        // 测试 && 开发：sycdev.com
        // 正式： shengyc.com
        document.domain = 'shengyc.com' || '';
    }
</script>
<link rel="stylesheet" href="../css/clearCss.css" type="text/css"/>
<script src="../layui/layui.all.js"></script>
<link rel="stylesheet" href="../layui/css/layui.css">
<link rel="stylesheet" href="../css/柱形图.css" type="text/css"/>
<style type="text/css">
  .layui-form-checkbox i{
    border-left:-1px;
  }
  .layui-form-checkbox{
      margin-right:0px;
  }
  .layui-form-radio{
      margin:0;
  }
  button[colorpicker-events="clear"]{
      display: none;
  }
  html,head,body{
      height: 100%;;
  }
  .layui-form-select dl dd.layui-this{
    background-color: #a4ccf5 !important;
}
</style>
<body>
    <div class="BarChart">
        <div class="Barchart_conter clearfix">
            <div class="BarChart_left left">
                <div class="BarChart_var clearfix">
                    <div class="left var_left">
                        <div style="margin-top:12px;margin-bottom:14px;font-size:14px">数据</div>
                        <div>
                            <form class="layui-form formBox">
                                <div style="margin-bottom:10px;font-size:14px">数据关联：</div>
                                <div class="showLin" style="margin-left:20px;width:400px;height: 32px;">
                                    <select lay-filter="data" name="city" id="data-relate" lay-verify="required">
                                        <option value="实时数据">实时数据</option>
                                        <option value="历史数据">历史数据</option>
                                        <!-- <option value="统计数据">统计数据</option> -->
                                        <option value="业务数据">业务数据</option>
                                      </select>
                                </div>
                            </form>
                            <form class="layui-form formBox" lay-filter="form-data" style="padding-top: 0; display: none;" id="data-sheet" >
                                <div style="margin-bottom:10px;font-size:14px">数据表：</div>
                                <div class="showLin" style="margin-left:20px;width:400px;height: 32px;">
                                    <select lay-filter="chart-data" name="city" id="chart-table" lay-verify="required">
                                        <!-- <option value="实时数据">实时数据</option>
                                        <option value="历史数据">历史数据</option>
                                        <option value="业务数据">业务数据</option> -->
                                      </select>
                                </div>
                            </form>
                        </div>
                        <div id="varTitle" class="varTitle">纵轴/度量(3/10)</div>
                        <div class="table formBox1">
                            <table class="layui-hide" id="demo" lay-filter="demo"></table>
                            <div class="newAdd">
                                <i class="layui-icon layui-icon-add-1" style="color:rgba(64, 158, 255, 1)"></i>
                                新增
                            </div>
                        </div>
                        <div class="varTitle">横轴/维度</div>
                        <div class="varType" id="axial" style="display: none;" >
                            <form class="layui-form" lay-filter="form-dimen">
                                <div style="width:90px;height: 32px;padding-bottom:14px">
                                    <select lay-filter="data-dimen" name="city"  id="data-dimen" placeholder="请选择" lay-verify="required">
                                        <option value="时间">时间</option>
                                        <option value="变量">变量</option>
                                    </select>
                                </div>
                                <div id="data-content" >

                                    
                                </div>
                            </form>
                        </div>
                        <div class="varType" id="realTime" style="display: none;"  >
                            <form class="layui-form" lay-filter="form-dateFormat">
                                <div style="width: 100%;height: 32px;padding-bottom:14px">
                                    <span>数据个数：</span>最近
                                    <div class="showLin" style="width:90px;height: 32px;margin: 0 3px">
                                        <input type="text" name="title" required  lay-verify="required" autocomplete="off" id="realtime-count-input"  onblur="getrealTime(event)" class="layui-input">
                                    </div>个数据
                                </div>
                                    <div class="showLin" style="margin-right:24px">时间格式</div>
                                    <div class="showLin" style="width:200px;height:32px">
                                        <select lay-filter="data-time" id="data-time" name="city" placeholder="请选择" lay-verify="required">
                                        </select>
                                    </div>
                            </form>
                        </div>

                        <div class="ax-table" id="ax-table" >
                            <div class="table formBox1">
                                <table class="layui-hide" id="table-demo" lay-filter="table-demo"></table>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <script src="../js/moment.js"></script>
    <script src="../js/jquery-1.10.2.min.js"></script>
    <!-- 引入axiox -->
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script> 
    <script src="../utils/request.js"></script>
    <!-- <script src="../js/color.js"></script> -->
    <script src="../js/dropdown.js"></script>
    <!-- <script src="../js/echarts.js"></script> -->
    <!-- <script???? src="../js/ecStat.js"></script????> -->
    <script>
        var echartsType = 'line'
    </script>
    <script type="text/html" id="titleTpl">
        <!-- 变量配置 -->
        <div style="position:absolute;top:0;left:0;width:78%;height:100%">
            <input lay-event="var" id="varIpt" name="selsectVar" class="varSelect layui-input"  value="{{d.selsectVar}}">
        </div>
    </script>
    <script type="text/html" id="titleColor">
        <!-- 颜色选择器 -->
        <div id="color{{d.NO}}" class="colorBlock1 colorBlock2"></div>
        <!-- <div lay-event="delete" class="DataDelete">
            <i class="layui-icon layui-icon-close-fill" style="color:rgba(153, 153, 153, 1);font-size:20px"></i>
        </div> -->

        {{# if(d.NO === 1){ }}
            <span></span>
        {{# }else{ }}
            <div lay-event="delete" class="DataDelete">
                <i class="layui-icon layui-icon-close-fill" style="color:rgba(153, 153, 153, 1);font-size:20px"></i>
            </div>
        {{# } }}
    </script>
    <script type="text/html" id="selectAxis">
        <!-- 轴选择 -->
        <div class="selectAxis">
                <select lay-event="type" class="select" value="d.moreAxis" lay-ignore>
                        {{# for(let i=0;i<d.moreAxisArr.length;i++){ }}
                            {{# if(d.moreAxisArr[i] == d.moreAxis){ }}
                            <option value="{{i}}" selected>{{d.moreAxisArr[i]}}</option>
                            {{# }else{ }}
                            <option value="{{i}}">{{d.moreAxisArr[i]}}</option>
                            {{# } }}
                        {{# } }}
                </select>
        </div>
    </script>
    <script type="text/html" id="valueAxis">
        <!-- 取值 -->
        <div class="selectAxis">
            <select lay-event="type" class="select" value="d.rangevalue" lay-ignore>
                    {{# for(let i=0;i<d.valueAxisArr.length;i++){ }}
                        {{# if(d.valueAxisArr[i].value == d.rangevalue){ }}
                        <option value="{{i}}" selected>{{d.valueAxisArr[i].name}}</option>
                        {{# }else{ }}
                        <option value="{{i}}">{{d.valueAxisArr[i].name}}</option>
                        {{# } }}
                    {{# } }}
            </select>
    </div>
    </script>
    <script src="../js/color.js"></script>
    <script src="./折线图.js"></script>
    <script src="../js/varEcharts.js"></script>
    <script src="../js/guide.js"></script>
    <script src="../js/guide.js"></script>
</body>
</html>