fix
songhuangfeng123
2022-04-01 7f9eb61d710569dd01daf33dfe88cbc2c30947e9
src/views/safetyproduction/checklistself.vue
@@ -12,7 +12,7 @@
            <el-date-picker
              v-model="listQuery.filter.inspectionStartTime"
              type="date"
              format="yyyy 年 MM 月 dd 日"
              format="yyyy 年 MM 月 dd 日"
              placeholder="选择日期"
            >
            </el-date-picker>
@@ -23,7 +23,7 @@
            <el-input v-model="listQuery.filter.inspectorName"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="4" style="text-align: center">
        <el-col :span="8" style="text-align: center">
          <el-button
            type="primary"
            icon="el-icon-search"
@@ -38,6 +38,12 @@
            @click="jump()"
            >新增</el-button
          >
            <el-button
                type="primary"
                class="btns"
                @click="resetPage()"
            >重置</el-button
            >
        </el-col>
      </el-row>
    </el-form>
@@ -105,7 +111,7 @@
          status: "",
        },
        pageIndex: 1,
        pageSize: 5,
        pageSize: 10,
      },
      list: [],
      pageSize: 10,
@@ -117,6 +123,13 @@
    this.safetySelfInspectionL();
  },
  methods: {
      resetPage(){
        this.listQuery.filter={}
        this.listQuery.pageIndex=1
        this.listQuery.pageSize=10
          this.safetySelfInspectionL();
      },
    async safetySelfInspectionL() {
      var res = await safetySelfInspectionList(this.listQuery).then((res) => {
        if (res.data.code == 200) {
@@ -191,4 +204,4 @@
  background-color: #034ea2;
  border: 1px solid #034ea2;
}
</style>
</style>