WXL
16 小时以前 9b2c74ee4f08fad01c2a16bc6e36df073bfa1dd5
src/views/business/affirm/index.vue
@@ -71,7 +71,7 @@
    <el-card class="tool-card">
      <el-row :gutter="10">
        <el-col :span="16">
          <el-button type="primary" icon="el-icon-plus" @click="handleCreate"
          <!-- <el-button type="primary" icon="el-icon-plus" @click="handleCreate"
            >新增确认</el-button
          >
          <el-button
@@ -87,7 +87,7 @@
            :disabled="multiple"
            @click="handleDelete"
            >删除</el-button
          >
          > -->
          <el-button
            type="warning"
            icon="el-icon-download"
@@ -203,6 +203,7 @@
          label="操作"
          align="center"
          width="120"
          fixed="right"
          class-name="small-padding fixed-width"
        >
          <template slot-scope="scope">
@@ -357,15 +358,15 @@
        if (Array.isArray(response.data)) {
          // 如果返回的是数组
          this.confirmationList = response.data;
          this.total = response.data.length;
          this.total = response.total;
        } else if (response.data.rows) {
          // 如果返回的是分页数据结构
          this.confirmationList = response.data.rows;
          this.total = response.data.total;
          this.total = response.total;
        } else if (Array.isArray(response.data.list)) {
          // 如果返回的是list字段
          this.confirmationList = response.data.list;
          this.total = response.data.total || response.data.list.length;
          this.total = response.total;
        } else {
          // 其他数据结构,尝试直接使用data
          this.confirmationList = response.data;