Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
be3f363f
Commit
be3f363f
authored
Oct 18, 2022
by
吴卿华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
化工巡检
parent
0789fae8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
502 additions
and
26 deletions
+502
-26
TNfcSettingMapper.xml
...em/src/main/resources/mapper/system/TNfcSettingMapper.xml
+7
-3
setting.js
danger-manage-web/src/api/system/setting.js
+14
-23
index.vue
danger-manage-web/src/views/system/tNfcSetting/index.vue
+481
-0
No files found.
danger-manage-system/src/main/resources/mapper/system/TNfcSettingMapper.xml
View file @
be3f363f
...
@@ -22,6 +22,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -22,6 +22,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectTNfcSettingList"
parameterType=
"TNfcSetting"
resultMap=
"TNfcSettingResult"
>
<select
id=
"selectTNfcSettingList"
parameterType=
"TNfcSetting"
resultMap=
"TNfcSettingResult"
>
<include
refid=
"selectTNfcSettingVo"
/>
<include
refid=
"selectTNfcSettingVo"
/>
<where>
<where>
is_del='0'
and
region = #{region}
region = #{region}
<if
test=
"patrolAddress != null and patrolAddress != ''"
>
and patrol_address = #{patrolAddress}
</if>
<if
test=
"patrolAddress != null and patrolAddress != ''"
>
and patrol_address = #{patrolAddress}
</if>
<if
test=
"nfcNum != null and nfcNum != ''"
>
and nfc_num = #{nfcNum}
</if>
<if
test=
"nfcNum != null and nfcNum != ''"
>
and nfc_num = #{nfcNum}
</if>
...
@@ -44,6 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -44,6 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"nfcNum != null"
>
nfc_num,
</if>
<if
test=
"nfcNum != null"
>
nfc_num,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"region != null"
>
region,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"patrolSort != null"
>
#{patrolSort},
</if>
<if
test=
"patrolSort != null"
>
#{patrolSort},
</if>
...
@@ -53,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -53,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"nfcNum != null"
>
#{nfcNum},
</if>
<if
test=
"nfcNum != null"
>
#{nfcNum},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"region != null"
>
#{region},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -74,10 +78,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -74,10 +78,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
delete from t_nfc_setting where nfc_id = #{nfcId}
delete from t_nfc_setting where nfc_id = #{nfcId}
</delete>
</delete>
<
dele
te
id=
"deleteTNfcSettingByIds"
parameterType=
"String"
>
<
upda
te
id=
"deleteTNfcSettingByIds"
parameterType=
"String"
>
delete from t_nfc_setting
where nfc_id in
update t_nfc_setting set is_del='1'
where nfc_id in
<foreach
item=
"nfcId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"nfcId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{nfcId}
#{nfcId}
</foreach>
</foreach>
</
dele
te>
</
upda
te>
</mapper>
</mapper>
danger-manage-web/src/api/system/setting.js
View file @
be3f363f
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
// 查询
系统参数配置
列表
// 查询
setting
列表
export
function
listSetting
(
query
)
{
export
function
listSetting
(
query
)
{
return
request
({
return
request
({
url
:
'/system/
setting
/list'
,
url
:
'/system/
inspection
/list'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
}
}
// 查询
系统参数配置
详细
// 查询
setting
详细
export
function
getSetting
(
system
Id
)
{
export
function
getSetting
(
nfc
Id
)
{
return
request
({
return
request
({
url
:
'/system/
setting/'
+
system
Id
,
url
:
'/system/
inspection/'
+
nfc
Id
,
method
:
'get'
method
:
'get'
})
})
}
}
// 新增
系统参数配置
// 新增
setting
export
function
addSetting
(
data
)
{
export
function
addSetting
(
data
)
{
return
request
({
return
request
({
url
:
'/system/
setting
'
,
url
:
'/system/
inspection
'
,
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
}
}
// 修改
系统参数配置
// 修改
setting
export
function
updateSetting
(
data
)
{
export
function
updateSetting
(
data
)
{
return
request
({
return
request
({
url
:
'/system/
setting
'
,
url
:
'/system/
inspection
'
,
method
:
'put'
,
method
:
'put'
,
data
:
data
data
:
data
})
})
}
}
// 删除
系统参数配置
// 删除
setting
export
function
delSetting
(
system
Id
)
{
export
function
delSetting
(
nfc
Id
)
{
return
request
({
return
request
({
url
:
'/system/
setting/'
+
system
Id
,
url
:
'/system/
inspection/'
+
nfc
Id
,
method
:
'delete'
method
:
'delete'
})
})
}
}
// 导出
系统参数配置
// 导出
setting
export
function
exportSetting
(
query
)
{
export
function
exportSetting
(
query
)
{
return
request
({
return
request
({
url
:
'/system/setting/export'
,
url
:
'/system/inspection/export'
,
method
:
'get'
,
params
:
query
})
}
// 导出系统参数配置
export
function
refreshSystemSetting
(
query
)
{
return
request
({
url
:
'/system/setting/refreshSystemSetting'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
...
...
danger-manage-web/src/views/system/tNfcSetting/index.vue
0 → 100644
View file @
be3f363f
This diff is collapsed.
Click to expand it.
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