提交代码

This commit is contained in:
GGJ
2025-01-23 14:02:19 +08:00
parent 9c688c3bd3
commit 91fa9ffb19
4 changed files with 124 additions and 8 deletions

View File

@@ -115,7 +115,6 @@ const form: any = reactive({
const tabList: any = ref([])
const activeName = ref(0)
const handleNodeClick = (data: any, node: any) => {
console.log("🚀 ~ handleNodeClick ~ data:", data)
if (data.level == 6) {
dotList.value = data
}
@@ -125,13 +124,13 @@ const submit = () => {
if (form.loadData == '') {
return ElMessage.warning('请选择负荷数据')
}
if (form.index.length == 0) {
showTabs.value = false
} else {
let timeList = loadDataOptions.value.filter((item: any) => item.id == form.loadData)[0]
console.log("🚀 ~ submit ~ timeList:", timeList)
showTabs.value = true
let list = JSON.parse(JSON.stringify(form.index))
let list = JSON.parse(JSON.stringify(form.index)).sort((a, b) => a - b)
tabList.value = []
list.forEach((item: any) => {
tabList.value.push({
@@ -161,7 +160,7 @@ const execute = (item: any, index: number) => {
// userDataId:form.loadData,
lineId:dotList.value.id
}).then((res: any) => {
})
tabList.value[index].showExecute = true
}