|
|
|
@ -6,17 +6,26 @@
|
|
|
|
|
:model="queryParams"
|
|
|
|
|
ref="queryFormRef"
|
|
|
|
|
:inline="true"
|
|
|
|
|
label-width="100px"
|
|
|
|
|
label-width="110px"
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="计费模型名称" prop="name">
|
|
|
|
|
<el-input
|
|
|
|
|
<el-form-item label="计费模型月名称" prop="name">
|
|
|
|
|
<el-select v-model="queryParams.dateId" style="width: 100%;">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in namelist"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
<!-- <el-input
|
|
|
|
|
v-model="queryParams.name"
|
|
|
|
|
placeholder="请输入计费模型名称"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter="handleQuery"
|
|
|
|
|
class="!w-200px"
|
|
|
|
|
/>
|
|
|
|
|
/> -->
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="1尖2峰3平4谷" prop="type">
|
|
|
|
|
<el-select
|
|
|
|
@ -41,7 +50,7 @@
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
<!-- <el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
@click="openForm('create')"
|
|
|
|
@ -57,7 +66,7 @@
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<Icon icon="ep:download" class="mr-5px" /> 导出
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-button> -->
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</ContentWrap>
|
|
|
|
@ -74,17 +83,17 @@
|
|
|
|
|
<el-table-column label="尖电价开始时刻" align="center" prop="startTime" />
|
|
|
|
|
<el-table-column label="尖电价结束时刻" align="center" prop="endTime" />
|
|
|
|
|
|
|
|
|
|
<el-table-column label="电价模型id" align="center" prop="electric5ityModelId" />
|
|
|
|
|
<!-- <el-table-column label="电价模型id" align="center" prop="electric5ityModelId" /> -->
|
|
|
|
|
<el-table-column label="操作" align="center" width="120" fixed="right">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
<!-- <el-button
|
|
|
|
|
link
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="openForm('update', scope.row.id)"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-button> -->
|
|
|
|
|
<el-button
|
|
|
|
|
link
|
|
|
|
|
type="danger"
|
|
|
|
@ -114,7 +123,8 @@ import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
|
import download from '@/utils/download'
|
|
|
|
|
import { ElectricityTimeApi, ElectricityTimeVO } from '@/api/operationsManagement/electricityPriceModel/timeModel'
|
|
|
|
|
import ElectricityTimeForm from './ElectricityTimeForm.vue'
|
|
|
|
|
|
|
|
|
|
// 获取名字列表所需
|
|
|
|
|
import { ElectricityDateApi, ElectricityDateVO } from '@/api/operationsManagement/electricityPriceModel/monthModel'
|
|
|
|
|
/** 电价模型小时 列表 */
|
|
|
|
|
defineOptions({ name: 'ElectricityTime' })
|
|
|
|
|
const emit=defineEmits(["open"])
|
|
|
|
@ -131,16 +141,17 @@ const loading = ref(true) // 列表的加载中
|
|
|
|
|
const list = ref<ElectricityTimeVO[]>([]) // 列表的数据
|
|
|
|
|
// 列表的总页数
|
|
|
|
|
const total = ref(0)
|
|
|
|
|
const namelist = ref('')
|
|
|
|
|
const queryParams = reactive({
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
dateId: props.selectId,
|
|
|
|
|
dateId:undefined ,
|
|
|
|
|
name: undefined,
|
|
|
|
|
type: undefined,
|
|
|
|
|
startTime: [],
|
|
|
|
|
endTime: [],
|
|
|
|
|
createTime: [],
|
|
|
|
|
electricityModelId:undefined,
|
|
|
|
|
electricityModelId:props.selectId,
|
|
|
|
|
})
|
|
|
|
|
const queryFormRef = ref() // 搜索的表单
|
|
|
|
|
const exportLoading = ref(false) // 导出的加载中
|
|
|
|
@ -149,7 +160,7 @@ const exportLoading = ref(false) // 导出的加载中
|
|
|
|
|
const getList = async () => {
|
|
|
|
|
loading.value = true
|
|
|
|
|
try {
|
|
|
|
|
queryParams.dateId=props.selectId
|
|
|
|
|
queryParams.electricityModelId=props.selectId
|
|
|
|
|
const data = await ElectricityTimeApi.getElectricityTimePage(queryParams)
|
|
|
|
|
list.value = data.list
|
|
|
|
|
total.value = data.total
|
|
|
|
@ -209,8 +220,18 @@ defineExpose({ getList })
|
|
|
|
|
// onMounted(() => {
|
|
|
|
|
// getList()
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
async function getbillingDateData(){
|
|
|
|
|
// const data = await ElectricityDateApi.getElectricityDatenew({modelId:props.selectId})
|
|
|
|
|
const data = await ElectricityDateApi.getElectricityList({modeId:props.selectId})
|
|
|
|
|
// console.log(data,"-++++++++++-")
|
|
|
|
|
namelist.value=data||[]
|
|
|
|
|
// electricityModel.value=data||[]
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
watch(()=>props.selectId,async(newValue)=>{
|
|
|
|
|
getList()
|
|
|
|
|
getbillingDateData()
|
|
|
|
|
},{
|
|
|
|
|
deep:true,
|
|
|
|
|
immediate:true
|
|
|
|
|