|
@@ -45,6 +45,9 @@
|
|
<el-icon style="font-size: 18px;margin-left: 10px;" @click="onOpenListDetail(item)">
|
|
<el-icon style="font-size: 18px;margin-left: 10px;" @click="onOpenListDetail(item)">
|
|
<ele-Expand />
|
|
<ele-Expand />
|
|
</el-icon>
|
|
</el-icon>
|
|
|
|
+ <el-icon style="font-size: 18px;margin-left: 10px;" @click="onOpenChartDetail(item)">
|
|
|
|
+ <ele-DataLine />
|
|
|
|
+ </el-icon>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -376,6 +379,7 @@
|
|
<EditEvent ref="editEventRef" @typeList="getevent" />
|
|
<EditEvent ref="editEventRef" @typeList="getevent" />
|
|
<EditTab ref="editTabRef" @typeList="gettab" />
|
|
<EditTab ref="editTabRef" @typeList="gettab" />
|
|
<ListDic ref="listDicRef" />
|
|
<ListDic ref="listDicRef" />
|
|
|
|
+ <ChartDic ref="chartDicRef" />
|
|
<SubDevice ref="subDeviceRef" />
|
|
<SubDevice ref="subDeviceRef" />
|
|
<setAttr :device-key="detail.key" ref="setAttrRef" />
|
|
<setAttr :device-key="detail.key" ref="setAttrRef" />
|
|
<!-- 子设备-批量绑定弹窗 -->
|
|
<!-- 子设备-批量绑定弹窗 -->
|
|
@@ -406,6 +410,7 @@ import EditEvent from '../product/component/editEvent.vue';
|
|
import EditTab from '../product/component/editTab.vue';
|
|
import EditTab from '../product/component/editTab.vue';
|
|
import devantd from '/@/components/devantd/index.vue';
|
|
import devantd from '/@/components/devantd/index.vue';
|
|
import ListDic from './component/list.vue';
|
|
import ListDic from './component/list.vue';
|
|
|
|
+import ChartDic from './component/chart.vue';
|
|
import SubDevice from './component/subDevice.vue';
|
|
import SubDevice from './component/subDevice.vue';
|
|
import setAttr from './component/setAttr.vue';
|
|
import setAttr from './component/setAttr.vue';
|
|
import SubDeviceMutipleBind from './component/subDeviceMutipleBind.vue';
|
|
import SubDeviceMutipleBind from './component/subDeviceMutipleBind.vue';
|
|
@@ -455,7 +460,7 @@ interface TableDataState {
|
|
}
|
|
}
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'deviceEditPro',
|
|
name: 'deviceEditPro',
|
|
- components: { EditAssetRef, FromData, SubDeviceMutipleBind, SubDevice, EditDic, EditAttr, EditFun, EditEvent, EditTab, devantd, ListDic, functionCom, setAttr },
|
|
|
|
|
|
+ components: { EditAssetRef, FromData, SubDeviceMutipleBind, SubDevice, EditDic, EditAttr, EditFun, EditEvent, EditTab, devantd, ListDic, functionCom, setAttr, ChartDic },
|
|
|
|
|
|
props: {
|
|
props: {
|
|
deviceKey: String
|
|
deviceKey: String
|
|
@@ -481,6 +486,7 @@ export default defineComponent({
|
|
const editAttrRef = ref();
|
|
const editAttrRef = ref();
|
|
const editFunRef = ref();
|
|
const editFunRef = ref();
|
|
const listDicRef = ref();
|
|
const listDicRef = ref();
|
|
|
|
+ const chartDicRef = ref();
|
|
const editEventRef = ref();
|
|
const editEventRef = ref();
|
|
const editTabRef = ref();
|
|
const editTabRef = ref();
|
|
const subDeviceRef = ref();
|
|
const subDeviceRef = ref();
|
|
@@ -760,6 +766,11 @@ export default defineComponent({
|
|
listDicRef.value.openDialog(row, state.detail.key);
|
|
listDicRef.value.openDialog(row, state.detail.key);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ //查看日志图形
|
|
|
|
+ const onOpenChartDetail = (row: any) => {
|
|
|
|
+ chartDicRef.value.openDialog(row, state.detail.key);
|
|
|
|
+ };
|
|
|
|
+
|
|
// 打开修改产品弹窗
|
|
// 打开修改产品弹窗
|
|
const onOpenEditDic = (row: any) => {
|
|
const onOpenEditDic = (row: any) => {
|
|
editDicRef.value.openDialog(row);
|
|
editDicRef.value.openDialog(row);
|
|
@@ -1041,6 +1052,7 @@ export default defineComponent({
|
|
editDicRef,
|
|
editDicRef,
|
|
editAttrRef,
|
|
editAttrRef,
|
|
listDicRef,
|
|
listDicRef,
|
|
|
|
+ chartDicRef,
|
|
editFunRef,
|
|
editFunRef,
|
|
editEventRef,
|
|
editEventRef,
|
|
editTabRef,
|
|
editTabRef,
|
|
@@ -1051,6 +1063,7 @@ export default defineComponent({
|
|
dataList,
|
|
dataList,
|
|
deviceAssetMetadata,
|
|
deviceAssetMetadata,
|
|
deviceAssetData,
|
|
deviceAssetData,
|
|
|
|
+ onOpenChartDetail,
|
|
onOpenListDetail,
|
|
onOpenListDetail,
|
|
getrunData,
|
|
getrunData,
|
|
getlog,
|
|
getlog,
|