| | |
| | | <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> |
| | |
| | | <el-table-column prop="startTime" label="月票开始日期" align="center"></el-table-column> |
| | | <el-table-column prop="endTime" label="月票结束日期" align="center"></el-table-column> |
| | | <el-table-column prop="name" label="停车场" align="center"></el-table-column> |
| | | <el-table-column prop="createBy" label="操作人" align="center"></el-table-column> |
| | | <el-table-column label="操作" fixed="right" width="150" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" @click="onEdit(scope.row)">编辑</el-button> |
| | |
| | | flag:false, |
| | | flag2:false, |
| | | searchForm: { |
| | | name: '' |
| | | name: '', |
| | | carNo:'', |
| | | type:null, |
| | | date: null |
| | | }, |
| | | pageData: this.$byutil.defaultPageData(), |
| | | formData: { |
| | |
| | | startTime: '', |
| | | parkIds: null, |
| | | name: '', |
| | | createBy:'', |
| | | updateBy:'' |
| | | }, |
| | | ids:[], |
| | | urlPath:this.$systemconfig.basePath + '/ffzf/whiteList/', |
| | | table1:[], |
| | | userName:'', |
| | | tableHeight:500, |
| | | } |
| | | }, |
| | | mounted() { |
| | | let username = localStorage.getItem('name') |
| | | this.formData.createBy = username |
| | | this.userName = username |
| | | this.loadData(); |
| | | this.$byutil.postData(this, this.$systemconfig.basePath+'/ffzf/park/findAll', this.formData, res => { |
| | | this.table1 = res.data; |
| | |
| | | this.flag=true; |
| | | this.ids = [] |
| | | this.formData = row; |
| | | this.formData.updateBy = this.userName |
| | | if(row.type==1){ |
| | | this.ids = this.formData.parkIds.split(",") |
| | | this.ids = this.ids.map(function(data){ |