feige
2024-09-12 cef9c530bac641ed23780a54b1e167d1dde88267
ruoyi-ui/src/views/travel/Info.vue
@@ -1,7 +1,7 @@
<template>
  <div class="app-container" style="opacity: 1;">
    <h2>每日行程</h2>
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
<!--    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
      <el-form-item label="时间" >
        <el-date-picker
@@ -28,9 +28,9 @@
        <el-button  size="mini" @click="handleQuery" style=" width: 65px; height: 32px;background: #FFDDE3;border-radius:6px 6px 6px 6px;opacity:1;">搜索</el-button>
        <el-button  size="mini" @click="resetQuery" style=" width: 65px;height: 32px; background: #FFDDE3; border-radius:6px 6px 6px 6px;opacity: 1;">重置</el-button>
      </el-form-item>
    </el-form>
    </el-form> -->
    <el-row :gutter="10" class="mb8">
<!--    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
@@ -87,9 +87,9 @@
        </el-upload>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
    </el-row> -->
    <el-table  :header-row-class-name="tableHeaderRowClassName"  v-loading="loading" :data="travelBase[props.row.id]"  style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;" :row-class-name="tableRowClassName1" >
    <el-table  v-loading="loading" :data="travelBase"  style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;" :row-class-name="tableRowClassName1" >
                  <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="50px"/>
    
                  <el-table-column label="时间" prop="happenDate" sortable width="100" align="center" >
@@ -134,7 +134,7 @@
    
                  <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="userId != 2">
                    <template slot-scope="scope" v-if="scope.row.roleId !== 1">
                      <el-button
                <!--      <el-button
                        size="mini"
                        type="text"
                        icon="el-icon-edit"
@@ -147,7 +147,7 @@
                        icon="el-icon-delete"
                        @click="handleDelete1(scope.row)"
                        v-hasPermi="['system:role:remove']"
                      >删除</el-button>
                      >删除</el-button> -->
                      <el-button size="mini" type="text" icon="el-icon-d-arrow-right"  @click="handleCheck1(scope.row)">查看详情</el-button>
    
                    </template>
@@ -572,16 +572,17 @@
      // this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0]
      // this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1]
      let _this = this
      // // console.log(this.queryParams)
      //  listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
      listTravelBase(this.queryParams).then(response => {
      listTravelBase(fid).then(response => {
          //  alert(123)
        console.log(response.data)
            console.log(response.data.data)
          this.travelBase = response.data.data;
         //   console.log(response.data.data)
          _this.travelBase = response.data;
          // console.log(this.travelBase)
          this.total = response.data.total;
          this.loading = false;
          _this.loading = false;
        }
      );
@@ -870,6 +871,19 @@
//         this.$modal.msgSuccess("删除成功");
//       }).catch(() => {});
//     },
    //隔行变色
    tableRowClassName1({ row, rowIndex }) {
      if (rowIndex % 2 == 0) {
        return "statistics-warning-row1";
      } else {
        return "statistics-warning-row";
      }
    },
    handleCheck1(row){
      const id = row.id;
    // alert(id)
      this.$router.push("/self/travel/travelInfo/" + id);
    },
    /** 导出按钮操作 */
    handleExport() {
      const Ids = this.ids;