Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
huaxin-rq
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
耿迪迪
huaxin-rq
Commits
9967adb2
Commit
9967adb2
authored
Sep 24, 2026
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备所属公司添加
parent
26fd714a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
TScreenStatisticMapper.xml
...c/main/resources/mapper/system/TScreenStatisticMapper.xml
+9
-4
index.vue
huaxin-web/src/views/baseinfo/deviceinfo/index.vue
+16
-0
No files found.
huaxin-system/src/main/resources/mapper/system/TScreenStatisticMapper.xml
View file @
9967adb2
...
@@ -108,13 +108,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -108,13 +108,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!-- 设备分类型统计 -->
<!-- 设备分类型统计 -->
<select
id=
"deviceStatisticByType"
resultType=
"Map"
>
<select
id=
"deviceStatisticByType"
resultType=
"Map"
>
SELECT
SELECT
COUNT(1) as value,
COUNT(1) as value,
dict.dict_label as name
dict.dict_label as name,
(case device.beyond_enterprise_id
when 0 then '唐山华鑫天然气有限公司'
when 1 then '唐山鸿海科技有限公司'
else '默认'
end)as beyondCompany
FROM
FROM
t_device_info device
t_device_info device
LEFT JOIN sys_dict_data dict ON dict.dict_value = device.device_type AND dict_type = 't_device_type'
LEFT JOIN sys_dict_data dict ON dict.dict_value = device.device_type AND dict_type = 't_device_type'
GROUP BY
GROUP BY
device.device_type
device.device_type,device.beyond_enterprise_id
ORDER BY device.device_type DESC;
ORDER BY device.device_type DESC;
</select>
</select>
...
...
huaxin-web/src/views/baseinfo/deviceinfo/index.vue
View file @
9967adb2
...
@@ -232,6 +232,19 @@
...
@@ -232,6 +232,19 @@
<
/el-date-picker
>
<
/el-date-picker
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"所属公司"
prop
=
"beyondEnterpriseId"
>
<
el
-
select
v
-
model
=
"form.beyondEnterpriseId"
placeholder
=
"请选择所属公司"
style
=
"width: 100%"
>
<
el
-
option
label
=
"唐山华鑫天然气有限公司"
:
value
=
"0"
/>
<
el
-
option
label
=
"唐山鸿海科技有限公司"
:
value
=
"1"
/>
<
/el-select
>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
/el-form
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
...
@@ -351,6 +364,9 @@ export default {
...
@@ -351,6 +364,9 @@ export default {
],
],
installationTime
:[
installationTime
:[
{
required
:
true
,
message
:
"请选择安装时间"
,
trigger
:
"change"
}
,
{
required
:
true
,
message
:
"请选择安装时间"
,
trigger
:
"change"
}
,
],
beyondEnterpriseId
:[
{
required
:
true
,
message
:
"请选择所属公司"
,
trigger
:
"change"
}
,
]
]
}
,
}
,
dialogTableVisibles
:
false
,
dialogTableVisibles
:
false
,
...
...
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