Commit e51bf68e authored by renjintao's avatar renjintao

demo02/demo06

parent 73b77d8a
...@@ -351,6 +351,9 @@ div::-webkit-scrollbar-corner { ...@@ -351,6 +351,9 @@ div::-webkit-scrollbar-corner {
.pt15 { .pt15 {
padding-top: 15px padding-top: 15px
} }
.pr30{
padding-right: 30px;
}
.bnone { .bnone {
border: none; border: none;
......
<template>
<div id="myChart" class="echarts_box"></div>
</template>
<script>
export default {
name: "echart1",
data() {
return {
};
},
methods: {
loadEchart() {
// 基于准备好的dom,初始化echarts实例
var myChart = this.$echarts.init(document.getElementById("myChart"));
var option = {
tooltip: {
trigger: "item",
formatter: "{a} <br/>{b} : {c} ({d}%)"
},
color: ["#d63834", "#e06717", "#d18f23", "#006ed2"],
series: [
{
name: "实时故障",
type: "pie",
radius: [20, 50],
center: ["50%", "50%"],
roseType: "radius",
data: [
{ value: 12, name: "一级故障" },
{ value: 10, name: "二级故障" },
{ value: 20, name: "三级故障" },
{ value: 8, name: "其他故障" }
]
}
]
};
// 绘制图表
myChart.setOption(option);
}
},
mounted() {
this.loadEchart();
}
};
</script>
<style scoped>
.echarts_box {
width: 260px;
height: 280px;
margin: 0 auto;
}
</style>
\ No newline at end of file
<template>
<div class="tc" >
<span class="tc fwBold">{{chartData.title}}</span>
<div id="myChart5" class="echarts_box2"></div>
</div>
</template>
<script>
export default {
name: "echart2",
data() {
return {
chartData: {}
};
},
props: {
row: {
type: Object,
default: () => {
return null;
}
}
},
methods: {
loadEchart() {
// 基于准备好的dom,初始化echarts实例
var myChart = this.$echarts.init(document.getElementById("myChart5"));
var option = {
title: {
text: this.chartData.num1,
left: "center",
top: "center",
textStyle: {
color: "#0091ed",
fontSize: 20,
fontStyle: "normal",
fontWeight: "bold"
}
},
color: ["#0091ed", "#becad8"],
series: [
{
name: "访问来源",
type: "pie",
radius: ["50%", "60%"],
avoidLabelOverlap: false,
label: {
show: false
},
emphasis: {
label: {
show: false,
fontSize: "30",
fontWeight: "bold"
}
},
labelLine: {
show: false
},
data: [
{ value: this.chartData.num1, name: "" },
{ value: this.chartData.num2, name: "" }
]
}
]
};
// 绘制图表
myChart.setOption(option);
}
},
mounted() {},
watch: {
row(v) {
if (v != null) {
this.chartData = this.$u.clone(this.row);
this.loadEchart();
}
}
}
};
</script>
<style scoped>
.echarts_box2 {
width: 110px;
height: 110px;
margin: 0 auto;
}
</style>
\ No newline at end of file
<template>
<div class="tc">
<span class="tc fwBold">{{chartData.title}}</span>
<div id="myChart6" class="echarts_box2"></div>
</div>
</template>
<script>
export default {
name: "echart2",
data() {
return {
chartData: {}
};
},
props: {
row: {
type: Object,
default: () => {
return null;
}
}
},
methods: {
loadEchart() {
// 基于准备好的dom,初始化echarts实例
var myChart = this.$echarts.init(document.getElementById("myChart6"));
var option = {
title: {
text: this.chartData.num1,
left: "center",
top: "center",
textStyle: {
color: "#0091ed",
fontSize: 20,
fontStyle: "normal",
fontWeight: "bold"
}
},
color: ["#0091ed", "#becad8"],
series: [
{
name: "访问来源",
type: "pie",
radius: ["50%", "60%"],
avoidLabelOverlap: false,
label: {
show: false
},
emphasis: {
label: {
show: false,
fontSize: "30",
fontWeight: "bold"
}
},
labelLine: {
show: false
},
data: [
{ value: this.chartData.num1, name: "" },
{ value: this.chartData.num2, name: "" }
]
}
]
};
// 绘制图表
myChart.setOption(option);
}
},
mounted() {},
watch: {
row(v) {
if (v != null) {
this.chartData = this.$u.clone(this.row);
this.loadEchart();
}
}
}
};
</script>
<style scoped>
.echarts_box2 {
width: 110px;
height: 110px;
margin: 0 auto;
}
</style>
\ No newline at end of file
<template>
<div class="tc">
<span class="tc fwBold">{{chartData.title}}</span>
<div id="myChart7" class="echarts_box2"></div>
</div>
</template>
<script>
export default {
name: "echart2b",
data() {
return {
chartData: {}
};
},
props: {
row: {
type: Object,
default: () => {
return null;
}
}
},
methods: {
loadEchart() {
// 基于准备好的dom,初始化echarts实例
var myChart = this.$echarts.init(document.getElementById("myChart7"));
var option = {
title: {
text: this.chartData.num1,
left: "center",
top: "center",
textStyle: {
color: "#0091ed",
fontSize: 20,
fontStyle: "normal",
fontWeight: "bold"
}
},
color: ["#0091ed", "#becad8"],
series: [
{
name: "访问来源",
type: "pie",
radius: ["50%", "60%"],
avoidLabelOverlap: false,
label: {
show: false
},
emphasis: {
label: {
show: false,
fontSize: "30",
fontWeight: "bold"
}
},
labelLine: {
show: false
},
data: [
{ value: this.chartData.num1, name: "" },
{ value: this.chartData.num2, name: "" }
]
}
]
};
// 绘制图表
myChart.setOption(option);
}
},
mounted() {},
watch: {
row(v) {
if (v != null) {
this.chartData = this.$u.clone(this.row);
this.loadEchart();
}
}
}
};
</script>
<style scoped>
.echarts_box2 {
width: 110px;
height: 110px;
margin: 0 auto;
}
</style>
\ No newline at end of file
<template>
<div class="tc">
<span class="tc fwBold">{{chartData.title}}</span>
<div id="myChart8" class="echarts_box2"></div>
</div>
</template>
<script>
export default {
name: "echart2",
data() {
return {
chartData: {}
};
},
props: {
row: {
type: Object,
default: () => {
return null;
}
}
},
methods: {
loadEchart() {
// 基于准备好的dom,初始化echarts实例
var myChart = this.$echarts.init(document.getElementById("myChart8"));
var option = {
title: {
text: this.chartData.num1,
left: "center",
top: "center",
textStyle: {
color: "#0091ed",
fontSize: 20,
fontStyle: "normal",
fontWeight: "bold"
}
},
color: ["#0091ed", "#becad8"],
series: [
{
name: "访问来源",
type: "pie",
radius: ["50%", "60%"],
avoidLabelOverlap: false,
label: {
show: false
},
emphasis: {
label: {
show: false,
fontSize: "30",
fontWeight: "bold"
}
},
labelLine: {
show: false
},
data: [
{ value: this.chartData.num1, name: "" },
{ value: this.chartData.num2, name: "" }
]
}
]
};
// 绘制图表
myChart.setOption(option);
}
},
mounted() {},
watch: {
row(v) {
if (v != null) {
this.chartData = this.$u.clone(this.row);
this.loadEchart();
}
}
}
};
</script>
<style scoped>
.echarts_box2 {
width: 110px;
height: 110px;
margin: 0 auto;
}
</style>
\ No newline at end of file
<template>
<div id="myChart3" class="echarts_box3"></div>
</template>
<script>
export default {
name: "echart3",
data() {
return {};
},
methods: {
loadEchart() {
// 基于准备好的dom,初始化echarts实例
var myChart = this.$echarts.init(document.getElementById("myChart3"));
var option = {
tooltip: {
trigger: "item",
formatter: "{a} <br/>{b} : {c} ({d}%)"
},
color: ["#006fd6", "#cf8d22", "#009c96"],
series: [
{
name: "任务执行状态",
type: "pie",
radius: [10, 50],
center: ["50%", "50%"],
roseType: "radius",
data: [
{ value: 65, name: "完工" },
{ value: 45, name: "未开工" },
{ value: 100, name: "进行中" }
]
}
]
};
// 绘制图表
myChart.setOption(option);
}
},
mounted() {
this.loadEchart();
}
};
</script>
<style scoped>
.echarts_box3 {
width: 260px;
height: 280px;
margin: 0 auto;
}
</style>
\ No newline at end of file
<template> <template>
<div style="width:1850px;margin:0 auto;"> <div style="width:1860px;margin:0 auto;" class="divmain">
<Row :gutter="24" index> <Row :gutter="24" index>
<Col span="4">111</Col> <!--left-->
<Col span="16"> <Col span="5">
<Card class="mt10" style="width:100%; box-shadow: 0 0 10px #ccc">
<p slot="title">实时行车异常列车</p>
<a href="#" slot="extra">
<Icon type="ios-more" size="28" color="#888" />
</a>
<List :split="false">
<ListItem class="listBg">
<ListItemMeta title="坐便器不可用">
<template slot="description">
<li class="fl">XX列08车</li>
<li class="fr">07-22 14:26:36</li>
</template>
</ListItemMeta>
</ListItem>
<ListItem class="listBg">
<ListItemMeta title="换弓">
<template slot="description">
<li class="fl">XX列08车</li>
<li class="fr">07-22 14:26:36</li>
</template>
</ListItemMeta>
</ListItem>
<ListItem class="listBg">
<ListItemMeta title="牵引">
<template slot="description">
<li class="fl">XX列08车</li>
<li class="fr">07-22 14:26:36</li>
</template>
</ListItemMeta>
</ListItem>
<ListItem class="listBg">
<ListItemMeta title="牵引有效率丢失">
<template slot="description">
<li class="fl">XX列08车</li>
<li class="fr">07-22 14:26:36</li>
</template>
</ListItemMeta>
</ListItem>
</List>
</Card>
<Card class="mt30" style="width:100%; box-shadow: 0 0 10px #ccc;">
<p slot="title">实时故障</p>
<a href="#" slot="extra">
<Icon type="ios-more" size="28" color="#888" />
</a>
<div style="background:#d2e6fa;border:#1c80e6 solid 1px;padding:4px;text-align:center;">
涉及列车:
<span class="f18 fwBold">2</span>个路局
<span class="f18 fwBold">4</span>个车型的
<span class="f18 fwBold">9</span>列车
</div>
<List>
<ListItem>
<ListItemMeta>
<template slot="title">
<Icon type="ios-square" size="18" color="#ff7976" />
<span style="color:#ff7976" class="f18">10</span>列:XX局
<span class="f18 fwBold">5</span>个,XX局
<span class="f18 fwBold">5</span>
</template>
</ListItemMeta>
</ListItem>
<ListItem>
<ListItemMeta>
<template slot="title">
<Icon type="ios-square" size="18" color="#ff7976" />
<span style="color:#ff7976" class="f18">10</span>列:XX局
<span class="f18 fwBold">5</span>个,XX局
<span class="f18 fwBold">5</span>
</template>
</ListItemMeta>
</ListItem>
<ListItem>
<ListItemMeta>
<template slot="title">
<Icon type="ios-square" size="18" color="#ffa126" />
<span style="color:#ffa126" class="f18">10</span>列:XX局
<span class="f18 fwBold">5</span>个,XX局
<span class="f18 fwBold">5</span>
</template>
</ListItemMeta>
</ListItem>
<ListItem>
<ListItemMeta>
<template slot="title">
<Icon type="ios-square" size="18" color="#1c80e6" />
<span style="color:#1c80e6" class="f18">10</span>列:XX局
<span class="f18 fwBold">5</span>个,XX局
<span class="f18 fwBold">5</span>
</template>
</ListItemMeta>
</ListItem>
</List>
<div>
<Echart1 />
</div>
</Card>
</Col>
<Col span="15">
<Row class="mt20"> <Row class="mt20">
<Col span="12" class="tc"> <Col span="12" class="tc">
今日在修: 今日在修:
...@@ -23,47 +122,177 @@ ...@@ -23,47 +122,177 @@
</Row> </Row>
<!--1--> <!--1-->
<Row class="mt50"> <Row class="mt50">
<Col span="12" style="height:150px;"> <Col span="24" style="height:150px;" class="pl30">
<Train :row="dataGreen1"></Train> <Train :row="dataGreen1" @on-ok="drawerRight = true" class="fl"></Train>
</Col> <Train :row="dataGreen2" @on-ok="drawerRight = true" class="fl"></Train>
<Col span="12">
<Train :row="dataGreen2"></Train>
</Col> </Col>
</Row> </Row>
<!--2/3--> <!--2/3-->
<Row class="pl30">
<Row> <Col span="24" style="height:150px">
<Col span="12" style="height:150px"> <Train :row="dataGreen1"></Train>
<Train :row="dataGreen2"></Train>
</Col> </Col>
<Col span="12">&nbsp;</Col>
</Row> </Row>
<Row> <Row class="pl30">
<Col span="12" style="height:150px"> <Col span="24" style="height:150px">
<Train :row="dataGreen2"></Train> <Train :row="dataGreen1"></Train>
</Col> </Col>
<Col span="12">&nbsp;</Col>
</Row> </Row>
<!--4/5--> <!--4/5-->
<Row> <Row class="pl30">
<Col span="12" style="height:150px"> <Col span="24" style="height:150px">
<Train :row="dataGray"></Train> <Train :row="dataGray1" class="fl"></Train>
<Train :row="dataGray2" class="fl"></Train>
</Col> </Col>
<Col span="12"> </Row>
<Train :row="dataGray"></Train> <Row class="pl30">
<Col span="24" style="height:150px">
<Train :row="dataGray1"></Train>
</Col> </Col>
</Row> </Row>
<Row class="pl30 pr30">
<Col span="24">
<Card style="width:100%" shadow class="mt30">
<p slot="title">轨侧设备数据监测</p>
<Row :gutter="24" index>
<Col span="2" class="tr">运行</Col>
<Col span="7">
<Progress :percent="100" :stroke-width="5" stroke-color="#2d8cf0">
<span style="color:#666">40台</span>
</Progress>
</Col>
<Col span="2" class="tr">未开机</Col>
<Col span="6">
<Progress :percent="100" :stroke-width="5" stroke-color="#ccc">
<span style="color:#666">32台</span>
</Progress>
</Col>
<Col span="2" class="tr">报警</Col>
<Col span="4">
<Progress :percent="100" :stroke-width="5" stroke-color="#ff0000">
<span style="color:#666">7台</span>
</Progress>
</Col>
</Row>
</Card>
</Col>
</Row>
</Col>
<Col span="4" class="colmain">
<Card class="mt30" style="width:100%; box-shadow: 0 0 10px #ccc;">
<p slot="title">优秀员工</p>
<Row class="mb30">
<Col span="8" class="tc">
<div @mouseover="showInfo1" @mouseout="hideInfo1" class="hoverImg">
<Avatar src="/images/userIco.png" size="60" :shape="shaps1" />
<p class="tc mt10">工时之星</p>
</div>
</Col>
<Col span="8" class="tc">
<div @mouseover="showInfo2" @mouseout="hideInfo2" class="hoverImg">
<Avatar src="/images/user1.jpg" size="60" :shape="shaps2" />
<p class="tc mt10">质量之星</p>
</div>
</Col>
<Col span="8" class="tc">
<div @mouseover="showInfo3" @mouseout="hideInfo3" class="hoverImg">
<Avatar src="/images/user2.jpg" size="60" :shape="shaps3" />
<p class="tc mt10">效率之星</p>
</div>
</Col>
</Row>
</Card>
<div v-show="avatarInfo1" class="divInfo">
<p>姓名:李志锋</p>
<p>班组:机务</p>
<p>上榜理由:</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;上月工时排名第一。李志锋同志在上月工作中,不辞辛劳,任劳任怨,共完成工时298个工时,大大提高了班组的整体工作进度。
为表彰先进,特评李志锋同志为2020年度第6期的“工时之星”光荣称号,以兹鼓励。
</p>
<p class="tc">
<img src="/images/honor1.png" />
</p>
</div>
<div v-show="avatarInfo2" class="divInfo">
<p>姓名:刘菲菲</p>
<p>班组:乘务</p>
<p>上榜理由:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;上月质量评比排名第一。刘菲菲同志在上月工作中,精益求精,认真细致,好评率100%,大大提高了乘务组的整体工作形象。</p>
<p class="tc">
<img src="/images/honor2.png" />
</p>
</div>
<div v-show="avatarInfo3" class="divInfo">
<p>姓名:黄飞</p>
<p>班组:维修</p>
<p>上榜理由:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;上月任务完成排名第一。黄飞同志在上月工作中,敏捷高效,勇猛精进,多项任务用时全组最少,大大提高了班组的整体工作效率,为优化工艺提供了可靠的参考。</p>
<p class="tc">
<img src="/images/honor3.png" />
</p>
</div>
<Card class="mt30" style="width:100%; box-shadow: 0 0 10px #ccc;">
<p slot="title">物料库房相关统计</p>
<div>
<Row> <Row>
<Col span="12" style="height:150px"> <Col span="12">
<Train :row="dataGray"></Train> <Echart2 :row="echart2data1" />
</Col>
<Col span="12">
<Echart2a :row="echart2data2" />
</Col>
<Col span="12">
<Echart2b :row="echart2data3" />
</Col>
<Col span="12">
<Echart2c :row="echart2data4" />
</Col> </Col>
</Row> </Row>
</div>
</Card>
<Card class="mt30" style="width:100%; box-shadow: 0 0 10px #ccc;">
<p slot="title">任务执行状态统计</p>
<div>
<Echart3 />
</div>
</Card>
<Drawer title="机车信息" v-model="drawerRight" width="330" :mask="false">
<List :split="false">
<ListItem>车号:CR200J3004-3002</ListItem>
<ListItem>接车时间:20200714</ListItem>
<ListItem>计划出库时间:20200715</ListItem>
<ListItem>任务类型:D1修</ListItem>
<ListItem>作业进度:</ListItem>
<ListItem></ListItem>
<ListItem>接触网供电作业</ListItem>
<ListItem>
<Progress :percent="100" :stroke-width="5" stroke-color="#2d8cf0" />
</ListItem>
<ListItem>设施设备检查、试风实验、塞拉门实验</ListItem>
<ListItem>
<Progress :percent="80" :stroke-width="5" stroke-color="#2d8cf0" />
</ListItem>
<ListItem>动车组D1修有电作业</ListItem>
<ListItem>
<Progress :percent="75" :stroke-width="5" stroke-color="#2d8cf0" />
</ListItem>
<ListItem>电务通讯设备状态有电检查</ListItem>
<ListItem>
<Progress :percent="40" :stroke-width="5" stroke-color="#2d8cf0" />
</ListItem>
<ListItem>车厢内部保洁整备</ListItem>
<ListItem>
<Progress :percent="50" :stroke-width="5" stroke-color="#2d8cf0" />
</ListItem>
<ListItem>出库联检、机务调车出库</ListItem>
<ListItem>
<Progress :percent="0" :stroke-width="5" stroke-color="#2d8cf0" />
</ListItem>
</List>
</Drawer>
</Col> </Col>
<Col span="4">3333</Col>
</Row> </Row>
<Row> <Row>
<Col span="24" class="mb50">&nbsp;</Col> <Col span="24" class="mb50">&nbsp;</Col>
</Row> </Row>
...@@ -71,16 +300,39 @@ ...@@ -71,16 +300,39 @@
</template> </template>
<script> <script>
import Train from "./train"; import Train from "./train";
import Echart1 from "./echart1";
import Echart2 from "./echart2";
import Echart2a from "./echart2a";
import Echart2b from "./echart2b";
import Echart2c from "./echart2c";
import Echart3 from "./echart3";
export default { export default {
components: { components: {
Train Train,
Echart1,
Echart2,
Echart2a,
Echart2b,
Echart2c,
Echart3
}, },
data() { data() {
return { return {
dataGreen1: {}, dataGreen1: {},
dataGreen2: {}, dataGreen2: {},
dataBlue: {}, dataBlue: {},
dataGray: {} dataGray: {},
echart2data1: {},
echart2data2: {},
echart2data3: {},
echart2data4: {},
drawerRight: false,
avatarInfo1: false,
avatarInfo2: false,
avatarInfo3: false,
shaps1: "circle",
shaps2: "circle",
shaps3: "circle"
}; };
}, },
mounted() { mounted() {
...@@ -111,7 +363,7 @@ export default { ...@@ -111,7 +363,7 @@ export default {
{ position: "车内保洁组", name: "张伟" } { position: "车内保洁组", name: "张伟" }
] ]
}), }),
(this.dataGray = { (this.dataGray1 = {
title: "无电", title: "无电",
color: "gray", color: "gray",
colorTitle: "#888", colorTitle: "#888",
...@@ -124,9 +376,117 @@ export default { ...@@ -124,9 +376,117 @@ export default {
{ position: "主机厂", name: "张伟" }, { position: "主机厂", name: "张伟" },
{ position: "车辆", name: "黄飞" } { position: "车辆", name: "黄飞" }
] ]
}),
(this.dataGray2 = {
title: "",
color: "gray",
colorTitle: "#888",
num: [2, 2, 3, 2, 2, 3, 3],
numFront: 1,
numEnd: 3,
users: [
{ position: "机务", name: "李志峰" },
{ position: "整备队", name: "张伟" },
{ position: "主机厂", name: "张伟" },
{ position: "车辆", name: "黄飞" }
]
}),
(this.echart2data1 = {
id: 5,
title: "库存预警",
num1: 60,
num2: 200
}),
(this.echart2data2 = {
id: 6,
title: "来料复验",
num1: 100,
num2: 200
}),
(this.echart2data3 = {
id: 7,
title: "缺料呼叫",
num1: 148,
num2: 200
}),
(this.echart2data4 = {
id: 8,
title: "待配套数量",
num1: 10,
num2: 200
}); });
},
methods: {
showInfo1() {
this.shaps1 = "square";
this.shaps2 = "circle";
this.shaps3 = "circle";
this.avatarInfo1 = true;
this.avatarInfo2 = false;
this.avatarInfo3 = false;
},
hideInfo1() {
this.shaps1 = "circle";
this.avatarInfo1 = false;
},
showInfo2() {
this.shaps2 = "square";
this.shaps1 = "circle";
this.shaps3 = "circle";
this.avatarInfo2 = true;
this.avatarInfo1 = false;
this.avatarInfo3 = false;
},
hideInfo2() {
this.shaps2 = "circle";
this.avatarInfo2 = false;
},
showInfo3() {
this.shaps3 = "square";
this.shaps2 = "circle";
this.shaps1 = "circle";
this.avatarInfo3 = true;
this.avatarInfo2 = false;
this.avatarInfo1 = false;
},
hideInfo3() {
this.shaps3 = "circle";
this.avatarInfo3 = false;
},
hideInfo() {
this.avatarInfo1 = false;
this.avatarInfo2 = false;
this.avatarInfo3 = false;
}
} }
}; };
</script> </script>
<style lang="less"> <style lang="less" scope>
.ivu-drawer-right {
margin-top: 118px;
}
.ivu-drawer-header {
background: #f5f6fa;
}
.divInfo {
background: #fff;
width: 290px;
height: 375px;
position: absolute;
right: 12px;
z-index: 999;
box-shadow: 0 0 10px #ccc;
padding: 0 20px;
}
.divInfo p {
line-height: 26px;
}
.listBg {
background: url(/images/bgRight.png) right top no-repeat;
padding: 5px 10px;
margin-bottom: 10px;
}
.hoverImg :hover {
background: #ccc;
}
</style> </style>
\ No newline at end of file
<template> <template>
<div> <div style="width:540px">
<Row> <Row>
<Col :span="24"> <Col span="24">
<div class="trainTitle"> <div class="trainTitle">
<ul> <ul>
<li v-width="60"> <li style="width:auto;line-height:45px;font-size:18px;">
&nbsp; <span :style="'color:'+this.trainData.colorTitle">{{trainData.title}}</span>
</li> </li>
<li class="tc" v-for="(item1,index1) in this.trainData.users" :key="index1" v-width="liWidth"> <li class="tc" v-for="(item1,index1) in this.trainData.users" :key="index1" v-width="liWidth">
{{item1.position}} {{item1.position}}
...@@ -15,12 +15,9 @@ ...@@ -15,12 +15,9 @@
</ul> </ul>
</div> </div>
</Col> </Col>
<Col :span="24"> <Col span="24">
<div class="train"> <div class="train" @click="clickTrain">
<ul> <ul>
<li style="width:auto;line-height:45px;font-size:18px;">
<span :style="'color:'+this.trainData.colorTitle">{{trainData.title}}</span>
</li>
<li> <li>
<img :src="'/imgshow/s-l-'+this.trainData.color+'.png'" /> <img :src="'/imgshow/s-l-'+this.trainData.color+'.png'" />
<p class="tc"> <p class="tc">
...@@ -62,7 +59,7 @@ export default { ...@@ -62,7 +59,7 @@ export default {
data() { data() {
return { return {
trainData: null, trainData: null,
liWidth: 120 liWidth: 10
}; };
}, },
props: { props: {
...@@ -75,13 +72,19 @@ export default { ...@@ -75,13 +72,19 @@ export default {
}, },
mounted() { mounted() {
},
methods:{
clickTrain()
{
this.$emit("on-ok");
}
}, },
watch: { watch: {
row(v) { row(v) {
if (v != null) { if (v != null) {
this.trainData=this.$u.clone(this.row) this.trainData=this.$u.clone(this.row)
this.liWidth = this.liWidth =
(this.trainData.num.length * 60) / this.trainData.users.length; (this.trainData.num.length * 55) / this.trainData.users.length;
} }
} }
} }
...@@ -95,6 +98,10 @@ export default { ...@@ -95,6 +98,10 @@ export default {
margin: 0 10px; margin: 0 10px;
text-align: center; text-align: center;
} }
.train{
margin-right: 0px;
}
.train ul li { .train ul li {
width: 60px; width: 60px;
height: 30px; height: 30px;
......
<template> <template>
<div style="width:1850px;margin:0 auto;"> <div style="width:1740px;margin:0 auto;">
<Row class="mt20"> <Row class="mt20">
<Col span="12" class="tc"> <Col span="12" class="tc">
今日在修: 今日在修:
...@@ -20,11 +20,10 @@ ...@@ -20,11 +20,10 @@
</Row> </Row>
<!--1--> <!--1-->
<Row class="mt50"> <Row class="mt50">
<Col span="12" style="height:150px;"> <Col span="24" style="height:150px;">
<Train :row="dataGreen1"></Train> <span class="fl trainTitles" style="color: #19be6b;">有电</span>
</Col> <Train :row="dataGreen1" class="fl"></Train>
<Col span="12"> <Train :row="dataGreen2" class="fl"></Train>
<Train :row="dataGreen2"></Train>
</Col> </Col>
</Row> </Row>
<Row class="lh30"> <Row class="lh30">
...@@ -80,10 +79,9 @@ ...@@ -80,10 +79,9 @@
<!--2--> <!--2-->
<Row> <Row>
<Col span="14" style="height:150px"> <Col span="24" style="height:150px">
<Train :row="dataBlue"></Train> <span class="fl trainTitles" style="color: #2d8cf0;">作业前准备</span> <Train :row="dataBlue" class="fl"></Train>
</Col> </Col>
<Col span="10">&nbsp;</Col>
</Row> </Row>
<Row class="lh30"> <Row class="lh30">
<Col span="4"> <Col span="4">
...@@ -103,10 +101,9 @@ ...@@ -103,10 +101,9 @@
<!--3--> <!--3-->
<Row> <Row>
<Col span="14" style="height:100px"> <Col span="24" style="height:150px">
<Train :row="dataGray"></Train> <span class="fl trainTitles" style="color: #888;">无电</span><Train :row="dataGray" class="fl"></Train>
</Col> </Col>
<Col span="10">&nbsp;</Col>
</Row> </Row>
<Row class="lh30"> <Row class="lh30">
<Col span="4"> <Col span="4">
...@@ -196,7 +193,7 @@ export default { ...@@ -196,7 +193,7 @@ export default {
] ]
}), }),
(this.dataBlue = { (this.dataBlue = {
title: "作业前准备", title: "准备",
color: "blue", color: "blue",
colorTitle: "#2d8cf0", colorTitle: "#2d8cf0",
num: [1, 2, 3, 1, 2, 3, 1], num: [1, 2, 3, 1, 2, 3, 1],
...@@ -219,8 +216,6 @@ export default { ...@@ -219,8 +216,6 @@ export default {
{ position: "机务", name: "李志峰" }, { position: "机务", name: "李志峰" },
{ position: "整备队", name: "张伟" }, { position: "整备队", name: "张伟" },
{ position: "宝洁组", name: "张伟" }, { position: "宝洁组", name: "张伟" },
{ position: "电务通讯", name: "张伟" },
{ position: "主机厂", name: "张伟" },
{ position: "车辆", name: "黄飞" } { position: "车辆", name: "黄飞" }
] ]
}); });
...@@ -228,4 +223,8 @@ export default { ...@@ -228,4 +223,8 @@ export default {
}; };
</script> </script>
<style lang="less"> <style lang="less">
.trainTitles {
line-height: 130px;
font-size: 18px;
}
</style> </style>
\ No newline at end of file
<template> <template>
<div> <div style="width:847px">
<Row> <Row>
<Col :span="24"> <Col :span="24">
<div class="trainTitle"> <div class="trainTitle">
<ul> <ul>
<li v-width="60">
&nbsp;
</li>
<li class="tc" v-for="(item1,index1) in this.trainData.users" :key="index1" v-width="liWidth"> <li class="tc" v-for="(item1,index1) in this.trainData.users" :key="index1" v-width="liWidth">
{{item1.position}} {{item1.position}}
<br /> <br />
...@@ -18,9 +15,6 @@ ...@@ -18,9 +15,6 @@
<Col :span="24"> <Col :span="24">
<div class="train"> <div class="train">
<ul> <ul>
<li style="width:auto;line-height:45px;font-size:18px;">
<span :style="'color:'+this.trainData.colorTitle">{{trainData.title}}</span>
</li>
<li> <li>
<img :src="'/imgshow/b-l-'+this.trainData.color+'.png'" /> <img :src="'/imgshow/b-l-'+this.trainData.color+'.png'" />
<p class="tc"> <p class="tc">
......
...@@ -270,6 +270,9 @@ div::-webkit-scrollbar-corner { ...@@ -270,6 +270,9 @@ div::-webkit-scrollbar-corner {
.pt15 { .pt15 {
padding-top: 15px; padding-top: 15px;
} }
.pr30 {
padding-right: 30px;
}
.bnone { .bnone {
border: none; border: none;
} }
......
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