Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
A
AnchorCollect_p
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hywang
AnchorCollect_p
Commits
8db1c32a
Commit
8db1c32a
authored
Oct 25, 2022
by
hywang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.登录页面下方显示版本名字,不再是显示版本号
2.修复修改基础信息时可视耳标为null的bug
parent
f41a6ec5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
build.gradle
app/build.gradle
+2
-2
BasicsCollectVM.java
.../phlx/anchorcollect_p/ui/fragment/vm/BasicsCollectVM.java
+3
-3
LoginVM.java
.../main/java/com/phlx/anchorcollect_p/ui/login/LoginVM.java
+1
-1
No files found.
app/build.gradle
View file @
8db1c32a
...
...
@@ -9,8 +9,8 @@ android {
applicationId
"com.phlx.anchorcollect_p"
minSdkVersion
21
targetSdkVersion
29
versionCode
5
versionName
"1.0.
4
"
versionCode
6
versionName
"1.0.
5
"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
...
...
app/src/main/java/com/phlx/anchorcollect_p/ui/fragment/vm/BasicsCollectVM.java
View file @
8db1c32a
...
...
@@ -249,7 +249,7 @@ public class BasicsCollectVM extends BaseViewModel<Repository> implements OnInve
public
void
onItemClick
(
GenTableColumn
entity
)
{
if
(
Configs
.
tempUnid
!=
null
&&
!
"1"
.
equals
(
entity
.
getIsEdit
()))
{
if
(
Configs
.
tempUnid
!=
null
&&
!
"1"
.
equals
(
entity
.
getIsEdit
()))
{
ToastUtils
.
showShort
(
"该项无法修改!"
);
return
;
}
...
...
@@ -449,7 +449,6 @@ public class BasicsCollectVM extends BaseViewModel<Repository> implements OnInve
if
(!
isModify
)
{
//新增
// uuid = IdUtil.createSnowflake(3, 1).nextId();
cattleResumeEntity
.
setUnid
(
Configs
.
tempCattleResume
.
getUnid
());
cattleResumeEntity
.
setIndividualNo
(
tag
.
get
());
//修改去配置里修改
cattleResumeEntity
.
setCreateBy
(
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_LOGIN_NAME
));
cattleResumeEntity
.
setCreateTime
(
dateFormat
.
format
(
new
Date
()));
...
...
@@ -465,8 +464,9 @@ public class BasicsCollectVM extends BaseViewModel<Repository> implements OnInve
if
(
Configs
.
tempCattleResume
.
getPhotoPath
()
!=
null
&&
!
Configs
.
tempCattleResume
.
getPhotoPath
().
equals
(
""
))
{
cattleResumeEntity
.
setPhoto
(
BaseImageUtils
.
bitmapToString
(
Configs
.
tempCattleResume
.
getPhotoPath
(),
getApplication
()));
}
cattleResumeEntity
.
setDeptId
(
Long
.
parseLong
(
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_DEPT_ID
)));
cattleResumeEntity
.
setDeptId
(
Long
.
parseLong
(
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_DEPT_ID
)));
cattleResumeEntity
.
setRegistrationNo
(
rfid
.
get
());
cattleResumeEntity
.
setIndividualNo
(
tag
.
get
());
//修改去配置里修改
cattleResumeEntity
.
setRemark
(
remarkParamEntity
.
getContent
());
cattleResumeEntity
.
setUploadStatus
(
"0"
);
...
...
app/src/main/java/com/phlx/anchorcollect_p/ui/login/LoginVM.java
View file @
8db1c32a
...
...
@@ -71,7 +71,7 @@ public class LoginVM extends BaseViewModel<Repository> {
public
LoginVM
(
@NonNull
Application
application
,
Repository
model
)
{
super
(
application
,
model
);
appVersion
.
set
(
ApkUtil
.
getVersion
Cod
e
(
getApplication
())
+
""
);
appVersion
.
set
(
ApkUtil
.
getVersion
Nam
e
(
getApplication
())
+
""
);
// 从本地取得数据绑定到View层
userName
.
set
(
model
.
getUserName
());
password
.
set
(
model
.
getPassword
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment