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/park/index.vue | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/components/page/park/index.vue b/src/components/page/park/index.vue
index a22b3c6..769c778 100644
--- a/src/components/page/park/index.vue
+++ b/src/components/page/park/index.vue
@@ -5,9 +5,14 @@
<!--<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>
@@ -73,8 +78,10 @@
return {
flag:false,
flag2:false,
+ table1:[],
searchForm: {
- name: ''
+ name: '',
+ id:'',
},
pageData: this.$byutil.defaultPageData(),
formData: {
@@ -89,6 +96,7 @@
},
mounted() {
this.loadData();
+ this.getAllPark();
},
methods: {
onSave(){
@@ -112,6 +120,11 @@
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();
--
Gitblit v1.9.1