doum
9 天以前 3f2a7cb1dab1b9dda4a5667675672f171c793987
admin/src/views/business/driverVerification.vue
@@ -26,10 +26,10 @@
    </el-form>
    <template v-slot:table-wrap>
      <el-table
        :height="tableHeightNew"
        v-loading="isWorking.search"
        :data="tableData.list"
        stripe
          :height="tableHeightNew"
          v-loading="isWorking.search"
          :data="tableData.list"
          stripe
      >
        <el-table-column prop="name" label="司机姓名" min-width="100px"></el-table-column>
        <el-table-column label="性别" min-width="60px">
@@ -50,18 +50,18 @@
            <span style="color: #13ce66;" v-else >审批通过</span>
          </template>
        </el-table-column>
        <el-table-column label="状态" min-width="80px">
          <template slot-scope="{row}">
            <el-switch
              @change="handleStatusChange($event, row)"
              v-model="row.status"
              active-color="#13ce66"
              inactive-color="#ff4949"
              :active-value="0"
              :inactive-value="1"
            ></el-switch>
          </template>
        </el-table-column>
        <!--        <el-table-column label="状态" min-width="80px">
                  <template slot-scope="{row}">
                    <el-switch
                      @change="handleStatusChange($event, row)"
                      v-model="row.status"
                      active-color="#13ce66"
                      inactive-color="#ff4949"
                      :active-value="0"
                      :inactive-value="1"
                    ></el-switch>
                  </template>
                </el-table-column>-->
        <el-table-column label="操作" min-width="100" fixed="right">
          <template slot-scope="{row}">
            <el-button type="text" @click="handleDetail(row)">详情</el-button>
@@ -69,9 +69,9 @@
        </el-table-column>
      </el-table>
      <pagination
        @size-change="handleSizeChange"
        @current-change="handlePageChange"
        :pagination="tableData.pagination"
          @size-change="handleSizeChange"
          @current-change="handlePageChange"
          :pagination="tableData.pagination"
      ></pagination>
    </template>
    <OperaDriverApproval ref="operaDriverApproval" @success="handleApprovalSuccess" />
@@ -145,16 +145,16 @@
    handleExport () {
      this.isWorking.export = true
      exportExcel(this.getTableParams())
        .then(res => {
          this.download(res)
          this.$tip.apiSuccess('导出成功')
        })
        .catch(e => {
          this.$tip.apiFailed(e)
        })
        .finally(() => {
          this.isWorking.export = false
        })
          .then(res => {
            this.download(res)
            this.$tip.apiSuccess('导出成功')
          })
          .catch(e => {
            this.$tip.apiFailed(e)
          })
          .finally(() => {
            this.isWorking.export = false
          })
    }
  }
}