Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
8c6f14d8
提交
8c6f14d8
authored
4月 16, 2025
作者:
zs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
edit
上级
875f181b
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
8 行删除
+13
-8
user.js
api/user.js
+3
-2
editPd.vue
pages/index/editPd.vue
+1
-2
customPopup.vue
pages/inspectionContent/components/customPopup.vue
+7
-2
IoReadingAndWriting.js
utils/IoReadingAndWriting.js
+2
-2
没有找到文件。
api/user.js
浏览文件 @
8c6f14d8
...
...
@@ -27,7 +27,7 @@ export default {
account
,
pwd
}
=
data
const
sql
=
`select * from
${
table
.
userName
}
where user = '
${
account
}
'`
const
sql
=
`select * from
${
table
.
userName
}
where user = '
${
account
}
'
AND passWord ='
${
pwd
}
'
`
let
res
=
await
sqllitedb
.
selectSQL
(
sql
);
const
user
=
res
[
0
]
...
...
@@ -77,7 +77,8 @@ export default {
const
current
=
await
sqllitedb
.
selectSQL
(
`select * from
${
table
.
userName
}
where userId = '
${
userId
}
' and user = '
${
userName
}
'`
);
if
(
current
.
passWord
!==
oldPwd
)
{
console
.
log
(
current
,
`select * from
${
table
.
userName
}
where userId = '
${
userId
}
' and user = '
${
userName
}
'`
,
'=-===========>'
)
if
(
current
[
0
].
passWord
!==
oldPwd
)
{
return
{
data
:
false
,
msg
:
'原密码错误'
...
...
pages/index/editPd.vue
浏览文件 @
8c6f14d8
...
...
@@ -124,14 +124,13 @@
// 输入密码与该账号密码一致
userApi
.
changePwd
({
userId
:
this
.
user
.
userId
,
userName
:
this
.
user
.
user
Name
,
userName
:
this
.
user
.
user
,
oldPwd
:
this
.
formData
.
oldPd
,
newPwd
:
this
.
formData
.
newPd
}).
then
((
res
)
=>
{
if
(
res
.
data
){
uni
.
showToast
({
title
:
"恭喜您,密码更新成功!"
,
icon
:
"success"
,
duration
:
3000
,
});
this
.
logOut
();
...
...
pages/inspectionContent/components/customPopup.vue
浏览文件 @
8c6f14d8
...
...
@@ -245,13 +245,18 @@ export default {
border: 0;
}
.fixed-words {
.fixed-words {
display: flex;
flex-wrap: wrap;
.word {
font-size: 11.2px;
margin
-right: 4px
;
margin
: 0 4px 4px 0
;
padding: 4px 6px;
border: 1px solid #c7c7c7;
border-radius: 4px;
line-height: 1.5;
box-sizing: border-box; /* 避免 padding 和 border 撑开元素 */
white-space: nowrap; /* 可选:禁止换行 */
}
}
.form-label {
...
...
utils/IoReadingAndWriting.js
浏览文件 @
8c6f14d8
...
...
@@ -22,9 +22,9 @@ import { Base64 } from "js-base64";
//日志类型
export
const
LOG_TYPE_ENUM
=
{
login
:
"登录"
,
add
:
"新增
成功
"
,
add
:
"新增"
,
photo
:
"拍照"
,
edit
:
"编辑
成功
"
,
edit
:
"编辑"
,
sign
:
"签字"
,
darf
:
"草稿"
,
delete
:
"删除"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论