南昌市物联网技防平台-前端
Administrator
2021-03-19 9832c3d8d6abd411e4747d6040719c50e66e2064
体温跳转
3 files modified
69 ■■■■■ changed files
src/router/views/index.js 13 ●●●●● patch | view | raw | blame | history
src/views/healthcode/healthcode.vue 49 ●●●● patch | view | raw | blame | history
src/views/home/home.vue 7 ●●●●● patch | view | raw | blame | history
src/router/views/index.js
@@ -222,6 +222,19 @@
            component: () =>
                import ( /* webpackChunkName: "views" */ '@/views/healthcode/healthcode')
        }]
    }, {
        path: '/animalHeat',
        component: Layout,
        redirect: '/animalHeat/animalHeatPage',
        children: [{
            path: 'animalHeatPage',
            name: '体温检测',
            meta: {
                i18n: 'animalHeat'
            },
            component: () =>
                import ( /* webpackChunkName: "views" */ '@/views/animalHeat/animalHeat')
        }]
    }
src/views/healthcode/healthcode.vue
@@ -75,26 +75,11 @@
            },
            {
              label: "检测时间",
              prop: "createTime"
              prop: "dtime"
            },
            {
              label: "体温",
              prop: "tempRed"
            },
            {
              label: '图片',
              prop: 'picture',
              type: 'upload',
              width: 300,
              listType: 'picture-img',
              span: 24,
              propsHttp: {
                res: 'data'
              },
              canvasOption: {
                text: 'avue',
                ratio: 0.1
              }
              label: '性别',
              prop: 'sex'
            },
            {
              label: "检测时间",
@@ -118,21 +103,37 @@
              ]
            },
            {
              label: "体温状态",
              label: "行政区",
              searchSpan: 4,
              prop: "addvcd",
              search: true,
              type: "tree",
              dicUrl: "/api/blade-jfpts/district/district/selectd",
              props: {
                label: "addvnm",
                value: "addvcds"
              }
            },
            {
              label: "健康码颜色",
              search: true,
              searchLabelWidth: 120,
              prop: "status",
              prop: "type",
              searchSpan: 5,
              width:110,
              type: "select",
              dicData: [
                {
                  label: "正常",
                  value: 0
                  label: "绿色",
                  value: 1
                },
                {
                  label: "异常",
                  value: 1
                  label: "黄色",
                  value: 2
                },
                {
                  label: "红色",
                  value: 3
                }
              ],
            }
src/views/home/home.vue
@@ -24,13 +24,14 @@
      }
    },
    mounted() {
      window.handleStart = this.handleStart;
      window.handleStartAnimalHeat = this.handleStartAnimalHeat;
      window.handleStartHealthcode = this.handleStartHealthcode;
    },
    methods: {
      handleStart() {
      handleStartAnimalHeat(data) {
        this.$router.push({
          path: `/real/history/000000000003`
          path: `/animalHeat/animalHeatPage`,
          query: data
        });
      },
      handleStartHealthcode(data){