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
88ae852f
Commit
88ae852f
authored
Oct 22, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改巡检统计的发现隐患数量,整改隐患数量的接口
parent
77c5d1bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
16 deletions
+46
-16
chars.js
danger-manage-web/src/api/indexChars/chars.js
+9
-1
Xjtj.vue
...ge-web/src/views/indexComponents/rightComponents/Xjtj.vue
+36
-15
vue.config.js
danger-manage-web/vue.config.js
+1
-0
No files found.
danger-manage-web/src/api/indexChars/chars.js
View file @
88ae852f
...
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-10-07 09:05:29
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2022-10-
07 10:16:1
0
* @LastEditTime: 2022-10-
22 11:25:5
0
* @FilePath: /danger-manage-web/src/api/indexChars/chars.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -17,3 +17,11 @@ export function getRypbData(query) {
params
:
query
,
});
}
// 巡检统计年月日
export
function
getxjtjYMD
(
query
)
{
return
request
({
url
:
"/system/book/statics"
,
method
:
"get"
,
params
:
query
,
});
}
danger-manage-web/src/views/indexComponents/rightComponents/Xjtj.vue
View file @
88ae852f
...
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-09-06 13:42:45
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2022-
09-14 11:44:50
* @LastEditTime: 2022-
10-22 11:36:35
* @FilePath: /danger-manage-web/src/views/indexComponents/leftComponents/deviceYx.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -51,6 +51,7 @@ import Title from "@/views/indexComponents/allComponents/Title";
import
Chars
from
"@/components/allCharsCom/Chars"
;
import
rimg1
from
"@/assets/indexImages/rimg1.png"
;
import
rimg2
from
"@/assets/indexImages/rimg2.png"
;
import
{
getxjtjYMD
}
from
"@/api/indexChars/chars"
;
export
default
{
name
:
""
,
...
...
@@ -62,8 +63,8 @@ export default {
return
{
yearActive
:
"年"
,
numData
:
[
{
icon
:
rimg1
,
name
:
"发现隐患数量"
,
num
:
56
},
{
icon
:
rimg2
,
name
:
"整改隐患数量"
,
num
:
50
},
// { icon: rimg1, name: "发现隐患数量", num: 2
},
// { icon: rimg2, name: "整改隐患数量", num: 1
},
],
options
:
{
xAxis
:
{
...
...
@@ -128,25 +129,45 @@ export default {
},
};
},
created
()
{
this
.
getxjtjYMD
({
type
:
"year"
});
},
methods
:
{
getxjtjYMD
(
query
)
{
getxjtjYMD
(
query
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
const
{
faxian
,
zhenggai
}
=
res
.
data
;
this
.
numData
=
[
{
icon
:
rimg1
,
name
:
"发现隐患数量"
,
num
:
faxian
},
{
icon
:
rimg2
,
name
:
"整改隐患数量"
,
num
:
zhenggai
},
];
}
});
},
timeChange
(
e
)
{
if
(
this
.
yearActive
==
e
)
return
;
this
.
yearActive
=
e
;
if
(
this
.
yearActive
==
"日"
)
{
this
.
numData
=
[
{
icon
:
rimg1
,
name
:
"发现隐患数量"
,
num
:
3
},
{
icon
:
rimg2
,
name
:
"整改隐患数量"
,
num
:
2
},
];
this
.
getxjtjYMD
({
type
:
"day"
});
// this.numData = [
// { icon: rimg1, name: "发现隐患数量", num: 3 },
// { icon: rimg2, name: "整改隐患数量", num: 2 },
// ];
}
else
if
(
this
.
yearActive
==
"月"
)
{
this
.
numData
=
[
{
icon
:
rimg1
,
name
:
"发现隐患数量"
,
num
:
6
},
{
icon
:
rimg2
,
name
:
"整改隐患数量"
,
num
:
10
},
];
this
.
getxjtjYMD
({
type
:
"month"
});
// this.numData = [
// { icon: rimg1, name: "发现隐患数量", num: 6 },
// { icon: rimg2, name: "整改隐患数量", num: 10 },
// ];
}
else
{
this
.
numData
=
[
{
icon
:
rimg1
,
name
:
"发现隐患数量"
,
num
:
56
},
{
icon
:
rimg2
,
name
:
"整改隐患数量"
,
num
:
50
},
];
this
.
getxjtjYMD
({
type
:
"year"
});
// this.numData = [
// { icon: rimg1, name: "发现隐患数量", num: 56 },
// { icon: rimg2, name: "整改隐患数量", num: 50 },
// ];
}
},
},
...
...
danger-manage-web/vue.config.js
View file @
88ae852f
...
...
@@ -36,6 +36,7 @@ module.exports = {
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
process
.
env
.
VUE_APP_TARGET
,
// target: `http://192.168.2.16:8908/dangerManage`,
target
:
`http://192.168.2.17:8908/dangerManage`
,
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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