南昌市物联网技防平台-前端
Administrator
2021-03-19 0a93cd6a96f28d5b24a92b96d59bc29903c53559
主动报警链接跳转
6 files modified
15401 ■■■■■ changed files
public/cdn/element-ui/2.13.2/theme-chalk/index.css 15316 ●●●●● patch | view | raw | blame | history
src/router/views/index.js 13 ●●●●● patch | view | raw | blame | history
src/views/alarm/alarm.vue 3 ●●●●● patch | view | raw | blame | history
src/views/animalHeat/animalHeat.vue 4 ●●●● patch | view | raw | blame | history
src/views/healthcode/healthcode.vue 56 ●●●● patch | view | raw | blame | history
src/views/home/home.vue 9 ●●●●● patch | view | raw | blame | history
public/cdn/element-ui/2.13.2/theme-chalk/index.css
Diff too large
src/router/views/index.js
@@ -235,6 +235,19 @@
            component: () =>
                import ( /* webpackChunkName: "views" */ '@/views/animalHeat/animalHeat')
        }]
    }, {
        path: '/alarm',
        component: Layout,
        redirect: '/alarm/alarmPage',
        children: [{
            path: 'alarmPage',
            name: '实时警情',
            meta: {
                i18n: 'alarm'
            },
            component: () =>
                import ( /* webpackChunkName: "views" */ '@/views/alarm/alarm')
        }]
    }
src/views/alarm/alarm.vue
@@ -369,6 +369,9 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        params = {
          alarmType:this.$route.query
        }
        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
src/views/animalHeat/animalHeat.vue
@@ -191,6 +191,10 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        params ={
          status:this.$route.query.status,
          type:this.$route.query.type
        }
        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
src/views/healthcode/healthcode.vue
@@ -103,37 +103,65 @@
              ]
            },
            {
              label: "行政区",
              searchSpan: 4,
              prop: "addvcd",
              label: '省份',
              prop: 'province',
              search: true,
              type: "tree",
              dicUrl: "/api/blade-jfpts/district/district/selectd",
              searchSpan: 3,
              type: 'select',
              props: {
                label: "addvnm",
                value: "addvcds"
              }
                label: 'name',
                value: 'code'
              },
              cascaderItem: ['city', 'district'],
              dicUrl: '/api/blade-system/region/select',
              span: 6,
            },
            {
              label: '地市',
              prop: 'city',
              type: 'select',
              searchSpan: 3,
              search: true,
              props: {
                label: 'name',
                value: 'code'
              },
              dicUrl: '/api/blade-system/region/select?code={{key}}',
              span: 6,
            },
            {
              label: '区县',
              searchSpan: 3,
              search: true,
              prop: 'district',
              type: 'select',
              props: {
                label: 'name',
                value: 'code'
              },
              dicUrl: '/api/blade-system/region/select?code={{key}}',
              span: 6,
            },
            {
              label: "健康码颜色",
              search: true,
              searchLabelWidth: 120,
              searchLabelWidth:100,
              prop: "type",
              searchSpan: 5,
              width:110,
              searchSpan: 3,
              width:210,
              type: "select",
              dicData: [
                {
                  label: "绿色",
                  value: 1
                  value: "1"
                },
                {
                  label: "黄色",
                  value: 2
                  value: "2"
                },
                {
                  label: "红色",
                  value: 3
                  value: "3"
                }
              ],
            }
src/views/home/home.vue
@@ -28,17 +28,26 @@
      window.handleStartHealthcode = this.handleStartHealthcode;
    },
    methods: {
      //体温监测分页数据
      handleStartAnimalHeat(data) {
        this.$router.push({
          path: `/animalHeat/animalHeatPage`,
          query: data[0]
        });
      },
      //健康码分页数据
      handleStartHealthcode(data){
        this.$router.push({
          path: `/healthcode/healthcodePage`,
          query: data[0]
        });
      },
      //主动报警(一键求助,电话报警)分页数据
      handleStartAlarm(data){
         this.$router.push({
          path: `/alarm/alarmPage`,
          query: data
        });
      }
      // getData() {