This commit is contained in:
2026-08-17 11:01:21 +08:00
parent 6e07cab51f
commit 255573ed06
705 changed files with 8762 additions and 36677 deletions
+148 -34
View File
@@ -13,27 +13,27 @@
<u-transition :show="tabIndx === 0" name="slide-right">
<view v-if="tabIndx == 0">
<!-- 顶部定位数据 -->
<ProjectCard />
<ProjectCard :projectInfoData="safetySignboardData?.ProjectInfo" />
<view style="margin-top: -60rpx; padding: 0 20rpx 40rpx">
<template v-for="(i, idx) in safeComponent">
<!-- 危大工程数 -->
<BigCrisisCard v-if="i === 7" />
<!-- 四级风险数据 -->
<RiskRankingCard v-if="i === 8" />
<!-- 作业许可数 -->
<WorkCard v-if="i === 9" />
<!-- 培训数据 -->
<EducationCard v-if="i === 3" />
<!-- 领导级安全检查数 -->
<SafetyCard v-if="i === 11" />
<!-- 项目安全检查数据 -->
<DefectTreatmentCard v-if="i === 4" />
<!-- 应急数据 -->
<EmergencyCard v-if="i === 10" />
<!-- 机具管理 -->
<SpecialEquipCard v-if="i === 6" />
<template>
<!-- 企业及分支机构人数 -->
<OrganizerCard v-if="i === 2" />
<OrganizerCard :orgData="safetySignboardData?.Org" :projectInfoData="safetySignboardData.ProjectInfo" />
<!-- 危大工程数 -->
<BigCrisisCard :dangerousProjectData="dangerousProjectData" />
<!-- 四级风险数据 -->
<RiskRankingCard :riskClassificationData="riskClassificationData" />
<!-- 作业许可数 -->
<WorkCard :licensesData="safetySignboardData?.Licenses" />
<!-- 培训数据 -->
<EducationCard :educationData="educationData" />
<!-- 领导级安全检查数 -->
<SafetyCard :hsseProblemData="hsseProblemData" :hsseProblemDataNum="hsseProblemDataNum" />
<!-- 项目安全检查数据 -->
<DefectTreatmentCard :hsseProblem="safetySignboardData?.HsseProblem" />
<!-- 应急数据 -->
<EmergencyCard :emergencyData="emergencyData" />
<!-- 机具管理 -->
<SpecialEquipCard :costEquipmentData="safetySignboardData?.CostEquipment" />
<!-- 安全工时 -->
<!-- <SafeHoursCard v-if="i === 1" /> -->
@@ -47,33 +47,33 @@
<u-transition :show="tabIndx === 1" name="slide-right">
<view v-if="tabIndx == 1">
<!-- 企业和分支机构人数 -->
<OrgPersonCard />
<OrgPersonCard :qmsOrgData="qualityWeldingData?.QmsOrg" />
<!-- 人员报验、培训及交底数 -->
<EducationCard1 />
<EducationCard1 :qmsEducation="qualityWeldingData?.QmsEducation" />
<!-- 星级标准化工地建设 -->
<!-- <StarLevelCard /> -->
<!-- 计量器具数 -->
<MeasuringCard />
<MeasuringCard :qmsMeasuringInstruments="qualityWeldingData.QmsMeasuringInstruments" />
<!-- 设备材料及机具报验数 -->
<EquipmentCard />
<EquipmentCard :qmsInspectionData="qualityWeldingData?.QmsInspection" />
<!-- 工程划分数 -->
<ProjectItem />
<ProjectItem :projectDivisionData="projectDivisionData" />
<!-- 领导级质量检查数 -->
<SafetyCards />
<SafetyCards :qualityProblemData="qualityProblemData" :qualityProblemDatas="qualityProblemDatas" />
<!-- 项目质量检查数 -->
<QualityCard />
<QualityCard :qualityProblemData="qualityWeldingData?.QualityProblem" />
<!-- 控制点验收数 -->
<AcceptanceData />
<AcceptanceData :controlPointAcceptanceData="controlPointAcceptanceData" />
<!-- 优质工程数 -->
<HighQuality />
<HighQuality :awardStatsData="awardStatsData" />
<!-- QC活动数 -->
<QCActivity />
<QCActivity :awardStatsData="awardStatsData" />
<!-- 施工方案数 -->
<ConstructionScheme />
<ConstructionScheme :constructSolutionData="constructSolutionData" />
<!-- 图纸会审及交底数 -->
<ReviewAndBriefing />
<ReviewAndBriefing :comprehensiveData="qualityWeldingData?.Comprehensive" />
<!-- 焊接数 -->
<WeldingData />
<WeldingData :hjData="qualityWeldingData?.HjData" />
<!-- 报验记录 -->
<!-- <InspectionRecord /> -->
</view>
@@ -82,8 +82,10 @@
</template>
<script setup>
import { defineAsyncComponent, ref } from 'vue';
import { defineAsyncComponent, ref, onMounted } from 'vue';
import { getSafetySignboard, getQualityWelding } from '@/api/moduleApi/index.js';
import { isLoggedIn } from '@/utils';
import { useUserStore } from '@/store';
/* 加载组件
-------------------------------------------------------------*/
// 安全
@@ -117,6 +119,7 @@ import AcceptanceData from './qms/acceptanceData.vue';
import WeldingData from './qms/weldingData.vue';
import SafetyCards from './qms/safetyCard.vue';
let userStore = useUserStore();
const safeComponent = ref([2, 7, 8, 9, 3, 11, 4, 10, 6, 1, 5]);
const tabIndx = ref(0);
@@ -124,6 +127,117 @@ const tabIndx = ref(0);
const handleChangeTab = (idx) => {
tabIndx.value = idx;
};
//总数据
let safetySignboardData = ref({});
// 危大工程数据
let dangerousProjectData = ref([]);
// 四级风险数据
let riskClassificationData = ref([]);
// 培训数据
let educationData = ref([]);
// 领导级安全检查数
let hsseProblemData = ref([]);
let hsseProblemDataNum=ref([])
// 应急数据
let emergencyData = ref([]);
const getSafetySignboardData = async () => {
let { userInfo } = userStore;
let res = await getSafetySignboard();
safetySignboardData.value = res;
// 危大工程数据
dangerousProjectData.value = [res.DangerousProject.FinishedNum, res.DangerousProject.ConstructionNum, res.DangerousProject.OperativesNum, res.DangerousProject.TrainPersonNum];
// 四级风险数据
riskClassificationData.value = [
{ name: '重大风险', value: res.RiskClassification.HighRiskNum, labelText: `重大风险:${res.RiskClassification.HighRiskNum}` },
{ name: '较大风险', value: res.RiskClassification.MediumRiskNum, labelText: `较大风险:${res.RiskClassification.MediumRiskNum}` },
{ name: '一般风险', value: res.RiskClassification.GeneralRiskNum, labelText: `一般风险:${res.RiskClassification.GeneralRiskNum}` },
{ name: '低风险', value: res.RiskClassification.LowRiskNum, labelText: `低风险:${res.RiskClassification.LowRiskNum}` }
];
// 培训数据
educationData.value = [res.Education.SpecialTrainNum, res.Education.SafeTrainNum, res.Education.SpecialOperationTrainNum, res.Education.HseTechnicalNum];
// 领导级安全检查数
//未完成
hsseProblemData.value = [res.HsseProblem.GroupProblemNotCompletedNum, res.HsseProblem.UnitProblemNotCompletedNum + res.HsseProblem.BranchProblemNotCompletedNum];
//总数
hsseProblemDataNum.value = [res.HsseProblem.GroupProblemNum, res.HsseProblem.UnitProblemNum + res.HsseProblem.BranchProblemNum];
// 应急数据
emergencyData.value = [
res.Emergency.CompanyComprehensivePlanNum,
res.Emergency.CompanySpecialPlanNum,
res.Emergency.CompanyOnSiteDisposalPlan,
res.Emergency.CompanyDrillNum,
res.Emergency.CompanyDrillPersonNum
];
};
//质量看板指标
let qualityWeldingData = ref({});
//工程划分数
let projectDivisionData = ref([]);
// 领导级质量检查数
let qualityProblemData = ref([]);
let qualityProblemDatas=ref([])
// 控制点验收数
let controlPointAcceptanceData = ref({
//关键工序、特殊过程、隐蔽工程等合格率
QualifiedRateList: [],
//关键工序、特殊过程、隐蔽工程等验收数
AcceptNumList: [],
// 关键工序、特殊过程、隐蔽工程等合格数
QualifiedList: [],
// 单位工程、分部工程、分项工程合格率
EngineerQualifiedRateList: [],
// 单位工程、分部工程、分项工程验收数
EngineerAcceptNumList: [],
// 单位工程、分部工程、分项工程合格数
EngineerQualifiedList: []
});
// 优质工程
let awardStatsData = ref({
qualityEngineering: [],
qc: []
});
// 施工方案数
let constructSolutionData = ref([]);
const getQualityWeldingData = async () => {
let { userInfo } = userStore;
let res = await getQualityWelding();
qualityWeldingData.value = res;
console.log('质量看板指标', res);
// 工程划分数
projectDivisionData.value = [res.ProjectDivision.UnitProjectNum, res.ProjectDivision.SubProjectNum, res.ProjectDivision.SubdivisionalWorksNum];
// 领导级质量检查数
qualityProblemData.value = [res.QualityProblem.GroupProblemNum, res.QualityProblem.UnitProblemNum, res.QualityProblem.BranchProblemNum];
qualityProblemDatas.value = [res.QualityProblem.GroupProblemNotCompletedNum, res.QualityProblem.UnitProblemNotCompletedNum, res.QualityProblem.BranchProblemNotCompletedNum];
// 控制点验收数
controlPointAcceptanceData.value = {
QualifiedRateList: res.QualifiedRateList,
AcceptNumList: res.AcceptNumList,
QualifiedList: res.QualifiedList,
EngineerQualifiedRateList: res.EngineerQualifiedRateList,
EngineerAcceptNumList: res.EngineerAcceptNumList,
EngineerQualifiedList: res.EngineerQualifiedList
};
// 优质工程
Object.assign(awardStatsData.value, {
qualityEngineering: [res.AwardStats.LubanNum, res.AwardStats.GuoyouNum, res.AwardStats.ProvinceNum, res.AwardStats.CityNum],
qc: [res.AwardStats.QcProvinceNum, res.AwardStats.QcGroupNum, res.AwardStats.QcEnterpriseNum]
});
// 施工方案
constructSolutionData.value = [
res.ConstructSolution.ConstructSolutionNum,
res.ConstructSolution.ConstructSolutionProjectApproveNum,
res.ConstructSolution.ConstructSolutionUnitApproveNum
];
console.log('+++++++++++++', awardStatsData.value);
};
onMounted(() => {
if (!isLoggedIn()) {
return;
}
getSafetySignboardData();
getQualityWeldingData();
});
</script>
<style lang="scss"></style>
+62 -51
View File
@@ -1,65 +1,76 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="QC活动数">
<view class="inspection ">
<view class="inspection" @click="router.push('/pages/quality/QC/index')">
<qiun-data-charts type="column" :canvas2d="false" :opts="opts" :chartData="chartData" @getIndex="handleTap" />
</view>
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue'
import {
ref,onMounted
} from 'vue';
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
legend: {show: false},
xAxis: {
disableGrid: true
},
yAxis: {
showTitle: true,
data: [{
title: "单位:项"
}]
},
extra: {
column: {
type: "group",
width: 30,
activeBgColor: "#000000",
activeBgOpacity: 0.08,
}
}
})
const chartData = ref({})
const handleTap = (e) => {
console.log(e)
import ChartCard from '@/components/chartCard.vue';
import { ref, watch } from 'vue';
import { router } from '@/utils';
let props = defineProps({
awardStatsData: {
type: Object,
default: () => {}
}
});
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
legend: { show: false },
xAxis: {
disableGrid: true
},
yAxis: {
showTitle: true,
data: [
{
title: '单位:项'
}
]
},
extra: {
column: {
type: 'group',
width: 30,
activeBgColor: '#000000',
activeBgOpacity: 0.08
}
}
});
const chartData = ref({});
onMounted(() => {
let res = {
categories: ["省部级奖数量", "集团级奖项数量", "企业级奖项数量"],
series: [{
color: "#27c9cb",
name: '',
data: [100, 542, 685]
},
]
};
chartData.value = JSON.parse(JSON.stringify(res));
})
const handleTap = (e) => {
console.log(e);
};
watch(
() => props.awardStatsData.qc,
(newVal) => {
if (newVal && newVal.length) {
console.log('监听数据', newVal);
// 只有当数据存在时才赋值
let res = {
categories: ['省部级奖数量', '集团级奖项数量', '企业级奖项数量'],
series: [
{
data: newVal
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
}
},
{ deep: true, immediate: true }
);
</script>
<style lang="scss">
.inspection {
width: 100%;
height: 300rpx;
}
</style>
.inspection {
width: 100%;
height: 300rpx;
}
</style>
+119 -107
View File
@@ -1,124 +1,136 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="控制点验收数">
<view class="ys">
<view class="ys" @click="router.push('/pages/quality/controlPoint/index')">
<qiun-data-charts type="mix" :canvas2d="false" :opts="opts" :chartData="chartData" @getIndex="handleTap" />
</view>
<view class="ys u-margin-top-30">
<view class="ys u-margin-top-30" @click="router.push('/pages/quality/controlPoint/index')">
<qiun-data-charts type="mix" :canvas2d="false" :opts="opts" :chartData="chartData1" @getIndex="handleTap" />
</view>
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue'
import {
ref,onMounted
} from 'vue';
const opts = ref({
color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
padding: [15, 15, 0, 15],
enableScroll: false,
legend: { fontSize: 10},
xAxis: {
disableGrid: true,
},
yAxis: {
disabled: false,
disableGrid: false,
splitNumber: 5,
gridType: "dash",
dashLength: 4,
gridColor: "#CCCCCC",
padding: 10,
showTitle: true,
data: [{
position: "right",
min: 0,
max: 100,
title: "百分比"
},
{
position: "left",
title: "数量",
textAlign: "left"
}
]
},
extra: {
mix: {
column: {
width: 20,
seriesGap: 8
}
import ChartCard from '@/components/chartCard.vue';
import { ref, watch } from 'vue';
import {router} from '@/utils'
let props = defineProps({
controlPointAcceptanceData: {
type: Array,
default: () => []
}
});
const opts = ref({
color: ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'],
padding: [15, 15, 0, 15],
enableScroll: false,
legend: { fontSize: 10 },
xAxis: {
disableGrid: true
},
yAxis: {
disabled: false,
disableGrid: false,
splitNumber: 5,
gridType: 'dash',
dashLength: 4,
gridColor: '#CCCCCC',
padding: 10,
showTitle: true,
data: [
{
position: 'right',
min: 0,
max: 100,
title: '百分比'
},
{
position: 'left',
title: '数量',
textAlign: 'left'
}
]
},
extra: {
mix: {
column: {
width: 20,
seriesGap: 8
}
}
})
const chartData = ref({})
const chartData1 = ref({})
const handleTap = (e) => {
console.log(e)
}
});
onMounted(() => {
let res = {
categories: ["关键工序验收", "特殊工程验收", "隐藏工程验收"],
series: [{
name: "合格率",
type: "line",
style: "curve",
color: "#ffe200",
disableLegend: true,
data: [70, 50, 85]
},
{
name: "验收数",
index: 1,
type: "column",
data: [40, 55, 110]
},
{
name: "合格数",
index: 1,
type: "column",
data: [50, 20, 75]
},
]
};
chartData.value = JSON.parse(JSON.stringify(res));
let res1 = {
categories: ["单位工程", "分部工程", "分项工程"],
series: [{
name: "合格率",
type: "line",
style: "curve",
color: "#ffe200",
disableLegend: true,
data: [70, 50, 85]
},
{
name: "验收数",
index: 1,
type: "column",
data: [40, 55, 110]
},
{
name: "合格数",
index: 1,
type: "column",
data: [50, 20, 75]
},
]
};
chartData1.value = JSON.parse(JSON.stringify(res1));
})
const chartData = ref({});
const chartData1 = ref({});
const handleTap = (e) => {
console.log(e);
};
watch(
() => props.controlPointAcceptanceData,
(newVal) => {
if (newVal && newVal.QualifiedRateList) {
console.log("}}}}}}}}}",newVal);
// 只有当数据存在时才赋值
let res = {
categories: ['关键工序验收', '特殊工程验收', '隐藏工程验收'],
series: [
{
name: '合格率',
type: 'line',
style: 'curve',
color: '#ffe200',
disableLegend: true,
data: newVal.QualifiedRateList
},
{
name: '验收数',
index: 1,
type: 'column',
data: newVal.AcceptNumList
},
{
name: '合格数',
index: 1,
type: 'column',
data: newVal.QualifiedList
}
]
};
let res1 = {
categories: ['单位工程', '分部工程', '分项工程'],
series: [
{
name: '合格率',
type: 'line',
style: 'curve',
color: '#ffe200',
disableLegend: true,
data: newVal.EngineerQualifiedRateList
},
{
name: '验收数',
index: 1,
type: 'column',
data: newVal.EngineerAcceptNumList
},
{
name: '合格数',
index: 1,
type: 'column',
data: newVal.EngineerQualifiedList
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
chartData1.value = JSON.parse(JSON.stringify(res1));
}
},
{ deep: true, immediate: true }
);
</script>
<style lang="scss">
.ys {
height: 300rpx;
}
</style>
.ys {
height: 300rpx;
}
</style>
+28 -16
View File
@@ -1,6 +1,6 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="施工方案数">
<view class="inspection">
<view class="inspection" @click="router.push('/pages/quality/constructionPlan/index')">
<qiun-data-charts type="column" :canvas2d="false" :opts="opts" :chartData="chartData" @getIndex="handleTap" />
</view>
</ChartCard>
@@ -8,7 +8,14 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import { ref, onMounted } from 'vue';
import { ref, watch } from 'vue';
import { router } from '@/utils';
let props = defineProps({
constructSolutionData: {
type: Array,
default: () => []
}
});
const opts = ref({
padding: [15, 15, 0, 5],
@@ -40,20 +47,25 @@ const chartData = ref({});
const handleTap = (e) => {
console.log(e);
};
onMounted(() => {
let res = {
categories: ['方案总数', '企业审批总数', '项目审批总数'],
series: [
{
color: '#5c7fcb',
name: '',
data: [100, 542, 685]
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
});
watch(
() => props.constructSolutionData,
(newVal) => {
if (newVal && newVal.length) {
console.log('监听数据', newVal);
// 只有当数据存在时才赋值
let res = {
categories: ['方案总数', '企业审批总数', '项目审批总数'],
series: [
{
data: newVal
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
}
},
{ deep: true, immediate: true }
);
</script>
<style lang="scss">
+11 -4
View File
@@ -1,17 +1,17 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="人员报验、培训及交底数">
<view class="education u-flex u-row-between">
<view class="education u-flex u-row-between" @click="router.push('/pages/quality/personnelInspection/index')">
<view class="education-box">
<view class="education-box-lab">人员报验数</view>
<view class="education-box-num u-margin-top-20">800</view>
<view class="education-box-num u-margin-top-20">{{ qmsEducation?.PersonInspectionNum || 0 }}</view>
</view>
<view class="education-box">
<view class="education-box-lab">培训人次</view>
<view class="education-box-num u-margin-top-20">800</view>
<view class="education-box-num u-margin-top-20">{{ qmsEducation?.TrainPersonNum || 0 }}</view>
</view>
<view class="education-box">
<view class="education-box-lab">技术交底人次</view>
<view class="education-box-num u-margin-top-20">800</view>
<view class="education-box-num u-margin-top-20">{{ qmsEducation?.TechnicalDisclosePersonNum || 0 }}</view>
</view>
</view>
</ChartCard>
@@ -19,6 +19,13 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import {router} from '@/utils'
defineProps({
qmsEducation: {
type: Object,
default: () => {}
}
});
</script>
<style lang="scss" scoped>
+10 -3
View File
@@ -1,10 +1,10 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="设备材料及机具报验数">
<view class="measuring u-flex u-row-between">
<view class="measuring u-flex u-row-between" @click="router.push('/pages/quality/equipment/index')">
<view class="measuring-box u-flex u-row-center">
<view class="measuring-box-icon"><u-icon name="shebei" color="#e28ea3" custom-prefix="custom-icon" size="60"></u-icon></view>
<view class="measuring-box-row u-padding-left-20">
<text class="measuring-box-row-num">900台</text>
<text class="measuring-box-row-num">{{ qmsInspectionData?.EquipmentInspectionNum || 0 }}台</text>
<text class="measuring-box-row-lab">设备材料报验数</text>
</view>
</view>
@@ -12,7 +12,7 @@
<view class="measuring-box u-flex u-row-center">
<view class="measuring-box-icon"><u-icon name="jijubaoyan" color="#36d2ad" custom-prefix="custom-icon" size="60"></u-icon></view>
<view class="measuring-box-row u-padding-left-20">
<text class="measuring-box-row-num">9000台</text>
<text class="measuring-box-row-num">{{ qmsInspectionData?.MachineInspectionNum || 0 }}台</text>
<text class="measuring-box-row-lab">机具报验数</text>
</view>
</view>
@@ -22,6 +22,13 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import {router} from '@/utils'
defineProps({
qmsInspectionData: {
type: Object,
default: () => {}
}
});
</script>
<style lang="scss">
+64 -53
View File
@@ -1,67 +1,78 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="优质工程数">
<view class="inspection ">
<view class="inspection" @click="router.push('/pages/quality/qualityEngineering/index')">
<qiun-data-charts type="column" :canvas2d="false" :opts="opts" :chartData="chartData" @getIndex="handleTap" />
</view>
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue'
import {
ref,onMounted
} from 'vue';
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
legend: {show: false},
xAxis: {
disableGrid: true,
rotateLabel: true,
rotateAngle: -30
},
yAxis: {
showTitle: true,
data: [{
title: "单位:项"
}]
},
extra: {
column: {
type: "group",
width: 30,
activeBgColor: "#000000",
activeBgOpacity: 0.08,
}
}
})
const chartData = ref({})
const handleTap = (e) => {
console.log(e)
import ChartCard from '@/components/chartCard.vue';
import { ref, watch } from 'vue';
import {router} from '@/utils'
let props = defineProps({
awardStatsData: {
type: Object,
default: () => {}
}
});
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
legend: { show: false },
xAxis: {
disableGrid: true,
rotateLabel: true,
rotateAngle: -30
},
yAxis: {
showTitle: true,
data: [
{
title: '单位:项'
}
]
},
extra: {
column: {
type: 'group',
width: 30,
activeBgColor: '#000000',
activeBgOpacity: 0.08
}
}
});
const chartData = ref({});
onMounted(() => {
let res = {
categories: ["国家级鲁\n班奖", "国家级国\n优奖", "省部级奖\n项", "市级奖项"],
series: [{
color: "#91CB74",
name: '',
data: [100, 542, 685, 254]
},
]
};
chartData.value = JSON.parse(JSON.stringify(res));
})
const handleTap = (e) => {
console.log(e);
};
watch(
() => props.awardStatsData.qualityEngineering,
(newVal) => {
if (newVal && newVal.length) {
console.log('监听数据', newVal);
// 只有当数据存在时才赋值
let res = {
categories: ['国家级鲁\n班奖', '国家级国\n优奖', '省部级奖\n项', '市级奖项'],
series: [
{
data: newVal
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
}
},
{ deep: true, immediate: true }
);
</script>
<style lang="scss">
.inspection {
width: 100%;
height: 300rpx;
}
</style>
.inspection {
width: 100%;
height: 300rpx;
}
</style>
+10 -3
View File
@@ -1,10 +1,10 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="计量器具数">
<view class="measuring u-flex u-row-between">
<view class="measuring u-flex u-row-between" @click="router.push('/pages/quality/meter/index')">
<view class="measuring-box u-flex u-row-center">
<view class="measuring-box-icon"><u-icon name="jiliangqijujianguan" color="#e28ea3" custom-prefix="custom-icon" size="60"></u-icon></view>
<view class="measuring-box-row u-padding-left-20">
<text class="measuring-box-row-num">900台</text>
<text class="measuring-box-row-num">{{ qmsMeasuringInstruments?.UseNum || 0 }}台</text>
<text class="measuring-box-row-lab">计量器具数</text>
</view>
</view>
@@ -12,7 +12,7 @@
<view class="measuring-box u-flex u-row-center">
<view class="measuring-box-icon"><u-icon name="hege" color="#3bdae2" custom-prefix="custom-icon" size="60"></u-icon></view>
<view class="measuring-box-row u-padding-left-20">
<text class="measuring-box-row-num">9000台</text>
<text class="measuring-box-row-num">{{ qmsMeasuringInstruments?.OKNum || 0 }}台</text>
<text class="measuring-box-row-lab">校验合格数</text>
</view>
</view>
@@ -22,6 +22,13 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import {router} from '@/utils'
defineProps({
qmsMeasuringInstruments: {
type: Object,
default: () => {}
}
});
</script>
<style lang="scss">
+11 -4
View File
@@ -1,6 +1,6 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="企业和分支机构人数">
<view class="org-person">
<view class="org-person" @click="router.push('/pages/quality/numberEmployees/index')">
<!-- <view class="org-person-row">
<view class="org-person-row_lab">
集团总数
@@ -10,17 +10,17 @@
<view class="u-flex">
<view class="org-person-row">
<view class="org-person-row_lab">企业质量管理人数</view>
<view class="org-person-row_num">9521</view>
<view class="org-person-row_num">{{ qmsOrgData?.CompanyPersonNum || 0 }}</view>
</view>
<view class="org-person-row">
<view class="org-person-row_lab">项目质量管理人数</view>
<view class="org-person-row_num">9521</view>
<view class="org-person-row_num">{{ qmsOrgData?.ProjectPersonNum || 0 }}</view>
</view>
</view>
<view class="u-flex">
<view class="org-person-row">
<view class="org-person-row_lab">分支机构质量管理人数</view>
<view class="org-person-row_num">9521</view>
<view class="org-person-row_num">{{ qmsOrgData?.BranchPersonNum || 0 }}</view>
</view>
<!-- <view class="org-person-row">
<view class="org-person-row_lab">特种设备质保体系</view>
@@ -33,6 +33,13 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import {router} from '@/utils'
defineProps({
qmsOrgData: {
type: Object,
default: () => {}
}
});
</script>
<style lang="scss">
+61 -49
View File
@@ -1,63 +1,75 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="工程划分数">
<view class="inspection ">
<view class="inspection" @click="router.push('/pages/quality/engineeringDivision/index')">
<qiun-data-charts type="column" :canvas2d="false" :opts="opts" :chartData="chartData" @getIndex="handleTap" />
</view>
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue'
import {
ref,onMounted
} from 'vue';
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
legend: {show: false},
xAxis: {
disableGrid: true
},
yAxis: {
showTitle: true,
data: [{
title: "单位:个"
}]
},
extra: {
column: {
type: "group",
width: 30,
activeBgColor: "#000000",
activeBgOpacity: 0.08,
}
}
})
const chartData = ref({})
const handleTap = (e) => {
console.log(e)
import ChartCard from '@/components/chartCard.vue';
import { ref, watch } from 'vue';
import {router} from '@/utils'
let props = defineProps({
projectDivisionData: {
type: Array,
default: () => []
}
});
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
legend: { show: false },
xAxis: {
disableGrid: true
},
yAxis: {
showTitle: true,
data: [
{
title: '单位:个'
}
]
},
extra: {
column: {
type: 'group',
width: 30,
activeBgColor: '#000000',
activeBgOpacity: 0.08
}
}
});
const chartData = ref({});
onMounted(() => {
let res = {
categories: ["单位工程数", "分部工程数", "分项工程数"],
series: [{
name: '',
data: [10000, 5428, 6852]
},
]
};
chartData.value = JSON.parse(JSON.stringify(res));
})
const handleTap = (e) => {
console.log(e);
};
watch(
() => props.projectDivisionData,
(newVal) => {
if (newVal && newVal.length) {
// 只有当数据存在时才赋值
let res = {
categories: ['单位工程数', '分部工程数', '分项工程数'],
series: [
{
data: newVal
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
}
},
{ deep: true, immediate: true }
);
</script>
<style lang="scss">
.inspection {
width: 100%;
height: 300rpx;
}
</style>
.inspection {
width: 100%;
height: 300rpx;
}
</style>
+14 -4
View File
@@ -1,11 +1,15 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="项目质量检查数">
<view class="defect">
<view class="defect" @click="router.push('/pages/quality/projectQuality/index')">
<!-- <u-subsection :list="list" :current="current" @change="handleChange"></u-subsection> -->
<view class="defect-main u-flex u-row-between">
<view class="defect-box gb-rectified">
<text class="defect-box-lab">项目质量检查数</text>
<text class="defect-box-num u-margin-top-20">20</text>
<text class="defect-box-num u-margin-top-20">{{ qualityProblemData?.ProjectProblemNum || 0 }}</text>
</view>
<view class="defect-box gb-rectified">
<text class="defect-box-lab">项目质量未完成数</text>
<text class="defect-box-num u-margin-top-20">{{ qualityProblemData?.ProjectProblemNotCompletedNum || 0 }}</text>
</view>
</view>
</view>
@@ -14,7 +18,13 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import { ref, watch } from 'vue';
import {router} from '@/utils'
defineProps({
qualityProblemData: {
type: Object,
default: () => {}
}
});
const current = ref(0);
const list = ref([
{
@@ -40,7 +50,7 @@ const handleChange = () => {};
}
&-box {
width:100%;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
+24 -18
View File
@@ -1,36 +1,42 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="图纸会审及交底数">
<view class="education u-flex">
<view class="education u-flex" @click="router.push('/pages/quality/drawingReview/index')">
<view class="education-box">
<view class="education-box-lab">图纸会审总数</view>
<view class="education-box-num u-margin-top-6">800</view>
<view class="education-box-num u-margin-top-6">{{comprehensiveData?.ComprehensiveReviewDrawingsNum||0}}</view>
</view>
<view class="education-box">
<view class="education-box-lab">设计交底总数</view>
<view class="education-box-num u-margin-top-6">800</view>
<view class="education-box-num u-margin-top-6">{{comprehensiveData?.DesignDetailsNum||0}}</view>
</view>
</view>
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue'
import ChartCard from '@/components/chartCard.vue';
import {router} from '@/utils'
let props = defineProps({
comprehensiveData: {
type: Object,
default: () => {}
}
});
</script>
<style lang="scss" scoped>
.education{
width: 100%;
&-box{
flex: 1;
&-lab{
color: #999999;
font-size: 24rpx;
}
&-num{
color: #333333;
font-size: 28rpx;
}
.education {
width: 100%;
&-box {
flex: 1;
&-lab {
color: #999999;
font-size: 24rpx;
}
&-num {
color: #333333;
font-size: 28rpx;
}
}
</style>
}
</style>
+40 -16
View File
@@ -1,6 +1,6 @@
<template>
<ChartCard margin="30rpx 0 30rpx 0" title="领导级安全检查数">
<view class="big-crisis">
<view class="big-crisis" @click="router.push('/pages/quality/leader/index')">
<qiun-data-charts type="column" :opts="opts" :canvas2d="false" :chartData="chartData" @getIndex="handleTap" />
</view>
</ChartCard>
@@ -8,12 +8,24 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import { ref, onMounted } from 'vue';
import { ref, watch } from 'vue';
import { router } from '@/utils';
let props = defineProps({
qualityProblemData: {
type: Array,
default: () => []
},
qualityProblemDatas: {
type: Array,
default: () => []
}
});
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
legend: {
show: false
show: true
},
xAxis: {
disableGrid: true
@@ -30,7 +42,8 @@ const opts = ref({
type: 'group',
width: 20,
activeBgColor: '#000000',
activeBgOpacity: 0.08
activeBgOpacity: 0.08,
seriesGap:3
}
}
});
@@ -40,18 +53,29 @@ const chartData = ref({});
const handleTap = (e) => {
console.log(e);
};
onMounted(() => {
let res = {
categories: ['集团检查数', '企业检查数', '分支机构检查数'],
series: [
{
data: [35, 36,50]
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
});
watch(
() => props.qualityProblemData,
(newVal) => {
if (newVal && newVal.length) {
// 只有当数据存在时才赋值
let res = {
categories: ['集团检查数', '企业检查数', '分支机构检查数'],
series: [
{
name: '总数',
data: newVal
},
{
name: '未完成',
data: props.qualityProblemDatas
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
}
},
{ deep: true, immediate: true }
);
</script>
<style lang="scss">
+12 -5
View File
@@ -1,24 +1,24 @@
<template>
<ChartCard margin="30rpx 0 0 0" title="焊接数">
<view class="weld">
<view class="weld" @click="router.push('/pages/quality/welding/index')">
<view class="weld-row u-padding-20">
<view class="weld-row-col u-flex">
<view class="weld-row-col_lab">在岗焊工总人数</view>
<view class="weld-row-col_num u-padding-left-18">945281</view>
<view class="weld-row-col_num u-padding-left-18">{{ hjData?.WelderNum || 0 }}</view>
</view>
</view>
<view class="weld-row1 u-margin-top-20">
<view class="weld-row1-col1 u-flex-col">
<view class="weld-row1-col1_lab">总达因数</view>
<view class="weld-row1-col1_num">945281</view>
<view class="weld-row1-col1_num">{{ hjData?.TotalDineNum || 0 }}</view>
</view>
<view class="weld-row1-col1 u-flex-col">
<view class="weld-row1-col1_lab">完成达因数</view>
<view class="weld-row1-col1_num">945281</view>
<view class="weld-row1-col1_num">{{ hjData?.CompleteDineNum || 0 }}</view>
</view>
<view class="weld-row1-col1 u-flex-col">
<view class="weld-row1-col1_lab">总拍片数</view>
<view class="weld-row1-col1_num">945281</view>
<view class="weld-row1-col1_num">{{ hjData?.TotalFilmNum || 0 }}</view>
</view>
</view>
<!-- <view class="weld-row2 u-margin-top-20">
@@ -45,6 +45,13 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import { router } from '@/utils';
let props = defineProps({
hjData: {
type: Object,
default: () => {}
}
});
</script>
<style lang="scss">
+58 -47
View File
@@ -1,62 +1,73 @@
<template>
<ChartCard margin="0 0 30rpx 0" title="危大工程数">
<view class="big-crisis">
<view class="big-crisis" @click="router.push('/pages/index/dangerousProject/index')">
<qiun-data-charts type="column" :opts="opts" :canvas2d="false" :chartData="chartData" @getIndex="handleTap" />
</view>
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue'
import {
ref,onMounted
} from 'vue';
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
legend: {
show: false
},
xAxis: {
disableGrid: true,
fontSize:12
},
yAxis: {
data: [{
min: 0
}]
},
extra: {
column: {
type: "group",
width: 20,
activeBgColor: "#000000",
activeBgOpacity: 0.08
}
}
})
import ChartCard from '@/components/chartCard.vue';
import { ref, watch } from 'vue';
import {router} from '@/utils'
const chartData = ref({})
const handleTap = (e) => {
console.log(e)
let props = defineProps({
dangerousProjectData: {
type: Array,
default: () => []
}
});
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
legend: {
show: false
},
xAxis: {
disableGrid: true,
fontSize: 12
},
yAxis: {
data: [
{
min: 0
}
]
},
extra: {
column: {
type: 'group',
width: 20,
activeBgColor: '#000000',
activeBgOpacity: 0.08
}
}
});
const chartData = ref({});
onMounted(() => {
let res = {
categories: ["已完成个数", "进行中个数", "作业人数", "培训人次数"],
series: [{
data: [35, 36, 31, 33]
}]
};
chartData.value = JSON.parse(JSON.stringify(res));
})
const handleTap = (e) => {
console.log(e);
};
watch(
() => props.dangerousProjectData,
(newVal) => {
if (newVal && newVal.length) {
// 只有当数据存在时才赋值
let res = {
categories: ['已完成个数', '进行中个数', '作业人数', '培训人次数'],
series: [{ data: newVal }]
};
chartData.value = JSON.parse(JSON.stringify(res));
}
},
{ deep: true, immediate: true }
);
</script>
<style lang="scss">
.big-crisis {
width: 100%;
height: 400rpx;
}
</style>
.big-crisis {
width: 100%;
height: 400rpx;
}
</style>
+66 -64
View File
@@ -1,22 +1,21 @@
<template>
<ChartCard margin="0 0 20rpx 0" title="项目安全检查数据">
<view class="defect">
<!-- <u-subsection :list="list" :current="current" @change="handleChange"></u-subsection> -->
<view class="defect-main u-flex u-row-between">
<view class="defect-main u-flex u-row-between" @click="router.push('/pages/index/projectSafety/index')">
<!-- <view class="defect-box gb-all">
<text class="defect-box-lab">安全隐患</text>
<text class="defect-box-num u-margin-top-20">4567</text>
</view> -->
<view class="defect-box gb-rectified">
<text class="defect-box-lab">项目检查数</text>
<text class="defect-box-num u-margin-top-20">20</text>
<text class="defect-box-num u-margin-top-20">{{ hsseProblem?.ProjectProblemNum || 0 }}</text>
</view>
<!-- <view class="defect-box gb-not-rectified">
<text class="defect-box-lab">未整改</text>
<text class="defect-box-num u-margin-top-20">6</text>
<view class="defect-box gb-rectified">
<text class="defect-box-lab">项目未完成数</text>
<text class="defect-box-num u-margin-top-20">{{ hsseProblem?.ProjectProblemNotCompletedNum || 0 }}</text>
</view>
<view class="defect-box gb-rectified-rate">
<!-- <view class="defect-box gb-rectified-rate">
<text class="defect-box-lab">整改率</text>
<text class="defect-box-num u-margin-top-20">99.99%</text>
</view> -->
@@ -25,71 +24,74 @@
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue'
import {
ref,
watch
} from 'vue';
const current = ref(0)
const list = ref([{
name: '集团级'
},
{
name: '公司级'
},
{
name: '项目级'
}, {
name: '分支机构'
}
])
const handleChange = () => {
import ChartCard from '@/components/chartCard.vue';
import { ref, watch } from 'vue';
import { router } from '@/utils'
let props = defineProps({
hsseProblem: {
type: Object,
default: () => {}
}
});
const current = ref(0);
const list = ref([
{
name: '集团级'
},
{
name: '公司级'
},
{
name: '项目级'
},
{
name: '分支机构'
}
]);
const handleChange = () => {};
</script>
<style lang="scss">
.defect {
&-main {
height: 120rpx;
.defect {
&-main {
height: 120rpx;
}
&-box {
width: 100%;
// width: calc((100% - 40rpx) / 4);
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&-lab {
font-size: 24rpx;
color: #ffffff;
}
&-box {
width: 100%;
// width: calc((100% - 40rpx) / 4);
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&-lab {
font-size: 24rpx;
color: #ffffff;
}
&-num {
font-size: 28rpx;
font-weight: 600;
color: #ffffff;
}
&-num {
font-size: 28rpx;
font-weight: 600;
color: #ffffff;
}
}
}
.gb-all {
background: linear-gradient(to top right, #9E9E9E, #dcdcdc);
}
.gb-all {
background: linear-gradient(to top right, #9e9e9e, #dcdcdc);
}
.gb-not-rectified {
background: linear-gradient(to top right, #FFD626, #FF9F7D);
}
.gb-not-rectified {
background: linear-gradient(to top right, #ffd626, #ff9f7d);
}
.gb-rectified {
background: linear-gradient(to top right, #2488FA, #79BAFF);
}
.gb-rectified {
background: linear-gradient(to top right, #2488fa, #79baff);
}
.gb-rectified-rate {
background: linear-gradient(to top right, #2AD192, #8DF0C9);
}
</style>
.gb-rectified-rate {
background: linear-gradient(to top right, #2ad192, #8df0c9);
}
</style>
+29 -16
View File
@@ -1,15 +1,22 @@
<template>
<ChartCard margin="0 0 30rpx 0" title="培训数据">
<view class="charts-box">
<qiun-data-charts type="area" :opts="opts" :canvas2d="false" :chartData="chartData" @getIndex="handleTap" />
<view class="charts-box" @click="router.push('/pages/index/training/index')">
<qiun-data-charts type="area" :opts="opts" :canvas2d="false" :chartData="chartData" @getIndex="handleTap" />
</view>
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue';
import { ref ,onMounted} from 'vue';
import { ref, onMounted, watch } from 'vue';
import { router } from '@/utils';
let props = defineProps({
educationData: {
type: Array,
default: () => []
}
});
const opts = ref({
padding: [15, 15, 0, 15],
enableScroll: false,
@@ -20,7 +27,7 @@ const opts = ref({
disableGrid: true,
rotateLabel: true,
rotateAngle: -30,
fontSize: 10
fontSize: 9
},
yAxis: {
gridType: 'dash',
@@ -46,18 +53,24 @@ const chartData = ref({});
const handleTap = (e) => {
console.log(e);
};
onMounted(() => {
let res = {
categories: ['专项培训', '三级安全教育\n培训人次', '特种作业\n培训人次', '安全技术\n交底人次'],
series: [
{
data: [302265, 70770, 399175, 14851]
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
});
watch(
() => props.educationData,
(newVal) => {
if (newVal && newVal.length) {
// 只有当数据存在时才赋值
let res = {
categories: ['专项培训', '三级安全教育\n培训人次', '特种作业\n培训人次', '安全技术\n交底人次'],
series: [
{
data: newVal
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
}
},
{ deep: true, immediate: true }
);
</script>
<style scoped>
+27 -21
View File
@@ -1,6 +1,6 @@
<template>
<ChartCard margin="0 0 30rpx 0" title="应急数据">
<view class="emergencyCard">
<view class="emergencyCard" @click="router.push('/pages/index/emergency/index')">
<qiun-data-charts type="column" :opts="opts" :canvas2d="false" :chartData="chartData" @getIndex="handleTap" />
</view>
</ChartCard>
@@ -8,8 +8,14 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import { ref, onMounted } from 'vue';
import { ref, watch } from 'vue';
import { router } from '@/utils';
let props = defineProps({
emergencyData: {
type: Array,
default: () => []
}
});
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
@@ -42,25 +48,25 @@ const chartData = ref({});
const handleTap = (e) => {
console.log(e);
};
onMounted(() => {
let res = {
categories: ['综合预案', '专项预案', '现场处置\n预案', '演练次数 ', '参演人数'],
series: [
{
data: [35, 36, 31, 33, 13],
color: '#eef82f'
}
],
formatter: function (value, index, series, opts) {
console.log(value);
console.log(index);
console.log(series);
console.log(opts);
watch(
() => props.emergencyData,
(newVal) => {
if (newVal && newVal.length) {
// 只有当数据存在时才赋值
let res = {
categories: ['综合预案', '专项预案', '现场处置\n预案', '演练次数 ', '参演人数'],
series: [
{
data: newVal,
color: '#eef82f'
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
}
};
chartData.value = JSON.parse(JSON.stringify(res));
});
},
{ deep: true, immediate: true }
);
</script>
<style lang="scss">
+36 -24
View File
@@ -2,65 +2,66 @@
<ChartCard :loading="loading" margin="0 0 30rpx 0">
<view class="organizer">
<view class="organizer-tit">企业及分支机构人数</view>
<view class="row u-flex u-flex-wrap u-padding-20 u-margin-bottom-20">
<view class="row u-flex u-flex-wrap u-padding-20 u-margin-bottom-20" @click="router.push('/pages/index/dataBranch/index')">
<view class="row_li u-row-left">
<text class="organizer-lab">企业总监数</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ orgData?.HeadOfficeInspectorGeneralNum || 0 }}</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">企业专职人员数</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ orgData?.HeadOfficeFullTimeNum || 0 }}</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">分支机构总监数</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ orgData?.BranchInspectorGeneralNum || 0 }}</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">分支机构专职人员数</text>
<text class="organizer_num">13273</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">A证人数</text>
<text class="organizer_num">13273</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">B证人数</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ orgData?.BranchFullTimeNum || 0 }}</text>
</view>
</view>
<view class="organizer-tit">项目人数</view>
<view class="row u-flex u-flex-wrap u-padding-20 u-margin-bottom-20">
<view class="row u-flex u-flex-wrap u-padding-20 u-margin-bottom-20" @click="router.push('/pages/index/dataProjectNum/index')">
<view class="row_li u-row-left">
<text class="organizer-lab">项目总监</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ orgData?.ProjectInspectorGeneralNum || 0 }}</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">专职安全管理人员(含分包)</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ orgData?.ProjectFullTimeNum || 0 }}</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">安全监护人数</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ orgData?.ProjectSafetyMonitorNum || 0 }}</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">注安师数量</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ orgData?.SafetyInjectionEngineer || 0 }}</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">A证人数</text>
<text class="organizer_num">{{ orgData?.CertificateANum || 0 }}</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">B证人数</text>
<text class="organizer_num">{{ orgData?.CertificateBNum || 0 }}</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">C证人数</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ orgData?.CertificateCNum || 0 }}</text>
</view>
<view class="row_li u-row-left">
<!-- <view class="row_li u-row-left">
<text class="organizer-lab">特种作业人员数量</text>
<text class="organizer_num">13273</text>
</view>
<text class="organizer_num">{{orgData.CertificateBNum}}</text>
</view> -->
<view class="row_li u-row-left">
<text class="organizer-lab">参建人数</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ projectInfoData?.JoinConstructionPersonNum || 0 }}</text>
</view>
<view class="row_li u-row-left">
<text class="organizer-lab">安全工时</text>
<text class="organizer_num">13273</text>
<text class="organizer_num">{{ projectInfoData?.SafeWorkingHour || 0 }}</text>
</view>
</view>
</view>
@@ -70,6 +71,17 @@
<script setup>
import { ref } from 'vue';
import ChartCard from '@/components/chartCard.vue';
import { router } from '@/utils';
defineProps({
orgData: {
type: Object,
default: () => ({})
},
projectInfoData: {
type: Object,
default: () => ({})
}
});
const loading = ref(false);
</script>
+36 -39
View File
@@ -1,21 +1,20 @@
<template>
<ChartCard :loading="loading" margin="30rpx 0 0 0" padding="20rpx 10rpx 80rpx 10rpx"
bg-color="linear-gradient(#1e5ca3, #3094ff)">
<view class="project">
<view class="project-col" @click="handleSkip">
<text class="project-col-num">1024</text>
<ChartCard :loading="loading" margin="30rpx 0 0 0" padding="20rpx 10rpx 80rpx 10rpx" bg-color="linear-gradient(#1e5ca3, #3094ff)">
<view class="project" @click="router.push('/pages/index/dataSummary/index')">
<view class="project-col">
<text class="project-col-num">{{ projectInfoData?.BeUnderConstructionNum || 0 }}</text>
<text class="project-col-lab u-margin-top-10">在建项目</text>
</view>
<view class="project-col">
<text class="project-col-num">1024</text>
<text class="project-col-num">{{ projectInfoData?.ShutdownNum || 0 }}</text>
<text class="project-col-lab u-margin-top-10">停工项目</text>
</view>
<view class="project-col">
<text class="project-col-num">1024111</text>
<text class="project-col-num">{{ projectInfoData?.JoinConstructionPersonNum || 0 }}</text>
<text class="project-col-lab u-margin-top-10">参建人数</text>
</view>
<view class="project-col">
<text class="project-col-num">1024</text>
<text class="project-col-num">{{ projectInfoData?.MajorProjectsUnderConstructionNum || 0 }}</text>
<text class="project-col-lab u-margin-top-10">在施危大工程</text>
</view>
</view>
@@ -23,43 +22,41 @@
</template>
<script setup>
import {
ref
} from 'vue';
import ChartCard from '@/components/chartCard.vue'
const loading = ref(false)
const handleSkip = ()=>{
uni.navigateTo({
url: `/pages/penetrate/project`
})
import { ref } from 'vue';
import { router } from '@/utils';
import ChartCard from '@/components/chartCard.vue';
const loading = ref(false);
defineProps({
projectInfoData: {
type: Object,
default: () => ({})
}
});
</script>
<style lang="scss">
.project {
display: grid;
grid-template-columns: repeat(4, 25%);
.project {
display: grid;
grid-template-columns: repeat(4, 25%);
&-col {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&-col {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&-num {
text-align: center;
overflow-wrap: break-word;
width: 100%;
color: #ffffff;
font-size: 40rpx;
&-num {
text-align: center;
overflow-wrap: break-word;
width: 100%;
color: #ffffff;
font-size: 40rpx;
}
}
&-lab {
color: #ffffff;
font-size: 24rpx;
}
&-lab {
color: #ffffff;
font-size: 24rpx;
}
}
</style>
}
</style>
+60 -66
View File
@@ -1,78 +1,72 @@
<template>
<ChartCard margin="0 0 30rpx 0" title="四级风险数据" >
<view class="rish-ranking">
<qiun-data-charts type="pie" :opts="opts" :canvas2d="false" :chartData="chartData" />
</view>
<ChartCard margin="0 0 30rpx 0" title="四级风险数据">
<view class="rish-ranking" @click="router.push('/pages/index/riskControl/index')">
<qiun-data-charts type="pie" :opts="opts" :canvas2d="false" :chartData="chartData" />
</view>
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue'
import {
ref,onMounted
} from 'vue';
import {
onReady, onShow
} from '@dcloudio/uni-app'
const opts = ref({
color: ["#EE6666", "#EF893B","#EFCB3B","#3B8CEF"],
padding: [5, 5, 5, 5],
enableScroll: false,
legend: {
lineHeight:20,
fontSize: 10,
itemGap: 20
},
extra: {
pie: {
activeOpacity: 0.5,
activeRadius: 10,
offsetAngle: 0,
labelWidth: 15,
border: true,
borderWidth: 3,
borderColor: "#FFFFFF"
}
}
})
const chartData = ref({})
const handleTap = (e) => {
console.log(e)
import ChartCard from '@/components/chartCard.vue';
import { ref, watch } from 'vue';
import { onReady, onShow } from '@dcloudio/uni-app';
import {router} from '@/utils'
let props = defineProps({
riskClassificationData: {
type: Array,
default: () => []
}
});
const opts = ref({
color: ['#EE6666', '#EF893B', '#EFCB3B', '#3B8CEF'],
padding: [5, 5, 5, 5],
enableScroll: false,
fontSize: 9,
legend: {
lineHeight: 20,
fontSize: 10,
itemGap: 20
},
extra: {
pie: {
activeOpacity: 0.5,
activeRadius: 10,
offsetAngle: 0,
labelWidth: 15,
border: true,
borderWidth: 3,
borderColor: '#FFFFFF'
}
}
});
const chartData = ref({});
onMounted(() => {
let res = {
series: [{
data: [{
"name": "重大风险",
"value": 50,
"labelText": "重大风险:50"
}, {
"name": "较大风险",
"value": 30,
"labelText": "较大风险:30"
}, {
"name": "一般风险",
"value": 20,
"labelText": "一般风险:20"
}, {
"name": "低风险",
"value": 8,
"labelText": "低风险:8"
}]
}]
};
chartData.value = JSON.parse(JSON.stringify(res));
})
const handleTap = (e) => {
console.log(e);
};
watch(
() => props.riskClassificationData,
(newVal) => {
if (newVal && newVal.length) {
// 只有当数据存在时才赋值
let res = {
series: [
{
data: newVal
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
}
},
{ deep: true, immediate: true }
);
</script>
<style lang="scss">
.rish-ranking {
width: 100%;
height: 480rpx;
}
.rish-ranking {
width: 100%;
height: 480rpx;
}
</style>
+40 -16
View File
@@ -1,6 +1,6 @@
<template>
<ChartCard margin="0 0 30rpx 0" title="领导级安全检查数">
<view class="big-crisis">
<view class="big-crisis" @click="router.push('/pages/index/leadershipSafety/index')">
<qiun-data-charts type="column" :opts="opts" :canvas2d="false" :chartData="chartData" @getIndex="handleTap" />
</view>
</ChartCard>
@@ -8,12 +8,24 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import { ref, onMounted } from 'vue';
import { ref, watch } from 'vue';
import { router } from '@/utils';
let props = defineProps({
hsseProblemData: {
type: Array,
default: () => []
},
hsseProblemDataNum: {
type: Array,
default: () => []
}
});
const opts = ref({
padding: [15, 15, 0, 5],
enableScroll: false,
legend: {
show: false
show: true,
itemGap:10
},
xAxis: {
disableGrid: true
@@ -30,7 +42,8 @@ const opts = ref({
type: 'group',
width: 20,
activeBgColor: '#000000',
activeBgOpacity: 0.08
activeBgOpacity: 0.08,
seriesGap:3
}
}
});
@@ -40,18 +53,29 @@ const chartData = ref({});
const handleTap = (e) => {
console.log(e);
};
onMounted(() => {
let res = {
categories: ['集团级检查数', '企业及分支机构检查数'],
series: [
{
data: [35, 36]
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
});
watch(
() => props.hsseProblemData,
(newVal) => {
if (newVal && newVal.length) {
// 只有当数据存在时才赋值
let res = {
categories: ['集团级检查数', '企业及分支机构检查数'],
series: [
{
name: '总数',
data: props.hsseProblemDataNum
},
{
name: '未完成',
data: newVal
}
]
};
chartData.value = JSON.parse(JSON.stringify(res));
}
},
{ deep: true, immediate: true }
);
</script>
<style lang="scss">
+42 -36
View File
@@ -1,49 +1,55 @@
<template>
<ChartCard margin="0 0 30rpx 0" title="机具管理" >
<view class="special-equip u-flex u-row-between">
<view class="special-equip-box u-flex u-row-center">
<view class="special-equip-box-icon"> <u-icon name="ziyuanshiyongtongji" color="#e28ea3" custom-prefix="custom-icon" size="60" ></u-icon></view>
<view class="special-equip-box-row u-padding-left-20">
<text class="special-equip-box-row-num">9000个</text>
<text class="special-equip-box-row-lab">机具在用总数</text>
<ChartCard margin="0 0 30rpx 0" title="机具管理">
<view class="special-equip u-flex u-row-between" @click="router.push('/pages/index/equipmentManagement/index')">
<view class="special-equip-box u-flex u-row-center">
<view class="special-equip-box-icon"><u-icon name="ziyuanshiyongtongji" color="#e28ea3" custom-prefix="custom-icon" size="60"></u-icon></view>
<view class="special-equip-box-row u-padding-left-20">
<text class="special-equip-box-row-num">{{ costEquipmentData?.UseEquipmentNum || 0 }}个</text>
<text class="special-equip-box-row-lab">机具在用总数</text>
</view>
</view>
<view class="special-equip-box u-flex u-row-center">
<view class="special-equip-box-icon"><u-icon name="tezhongshebei" color="#3bdae2" custom-prefix="custom-icon" size="60"></u-icon></view>
<view class="special-equip-box-row u-padding-left-20">
<text class="special-equip-box-row-num">{{ costEquipmentData?.SpecialEquipmentNum || 0 }}个</text>
<text class="special-equip-box-row-lab">特总机具在用总数</text>
</view>
</view>
</view>
<view class="special-equip-box u-flex u-row-center">
<view class="special-equip-box-icon"> <u-icon name="tezhongshebei" color="#3bdae2" custom-prefix="custom-icon" size="60" ></u-icon></view>
<view class="special-equip-box-row u-padding-left-20">
<text class="special-equip-box-row-num">9000个</text>
<text class="special-equip-box-row-lab">特总机具在用总数</text>
</view>
</view>
</view>
</ChartCard>
</template>
<script setup>
import ChartCard from '@/components/chartCard.vue'
import ChartCard from '@/components/chartCard.vue';
import { router } from '@/utils';
defineProps({
costEquipmentData: {
type: Object,
default: () => {}
}
});
</script>
<style lang="scss">
.special-equip{
padding: 20rpx 0;
&-box{
&-row{
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
&-lab{
font-size: 24rpx;
color: #999999;
margin-top: 12rpx;
}
&-num{
color: #333333;
font-size: 28rpx;
}
.special-equip {
padding: 20rpx 0;
&-box {
&-row {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
&-lab {
font-size: 24rpx;
color: #999999;
margin-top: 12rpx;
}
&-num {
color: #333333;
font-size: 28rpx;
}
}
}
</style>
}
</style>
+10 -3
View File
@@ -1,10 +1,10 @@
<template>
<ChartCard margin="0 0 30rpx 0" title="作业许可数">
<view class="work u-flex u-row-between">
<view class="work u-flex u-row-between" @click="router.push('/pages/index/workPermit/index')">
<view class="work-box u-flex u-row-center">
<view class="work-box-icon"><u-icon name="xukezheng" color="#8CEEFF" custom-prefix="custom-icon" size="60"></u-icon></view>
<view class="work-box-row u-padding-left-20">
<text class="work-box-row-num">9000个</text>
<text class="work-box-row-num">{{ licensesData?.LicensesNum || 0 }}个</text>
<text class="work-box-row-lab">许可证总数</text>
</view>
</view>
@@ -14,7 +14,7 @@
<u-icon name="guanbi" color="#ee6666" custom-prefix="custom-icon" size="60"></u-icon>
</view>
<view class="work-box-row u-padding-left-20">
<text class="work-box-row-num">9000个</text>
<text class="work-box-row-num">{{ licensesData?.LicensesCloseNum || 0 }}个</text>
<text class="work-box-row-lab">高风险作业许可进行中数量</text>
</view>
</view>
@@ -24,6 +24,13 @@
<script setup>
import ChartCard from '@/components/chartCard.vue';
import {router} from '@/utils'
defineProps({
licensesData: {
type: Object,
default: () => {}
}
});
</script>
<style lang="scss" scoped>