Commit f4354986 authored by 仇晓婷's avatar 仇晓婷

用户中心统计设置ok

parent 6ec99da9
...@@ -363,15 +363,24 @@ export default { ...@@ -363,15 +363,24 @@ export default {
}, },
shoucang() { shoucang() {
if (this.showStar) { if (this.showStar) {
let url = `${systemUrl}/favorite/delete`; this.$Modal.confirm({
let menuId = []; title: "取消收藏",
menuId.push(this.menuId); content: "<p>您确定要取消收藏吗</p>",
this.$api.post(url, menuId).then((r) => { onOk: () => {
if (r.success) { let url = `${systemUrl}/favorite/delete`;
this.showStar = false; let menuId = [];
this.$Message.success("已取消收藏"); menuId.push(this.menuId);
this.content = "收藏"; this.$api.post(url, menuId).then((r) => {
} if (r.success) {
this.showStar = false;
this.$Message.success("已取消收藏");
this.content = "收藏";
}
});
},
onCancel: () => {
// this.$Message.info("Clicked cancel");
},
}); });
} else { } else {
let url = `${systemUrl}/favorite/create`; let url = `${systemUrl}/favorite/create`;
......
<template> <template>
<div class="stachart" :style="setStatistics?{width:'620px',height:'300px'}:{width:'100%',height:'100%'}"> <div class="stachart">
<div :gutter="16" class="row_head" v-if="setStatistics?false:true"> <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" style="width:'100%',height:'100%'" />
</div> </div>
</div> </div>
</template> </template>
...@@ -201,7 +201,7 @@ export default { ...@@ -201,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;
margin: 0 auto; margin: 0 auto;
.echarts-map { .echarts-map {
width: 100%; width: 100%;
height: 280px; height: 280px;
......
...@@ -7,10 +7,8 @@ ...@@ -7,10 +7,8 @@
<span class="ml10">年度计划各产品类型总数量和各状态数量</span> <span class="ml10">年度计划各产品类型总数量和各状态数量</span>
</div> </div>
<div class="echarts-map"> <div class="echarts-map">
<v-chart <!-- :style="setStatistics?{width:'400px',height:'270px'}:{width:'100%',height:'100%'}" -->
:options="braking" <v-chart :options="braking" style="width:'100%',height:'100%'" />
:style="setStatistics?{width:'400px',height:'270px'}:{width:'100%',height:'100%'}"
/>
</div> </div>
</Col> </Col>
<Col :span="16" style="padding-right:20px;"> <Col :span="16" style="padding-right:20px;">
......
<template> <template>
<div <div
class="stachart" class="stachart"
:style="setStatistics?{width:'620px',height:'280px'}:{width:'100%',height:'100%'}" style="width:'100%',height:'100%'"
> >
<div class="row_head" v-if="setStatistics?false:true"> <div class="row_head" v-if="setStatistics?false:true">
<Icon type="ios-images" class="f20" /> <Icon type="ios-images" class="f20" />
......
...@@ -7,10 +7,7 @@ ...@@ -7,10 +7,7 @@
<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 <v-chart :options="braking" style="width:'100%',height:'100%'" />
:options="braking"
:style="setStatistics?{width:'380px',height:'280px'}:{width:'100%',height:'100%'}"
/>
</div> </div>
</Col> </Col>
<Col :span="16"> <Col :span="16">
......
<template> <template>
<div <div
class="stachart" class="stachart"
:style="setStatistics?{width:'620px',height:'280px'}:{width:'100%',height:'100%'}" style="width:'100%',height:'100%'"
> >
<div :gutter="16" class="row_head" v-if="setStatistics?false:true"> <div :gutter="16" class="row_head" v-if="setStatistics?false:true">
<Icon type="ios-images" class="f20" /> <Icon type="ios-images" class="f20" />
......
...@@ -91,49 +91,51 @@ ...@@ -91,49 +91,51 @@
<MaterielChart /> <MaterielChart />
</Col> </Col>
</Row> </Row>
<Modal v-model="modal1" title="统计列表显示设置" width="1200" footer-hide> <Modal v-model="modal1" title="统计列表显示设置" width="900" footer-hide>
<Divider> <Divider>
<span style="color: #2680eb;"> <span style="color: #2680eb;">
生产计划状态监控 生产计划状态监控
<Icon :type="show?'md-eye':'md-eye-off'" @click="clickEye" /> <Icon :type="show?'md-eye':'md-eye-off'" @click="clickEye" />
</span> </span>
</Divider> </Divider>
<StaChart :setStatistics="setStatistics" /> <div class="set-img">
<div class="divider-t"> <img src="@/assets/images/home/user-img1.png" style="width:630px;height:165px" />
<Divider>
<span style="color: #2680eb;">
不合格品审理单统计
<Icon :type="show1?'md-eye':'md-eye-off'" @click="clickEye1" />
</span>
</Divider>
<UnqualifiedEcharts :setStatistics="setStatistics" />
</div> </div>
<div class="divider-t"> <Divider>
<Divider> <span style="color: #2680eb;">
<span style="color: #2680eb;"> 不合格品审理单统计
班组工单监控 <Icon :type="show1?'md-eye':'md-eye-off'" @click="clickEye1" />
<Icon :type="show2?'md-eye':'md-eye-off'" @click="clickEye2" /> </span>
</span> </Divider>
</Divider> <div class="set-img">
<WorkChart :setStatistics="setStatistics" /> <img src="@/assets/images/home/user-img2.png" style="width:630px;height:165px" />
</div> </div>
<div class="divider-t"> <Divider>
<Divider> <span style="color: #2680eb;">
<span style="color: #2680eb;"> 班组工单监控
暂停任务统计 <Icon :type="show2?'md-eye':'md-eye-off'" @click="clickEye2" />
<Icon :type="show3?'md-eye':'md-eye-off'" @click="clickEye3" /> </span>
</span> </Divider>
</Divider> <div class="set-img">
<SuspendChart :setStatistics="setStatistics" /> <img src="@/assets/images/home/user-img3.png" style="width:310px;height:165px" />
</div> </div>
<div class="divider-t"> <Divider>
<Divider> <span style="color: #2680eb;">
<span style="color: #2680eb;"> 暂停任务统计
物料相关统计 <Icon :type="show3?'md-eye':'md-eye-off'" @click="clickEye3" />
<Icon :type="show4?'md-eye':'md-eye-off'" @click="clickEye4" /> </span>
</span> </Divider>
</Divider> <div class="set-img">
<MaterielChart :setStatistics="setStatistics" /> <img src="@/assets/images/home/user-img4.png" style="width:310px;height:165px" />
</div>
<Divider>
<span style="color: #2680eb;">
物料相关统计
<Icon :type="show4?'md-eye':'md-eye-off'" @click="clickEye4" />
</span>
</Divider>
<div class="set-img">
<img src="@/assets/images/home/user-img5.png" style="width:310px;height:165px" />
</div> </div>
</Modal> </Modal>
</div> </div>
...@@ -412,7 +414,9 @@ export default { ...@@ -412,7 +414,9 @@ export default {
margin: 0 auto; margin: 0 auto;
} }
} }
.divider-t { .set-img {
padding-top: 25px; width: 100%;
text-align: center;
margin-bottom: 25px;
} }
</style> </style>
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