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