From 261bb58ad91f703c397c32a089d367ac4170db8c Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期二, 06 五月 2025 22:30:50 +0800 Subject: [PATCH] 修改了状态 --- ruoyi-ui/src/views/travel/Info.vue | 38 ++++++++++++++++++++++++++------------ 1 files changed, 26 insertions(+), 12 deletions(-) diff --git a/ruoyi-ui/src/views/travel/Info.vue b/ruoyi-ui/src/views/travel/Info.vue index f77890c..8fcee82 100644 --- a/ruoyi-ui/src/views/travel/Info.vue +++ b/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; -- Gitblit v1.9.1