吕天方 1 year ago
commit c782110099

@ -44,11 +44,7 @@
</div> </div>
</div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item>黄金糕</el-dropdown-item> <el-dropdown-item @click.native="logout">退出登录</el-dropdown-item>
<el-dropdown-item>狮子头</el-dropdown-item>
<el-dropdown-item>螺蛳粉</el-dropdown-item>
<el-dropdown-item disabled>双皮奶</el-dropdown-item>
<el-dropdown-item divided>蚵仔煎</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</header> </header>
@ -107,6 +103,20 @@ export default {
getDrop(e) { getDrop(e) {
this.avatarFlag = e; this.avatarFlag = e;
}, },
//退
logout() {
this.$confirm("确定注销并退出系统吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$store.dispatch("LogOut").then(() => {
this.$router.replace("/toLogin").catch(() => {});
});
})
.catch(() => {});
},
}, },
}; };
</script> </script>
@ -199,6 +209,7 @@ export default {
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row-reverse;
align-items: center; align-items: center;
padding-right: 20px;
.avatar { .avatar {
height: 25px; height: 25px;
width: 25px; width: 25px;
@ -223,6 +234,5 @@ export default {
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
margin-right: 20px;
} }
</style> </style>

@ -65,6 +65,7 @@ export default {
{ {
type: "category", type: "category",
data: [ data: [
"高新区",
"工业园区", "工业园区",
"相城区", "相城区",
"姑苏区", "姑苏区",
@ -97,7 +98,7 @@ export default {
}, },
{ {
type: "category", type: "category",
data: [63, 115, 167, 210, 225, 245, 283, 300, 321, 1000], data: [33, 63, 115, 167, 210, 225, 245, 283, 300, 321, 1000],
axisLabel: { axisLabel: {
formatter: function (value, index) { formatter: function (value, index) {
return `{a|${value}}{b|家}`; return `{a|${value}}{b|家}`;
@ -130,7 +131,7 @@ export default {
label: { label: {
show: false, // show: false, //
}, },
data: [63, 115, 167, 210, 225, 245, 283, 300, 321, 1000], data: [63, 115, 167, 210, 225, 245, 283, 300, 321,678, 1000],
barWidth: 12, barWidth: 12,
itemStyle: { itemStyle: {
color: { color: {
@ -158,7 +159,7 @@ export default {
type: "bar", type: "bar",
barWidth: 12, barWidth: 12,
barGap: "-100%", barGap: "-100%",
data: [1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000], data: [1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000,1000],
itemStyle: { itemStyle: {
normal: { normal: {
color: "#EDF0F2", color: "#EDF0F2",

@ -42,10 +42,10 @@ export default {
trigger: "item", trigger: "item",
}, },
legend: { legend: {
width: "40%", width: "45%",
height: "80%",
top: "25%", top: "25%",
right: "10%", right: "10%",
orient: "horizontal",
itemGap: 25, itemGap: 25,
itemWidth: 10, itemWidth: 10,
itemHeight: 10, itemHeight: 10,
@ -57,13 +57,15 @@ export default {
rich: { rich: {
a: { a: {
color: "#525966", color: "#525966",
width: 35, width: 40,
padding: [0, 10, 0, 5], padding: [0, 10, 0, 5],
}, },
b: { b: {
color: "#495B7D", color: "#495B7D",
padding: [0, 5, 0, 10], fontWeight: "bold",
padding: [0, 0, 0, 10],
}, },
}, },
}, },
//waiyuan, //waiyuan,

@ -29,8 +29,8 @@
</template> </template>
<script> <script>
import * as echarts from "echarts"; import * as echarts from "echarts";
import completePlan from "./echarts/completePlan.vue"; import completePlan from "./echarts/completePlan";
import finishRate from "./echarts/finishRate.vue"; import finishRate from "./echarts/finishRate";
export default { export default {
data() { data() {
return { return {

Loading…
Cancel
Save