南昌市物联网技防平台-前端
Administrator
2021-03-20 255c620ba08208c7571ba884717af302ba5c7f02
体温,健康码详情页面功能优化
2 files modified
78 ■■■■■ changed files
src/views/animalHeat/animalHeat.vue 53 ●●●●● patch | view | raw | blame | history
src/views/healthcode/healthcode.vue 25 ●●●●● patch | view | raw | blame | history
src/views/animalHeat/animalHeat.vue
@@ -18,15 +18,26 @@
               @size-change="sizeChange"
               @refresh-change="refreshChange"
               @on-load="onLoad">
      <template slot="menuLeft">
        <el-button type="danger"
                   size="small"
                   icon="el-icon-delete"
                   plain
                   v-if="true"
                   @click="handleDelete">删 除
        </el-button>
      </template>
        <!-- <template slot="menuLeft">
          <el-button
            v-bind:class="activeClass == 0 ? 'btn-color' : ''"
            size="medium "
            @click="getBZdata(0)"
            >本日
          </el-button>
          <el-button
            v-bind:class="activeClass == 1 ? 'btn-color' : ''"
            size="medium "
            @click="getBZdata(1)"
            >本周
          </el-button>
          <el-button
            v-bind:class="activeClass == 2 ? 'btn-color' : ''"
            size="medium "
            @click="getBYdata(2)"
            >本月
          </el-button>
      </template> -->
    </avue-crud>
  </basic-container>
</template>
@@ -48,11 +59,13 @@
        },
        selectionList: [],
        option: {
          menu:false,
          height:'auto',
          calcHeight: 30,
          tip: false,
          searchShow: true,
          searchMenuSpan: 6,
          activeClass: 3,
          border: true,
          index: true,
          viewBtn: true,
@@ -146,10 +159,10 @@
      ...mapGetters(["permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(null, true),
          viewBtn: this.vaildData(null, true),
          delBtn: this.vaildData(null, true),
          editBtn: this.vaildData(null, true)
          addBtn: this.vaildData(null, false),
          viewBtn: this.vaildData(null, false),
          delBtn: this.vaildData(null, false),
          editBtn: this.vaildData(null, false)
        };
      },
      ids() {
@@ -189,6 +202,17 @@
      refreshChange() {
        this.onLoad(this.page, this.query);
      },
      getBZdata(e) {
        alert(e);
        this.activeClass = e;
        var params = {
          beginTime: this.dateTime.week.beginTime,
          endTime: this.dateTime.week.endTime,
        };
        this.query = params;
        this.page.currentPage = 1;
        this.onLoad(this.page, params);
      },
      onLoad(page, params = {}) {
        this.loading = true;
        params ={
@@ -202,9 +226,6 @@
          this.loading = false;
          this.selectionClear();
        });
      },
      handleHistory(row) {
        this.$router.push({ path: `/real/history/${row.deviceNumber}` });
      }
    }
  };
src/views/healthcode/healthcode.vue
@@ -18,15 +18,7 @@
               @size-change="sizeChange"
               @refresh-change="refreshChange"
               @on-load="onLoad">
      <template slot="menuLeft">
        <el-button type="danger"
                   size="small"
                   icon="el-icon-delete"
                   plain
                   v-if="true"
                   @click="handleDelete">删 除
        </el-button>
      </template>
    </avue-crud>
  </basic-container>
</template>
@@ -48,6 +40,7 @@
        },
        selectionList: [],
        option: {
          menu:false,
          height:'auto',
          calcHeight: 30,
          tip: false,
@@ -110,7 +103,7 @@
              type: 'select',
              props: {
                label: 'name',
                value: 'code'
                value: 'name'
              },
              cascaderItem: ['city', 'district'],
              dicUrl: '/api/blade-system/region/select',
@@ -124,7 +117,7 @@
              search: true,
              props: {
                label: 'name',
                value: 'code'
                value: 'name'
              },
              dicUrl: '/api/blade-system/region/select?code={{key}}',
              span: 6,
@@ -137,7 +130,7 @@
              type: 'select',
              props: {
                label: 'name',
                value: 'code'
                value: 'name'
              },
              dicUrl: '/api/blade-system/region/select?code={{key}}',
              span: 6,
@@ -174,10 +167,10 @@
      ...mapGetters(["permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(null, true),
          viewBtn: this.vaildData(null, true),
          delBtn: this.vaildData(null, true),
          editBtn: this.vaildData(null, true)
          addBtn: this.vaildData(null, false),
          viewBtn: this.vaildData(null, false),
          delBtn: this.vaildData(null, false),
          editBtn: this.vaildData(null, false)
        };
      },
      ids() {