realtimeSalesDetection2.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>实时销售监测</title>
  6. #parse("sys/header.html")
  7. </head>
  8. <body>
  9. <div id="app">
  10. <header class="main-header">
  11. <div class="container-fluid">
  12. <div class="row" style="border:0;margin-bottom:10px">
  13. <div class="col-md-12 logodiv">
  14. 日期:<input type="date" name="date" id="date" v-model="date" />&nbsp;
  15. 刷新间隔:<input type="number" name="refreshTime" v-model="refreshTime" id="refreshTime" oninput="if(value > 1000 || value < 1 ){alert('非法输入!');value = ''}"/>秒&nbsp;
  16. <input type="radio" name="type" value="store" v-model="type" />门店 &nbsp;
  17. <input type="radio" name="type" value="dept" v-model="type" />部门 &nbsp;
  18. <input type="radio" name="type" value="category" v-model="type" />品类 &nbsp;
  19. <!--是否含税下拉框-->
  20. <select name="rate">
  21. <option value="true">含税</option>
  22. <option value="false">不含税</option>
  23. </select>
  24. <!--统计图类型-->
  25. <select name="seriesType">
  26. <option name="bar">垂直柱状图</option>
  27. <option name="line">折线图</option>
  28. <option name="pie">饼图</option>
  29. </select>
  30. <button v-on:click="refresh">刷新</button>
  31. </div>
  32. <!--<div class="col-md-9" style="background-color: #f0f0f0;margin:0px;padding: 0px" >-->
  33. <!--<div v-show="showList">-->
  34. <!--<Row :gutter="16">-->
  35. <!--<ul class="nav navbar-top-links navbar-right" style="font-size: 1.3em;">-->
  36. <!--<li >-->
  37. <!--<span style="margin-right: 40px">&nbsp; 门店:<b>{{storeName}}</b></span>-->
  38. <!--</li>-->
  39. <!--<li><span style="margin-right: 35px"><i class="fa fa-user-circle" ></i> &nbsp;收银员:<b>{{sysUserInfo.username}}</b></span></li>-->
  40. <!--<li><a @click="logout" style="font-size: 1em"><i class="fa fa fa-sign-out"></i> 退出</a></li>-->
  41. <!--</ul>-->
  42. <!--</Row>-->
  43. <!--</div>-->
  44. <!--</div>-->
  45. </div>
  46. </div>
  47. </header>
  48. <!-- 为 ECharts 准备一个具备大小(宽高)的 DOM -->
  49. <div id="main" style="width: 90%;height:400px;"></div>
  50. </div>
  51. <script src="${rc.contextPath}/statics/libs/vue.min.js"></script>
  52. <script src="${rc.contextPath}/js/sale/echarts.js"></script>
  53. <script src="${rc.contextPath}/js/sale/realtimeSalesDetection.js"></script>
  54. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  55. <script src="${rc.contextPath}/statics/libs/bootstrap.min.js"></script>
  56. <script>
  57. var app = new Vue({
  58. el: '#app',
  59. data: {
  60. date: '',
  61. refreshTime: 1,
  62. message: 'Hello Vue.js!'
  63. },
  64. methods: {
  65. refresh: function () {
  66. alert(this.date);
  67. alert("type"+this.type);
  68. }
  69. }
  70. })
  71. </script>
  72. </div>
  73. </body>
  74. </html>