index.vue 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. @author:fugy
  3. @date:2018.11.27
  4. @info:项目报警首页容器container
  5. **/
  6. <template>
  7. <div>
  8. <v-index-condition @change="conditionChange" :userIndex='userIndex'></v-index-condition>
  9. <hr class="line" />
  10. <v-index-content :conditionParams="conditionParams" @userRefresh='userRefresh' :userIndex='userIndex'></v-index-content>
  11. </div>
  12. </template>
  13. <script>
  14. import vIndexCondition from "./IndexCondition";
  15. import vIndexContent from "./IndexContent";
  16. export default {
  17. name: "project-index",
  18. data() {
  19. return {
  20. conditionParams: null,
  21. userIndex: 0,
  22. }
  23. },
  24. components: {
  25. vIndexCondition,
  26. vIndexContent
  27. },
  28. methods: {
  29. conditionChange(params) {
  30. this.conditionParams = params;
  31. },
  32. userRefresh() {
  33. this.userIndex ++;
  34. }
  35. },
  36. created() {
  37. }
  38. }
  39. </script>
  40. <style lang="less" scoped>
  41. .line {
  42. background-color: #ccc;
  43. height: 1px;
  44. border: none;
  45. }
  46. </style>