Commit 6eae1e16 authored by 仇晓婷's avatar 仇晓婷

用户中心

parent 588e95de
<template> <template>
<div class="stachart"> <div class="stachart" :style="setStatistics?{width:'620px',height:'300px'}:{width:'100%',height:'100%'}">
<div :gutter="16" class="row_head"> <div :gutter="16" class="row_head" v-if="setStatistics?false:true">
<Icon type="ios-images" class="f20" /> <Icon type="ios-images" class="f20" />
<span class="ml10">物料相关统计</span> <span class="ml10">物料相关统计</span>
</div> </div>
...@@ -24,6 +24,9 @@ export default { ...@@ -24,6 +24,9 @@ export default {
components: { components: {
"v-chart": ECharts, "v-chart": ECharts,
}, },
props: {
setStatistics: Boolean,
},
data() { data() {
return { return {
value2: "", value2: "",
...@@ -198,7 +201,7 @@ export default { ...@@ -198,7 +201,7 @@ export default {
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
border-radius: 8px; border-radius: 8px;
padding: 10px; padding: 10px;
width: 100%; margin: 0 auto;
.echarts-map { .echarts-map {
width: 100%; width: 100%;
height: 300px; height: 300px;
......
...@@ -2,16 +2,19 @@ ...@@ -2,16 +2,19 @@
<div class="stachart"> <div class="stachart">
<Row :gutter="16"> <Row :gutter="16">
<Col :span="8" style="padding-right:50px;"> <Col :span="8" style="padding-right:50px;">
<div class="row_head"> <div class="row_head" v-if="setStatistics?false:true">
<Icon type="ios-images" class="f20" /> <Icon type="ios-images" class="f20" />
<span class="ml10">年度计划各产品类型总数量和各状态数量</span> <span class="ml10">年度计划各产品类型总数量和各状态数量</span>
</div> </div>
<div class="echarts-map"> <div class="echarts-map">
<v-chart :options="braking" /> <v-chart
:options="braking"
:style="setStatistics?{width:'350px',height:'300px'}:{width:'100%',height:'100%'}"
/>
</div> </div>
</Col> </Col>
<Col :span="16" style="padding-right:20px;"> <Col :span="16" style="padding-right:20px;">
<Row :gutter="16" class="row_head"> <Row :gutter="16" class="row_head" v-if="setStatistics?false:true">
<Col span="7"> <Col span="7">
<Icon type="ios-images" class="f20" /> <Icon type="ios-images" class="f20" />
<span class="ml10">各车间计划执行状态的详细情况</span> <span class="ml10">各车间计划执行状态的详细情况</span>
...@@ -29,7 +32,10 @@ ...@@ -29,7 +32,10 @@
</Col> </Col>
</Row> </Row>
<div class="echarts-map"> <div class="echarts-map">
<v-chart :options="braking1" /> <v-chart
:options="braking1"
:style="setStatistics?{width:'800px',height:'300px'}:{width:'100%',height:'100%'}"
/>
</div> </div>
</Col> </Col>
</Row> </Row>
...@@ -50,6 +56,9 @@ export default { ...@@ -50,6 +56,9 @@ export default {
components: { components: {
"v-chart": ECharts, "v-chart": ECharts,
}, },
props: {
setStatistics: Boolean,
},
data() { data() {
return { return {
value2: "", value2: "",
...@@ -57,6 +66,7 @@ export default { ...@@ -57,6 +66,7 @@ export default {
braking1: {}, braking1: {},
}; };
}, },
created() {},
mounted() { mounted() {
this.statistics(); this.statistics();
this.statistics1(); this.statistics1();
...@@ -183,7 +193,7 @@ export default { ...@@ -183,7 +193,7 @@ export default {
], ],
type: "bar", type: "bar",
barWidth: 10, //柱图宽度 barWidth: 10, //柱图宽度
barGap: "-20%", //柱图间距 barGap: "10%", //柱图间距
}, },
], ],
}; };
...@@ -313,12 +323,16 @@ export default { ...@@ -313,12 +323,16 @@ export default {
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
border-radius: 8px; border-radius: 8px;
padding: 10px; padding: 10px;
.echarts-map { .echarts-map {
width: 100%; width: 100%;
height: 300px; height: 300px;
.echarts { .echarts {
height: 300px; width: 100%;
height: 100%;
div {
width: 100%;
height: 100%;
}
} }
} }
.row_head { .row_head {
......
<template> <template>
<div class="stachart"> <div class="stachart" :style="setStatistics?{width:'620px',height:'300px'}:{width:'100%',height:'100%'}">
<div class="row_head"> <div class="row_head" v-if="setStatistics?false:true">
<Icon type="ios-images" class="f20" /> <Icon type="ios-images" class="f20" />
<span class="ml10">暂停任务统计</span> <span class="ml10">暂停任务统计</span>
</div> </div>
<div class="echarts-map"> <div class="echarts-map">
<v-chart :options="braking" /> <v-chart :options="braking" />
</div> </div>
</div> </div>
</template> </template>
...@@ -24,6 +24,9 @@ export default { ...@@ -24,6 +24,9 @@ export default {
components: { components: {
"v-chart": ECharts, "v-chart": ECharts,
}, },
props: {
setStatistics: Boolean,
},
data() { data() {
return { return {
value2: "", value2: "",
...@@ -190,7 +193,8 @@ export default { ...@@ -190,7 +193,8 @@ export default {
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
border-radius: 8px; border-radius: 8px;
padding: 10px; padding: 10px;
width: 100%; margin: 0 auto;
.echarts-map { .echarts-map {
width: 100%; width: 100%;
height: 300px; height: 300px;
......
<template> <template>
<div class="stachart"> <div class="stachart">
<div :gutter="16" class="row_head"> <div :gutter="16" class="row_head" v-if="setStatistics?false:true">
<Icon type="ios-images" class="f20" /> <Icon type="ios-images" class="f20" />
<span class="ml10">不合格品审理单统计</span> <span class="ml10">不合格品审理单统计</span>
</div> </div>
<Row :gutter="16"> <Row :gutter="16">
<Col :span="8" style="padding-right:50px;"> <Col :span="8" style="padding-right:50px;">
<div class="echarts-map"> <div class="echarts-map">
<v-chart :options="braking" /> <v-chart
:options="braking"
:style="setStatistics?{width:'400px',height:'300px'}:{width:'100%',height:'100%'}"
/>
</div> </div>
</Col> </Col>
<Col :span="16"> <Col :span="16">
...@@ -33,6 +36,9 @@ export default { ...@@ -33,6 +36,9 @@ export default {
components: { components: {
"v-chart": ECharts, "v-chart": ECharts,
}, },
props: {
setStatistics: Boolean,
},
data() { data() {
return { return {
value2: "", value2: "",
...@@ -111,7 +117,7 @@ export default { ...@@ -111,7 +117,7 @@ export default {
}, },
legend: { legend: {
orient: "vertical", orient: "vertical",
right: 10, right: 0,
bottom: 10, bottom: 10,
data: ["一车间", "三车间", "五车间", "六车间"], data: ["一车间", "三车间", "五车间", "六车间"],
}, },
...@@ -194,8 +200,8 @@ export default { ...@@ -194,8 +200,8 @@ export default {
text-align: right; text-align: right;
} }
} }
.table-b{ .table-b {
margin-top:10px; margin-top: 10px;
} }
} }
</style> </style>
\ No newline at end of file
<template> <template>
<div class="stachart"> <div
<div :gutter="16" class="row_head"> class="stachart"
:style="setStatistics?{width:'620px',height:'300px'}:{width:'100%',height:'100%'}"
>
<div :gutter="16" class="row_head" v-if="setStatistics?false:true">
<Icon type="ios-images" class="f20" /> <Icon type="ios-images" class="f20" />
<span class="ml10">工单任务状态分布</span> <span class="ml10">工单任务状态分布</span>
</div> </div>
<div class="echarts-map"> <div class="echarts-map">
<v-chart :options="braking"/> <v-chart :options="braking" />
</div> </div>
</div> </div>
</template> </template>
...@@ -24,6 +27,9 @@ export default { ...@@ -24,6 +27,9 @@ export default {
components: { components: {
"v-chart": ECharts, "v-chart": ECharts,
}, },
props: {
setStatistics: Boolean,
},
data() { data() {
return { return {
value2: "", value2: "",
...@@ -292,10 +298,13 @@ export default { ...@@ -292,10 +298,13 @@ export default {
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
border-radius: 8px; border-radius: 8px;
padding: 10px; padding: 10px;
width: 100%;
margin: 0 auto;
.echarts-map { .echarts-map {
width: 100%; width: 100%;
height: 300px; height: 300px;
// margin: 0 auto;
// text-align: center;
.echarts { .echarts {
height: 280px; height: 280px;
} }
......
...@@ -55,49 +55,74 @@ ...@@ -55,49 +55,74 @@
<UnreadMessage /> <UnreadMessage />
</Col> </Col>
</Row> </Row>
<div class="table title-r"> <div class="table title-r" v-if="show">
<a class="a-r" @click="set"> <a class="a-r" @click="set(show)">
<Icon type="md-settings" class="f20" /> <Icon type="md-settings" class="f20" />
</a> </a>
<StaChart /> <StaChart />
</div> </div>
<div class="table title-r"> <div class="table title-r" v-if="show1">
<a class="a-r" @click="set"> <a class="a-r" @click="set">
<Icon type="md-settings" class="f20" /> <Icon type="md-settings" class="f20" />
</a> </a>
<UnqualifiedEcharts /> <UnqualifiedEcharts />
</div> </div>
<Row class="table title-r" :gutter="16"> <Row class="table title-r" :gutter="16">
<Col :span="8" class="title-r"> <Col :span="8" class="title-r" v-if="show2">
<a class="a-r" @click="set"> <a class="a-r" @click="set(show2)">
<Icon type="md-settings" class="f20" /> <Icon type="md-settings" class="f20" />
</a> </a>
<WorkChart /> <WorkChart />
</Col> </Col>
<Col :span="8" class="title-r"> <Col :span="8" class="title-r" v-if="show3">
<a class="a-r" @click="set"> <a class="a-r" @click="set">
<Icon type="md-settings" class="f20" /> <Icon type="md-settings" class="f20" />
</a> </a>
<SuspendChart /> <SuspendChart />
</Col> </Col>
<Col :span="8" class="title-r"> <Col :span="8" class="title-r" v-if="show4">
<a class="a-r" @click="set"> <a class="a-r" @click="set">
<Icon type="md-settings" class="f20" /> <Icon type="md-settings" class="f20" />
</a> </a>
<MaterielChart /> <MaterielChart />
</Col> </Col>
</Row> </Row>
<Modal v-model="modal1" title="统计列表显示设置" width="1300" footer-hide> <Modal v-model="modal1" title="统计列表显示设置" width="1300" footer-hide>
<Divider>生产计划状态监控</Divider> <Divider>
<StaChart /> <span style="color: #2680eb;">
<Divider>不合格品审理单统计</Divider> 生产计划状态监控
<UnqualifiedEcharts /> <Icon :type="show?'md-eye':'md-eye-off'" @click="clickEye" />
<Divider>班组工单监控</Divider> </span>
<WorkChart /> </Divider>
<Divider>暂停任务统计</Divider> <StaChart :setStatistics="setStatistics" />
<SuspendChart /> <Divider>
<Divider>物料相关统计</Divider> <span style="color: #2680eb;">
<MaterielChart /> 不合格品审理单统计
<Icon :type="show1?'md-eye':'md-eye-off'" @click="clickEye1" />
</span>
</Divider>
<UnqualifiedEcharts :setStatistics="setStatistics" />
<Divider>
<span style="color: #2680eb;">
班组工单监控
<Icon :type="show2?'md-eye':'md-eye-off'" @click="clickEye2" />
</span>
</Divider>
<WorkChart :setStatistics="setStatistics" />
<Divider>
<span style="color: #2680eb;">
暂停任务统计
<Icon :type="show3?'md-eye':'md-eye-off'" @click="clickEye3" />
</span>
</Divider>
<SuspendChart :setStatistics="setStatistics" />
<Divider>
<span style="color: #2680eb;">
物料相关统计
<Icon :type="show4?'md-eye':'md-eye-off'" @click="clickEye4" />
</span>
</Divider>
<MaterielChart :setStatistics="setStatistics" />
</Modal> </Modal>
</div> </div>
</template> </template>
...@@ -131,6 +156,13 @@ export default { ...@@ -131,6 +156,13 @@ export default {
userData: {}, userData: {},
avatorPath: "", avatorPath: "",
imgPath: true, imgPath: true,
setStatistics: true,
show: true,
show1: false,
show2: false,
show3: false,
show4: false,
}; };
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
...@@ -189,13 +221,23 @@ export default { ...@@ -189,13 +221,23 @@ export default {
}, },
set() { set() {
this.modal1 = true; this.modal1 = true;
this.setStatistics = true;
},
clickEye() {
this.show = !this.show;
},
clickEye1() {
this.show1 = !this.show1;
},
clickEye2() {
this.show2 = !this.show2;
},
clickEye3() {
this.show3 = !this.show3;
},
clickEye4() {
this.show4 = !this.show4;
}, },
// ok() {
// this.$Message.info("Clicked ok");
// },
// cancel() {
// this.$Message.info("Clicked cancel");
// },
}, },
}; };
</script> </script>
...@@ -330,12 +372,17 @@ export default { ...@@ -330,12 +372,17 @@ export default {
} }
.title-r { .title-r {
position: relative; position: relative;
// .echart-c {
// width: 600px;
// margin: auto;
// }
} }
.a-r { .a-r {
position: absolute; position: absolute;
top: 15px; top: 15px;
right: 15px; right: 15px;
z-index: 9999; z-index: 100;
} }
.set-p { .set-p {
width: 100%; width: 100%;
...@@ -343,4 +390,4 @@ export default { ...@@ -343,4 +390,4 @@ export default {
// text-align: center; // text-align: center;
} }
} }
</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