Commit 3cb02a8a authored by renjintao's avatar renjintao

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product

parents 8dcaad64 8adc8d73
...@@ -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" />
......
This diff is collapsed.
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