Blame view

src/views/homePage/HomePage.vue 1.94 KB
9b7e125f   monkeyhouyi   属地页面
1
2
3
4
  <template>
    <div class="HomePage">
      <Header />
      <div class="content">
477ec56f   monkeyhouyi   权限
5
        <div class="navs">
4f6550f1   monkeyhouyi   消息提醒弹框页面样式
6
          <Menu />
477ec56f   monkeyhouyi   权限
7
        </div>
9b7e125f   monkeyhouyi   属地页面
8
9
10
11
12
13
14
        <div class="table-box">
          <div class="search">
            <div class="ipt-box">
              <el-input
                placeholder="请输入应用名称,企业名称进行查询"
                v-model="searchKeyword"
              ></el-input>
4f6550f1   monkeyhouyi   消息提醒弹框页面样式
15
16
17
18
19
20
              <el-button
                type="primary"
                @click="toSearchInfoList"
                style="height: 32px"
                >搜索</el-button
              >
9b7e125f   monkeyhouyi   属地页面
21
            </div>
ecc43230   monkeyhouyi   优化首页,应用管理
22
            <infoForm type="add" @reInit="toSearchInfoList">
9b7e125f   monkeyhouyi   属地页面
23
24
25
26
27
28
29
              <el-button type="success">新增</el-button>
            </infoForm>
            <el-button type="text" style="color: #fff; margin-left: 10px"
              >更多</el-button
            >
          </div>
          <div class="info">
006cc67a   monkeyhouyi   巡查上报
30
            <router-view ref="info"></router-view>
9b7e125f   monkeyhouyi   属地页面
31
32
33
          </div>
        </div>
        <div class="news">
4f6550f1   monkeyhouyi   消息提醒弹框页面样式
34
          <News />
9b7e125f   monkeyhouyi   属地页面
35
36
37
38
39
40
        </div>
      </div>
    </div>
  </template>
  
  <script>
0e2463be   monkeyhouyi   系统修改记录
41
  import Header from "./components/Header";
4f6550f1   monkeyhouyi   消息提醒弹框页面样式
42
43
  import News from "./components/news/index.vue";
  import Menu from "./components/Menu.vue";
9b7e125f   monkeyhouyi   属地页面
44
45
46
47
  export default {
    name: "HomePage",
    components: {
      Header,
4f6550f1   monkeyhouyi   消息提醒弹框页面样式
48
49
      News,
      Menu,
9b7e125f   monkeyhouyi   属地页面
50
51
52
    },
    data() {
      return {
9b7e125f   monkeyhouyi   属地页面
53
54
55
        searchKeyword: "",
      };
    },
006cc67a   monkeyhouyi   巡查上报
56
57
58
59
60
61
    created() {
    },
    mounted() {
      console.log(this.$route.path, 'this.$router');
      
    },
0af91599   monkeyhouyi   弹框请求优化
62
63
64
65
66
67
68
    watch: {
      // $route: {
      //   handler: function (route) {
      //     this.navList = this.$router.options.routes;
      //   },
      //   immediate: true,
      // },
9b7e125f   monkeyhouyi   属地页面
69
    },
4f6550f1   monkeyhouyi   消息提醒弹框页面样式
70
    computed: {},
9b7e125f   monkeyhouyi   属地页面
71
72
    methods: {
      toSearchInfoList() {
006cc67a   monkeyhouyi   巡查上报
73
74
75
76
77
78
79
80
        if(this.$route.path == '/baseSystemInfo/index.vue') {
          this.$refs.info.search();
        } else {
          this.$router.push({
            path: "/baseSystemInfo/index.vue",
            query: { keyword: this.searchKeyword },
          });
        }
9b7e125f   monkeyhouyi   属地页面
81
82
83
84
85
86
      },
    },
  };
  </script>
  
  <style scoped lang="scss">
477ec56f   monkeyhouyi   权限
87
  @import "./homePage.scss";
9b7e125f   monkeyhouyi   属地页面
88
  </style>