kongdeqiang
2025-02-20 105128d7780861f699a3261fdad68804fe5b7c80
src/components/page/costRule/index.vue
@@ -2,9 +2,11 @@
    <div>
        <div style="padding: 10px 10px 0px 10px;">
            <el-form :inline="true" :model="searchForm">
              <el-select v-model="searchForm.parkId">
                <el-option v-for="item in table1" :key="item.id" :label="item.name" :value="item.id"></el-option>
              </el-select>
              <el-form-item label="停车场">
                <el-select v-model="searchForm.parkId" 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>
@@ -12,7 +14,7 @@
            </el-form>
        </div>
        <el-table :data="pageData.rows" v-loading="pageData.isLoading" border style="width:100%;border:1px solid #bcbec2;">
        <el-table :data="pageData.rows"  :height="tableHeight" 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="parkName" label="停车场" align="center" width="150"></el-table-column>
            <el-table-column prop="armyCar" label="军车是否免费" align="center" width="100">
@@ -62,6 +64,9 @@
                        <el-option label="收费" :value=1></el-option>
                    </el-select>
                </el-form-item>
              <el-form-item label="停车免费时长(分钟)" prop="freeTime">
                <el-input-number v-model="formData.freeTime" :min="0"></el-input-number>
              </el-form-item>
                <el-form-item label="计费开始时间" prop="chargeStartTime1">
                  <el-time-picker
                      v-model="formData.chargeStartTime1"
@@ -167,17 +172,20 @@
                    chargeEndTime3: '',
                    cost3:'',
                    maxCost3:'',
                    freeTime:0,
                    parkId:null
                },
                urlPath:this.$systemconfig.basePath + '/rule/',
                urlPath:this.$systemconfig.basePath + '/ffzf/rule/',
                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: {
            onSave(){
@@ -218,6 +226,7 @@
                  chargeEndTime3: '',
                  cost3:'',
                  maxCost3:'',
                  freeTime:0,
                  parkId:null
                }
            },