+
@@ -328,7 +336,7 @@ const formInline = reactive({
endTime: '',
id: '',
lineId: '',
- dataLevel: 'dataLevel'
+ dataLevel: 'Secondary'
})
const detail = ref
(null)
//是否显示实时数据默认内容
@@ -408,6 +416,7 @@ const nodeClick = async (e: anyObj) => {
formInline.lineId = e.id
await getDeviceData(e.pid, 'history', e.id)
.then((res: any) => {
+ console.log(res.data, '++++++++++++++++++420')
deviceData.value = res.data
formInline.dataLevel = res.data.dataLevel
dataLevel.value = res.data.dataLevel
@@ -437,6 +446,10 @@ const nodeClick = async (e: anyObj) => {
item.id = item.id + '_event'
}
})
+ //便携式设备默认二次值
+ if (deviceType.value == '1') {
+ formInline.dataLevel = 'Secondary'
+ }
dataSet.value = res.data.dataSetList[0].id
handleClick()
}
@@ -454,6 +467,8 @@ const deviceType = ref('0')
const pointTypeChange = (val: any, obj: any) => {
deviceType.value = val
nodeClick(obj)
+ formInline.dataLevel = 'Secondary'
+ console.log(formInline, '????????????????????????????466')
}
const realTimeRef: any = ref()
const intRealTime = async (val: any) => {
@@ -474,7 +489,7 @@ const timer: any = ref()
//tab点击事件
const handleClick = async (tab?: any) => {
tableLoading.value = true
- formInline.dataLevel = 'Secondary'
+ // formInline.dataLevel = 'Secondary'
// loading.value = true
//点击tab时更新dataSet最新值
if (tab && tab.props && tab.props.name && dataSet.value != tab.props.name) {
@@ -729,4 +744,10 @@ onMounted(() => {})
margin-right: 5px;
}
}
+.el-form {
+ width: 100%;
+ height: auto;
+ display: flex;
+ flex-wrap: wrap;
+}