schangxiang@126.com
2025-09-10 3d43ffa3152110b7823f9fa6320c08a6ae02358a
SiemensWarehouse/siemens2-site/src/views/stat/inventory/lower.vue
@@ -3,7 +3,7 @@
  <div class="indexs">
    <el-card>
      <el-row>
        <el-button type="success" plain @click="exportExcel" >导出本页Excel</el-button>
        <el-button type="success" plain @click="exportExcel" >导出Excel</el-button>
          <el-button type="danger" @click="openAlarm">设备异常报警统计</el-button>
         <el-select v-model="selectTypeValue" placeholder="选择设备名称" class="selectTypeValue" @change="selectChang">
               <el-option
@@ -82,6 +82,7 @@
<script>
import { parseTime } from '@/utils'
import { getDate } from '@/utils/dateTime'
import { getThisWeekRange} from '@/utils/formatTime.js'
export default {
  data() {
    return {
@@ -114,9 +115,14 @@
  },
  created() {},
  mounted() {
      this.initTimeData();
    this.find()
  },
  methods: {
     initTimeData(){
      this.datatime= '';
      this.datatime= getThisWeekRange(30);//启用了
    },
    // 监听 pagesize 改变
    handleSizeChange(newSizd) {
      this.queryInfo.pagesize = newSizd
@@ -269,6 +275,7 @@
      this.queryInfo.pagenum = 1
      this.pagesize = 10
      this.datatime = ''
      this.initTimeData();//重置时间
      this.find()
    },
    resetChild() {