终端监测-监测点台账录入-测量间隔改为1,3,5,10分钟下拉选择展示
This commit is contained in:
@@ -283,12 +283,14 @@
|
||||
<el-input-number style="width: 100%" v-model="form.voltageDeviationLowerLimit" />
|
||||
</el-form-item>
|
||||
<el-form-item for="-" label="测量间隔:" prop="timeInterval">
|
||||
<el-input
|
||||
v-model="form.timeInterval"
|
||||
autocomplete="off"
|
||||
oninput="value=value.replace(/[^0-9.]/g,'')"
|
||||
placeholder="请输入测量间隔"
|
||||
/>
|
||||
<el-select v-model="form.timeInterval" placeholder="请选择测量间隔">
|
||||
<el-option
|
||||
v-for="(item, index) in timeIntervalList"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
:key="index"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item for="-" label="监测点编码:" prop="lineId">
|
||||
<el-input v-model="form.lineId" autocomplete="off" placeholder="请输入监测点编码" />
|
||||
@@ -484,6 +486,25 @@ const numList = [
|
||||
name: '10'
|
||||
}
|
||||
]
|
||||
//测量间隔数据
|
||||
const timeIntervalList=[
|
||||
{
|
||||
id:'1',
|
||||
name:'一分钟'
|
||||
},
|
||||
{
|
||||
id:'3',
|
||||
name:'三分钟'
|
||||
},
|
||||
{
|
||||
id:'5',
|
||||
name:'五分钟'
|
||||
},
|
||||
{
|
||||
id:'10',
|
||||
name:'十分钟'
|
||||
}
|
||||
]
|
||||
//获取登陆用户姓名和部门
|
||||
const adminInfo = useAdminInfo()
|
||||
//工程下拉选择数据
|
||||
@@ -547,7 +568,7 @@ const resetForm = () => {
|
||||
operationStatus: operationStatusList[0].id, //监测点运行状态
|
||||
pointNature: pointNatureList[0].id, //监测点性质
|
||||
powerSubstationName: '', //电网侧变电站
|
||||
timeInterval: '1', //测量间隔
|
||||
timeInterval: timeIntervalList[0].id, //测量间隔
|
||||
voltageDeviationLowerLimit: '0', //电压偏差下限
|
||||
voltageDeviationUpperLimit: '0', // 电压偏差上限
|
||||
voltageLevel: voltageLevelList[0].id, //监测点电压等级
|
||||
|
||||
@@ -62,16 +62,20 @@
|
||||
{{ detailData.standardCapacity }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="CT变比">
|
||||
{{ detailData.ct1 }}{{ detailData.ct2?'/'+detailData.ct2:'' }}
|
||||
{{ detailData.ct1 }}{{ detailData.ct2 ? '/' + detailData.ct2 : '' }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="PT变比">
|
||||
{{ detailData.pt1 }}{{ detailData.pt2?'/'+detailData.pt2:'' }}
|
||||
{{ detailData.pt1 }}{{ detailData.pt2 ? '/' + detailData.pt2 : '' }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="监测点编码">
|
||||
{{ detailData.lineId }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="测量间隔">
|
||||
{{ detailData.timeInterval }}
|
||||
{{
|
||||
timeIntervalList.find(item => {
|
||||
return item.id == detailData.timeInterval
|
||||
})?.name
|
||||
}}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="干扰源类型">
|
||||
{{ detailData.loadType }}
|
||||
@@ -112,10 +116,10 @@
|
||||
<el-icon>
|
||||
<Link />
|
||||
</el-icon>
|
||||
<a target="_blank"href="detailData?.mainWiringDiagram.url">
|
||||
<a target="_blank" href="detailData?.mainWiringDiagram.url">
|
||||
{{ detailData?.mainWiringDiagram.name }}
|
||||
</a>
|
||||
<span @click="openFile(detailData?.mainWiringDiagram.name )">预览</span>
|
||||
<span @click="openFile(detailData?.mainWiringDiagram.name)">预览</span>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</template>
|
||||
@@ -128,8 +132,8 @@ import { getTempLineDetailsById } from '@/api/supervision-boot/monitorpoint/inde
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||
import { Link } from '@element-plus/icons-vue'
|
||||
const openFile = (name:any) => {
|
||||
window.open(window.location.origin + '/#/previewFile?'+name)
|
||||
const openFile = (name: any) => {
|
||||
window.open(window.location.origin + '/#/previewFile?' + name)
|
||||
}
|
||||
defineOptions({ name: 'BpmUserReportDetail' })
|
||||
|
||||
@@ -141,7 +145,25 @@ const props = defineProps({
|
||||
const detailLoading = ref(false) // 表单的加载中
|
||||
const detailData = ref<any>({}) // 详情数据
|
||||
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([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user