94 lines
2.7 KiB
QML
94 lines
2.7 KiB
QML
|
|
import QtQuick
|
|||
|
|
import QtQuick.Layouts
|
|||
|
|
import QtQuick.Controls
|
|||
|
|
import QtQuick.Dialogs
|
|||
|
|
// import QtQuick.Controls.
|
|||
|
|
import "./app.js" as App
|
|||
|
|
import "./common"
|
|||
|
|
|
|||
|
|
|
|||
|
|
Rectangle {
|
|||
|
|
id: root
|
|||
|
|
property var appId: App.appId
|
|||
|
|
property var plusFile: App.plusFile
|
|||
|
|
property var g_user: ""
|
|||
|
|
property var g_sn: "8441"
|
|||
|
|
property var appPath: "/"+plusFile+"/"+appId+"/"
|
|||
|
|
property var firstPath: ""
|
|||
|
|
property var logDirectory: ""
|
|||
|
|
property var currentLogfilePath: ""
|
|||
|
|
property var currentLogResult: ""
|
|||
|
|
property var _G: null
|
|||
|
|
Component.onCompleted: {
|
|||
|
|
// firstPath = common.firstPath()
|
|||
|
|
// console.info("firstPath: " + firstPath)
|
|||
|
|
// console.info("appPath: " + appPath)
|
|||
|
|
// g_user = common.getCurrentUser()
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
gradient: Gradient {
|
|||
|
|
GradientStop { position: 0.0; color: "#ecf3fb" }
|
|||
|
|
GradientStop { position: 1.0; color: "#b7d6fb" }
|
|||
|
|
orientation: Gradient.Horizontal
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
ListModel{
|
|||
|
|
id: logModel
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Rectangle {
|
|||
|
|
id: bar
|
|||
|
|
anchors.left: parent.left
|
|||
|
|
anchors.right: parent.right
|
|||
|
|
anchors.top: parent.top
|
|||
|
|
anchors.topMargin: 12
|
|||
|
|
anchors.leftMargin: 12
|
|||
|
|
anchors.rightMargin: 12
|
|||
|
|
height: 45
|
|||
|
|
property var currentIndex: 0
|
|||
|
|
radius: 9
|
|||
|
|
Row{
|
|||
|
|
anchors.verticalCenter: parent.verticalCenter
|
|||
|
|
anchors.left: parent.left
|
|||
|
|
anchors.leftMargin: 52
|
|||
|
|
spacing: 80
|
|||
|
|
QxTitleButton {
|
|||
|
|
text: qsTr("数据看板")
|
|||
|
|
isSelected: bar.currentIndex == 0
|
|||
|
|
textColor: isSelected ? "#007EFF" : "#737373"
|
|||
|
|
iconSource: isSelected ? "../resource/bd1.png"
|
|||
|
|
: "../resource/bd0.png"
|
|||
|
|
onClicked: bar.currentIndex = 0
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QxTitleButton {
|
|||
|
|
text: qsTr("看板设置")
|
|||
|
|
isSelected: bar.currentIndex == 1
|
|||
|
|
textColor: isSelected ? "#007EFF" : "#737373"
|
|||
|
|
iconSource: isSelected ? "../resource/set1.png"
|
|||
|
|
: "../resource/set0.png"
|
|||
|
|
onClicked: bar.currentIndex = 1
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
FontLoader {
|
|||
|
|
id: customFontLoader
|
|||
|
|
source: "./resource/PingFang SC Medium.ttf" // 字体文件的路径
|
|||
|
|
}
|
|||
|
|
StackLayout {
|
|||
|
|
id: layout
|
|||
|
|
anchors.top: bar.bottom
|
|||
|
|
anchors.left: parent.left
|
|||
|
|
anchors.right: parent.right
|
|||
|
|
anchors.bottom: parent.bottom
|
|||
|
|
currentIndex: bar.currentIndex
|
|||
|
|
anchors.leftMargin: 12
|
|||
|
|
anchors.rightMargin: 12
|
|||
|
|
anchors.topMargin: 12
|
|||
|
|
anchors.bottomMargin: 10
|
|||
|
|
Explorer{}
|
|||
|
|
Modelsetting{}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|