| | |
| | |   |
| | | <el-date-picker v-model="form.periodDate" :type="pickerType" :value-format="pickerFormat" placeholder="请选择统计周期" /> |
| | | </el-form-item> |
| | | <el-form-item label="车流量" prop="carFlowNum"> |
| | | <el-form-item label="车流量" prop="carFlowNum" v-if="indicatorStatus.carFlowNum == 1"> |
| | | <el-input v-model="form.carFlowNum" placeholder="请输入车流量" /> |
| | | </el-form-item> |
| | | <el-form-item label="人流量" prop="personFlowNum"> |
| | | <el-form-item label="人流量" prop="personFlowNum" v-if="indicatorStatus.personFlowNum == 1"> |
| | | <el-input v-model="form.personFlowNum" placeholder="请输入人流量" /> |
| | | </el-form-item> |
| | | <el-form-item label="游客预约" prop="visitorSubNum"> |
| | | <el-form-item label="游客预约" prop="visitorSubNum" v-if="indicatorStatus.visitorSubNum == 1"> |
| | | <el-input v-model="form.visitorSubNum" placeholder="请输入游客预约" /> |
| | | </el-form-item> |
| | | <el-form-item label="入园人数" prop="enterGardenNum"> |
| | | <el-form-item label="入园人数" prop="enterGardenNum" v-if="indicatorStatus.enterGardenNum == 1"> |
| | | <el-input v-model="form.enterGardenNum" placeholder="请输入入园人数" /> |
| | | </el-form-item> |
| | | <el-form-item label="在岗警力" prop="onPolice"> |
| | |
| | | sceneryInfoNames.value = res.rows; |
| | | } |
| | | |
| | | import { getIndicatorInfoStatus } from '@/api/indicatorInfo'; |
| | | import { IndicatorStatus } from '@/api/indicatorInfo/status'; |
| | | // 调用后端API获取指标状态 |
| | | const indicatorStatus = ref<IndicatorStatus[]>([]); |
| | | |
| | | /** 查询指标取值状态 */ |
| | | const getIndicatorStatus = async () => { |
| | | const res = await getIndicatorInfoStatus(); |
| | | indicatorStatus.value = res; |
| | | } |
| | | |
| | | /** 新增按钮操作 */ |
| | | const handleAdd = () => { |
| | | reset(); |
| | | getSceneryInfoName(); |
| | | getIndicatorStatus(); |
| | | dialog.visible = true; |
| | | dialog.title = "添加景区运行数据"; |
| | | } |