Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jump_hm_warehouse
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
毛勇泽
jump_hm_warehouse
Commits
46f11aa6
Commit
46f11aa6
authored
Jan 15, 2024
by
huangqy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统维护
parent
8a864a00
显示空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
139 行增加
和
51 行删除
+139
-51
index.ets
common/index.ets
+0
-1
CommonConstants.ets
common/src/main/ets/constants/CommonConstants.ets
+0
-0
TitleBar.ets
common/src/main/ets/utils/TitleBar.ets
+0
-42
string.json
common/src/main/resources/base/element/string.json
+4
-0
string.json
common/src/main/resources/en_US/element/string.json
+4
-0
string.json
common/src/main/resources/zh_CN/element/string.json
+4
-0
DataSynchronism.ets
entry/src/main/ets/pages/sub_systemMaintenance/DataSynchronism.ets
+0
-0
Unit.ets
entry/src/main/ets/pages/sub_systemMaintenance/Unit.ets
+36
-0
Warehouse.ets
entry/src/main/ets/pages/sub_systemMaintenance/Warehouse.ets
+39
-0
BasicTable.ets
entry/src/main/ets/view/BasicTable/BasicTable.ets
+2
-2
main_pages.json
entry/src/main/resources/base/profile/main_pages.json
+4
-1
SystemMaintenance.ets
features/SystemMaintenance/src/main/ets/components/SystemMaintenance.ets
+40
-5
UniTargetSetting.ets
features/SystemMaintenance/src/main/ets/viewModel/UniTargetSetting.ets
+6
-0
right_grey.png
features/SystemMaintenance/src/main/resources/base/media/right_grey.png
+0
-0
systemMaintenance.jpg
features/SystemMaintenance/src/main/resources/rawfile/systemMaintenance.jpg
+0
-0
没有找到文件。
common/index.ets
View file @
46f11aa6
...
@@ -4,4 +4,3 @@ export { GridConstants } from './src/main/ets/constants/GridConstants';
...
@@ -4,4 +4,3 @@ export { GridConstants } from './src/main/ets/constants/GridConstants';
export { StyleConstants } from './src/main/ets/constants/StyleConstants';
export { StyleConstants } from './src/main/ets/constants/StyleConstants';
export { CommonDataSource } from './src/main/ets/utils/CommonDataSource';
export { CommonDataSource } from './src/main/ets/utils/CommonDataSource';
export { Logger } from './src/main/ets/utils/Logger';
export { Logger } from './src/main/ets/utils/Logger';
export { TitleBar } from './src/main/ets/utils/TitleBar';
common/src/main/ets/constants/CommonConstants.ets
0 → 100644
View file @
46f11aa6
common/src/main/ets/utils/TitleBar.ets
deleted
100644 → 0
View file @
8a864a00
import router from '@ohos.router';
@Component
export struct TitleBar {
// 左边图标是否显示
private isShowLeft = true
// 左边图标
private leftIcon = $r('app.media.back_white')
// 左边点击事件,默认返回上一页
private leftClickEvent = () => {
router.back()
}
// 标题
private title = '标题'
// 右边图标是否显示
private isShowRight = false
// 右边图标
private rightIcon = $r('app.media.back_white')
// 左边点击事件
private rightClickEvent: () => void
build() {
Column() {
Stack() {
Text(this.title).fontSize(20).fontColor('#ffffff')
Row() {
if (this.isShowLeft) {
Image(this.leftIcon).size({ width: 55, height: 55 }).padding(15)
.onClick(() => this.leftClickEvent())
}
Blank()
if (this.isShowRight) {
Image(this.rightIcon).size({ width: 55, height: 55 }).padding(15)
.onClick(this.rightClickEvent)
}
}.width('100%')
}.width('100%').height(0).layoutWeight(1)
.backgroundColor($r("app.color.title_background"))
Divider().color('#4c9a6b')
}.width('100%').height(55)
}
}
\ No newline at end of file
common/src/main/resources/base/element/string.json
View file @
46f11aa6
...
@@ -3,6 +3,10 @@
...
@@ -3,6 +3,10 @@
{
{
"name"
:
"page_show"
,
"name"
:
"page_show"
,
"value"
:
"page from npm package"
"value"
:
"page from npm package"
},
{
"name"
:
"http_response_error"
,
"value"
:
"Request error, please check if there is a network."
}
}
]
]
}
}
common/src/main/resources/en_US/element/string.json
View file @
46f11aa6
...
@@ -3,6 +3,10 @@
...
@@ -3,6 +3,10 @@
{
{
"name"
:
"page_show"
,
"name"
:
"page_show"
,
"value"
:
"page from npm package"
"value"
:
"page from npm package"
},
{
"name"
:
"http_response_error"
,
"value"
:
"Request error, please check if there is a network."
}
}
]
]
}
}
common/src/main/resources/zh_CN/element/string.json
View file @
46f11aa6
...
@@ -3,6 +3,10 @@
...
@@ -3,6 +3,10 @@
{
{
"name"
:
"page_show"
,
"name"
:
"page_show"
,
"value"
:
"page from npm package"
"value"
:
"page from npm package"
},
{
"name"
:
"http_response_error"
,
"value"
:
"请求出错,请检查是否有网络"
}
}
]
]
}
}
entry/src/main/ets/pages/sub_systemMaintenance/DataSynchronism.ets
0 → 100644
View file @
46f11aa6
entry/src/main/ets/pages/sub_systemMaintenance/Unit.ets
0 → 100644
View file @
46f11aa6
import { BasicTable } from '../../view/BasicTable/BasicTable'
import { TitleBar } from '../../view/title/TitleBar'
@Entry
@Component
export struct Unit {
@State searchValue: string = ''
controller: SearchController = new SearchController()
build() {
Column() {
Flex({ direction: FlexDirection.Column }) {
TitleBar({ title: "单位查看" })
Row() {
Search({ value: this.searchValue, placeholder: '请输入管理单位名称', controller: this.controller })
.height(40)
.backgroundColor('#F5F5F5')
.placeholderColor(Color.Grey)
.placeholderFont({ size: 14, weight: 400 })
.textFont({ size: 14, weight: 400 })
.onChange((value: string) => {
this.searchValue = value
})
.margin(20)
}
}
}.linearGradient({
direction: GradientDirection.RightBottom,
repeating: true,
colors: [['#36a3c0', 0.0], ['#97c6a6', 1.0], ['#c7d799', 2.0]]
})
}
}
\ No newline at end of file
entry/src/main/ets/pages/sub_systemMaintenance/Warehouse.ets
0 → 100644
View file @
46f11aa6
import { BasicTable } from '../../view/BasicTable/BasicTable'
import { TitleBar } from '../../view/title/TitleBar'
@Entry
@Component
export struct Warehouse {
@State searchValue: string = ''
controller: SearchController = new SearchController()
build() {
Column() {
Flex({ direction: FlexDirection.Column }) {
TitleBar({ title: "库房查看" })
Row() {
Search({ value: this.searchValue, placeholder: '请输入库房名称', controller: this.controller })
.height(40)
.backgroundColor('#F5F5F5')
.placeholderColor(Color.Grey)
.placeholderFont({ size: 14, weight: 400 })
.textFont({ size: 14, weight: 400 })
.onChange((value: string) => {
this.searchValue = value
})
.margin(20)
}
Column() {
BasicTable({ dataSource: [] })
}
}
}.linearGradient({
direction: GradientDirection.RightBottom,
repeating: true,
colors: [['#36a3c0', 0.0], ['#97c6a6', 1.0], ['#c7d799', 2.0]]
})
}
}
\ No newline at end of file
entry/src/main/ets/view/BasicTable/BasicTable.ets
View file @
46f11aa6
...
@@ -38,8 +38,8 @@ export struct BasicTable {
...
@@ -38,8 +38,8 @@ export struct BasicTable {
@Builder renderEmpty() {
@Builder renderEmpty() {
Flex({justifyContent:FlexAlign.Center,alignItems:ItemAlign.Center}) {
Flex({justifyContent:FlexAlign.Center,alignItems:ItemAlign.Center}) {
Column() {
Column() {
Image($r("app.media.empty")).width("
30
%")
Image($r("app.media.empty")).width("
42
%")
Text("暂无数据").fontSize(22).fontColor("#fff")
Text("暂无数据").fontSize(22).fontColor("#fff")
.margin({top: 5})
}
}
}.height('100%')
}.height('100%')
}
}
...
...
entry/src/main/resources/base/profile/main_pages.json
View file @
46f11aa6
...
@@ -11,6 +11,9 @@
...
@@ -11,6 +11,9 @@
"pages/metailmange/WzInvPage"
,
"pages/metailmange/WzInvPage"
,
"pages/metailmange/WzPositionPage"
,
"pages/metailmange/WzPositionPage"
,
"pages/metailmange/WzReversePage"
,
"pages/metailmange/WzReversePage"
,
"pages/metailmange/AddConversionPage"
"pages/metailmange/AddConversionPage"
,
"pages/metailmange/WzReversePage"
,
"pages/sub_systemMaintenance/Unit"
,
"pages/sub_systemMaintenance/Warehouse"
]
]
}
}
features/SystemMaintenance/src/main/ets/components/SystemMaintenance.ets
View file @
46f11aa6
import router from '@ohos.router';
import { UniListItem, uniInitList } from '../model/UniInitList';
@Component
@Component
export struct SystemMaintenance {
export struct SystemMaintenance {
@State message: string = 'SystemMaintenance'
build() {
build() {
Row() {
Row() {
Column() {
Flex({direction:FlexDirection.Column}) {
Text(this.message)
Image($r("app.media.systemMaintenance")).width('100%')
.fontSize(50)
List({ space: 2 }) {
.fontWeight(FontWeight.Bold)
ForEach(uniInitList, (item: UniListItem) => {
ListItem() {
Row() {
Row() {
Image(item?.extraIcon)
.width(24)
.height(24)
.margin({ right: 8 })
Text(item?.title).fontSize(20).fontColor('#3b4144')
}
.width('70%')
Blank()
.layoutWeight(1)
Image($r('app.media.right_grey')).width(8).height(16)
}
}
.width('100%')
.width('100%')
.justifyContent(FlexAlign.SpaceBetween)
.padding({ left: 12, right: 18 })
}
.height('7%')
.onClick(() => {
router.pushUrl({
url: item.url
})
})
})
}.width('100%')
.backgroundColor('#fff')
.divider({ strokeWidth: 1, color: 'rgb(242,242,242)' }) // 每行之间的分界线
}
.linearGradient({
direction: GradientDirection.RightBottom,
repeating: true,
colors: [['#97c6a6', 0.0], ['#e8f5c2', 1.0]]
})
}
}
.height('100%')
.height('100%')
}
}
...
...
features/SystemMaintenance/src/main/ets/viewModel/UniTargetSetting.ets
0 → 100644
View file @
46f11aa6
import { UniListItem } from '../model/UniInitList'
export const formatParams = (params: UniListItem) => {
return JSON.stringify(params)
}
\ No newline at end of file
features/SystemMaintenance/src/main/resources/base/media/right_grey.png
0 → 100644
View file @
46f11aa6
282 Bytes
features/SystemMaintenance/src/main/resources/rawfile/systemMaintenance.jpg
0 → 100644
View file @
46f11aa6
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论