终端监测-监测点台账录入-测量间隔改为1,3,5,10分钟下拉选择展示
This commit is contained in:
@@ -283,12 +283,14 @@
|
|||||||
<el-input-number style="width: 100%" v-model="form.voltageDeviationLowerLimit" />
|
<el-input-number style="width: 100%" v-model="form.voltageDeviationLowerLimit" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item for="-" label="测量间隔:" prop="timeInterval">
|
<el-form-item for="-" label="测量间隔:" prop="timeInterval">
|
||||||
<el-input
|
<el-select v-model="form.timeInterval" placeholder="请选择测量间隔">
|
||||||
v-model="form.timeInterval"
|
<el-option
|
||||||
autocomplete="off"
|
v-for="(item, index) in timeIntervalList"
|
||||||
oninput="value=value.replace(/[^0-9.]/g,'')"
|
:label="item.name"
|
||||||
placeholder="请输入测量间隔"
|
:value="item.id"
|
||||||
|
:key="index"
|
||||||
/>
|
/>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item for="-" label="监测点编码:" prop="lineId">
|
<el-form-item for="-" label="监测点编码:" prop="lineId">
|
||||||
<el-input v-model="form.lineId" autocomplete="off" placeholder="请输入监测点编码" />
|
<el-input v-model="form.lineId" autocomplete="off" placeholder="请输入监测点编码" />
|
||||||
@@ -484,6 +486,25 @@ const numList = [
|
|||||||
name: '10'
|
name: '10'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
//测量间隔数据
|
||||||
|
const timeIntervalList=[
|
||||||
|
{
|
||||||
|
id:'1',
|
||||||
|
name:'一分钟'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id:'3',
|
||||||
|
name:'三分钟'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id:'5',
|
||||||
|
name:'五分钟'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id:'10',
|
||||||
|
name:'十分钟'
|
||||||
|
}
|
||||||
|
]
|
||||||
//获取登陆用户姓名和部门
|
//获取登陆用户姓名和部门
|
||||||
const adminInfo = useAdminInfo()
|
const adminInfo = useAdminInfo()
|
||||||
//工程下拉选择数据
|
//工程下拉选择数据
|
||||||
@@ -547,7 +568,7 @@ const resetForm = () => {
|
|||||||
operationStatus: operationStatusList[0].id, //监测点运行状态
|
operationStatus: operationStatusList[0].id, //监测点运行状态
|
||||||
pointNature: pointNatureList[0].id, //监测点性质
|
pointNature: pointNatureList[0].id, //监测点性质
|
||||||
powerSubstationName: '', //电网侧变电站
|
powerSubstationName: '', //电网侧变电站
|
||||||
timeInterval: '1', //测量间隔
|
timeInterval: timeIntervalList[0].id, //测量间隔
|
||||||
voltageDeviationLowerLimit: '0', //电压偏差下限
|
voltageDeviationLowerLimit: '0', //电压偏差下限
|
||||||
voltageDeviationUpperLimit: '0', // 电压偏差上限
|
voltageDeviationUpperLimit: '0', // 电压偏差上限
|
||||||
voltageLevel: voltageLevelList[0].id, //监测点电压等级
|
voltageLevel: voltageLevelList[0].id, //监测点电压等级
|
||||||
|
|||||||
@@ -71,7 +71,11 @@
|
|||||||
{{ detailData.lineId }}
|
{{ detailData.lineId }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="测量间隔">
|
<el-descriptions-item label="测量间隔">
|
||||||
{{ detailData.timeInterval }}
|
{{
|
||||||
|
timeIntervalList.find(item => {
|
||||||
|
return item.id == detailData.timeInterval
|
||||||
|
})?.name
|
||||||
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="干扰源类型">
|
<el-descriptions-item label="干扰源类型">
|
||||||
{{ detailData.loadType }}
|
{{ detailData.loadType }}
|
||||||
@@ -141,7 +145,25 @@ const props = defineProps({
|
|||||||
const detailLoading = ref(false) // 表单的加载中
|
const detailLoading = ref(false) // 表单的加载中
|
||||||
const detailData = ref<any>({}) // 详情数据
|
const detailData = ref<any>({}) // 详情数据
|
||||||
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
||||||
|
//测量间隔数据
|
||||||
|
const timeIntervalList = [
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
name: '一分钟'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '3',
|
||||||
|
name: '三分钟'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '5',
|
||||||
|
name: '五分钟'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '10',
|
||||||
|
name: '十分钟'
|
||||||
|
}
|
||||||
|
]
|
||||||
//用户状态数组
|
//用户状态数组
|
||||||
const userStateList = reactive([
|
const userStateList = reactive([
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user