12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/6
- * Time: 下午2:30
- */
- use backend\assets\AppAsset;
- AppAsset::addCss($this,Yii::$app->request->baseUrl."/static/layui/css/treetable.css");
- //AppAsset::addScript($this,Yii::$app->request->baseUrl."/company/ceshi.js");
- //AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/layui/layui-xtree.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/frontend.js");
- ?>
- <style>
- body {
- padding: 15px;
- }
- .layui-elem-quote {
- margin-bottom: 0;
- border-left: none;
- padding: 10px;
- }
- .layui-table-page .layui-laypage {float:right;margin-right:1%;}
- </style>
- <blockquote class="layui-elem-quote quoteBox demoTable">
- <div class="layui-btn-group demoTable" >
- <button class="layui-btn" data-type="addData">新增</button>
- <!-- <button class="layui-btn" data-type="getCheckLength">获取选中数目</button>-->
- <!-- <button class="layui-btn" data-type="isAll">验证是否全选</button>-->
- </div>
- </blockquote>
- <table id="menulist" lay-filter="menulist"></table>
- <script type="text/html" id="operate">
- {{# if(d.pid == 0){ }}
- <a class="layui-btn layui-btn-xs" lay-event="addson">添加</a>
- {{# } }}
- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
- <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
- {{# if(d.pid != 0){ }}
- <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="produce">生成代码</a>
- {{# } }}
- </script>
- <!-- 判断数据 -->
- <script type="text/html" id="Toexamine">
- {{# if(d.status === 2){ }}
- <span style="color: #ff5722;">{{ d.status }}</span>
- {{# } else { }}
- {{ d.status }}
- {{# } }}
- </script>
|