Commit f86c64ea authored by 张牧越's avatar 张牧越

图标修正

parent ccd13507
NODE_ENV = "development" NODE_ENV = "development"
Mock: true Mock: true
VUE_APP_API_URL = "http://qjwl.ythplan.com/" VUE_APP_API_URL = "http://192.168.0.123:8002/"
NODE_ENV = "production" NODE_ENV = "production"
Mock: false Mock: false
VUE_APP_API_URL = "http://qjwl.ythplan.com/" # VUE_APP_API_URL = "http://qjwl.ythplan.com/"
\ No newline at end of file VUE_APP_API_URL = "http://192.168.0.123:8002/"
\ No newline at end of file
@font-face { @font-face {
font-family: "iconfont"; font-family: "iconfont";
/* Project id 4100703 */ /* Project id 4100703 */
src: url('iconfont.woff2?t=1685676784641') format('woff2'), src: url('iconfont.woff2?t=1686809530756') format('woff2'),
url('iconfont.woff?t=1685676784641') format('woff'), url('iconfont.woff?t=1686809530756') format('woff'),
url('iconfont.ttf?t=1685676784641') format('truetype'); url('iconfont.ttf?t=1686809530756') format('truetype');
} }
.iconfont { .iconfont {
...@@ -14,6 +14,34 @@ ...@@ -14,6 +14,34 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-report-fill-03:before {
content: "\e9cf";
}
.icon-report-fill-01:before {
content: "\e9d3";
}
.icon-report-fill-02:before {
content: "\e9d4";
}
.icon-report-fill-03-2:before {
content: "\e9d5";
}
.icon-you:before {
content: "\e600";
}
.icon-you1:before {
content: "\e706";
}
.icon-fl-renyuan:before {
content: "\e625";
}
.icon-anquanmao:before { .icon-anquanmao:before {
content: "\e9cb"; content: "\e9cb";
} }
......
This diff is collapsed.
...@@ -5,6 +5,55 @@ ...@@ -5,6 +5,55 @@
"css_prefix_text": "icon-", "css_prefix_text": "icon-",
"description": "", "description": "",
"glyphs": [ "glyphs": [
{
"icon_id": "35871490",
"name": "icon_san",
"font_class": "report-fill-03",
"unicode": "e9cf",
"unicode_decimal": 59855
},
{
"icon_id": "35871509",
"name": "icon_yi",
"font_class": "report-fill-01",
"unicode": "e9d3",
"unicode_decimal": 59859
},
{
"icon_id": "35871531",
"name": "icon_er",
"font_class": "report-fill-02",
"unicode": "e9d4",
"unicode_decimal": 59860
},
{
"icon_id": "36013877",
"name": "report-fill-03-2",
"font_class": "report-fill-03-2",
"unicode": "e9d5",
"unicode_decimal": 59861
},
{
"icon_id": "14456894",
"name": "左",
"font_class": "you",
"unicode": "e600",
"unicode_decimal": 58880
},
{
"icon_id": "16588070",
"name": "右",
"font_class": "you1",
"unicode": "e706",
"unicode_decimal": 59142
},
{
"icon_id": "2439690",
"name": "人员",
"font_class": "fl-renyuan",
"unicode": "e625",
"unicode_decimal": 58917
},
{ {
"icon_id": "35798422", "icon_id": "35798422",
"name": "安全帽", "name": "安全帽",
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
class="person-check" class="person-check"
v-for="(warns, index) in warningList" v-for="(warns, index) in warningList"
:key="index" :key="index"
@click="showWarning(warns._id)"
> >
<div class="portrait"> <div class="portrait">
<img <img
...@@ -204,6 +205,11 @@ ...@@ -204,6 +205,11 @@
</ShadowContainer> </ShadowContainer>
</div> </div>
</div> </div>
<warning-dialog
:data="warningData"
:visible="warningDialogVisible"
@changeVisible="(val) => (warningDialogVisible = val)"
></warning-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -212,9 +218,13 @@ import { ...@@ -212,9 +218,13 @@ import {
getWarningList, getWarningList,
getMonthWarningStatis, getMonthWarningStatis,
getStatis, getStatis,
getWarningLogDetail,
} from "@/api/index"; } from "@/api/index";
import WarningDialog from "./WarningDialog";
export default { export default {
name: "EarlyWarning", name: "EarlyWarning",
components: { WarningDialog },
data() { data() {
return { return {
warningList: [], warningList: [],
...@@ -229,6 +239,8 @@ export default { ...@@ -229,6 +239,8 @@ export default {
todayTotal: 0, todayTotal: 0,
historyTotal: 0, historyTotal: 0,
srcList: [], srcList: [],
warningDialogVisible: false,
warningData: {},
}; };
}, },
methods: { methods: {
...@@ -523,6 +535,12 @@ export default { ...@@ -523,6 +535,12 @@ export default {
this.autoScroll(1, 50, 1500, element); this.autoScroll(1, 50, 1500, element);
}); });
}, },
showWarning(id) {
getWarningLogDetail(id).then((res) => {
this.warningData = res.data;
this.warningDialogVisible = true;
});
},
}, },
mounted() { mounted() {
...@@ -535,6 +553,7 @@ export default { ...@@ -535,6 +553,7 @@ export default {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@import "@/assets/common/element.less";
#earlywarning { #earlywarning {
padding: 12px 20px; padding: 12px 20px;
padding-bottom: 0; padding-bottom: 0;
......
...@@ -8,11 +8,7 @@ ...@@ -8,11 +8,7 @@
> >
<div id="scroll-dialog"> <div id="scroll-dialog">
<div class="step-area"> <div class="step-area">
<el-steps <el-steps :active="warningDetail.step" align-center>
:active="warningDetail.step"
align-center
finish-status="success"
>
<el-step <el-step
v-for="(step, index) in warningDetail.process_list" v-for="(step, index) in warningDetail.process_list"
:key="index" :key="index"
...@@ -21,6 +17,20 @@ ...@@ -21,6 +17,20 @@
}`" }`"
:class="[step.status == 3 ? 'warning' : 'success']" :class="[step.status == 3 ? 'warning' : 'success']"
> >
<template #icon>
<i
:class="[
'iconfont',
step.type == 'log'
? 'icon-report-fill-01'
: step.type == 'check'
? 'icon-report-fill-02'
: step.type == 'handle'
? 'icon-report-fill-03-2'
: 'icon-report-fill-03',
]"
></i>
</template>
<template #title> <template #title>
<span> {{ step.title }} </span <span> {{ step.title }} </span
><span v-if="step.status_text"> / </span ><span v-if="step.status_text"> / </span
...@@ -324,4 +334,18 @@ export default { ...@@ -324,4 +334,18 @@ export default {
::v-deep .el-step__head { ::v-deep .el-step__head {
height: 16px; height: 16px;
} }
::v-deep .el-step__icon.is-text {
border: none !important;
i {
font-size: 24px;
}
}
::v-deep .el-step__head.is-finish {
color: #24f0b8;
border-color: #24f0b8;
}
::v-deep .el-step__head.is-process {
color: #c6def9;
}
</style> </style>
\ No newline at end of file
...@@ -14,16 +14,20 @@ ...@@ -14,16 +14,20 @@
:key="index" :key="index"
:title="step.title" :title="step.title"
:description="`${step.person} / ${step.time}`" :description="`${step.person} / ${step.time}`"
:status=" >
step.status == 1 <template #icon>
? 'process' <i
: step.status == 3 :class="[
? 'error' 'iconfont',
: step.status == 2 step.type == 'check'
? 'success' ? 'icon-report-fill-01'
: 'wait' : step.type == 'rectify'
" ? 'icon-report-fill-02'
></el-step> : 'icon-report-fill-03',
]"
></i>
</template>
</el-step>
</el-steps> </el-steps>
</div> </div>
<div <div
...@@ -301,4 +305,18 @@ export default { ...@@ -301,4 +305,18 @@ export default {
::v-deep .el-step__head { ::v-deep .el-step__head {
height: 16px; height: 16px;
} }
::v-deep .el-step__icon.is-text {
border: none !important;
i {
font-size: 24px;
}
}
::v-deep .el-step__head.is-finish {
color: #24f0b8;
border-color: #24f0b8;
}
::v-deep .el-step__head.is-process {
color: #c6def9;
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment