From 29527cd31f56f10e4e356c78aa0c2b98f69b1d8d Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期五, 01 三月 2024 16:01:16 +0800 Subject: [PATCH] 交通宣传基础功能 --- src/views/ti/trafficIndex/index.vue | 121 +++++++++++----------------------------- 1 files changed, 34 insertions(+), 87 deletions(-) diff --git a/src/views/ti/trafficIndex/index.vue b/src/views/ti/trafficIndex/index.vue index b58e411..9c5c0c8 100644 --- a/src/views/ti/trafficIndex/index.vue +++ b/src/views/ti/trafficIndex/index.vue @@ -5,31 +5,25 @@ <el-tab-pane label="閰嶇疆" name="second"></el-tab-pane> </el-tabs> <div v-show="activeName=='first'"> - <transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave"> - <el-form ref="form" :model="form" label-width="80px"> - 缁熻鍛ㄦ湡 - <el-select v-model="form.year" placeholder="璇烽�夋嫨骞翠唤"> - <el-option label="2024骞�" value="2024" /> - <el-option label="2023骞�" value="2023" /> - <el-option label="2022骞�" value="2022" /> + <transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave"> + <div class="search" v-show="showSearch"> + <el-form :model="queryParams" ref="queryFormRef" :inline="true" label-width="68px"> + <el-form-item label="缁熻鍛ㄦ湡" prop="periodDate"> + <el-input v-model="queryParams.periodValue" placeholder="璇疯緭鍏ョ粺璁″懆鏈�" clearable style="width: 240px" @keyup.enter="handleQuery" /> + </el-form-item> + <el-form-item label="鐘舵��" prop="status"> + <el-select v-model="queryParams.status" placeholder="璇烽�夋嫨" clearable style="width: 240px" @keyup.enter="handleQuery" > + <el-option key="1" label="宸插惎鐢�" value="1" /> + <el-option key="2" label="宸茬鐢�" value="2" /> </el-select> - <el-select v-model="form.month" placeholder="璇烽�夋嫨鏈堜唤"> - <el-option label="12鏈�" value="12" /> - <el-option label="11鏈�" value="11" /> - <el-option label="10鏈�" value="10" /> - </el-select> - 鐘舵�� - <el-select v-model="form.status" placeholder="璇烽�夋嫨鐘舵��"> - <el-option label="鍏ㄩ儴" value="0" /> - <el-option label="宸插惎鐢�" value="1" /> - <el-option label="宸茬鐢�" value="2" /> - </el-select> - - <el-button type="primary" icon="Search" @click="handleQuery">鎼滅储</el-button> - <el-button icon="Refresh" @click="resetQuery">閲嶇疆</el-button> - - </el-form> - </transition> + </el-form-item> + <el-form-item> + <el-button type="primary" icon="Search" @click="handleQuery">鎼滅储</el-button> + <el-button icon="Refresh" @click="resetQuery">閲嶇疆</el-button> + </el-form-item> + </el-form> + </div> + </transition> <el-card shadow="never"> <template #header> @@ -54,30 +48,21 @@ <el-table-column type="selection" width="55" align="center" /> <el-table-column label="搴忓彿" type="index" width="50"/> <el-table-column label="妯″潡鍚嶇О" align="center" prop="modeName" /> - <el-table-column label="鎸囨爣1鍚嶇О" align="center" prop="targetOneName" /> - <el-table-column label="鎸囨爣1鍊�" align="center" prop="targetOneValue" /> - <el-table-column label="鎸囨爣1鍗曚綅" align="center" prop="targetOneUnit" /> - <el-table-column label="鎸囨爣1鐘舵�� 1 涓婃诞 2涓嬮檷" align="center" prop="targetOneStatus" /> - <el-table-column label="鎸囨爣1涓婃诞鎴栦笅闄嶅��" align="center" prop="targetOneCompareValue" /> - <el-table-column label="鎸囨爣2鍚嶇О" align="center" prop="targetTwoName" /> - <el-table-column label="鎸囨爣2鍊�" align="center" prop="targetTwoValue" /> - <el-table-column label="鎸囨爣2鍗曚綅" align="center" prop="targetTwoUnit" /> - <el-table-column label="鎸囨爣2鐘舵�� 1 涓婃诞 2涓嬮檷" align="center" prop="targetTwoStatus" /> - <el-table-column label="鎸囨爣2涓婃诞鎴栦笅闄嶅��" align="center" prop="targetTwoCompareValue" /> - <el-table-column label="鎸囨爣3鍚嶇О" align="center" prop="targetThreeName" /> - <el-table-column label="鎸囨爣3鍊�" align="center" prop="targetThreeValue" /> - <el-table-column label="鎸囨爣3鍗曚綅" align="center" prop="targetThreeUnit" /> - <el-table-column label="鎸囨爣3鐘舵�� 1 涓婃诞 2涓嬮檷" align="center" prop="targetThreeStatus" /> - <el-table-column label="鎸囨爣3涓婃诞鎴栦笅闄嶅��" align="center" prop="targetThreeCompareValue" /> - <el-table-column label="鎸囨爣4鍚嶇О" align="center" prop="targetFourName" /> - <el-table-column label="鎸囨爣4鍊�" align="center" prop="targetFourValue" /> - <el-table-column label="鎸囨爣4鍗曚綅" align="center" prop="targetFourUnit" /> - <el-table-column label="鎸囨爣4鐘舵�� 1 涓婃诞 2涓嬮檷" align="center" prop="targetFourStatus" /> - <el-table-column label="鎸囨爣4涓婃诞鎴栦笅闄嶅��" align="center" prop="targetFourCompareValue" /> - <el-table-column label="鍚敤鐘舵�� 1鍚敤 2鏈惎鐢�" align="center" prop="status" /> - <el-table-column label="鍛ㄦ湡 1 鏈� 2骞�" align="center" prop="periodName" /> - <el-table-column label="鍛ㄦ湡鍊�" align="center" prop="periodValue" /> - <el-table-column label="0鏈垹闄� 1宸插垹闄�" align="center" prop="del" /> + <el-table-column label="鎸囨爣1" align="center" prop="targetOneName" /> + <el-table-column label="鏁板��" align="center" prop="targetOneValue" /> + <el-table-column label="鎸囨爣2" align="center" prop="targetTwoName" /> + <el-table-column label="鏁板��" align="center" prop="targetTwoValue" /> + <el-table-column label="鎸囨爣3" align="center" prop="targetThreeName" /> + <el-table-column label="鏁板��" align="center" prop="targetThreeValue" /> + <el-table-column label="鎸囨爣4" align="center" prop="targetFourName" /> + <el-table-column label="鏁板��" align="center" prop="targetFourValue" /> + <el-table-column label="鐘舵��" align="center" prop="status"> + <template #default="scope"> + <span v-show="scope.row['status'] == 1">宸插惎鐢�</span> + <span v-show="scope.row['status'] == 2" style="color: rgba(227, 70,101);">宸茬鐢�</span> + </template> + </el-table-column> + <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime"/> <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-tooltip content="淇敼" placement="top"> @@ -101,45 +86,7 @@ </div> <div v-show="activeName=='second'"> <transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave"> - <div class="search" v-show="showSearch"> - <el-upload - action="#" - list-type="picture-card" - :auto-upload="false"> - <i slot="default" class="el-icon-plus"></i> - <div slot="file" slot-scope="{file}"> - <img - class="el-upload-list__item-thumbnail" - :src="file.url" alt="" - > - <span class="el-upload-list__item-actions"> - <span - class="el-upload-list__item-preview" - @click="handlePictureCardPreview(file)" - > - <i class="el-icon-zoom-in"></i> - </span> - <span - v-if="!disabled" - class="el-upload-list__item-delete" - @click="handleDownload(file)" - > - <i class="el-icon-download"></i> - </span> - <span - v-if="!disabled" - class="el-upload-list__item-delete" - @click="handleRemove(file)" - > - <i class="el-icon-delete"></i> - </span> - </span> - </div> - </el-upload> - <el-dialog :visible.sync="dialogVisible"> - <img width="100%" :src="dialogImageUrl" alt=""> - </el-dialog> - </div> + </transition> -- Gitblit v1.8.0