Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
69be96d9
提交
69be96d9
authored
4月 15, 2025
作者:
zs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
edit
上级
e0416766
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
26 行增加
和
9 行删除
+26
-9
inspect.js
api/inspect.js
+1
-1
index.vue
components/inspectionItem/index.vue
+1
-1
operLog.vue
pages/index/operLog.vue
+0
-1
index.vue
pages/inspectionManagement/index.vue
+24
-6
没有找到文件。
api/inspect.js
浏览文件 @
69be96d9
...
@@ -129,8 +129,8 @@ LIMIT 1;`
...
@@ -129,8 +129,8 @@ LIMIT 1;`
},
},
async
batchRemove
(
id
)
{
async
batchRemove
(
id
)
{
let
sql
=
`update
${
table
.
inspectionRecordName
}
set delFlag=1 where id = '
${
id
}
'`
;
let
sql
=
`update
${
table
.
inspectionRecordName
}
set delFlag=1 where id = '
${
id
}
'`
;
let
sqllitedb
=
await
SqlliteDbUtil
.
initSqlliteDB
();
try
{
try
{
let
sqllitedb
=
await
SqlliteDbUtil
.
initSqlliteDB
();
let
rs
=
await
sqllitedb
.
executeReturnDataSQL
(
sql
);
let
rs
=
await
sqllitedb
.
executeReturnDataSQL
(
sql
);
return
rs
;
return
rs
;
}
catch
(
e
)
{
}
catch
(
e
)
{
...
...
components/inspectionItem/index.vue
浏览文件 @
69be96d9
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
synFlags
:
{
synFlags
:
{
0
:
'未同步'
,
0
:
'未同步'
,
1
:
'已同步'
,
1
:
'已同步'
,
2
:
'
巡检
中'
2
:
'
编辑
中'
}
}
}
}
},
},
...
...
pages/index/operLog.vue
浏览文件 @
69be96d9
...
@@ -46,7 +46,6 @@
...
@@ -46,7 +46,6 @@
<text
class=
"num"
>
{{
tableData
.
length
||
0
}}
条
</text>
<text
class=
"num"
>
{{
tableData
.
length
||
0
}}
条
</text>
<text>
查询结果
</text>
<text>
查询结果
</text>
</view>
</view>
{{
tableData
}}
<!-- 展示区域 -->
<!-- 展示区域 -->
<view
class=
"table-main box-shaow-box"
>
<view
class=
"table-main box-shaow-box"
>
<view
<view
...
...
pages/inspectionManagement/index.vue
浏览文件 @
69be96d9
...
@@ -30,8 +30,7 @@
...
@@ -30,8 +30,7 @@
{{
index
}}
{{
index
}}
</view>
</view>
<view
class=
"inspect-list"
>
<view
class=
"inspect-list"
>
<InspectionItem
v-for=
"(its,idx) in item"
:details=
"its"
@
longpress=
"onLongPress"
<InspectionItem
v-for=
"(its,idx) in item"
:details=
"its"
@
longpress=
"onLongPress"
/>
/>
</view>
</view>
</view>
</view>
...
@@ -47,6 +46,11 @@
...
@@ -47,6 +46,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
addLog
,
getLogContent
,
LOG_TYPE_ENUM
,
}
from
"@/utils/IoReadingAndWriting.js"
;
import
SearchCom
from
"@/components/searchCom/index.vue"
;
import
SearchCom
from
"@/components/searchCom/index.vue"
;
import
InspectionItem
from
"@/components/inspectionItem/index.vue"
;
import
InspectionItem
from
"@/components/inspectionItem/index.vue"
;
import
{
import
{
...
@@ -104,11 +108,14 @@
...
@@ -104,11 +108,14 @@
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/shaftInspection/shaftInspectionList"
,
url
:
"/pages/shaftInspection/shaftInspectionList"
,
});
});
}
}
},
},
async
init
()
{
async
init
()
{
console
.
log
(
this
.
userInfo
,
'=================='
)
console
.
log
(
this
.
userInfo
,
'=================='
)
let
res
=
await
inspectApi
.
selectDataForTime
({...
this
.
searchForm
,
userId
:
this
.
userInfo
.
userId
})
let
res
=
await
inspectApi
.
selectDataForTime
({
...
this
.
searchForm
,
userId
:
this
.
userInfo
.
userId
})
this
.
propList
=
res
.
filter
(
e
=>
e
.
synFlag
==
0
)
this
.
propList
=
res
.
filter
(
e
=>
e
.
synFlag
==
0
)
this
.
countNum
=
res
.
length
this
.
countNum
=
res
.
length
const
resultMap
=
{};
const
resultMap
=
{};
...
@@ -147,9 +154,20 @@
...
@@ -147,9 +154,20 @@
},
},
async
onLongPress
(
item
)
{
async
onLongPress
(
item
)
{
let
rs
=
await
inspectApi
.
batchRemove
(
item
.
id
)
let
rs
=
await
inspectApi
.
batchRemove
(
item
.
id
)
if
(
rs
){
if
(
rs
)
{
// 生成日志
const
logContent
=
getLogContent
(
LOG_TYPE_ENUM
.
delete
,
""
,
"巡检模块"
);
const
log_list
=
this
.
$store
.
state
.
log_list
;
log_list
.
push
(
logContent
);
this
.
$store
.
commit
(
"SET_LOG_LIST"
,
log_list
);
addLog
(
log_list
).
then
((
res
)
=>
{});
await
this
.
init
()
await
this
.
init
()
}
}
},
},
deleteItem
()
{
deleteItem
()
{
if
(
this
.
currentIndexToDelete
!==
null
)
{
if
(
this
.
currentIndexToDelete
!==
null
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论