From a6fd20248270daab943d373c0849ae9b90a69ec8 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期二, 22 十月 2024 22:20:50 +0800 Subject: [PATCH] feat: 修改页面和菜单 --- src/components/page/whiteList/index.vue | 32 +++++++++++++++++++++++++------- 1 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/components/page/whiteList/index.vue b/src/components/page/whiteList/index.vue index 65aa2d7..2c8a27c 100644 --- a/src/components/page/whiteList/index.vue +++ b/src/components/page/whiteList/index.vue @@ -3,8 +3,21 @@ <div style="padding: 10px 10px 0px 10px;"> <el-form :inline="true" :model="searchForm"> <el-form-item label="杞︾墝鍙�"> - <el-input v-model="searchForm.carNo"></el-input> + <el-input v-model="searchForm.carNo" clearable></el-input> </el-form-item> + <el-form-item label="绫诲瀷"> + <el-select v-model="searchForm.type" placeholder="璇烽�夋嫨" clearable> + <el-option label="姘镐箙" :value="0"></el-option> + <el-option label="鏈堢エ" :value="1"></el-option> + </el-select> + </el-form-item> + <el-form-item label="閫夋嫨缁撴潫鏃堕棿"> + <div class="date-box"> + <el-date-picker type="date" value-format="yyyy-MM-dd" format="yyyy-MM-dd" + v-model="searchForm.date" placeholder="" clearable> + </el-date-picker> + </div> + </el-form-item> <el-form-item> <el-button type="primary" size="small" @click="onSearch" icon="el-icon-search">鏌ヨ</el-button> <el-button type="primary" size="small" @click="onAdd" icon="el-icon-plus">澧炲姞</el-button> @@ -12,7 +25,7 @@ </el-form> </div> - <el-table :data="pageData.rows" v-loading="pageData.isLoading" border style="width:100%;border:1px solid #bcbec2;"> + <el-table :height="tableHeight" :data="pageData.rows" v-loading="pageData.isLoading" border style="width:100%;border:1px solid #bcbec2;"> <el-table-column type="index" width="50" label="搴忓彿" align="center"> </el-table-column> <el-table-column prop="carNo" label="杞︾墝鍙�" align="center" width="150"></el-table-column> <el-table-column prop="type" label="绫诲瀷" align="center" width="100"> @@ -72,7 +85,10 @@ flag:false, flag2:false, searchForm: { - name: '' + name: '', + carNo:'', + type:null, + date: null }, pageData: this.$byutil.defaultPageData(), formData: { @@ -80,19 +96,21 @@ type: 0, endTime: '', startTime: '', - parkIds: '', - name: '' + parkIds: null, + name: '', }, ids:[], - urlPath:this.$systemconfig.basePath + '/whiteList/', + urlPath:this.$systemconfig.basePath + '/ffzf/whiteList/', table1:[], + tableHeight:500, } }, mounted() { this.loadData(); - this.$byutil.postData(this, this.$systemconfig.basePath+'/park/findAll', this.formData, res => { + this.$byutil.postData(this, this.$systemconfig.basePath+'/ffzf/park/findAll', this.formData, res => { this.table1 = res.data; }) + this.tableHeight = window.innerHeight - 260 }, methods: { selectChange(value){ -- Gitblit v1.9.1