import QtQuick import QtQuick.Layouts import QtQuick.Controls import FluentUI.Controls import FluentUI.impl Item { id: control signal closeSim(); anchors.fill: parent ListModel{ id: tab_model ListElement{ title: "运煤计算" } ListElement{ title: "站点规划" } ListElement{ title: "站内规划" } } TabBar { id: bar width: parent.width clip: true Repeater { model: tab_model TabButton { id: btn_tab text: model.title font.pointSize: 10 } } } WindowResultLauncher{ id: iconResultLauncher path: "/sim" onResult: (data)=>{ control.closeSim() } } StackLayout { currentIndex: bar.currentIndex anchors{ left: bar.left right: bar.right top: bar.bottom bottom: parent.bottom topMargin: 10 } Rectangle{ Layout.fillWidth: true Layout.fillHeight: true color: 'transparent' ColumnLayout{ anchors.fill: parent spacing: 15 Rectangle{ Layout.preferredHeight: 100 Layout.fillWidth: true color: "transparent" border.color: "#ffffff" border.width: 2 ColumnLayout{ RowLayout{ Label{ text: "方案一" } } RowLayout{ Label{ Layout.preferredWidth: 180 text: "预期收益:1000万,碳减排:500万吨,投建站点年收益:100万" wrapMode: Label.WordWrap } } RowLayout{ Button{ text: "查看" } Button{ text: "导出报告" } } } } Button{ text: "新建方案" highlighted: true onClicked: { WindowRouter.go("/sim",{type:"WindowType.Standard"}) } } Item{ Layout.fillHeight: true } } } Rectangle{ Layout.fillWidth: true Layout.fillHeight: true color: 'transparent' Label{ text: "设计站点位置,计算成本收益" } } Rectangle{ Layout.fillWidth: true Layout.fillHeight: true color: 'transparent' Label{ text: "设计站内数据,瓶颈分析" } } } // Button{ // text: "运煤计算" // onClicked: { // WindowRouter.go("/sim",{type:"WindowType.Standard"}) // } // } // Button{ // text: "补能站整体规划" // } // Button{ // text: "站内规划" // } // Rectangle{ // Layout.fillHeight: true // Layout.fillWidth: true // color: 'green' // } }