cityhome.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/6
  6. * Time: 下午2:30
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addCss($this,Yii::$app->request->baseUrl."/static/layui/css/treetable.css");
  10. //AppAsset::addScript($this,Yii::$app->request->baseUrl."/company/ceshi.js");
  11. //AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/plug-in/jquery-3.2.1.min.js");
  12. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/city.js");
  13. ?>
  14. <style>
  15. body {
  16. padding: 15px;
  17. }
  18. .layui-elem-quote {
  19. margin-bottom: 0;
  20. border-left: none;
  21. padding: 10px;
  22. }
  23. .layui-table-page .layui-laypage {float:right;margin-right:1%;}
  24. </style>
  25. <form class="layui-form">
  26. <fieldset class="layui-elem-field">
  27. <legend>搜索信息</legend>
  28. <div class="layui-field-box">
  29. <blockquote class="quoteBox demoTable">
  30. <div class="layui-input-inline">
  31. <select name="province" lay-filter="province" class="province" lay-search="">
  32. <option value="">请选择省</option>
  33. </select>
  34. </div>
  35. <div class="layui-input-inline">
  36. <select name="city" lay-filter="city" lay-search="">
  37. <option value="">请选择市</option>
  38. </select>
  39. </div>
  40. <div class="layui-inline">
  41. <a class="layui-btn search_btn wu_search_btn" data-type="reload"><i class="layui-icon layui-icon-search"></i>搜索</a>
  42. </div>
  43. </blockquote>
  44. </div></fieldset>
  45. </form>
  46. <blockquote class="layui-elem-quote quoteBox demoTable">
  47. <div class="layui-inline">
  48. <a class="layui-btn layui-btn-normal " data-type="addData">新增主区域</a>
  49. </div></blockquote>
  50. <table id="citylist" lay-filter="citylist"></table>
  51. <script type="text/html" id="operate">
  52. {{# if(d.level == 1 || d.level == 2){ }}
  53. <a class="layui-btn layui-btn-xs" lay-event="addson">新增子区域</a>
  54. {{# } }}
  55. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  56. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  57. </script>