| | |
| | | <!--<el-form-item label="名称">--> |
| | | <!--<el-input v-model="searchForm.name"></el-input>--> |
| | | <!--</el-form-item>--> |
| | | <el-form-item label="停车场"> |
| | | <el-select v-model="searchForm.id" clearable> |
| | | <el-option v-for="item in table1" :key="item.id" :label="item.name" :value="item.id" ></el-option> |
| | | </el-select> |
| | | </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-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-form-item> |
| | | </el-form> |
| | | </div> |
| | | |
| | | <el-table :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="name" label="停车场名称" align="center"></el-table-column> |
| | | <el-table-column prop="name" label="停车场名称" align="center" width="350"></el-table-column> |
| | | <el-table-column prop="code" label="编号" align="center" width="80"></el-table-column> |
| | | <el-table-column prop="num" label="车位数量" align="center" width="80"></el-table-column> |
| | | <el-table-column prop="num" label="计划车位数量" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="carNum" label="场内泊车数量" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="content" label="描述" align="center"></el-table-column> |
| | | <el-table-column label="操作" fixed="right" width="250" align="center"> |
| | | <template slot-scope="scope"> |
| | |
| | | return { |
| | | flag:false, |
| | | flag2:false, |
| | | table1:[], |
| | | searchForm: { |
| | | name: '' |
| | | name: '', |
| | | id:'', |
| | | }, |
| | | pageData: this.$byutil.defaultPageData(), |
| | | formData: { |
| | |
| | | phone: '', |
| | | type: '', |
| | | }, |
| | | urlPath:this.$systemconfig.basePath + '/park/', |
| | | urlPath:this.$systemconfig.basePath + '/ffzf/park/', |
| | | id:null, |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.loadData(); |
| | | this.getAllPark(); |
| | | }, |
| | | methods: { |
| | | onSave(){ |
| | |
| | | this.pageData = this.$byutil.defaultPageData(); |
| | | this.loadData(); |
| | | }, |
| | | getAllPark(){ |
| | | this.$byutil.postData(this, this.$systemconfig.basePath+'/ffzf/park/findAll', {}, res => { |
| | | this.table1 = res.data; |
| | | }) |
| | | }, |
| | | onAdd() { |
| | | this.flag=true; |
| | | this.$refs['formData'].resetFields(); |