@{
    string RightInfo = ViewBag.RightInfo as string;
    string right = ViewBag.right as string;
    string ExcelKind = ViewBag.ExcelKind as string;
    
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>导入数据</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <script src="/admin/js/jquery-1.10.1.min.js"></script>
    <script src="/admin/js/LAreaData2.js"></script>
    <style>
        .layui-form-label{
            width: 135px !important;
        }
        .layui-form-item .layui-input-block{
            margin-left: 165px !important;
        }
    </style>
</head>
<body>

    <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
        <input type="hidden" name="Kind" value="@ExcelKind" />
        
        <div class="layui-card">
          <div class="layui-card-body">
            <div class="layui-tab" lay-filter="mytabbar">
                <div class="layui-tab-content mt20">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-form-item">
                            <label class="layui-form-label">模板下载</label>
                            <div class="layui-form-mid layui-word-aux" id="excelTemp">
                                <a href="https://kexiaoshuang.oss-cn-chengdu.aliyuncs.com/ExcelTmplate/%E5%B9%BF%E7%94%B5%E5%8D%A1%E6%BF%80%E6%B4%BB%E8%A1%A8%E6%A0%BC%E6%A8%A1%E6%9D%BF.xlsx">点击下载入库模版</a>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">excel文件</label>
                            <div class="layui-input-block">
                                <div class="layui-upload">
                                    <input type="hidden" id="ExcelPath" name="ExcelPath" value="">
                                    <button class="layui-btn" type="button" id="ExcelPathBtn">选择</button>
                                    <div class="layui-inline layui-word-aux"></div>
                                </div>
                                <div class="mt10" id="ExcelPathFile">
                                </div>
                            </div>
                        </div>
                        
                    </div>

                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <input type="button" lay-submit lay-filter="LAY-list-front-submit" id="LAY-list-front-submit" value="确认">
            </div>
          </div>
        </div>
    </div>

    <script src="/layuiadmin/layui/layui.js"></script>
    <script src="/other/oss/upload-min.js?r=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
    <script src="/other/mybjq/kindeditor-min.js"></script>
    <script src="/other/mybjq/lang/zh_CN.js"></script>
    <script>
        
                    
        //编辑器
        KindEditor.ready(function (K) {
            
        });

        
        var tree;
        var element;
        var upload;
        layui.config({
            base: '/layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'upload', 'layedit', 'laydate', 'element', 'croppers', 'transfer', 'tree', 'util'], function () {
            var $ = layui.$
                , form = layui.form
                , layer = layui.layer
                , layedit = layui.layedit
                , laydate = layui.laydate
                , croppers = layui.croppers
                , transfer = layui.transfer
                , util = layui.util;
            tree = layui.tree;
            element = layui.element;
            upload = layui.upload;
        
            //Hash地址的定位
            var layid = location.hash.replace(/^#test=/, '');
            element.tabChange('test', layid);
            element.on('tab(test)', function (elem) {
                location.hash = 'test=' + $(this).attr('lay-id');
            });
    
            //日期
            

            //上传文件
            WebUploadJs('ExcelPathBtn', '@(Library.ConfigurationManager.AppSettings["Database"].ToString())/upload/v2', {width:0,height:0,quality:0},{max_file_size:1048576},  function (filename) {
                $('#ExcelPathFile').html(filename);
                $('#ExcelPath').val(filename);
            });

            //穿梭框
            
            

            //TreeView，比如权限管理
            

            //省市区

        });

    </script>
</body>
</html>
