From 7ca95d0b01940011b16f03683e59ab4f18fff4e0 Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期二, 25 七月 2023 15:40:39 +0800 Subject: [PATCH] 时间搜索 --- ruoyi-ui/src/views/device/index.vue | 48 +++++++++++++++++++++++++----------------------- 1 files changed, 25 insertions(+), 23 deletions(-) diff --git a/ruoyi-ui/src/views/device/index.vue b/ruoyi-ui/src/views/device/index.vue index 208b2bf..d5e3876 100644 --- a/ruoyi-ui/src/views/device/index.vue +++ b/ruoyi-ui/src/views/device/index.vue @@ -2,7 +2,7 @@ <div class="app-container" style="opacity: 1;"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> - <el-form-item label="鏃堕棿" > + <el-form-item label="鏃堕棿" prop="happenTime"> <el-date-picker v-model="dateRange" style="width: 240px;" @@ -42,10 +42,10 @@ </el-form-item> - <el-form-item label="鏍囬" prop="content"> + <el-form-item label="浜嬮」鍐呭" prop="content"> <el-input v-model="queryParams.content" - placeholder="璇疯緭鍏ユ爣棰�" + placeholder="璇疯緭鍏ヤ簨椤瑰唴瀹�" clearable style="width: 240px" @keyup.enter.native="handleQuery" @@ -125,10 +125,10 @@ <!-- 杩欓噷鏈変釜familyList鏁扮粍 鏄湪data()涓畾涔夌殑 --> <el-table v-loading="loading" :data="equipmentList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> <el-table-column type="selection" :reserve-selection="true" width="55" align="center" /> - <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> + <el-table-column fixed label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> <el-table-column label="璁惧鍚嶇О" prop="name" sortable width="120" /> - <el-table-column label="鏃堕棿" align="center" sortable prop="happenTime" width="180"> + <el-table-column label="鏃堕棿" align="happenTime" sortable prop="happenTime" width="180"> <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: '鈥斺�斺�斺��'}}</template> </el-table-column> <el-table-column label="鏄惁娉ㄩ攢" align="center" sortable prop="status" width="180"> @@ -145,25 +145,26 @@ </el-table-column> - <el-table-column label="鐢靛瓙鏂囦欢" prop="url" width="160" > + <el-table-column label="鐢靛瓙鏂囦欢" prop="url" width="180" align="center"> + <template slot-scope="scope" > <div @click="handleCheck(scope.row)"> - <img - class="el-upload-list__item-thumbnail" - src="../../assets/images/deviceLis.png" - alt="" - style="width: 35px; height: 35px;" - fit="cover" - v-if="scope.row.url !== ','" - > - <img - class="el-upload-list__item-thumbnail" - src="../../assets/images/deviceA.png" - alt="" - style="width: 35px; height: 35px;" - fit="cover" - v-if="scope.row.url === ','" - ></div> + <img + class="el-upload-list__item-thumbnail" + src="../../assets/images/deviceLis.png" + alt="" + style="width: 35px; height: 35px;" + fit="cover" + v-if="scope.row.url !== ',' " + > + <img + class="el-upload-list__item-thumbnail" + src="../../assets/images/deviceA.png" + alt="" + style="width: 35px; height: 35px;" + fit="cover" + v-if="scope.row.url === ','" + ></div> </template> </el-table-column> <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> @@ -385,7 +386,8 @@ content:undefined, buyer:undefined, location:undefined, - createDate:undefined + createDate:undefined, + happenTime:undefined }, // 琛ㄥ崟鍙傛暟 form: {}, -- Gitblit v1.9.1