Commit 88c27492 by liyuhang19990520

大屏

parent 25044b1d
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-07-11 15:04:34 * @Date: 2021-07-11 15:04:34
* @LastEditTime: 2021-07-12 16:29:03 * @LastEditTime: 2021-07-12 17:51:25
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\index\kshData.vue * @FilePath: \founder_vue\src\views\index\kshData.vue
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="name"> <el-form-item prop="name">
<el-input v-model="form1.id" disabled></el-input> <el-input v-model="form1.id"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -69,18 +69,18 @@ ...@@ -69,18 +69,18 @@
</el-col> </el-col>
</el-row> </el-row>
<el-form-item prop="name"> <el-form-item prop="name">
<el-input <el-select
v-model="form1.name" v-model="form1.name"
class="w200" class="w200"
placeholder="案件分类" placeholder="案件分类"
></el-input> ></el-select>
</el-form-item> </el-form-item>
<el-form-item prop="name"> <el-form-item prop="name">
<el-input <el-select
v-model="form1.aa" v-model="form1.aa"
class="w200" class="w200"
placeholder="行政区划" placeholder="行政区划"
></el-input> ></el-select>
</el-form-item> </el-form-item>
<el-form-item prop="name"> <el-form-item prop="name">
<el-button type="primary" class="search">查询</el-button> <el-button type="primary" class="search">查询</el-button>
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-input v-model="form1.aa" class="w200"></el-input> <el-select v-model="form1.aa" class="w200"></el-select>
</el-form-item> </el-form-item>
<el-form-item prop="name"> <el-form-item prop="name">
<el-button type="primary" class="search">查询</el-button> <el-button type="primary" class="search">查询</el-button>
...@@ -750,7 +750,7 @@ export default { ...@@ -750,7 +750,7 @@ export default {
show: false, show: false,
}, },
grid: { grid: {
left: "6%", left: "5%",
right: "10%", right: "10%",
bottom: "3%", bottom: "3%",
containLabel: true, containLabel: true,
...@@ -791,7 +791,7 @@ export default { ...@@ -791,7 +791,7 @@ export default {
type: "bar", type: "bar",
barWidth: 6, // 柱子宽度 barWidth: 6, // 柱子宽度
itemStyle: { itemStyle: {
barBorderRadius: [0,10,10,0], barBorderRadius: [0, 10, 10, 0],
color: (params) => { color: (params) => {
return colorList[params.dataIndex]; return colorList[params.dataIndex];
}, },
...@@ -834,6 +834,7 @@ export default { ...@@ -834,6 +834,7 @@ export default {
itemGap: 17, itemGap: 17,
}, },
tooltip: { tooltip: {
data: ["发案数", "破案数"],
trigger: "axis", trigger: "axis",
show: true, show: true,
axisPointer: { axisPointer: {
...@@ -843,7 +844,7 @@ export default { ...@@ -843,7 +844,7 @@ export default {
}, },
grid: { grid: {
left: "6%", left: "6%",
right: "20%", right: "29%",
bottom: "3%", bottom: "3%",
top: "20%", top: "20%",
containLabel: true, containLabel: true,
...@@ -883,9 +884,9 @@ export default { ...@@ -883,9 +884,9 @@ export default {
name: "发案数", name: "发案数",
type: "bar", type: "bar",
barWidth: 6, // 柱子宽度 barWidth: 6, // 柱子宽度
barGap: "95%", barGap: "130%",
itemStyle: { itemStyle: {
barBorderRadius: [0,10,10,0], barBorderRadius: [0, 10, 10, 0],
color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [ color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [
{ {
offset: 0, offset: 0,
...@@ -899,13 +900,9 @@ export default { ...@@ -899,13 +900,9 @@ export default {
}, },
label: { label: {
show: true, show: true,
position: [280, 3], // 位置 position: "right", // 位置
color: "#B0BAD3", color: "#FDCC00",
fontSize: 12, fontSize: 12,
formatter: function (params) {
console.log(params.dataIndex);
return `${data1[params.dataIndex]}/${data2[params.dataIndex]}`;
}, // 这里是数据展示的时候显示的数据
}, // 柱子上方的数值 }, // 柱子上方的数值
data: data1, data: data1,
}, },
...@@ -913,8 +910,14 @@ export default { ...@@ -913,8 +910,14 @@ export default {
name: "破案数", name: "破案数",
type: "bar", type: "bar",
barWidth: 6, // 柱子宽度 barWidth: 6, // 柱子宽度
label: {
show: true,
position: "right", // 位置
color: "#2AD8FF",
fontSize: 12,
}, // 柱子上方的数值
itemStyle: { itemStyle: {
barBorderRadius: [0,10,10,0], barBorderRadius: [0, 10, 10, 0],
color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [ color: new this.$echarts.graphic.LinearGradient(0, 0, 1, 0, [
{ {
offset: 0, offset: 0,
...@@ -1094,7 +1097,7 @@ export default { ...@@ -1094,7 +1097,7 @@ export default {
type: "bar", type: "bar",
barWidth: 6, // 柱子宽度 barWidth: 6, // 柱子宽度
itemStyle: { itemStyle: {
barBorderRadius: [0,10,10,0], barBorderRadius: [0, 10, 10, 0],
color: (params) => { color: (params) => {
return colorList[params.dataIndex]; return colorList[params.dataIndex];
}, },
...@@ -1340,14 +1343,15 @@ export default { ...@@ -1340,14 +1343,15 @@ export default {
} }
} }
.content /deep/ { .content /deep/ {
.el-input__inner,.el-range-input{ .el-input__inner,
.el-range-input {
color: #fff; color: #fff;
} }
height: calc(100% - 90px); height: calc(100% - 90px);
width: 100%; width: 100%;
.w200 { .w200 {
width: 235px; width: 235px;
> .el-input__inner { .el-input__inner {
width: 235px !important; width: 235px !important;
} }
} }
...@@ -1425,6 +1429,7 @@ export default { ...@@ -1425,6 +1429,7 @@ export default {
} }
} }
.el-form-item__content { .el-form-item__content {
// height: 40px;
margin-top: 20px; margin-top: 20px;
margin-left: 70px !important; margin-left: 70px !important;
position: relative; position: relative;
......
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