Commit aa330f15 authored by 康振飞's avatar 康振飞

工单列表-title

parent 9ba0bbcd
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
</style> </style>
<template> <template>
<div class="order_list"> <div class="order_list">
<!-- <h4 class="order_title"> <!-- <div slot="header">
<span class="gd_tt">工单列表</span> <span class="gd_tt">工单列表</span>
<a ><Icon type="ios-list" size="18" /> 展开全部列表</a> <a ><Icon type="ios-list" size="18" /> 展开全部列表</a>
</h4> --> </div> -->
<div class="select_t"> <!-- <div class="select_t">
<!-- <Icon type="md-arrow-dropright" /> --> <!-- <Icon type="md-arrow-dropright" />
<Select v-model="odermodel" style="width:100px" @on-change="searchOrder"> <Select v-model="odermodel" style="width:100px" @on-change="searchOrder">
<Option v-for="item in oderList" :value="item.value" :key="item.index">{{ item.label }}</Option> <Option v-for="item in oderList" :value="item.value" :key="item.index">{{ item.label }}</Option>
</Select> </Select>
<Button class="fr">时间正序排列</Button> <Button class="fr">时间正序排列</Button>
</div> </div> -->
<div class="card_box"> <div class="card_box">
<Card class="card_order" v-for="(item,index) in listTasks" <Card class="card_order" v-for="(item,index) in listTasks"
@click.native="goPage(item)" :key="index" @click.native="goPage(item)" :key="index"
......
...@@ -79,6 +79,16 @@ ...@@ -79,6 +79,16 @@
.ivu-drawer-left{ .ivu-drawer-left{
width: 370px!important; width: 370px!important;
.ivu-drawer-content{ .ivu-drawer-content{
.ivu-drawer-header{
border: none;
.header {
height: 34px;
border-bottom: 1px solid #ccc;
}
.select_t{
padding: 15px 0 0 0;
}
}
.ivu-drawer-body { .ivu-drawer-body {
padding: 0; padding: 0;
.order_title { .order_title {
...@@ -95,10 +105,11 @@ ...@@ -95,10 +105,11 @@
padding: 15px 20px; padding: 15px 20px;
} }
.card_box{ .card_box{
padding: 0 15px; padding: 0 15px 60px;
.card_order{ .card_order{
margin: 15px 0; margin: 15px 0;
border-left: 4px solid #ccc; border-left: 4px solid #ccc;
cursor: pointer;
.order_tit{ .order_tit{
color: #2680EB; color: #2680EB;
} }
......
...@@ -52,14 +52,21 @@ ...@@ -52,14 +52,21 @@
</div> </div>
<a class="gd_list" @click="orderlistMode = true">工单列表</a> <a class="gd_list" @click="orderlistMode = true">工单列表</a>
<a class="gn_area" @click="functionalMode = true">功能区</a> <a class="gn_area" @click="functionalMode = true">功能区</a>
<!-- --> <!-- 工单列表 -->
<Drawer title="工单列表" placement="left" class="gd_box" :closable="false" v-model="orderlistMode"> <Drawer placement="left" class="gd_box" :closable="false" v-model="orderlistMode">
<!-- <p slot="title"> --> <div slot="header">
<!-- 55555 --> <div class="header">
<!-- <span class="gd_tt">工单列表222252</span> <span class="gd_tt">工单列表</span>
<a ><Icon type="ios-list" size="18" /> 展开全部列表</a> --> <a ><Icon type="ios-list" size="18" /> 展开全部列表</a>
<!-- </p> --> </div>
<!-- <Slot name="title">123123</Slot> --> <div class="select_t">
<!-- <Icon type="md-arrow-dropright" /> -->
<Select v-model="odermodel" style="width:100px" @on-change="searchOrder">
<Option v-for="item in oderList" :value="item.value" :key="item.index">{{ item.label }}</Option>
</Select>
<Button class="fr">时间正序排列</Button>
</div>
</div>
<orderlist ref="orderlist"/> <orderlist ref="orderlist"/>
</Drawer> </Drawer>
<!-- title="功能区" --> <!-- title="功能区" -->
...@@ -78,6 +85,30 @@ export default { ...@@ -78,6 +85,30 @@ export default {
starmodal: true, starmodal: true,
orderlistMode:false, orderlistMode:false,
functionalMode:false, functionalMode:false,
oderList:[
{
value: '全部',
label: '全部'
},{
value: '未开工',
label: '未开工'
},{
value: '执行中',
label: '执行中'
},{
value: '暂停中',
label: '暂停中'
},{
value: '交检中',
label: '交检中'
},{
value: '交接中',
label: '交接中'
},{
value: '已完成',
label: '已完成'
},
],
} }
}, },
created() { created() {
...@@ -98,6 +129,21 @@ export default { ...@@ -98,6 +129,21 @@ export default {
starFun(){ starFun(){
this.$Message.success("开工...") this.$Message.success("开工...")
}, },
searchOrder(value){
let allList = this.listTask;
let newitems = [];
if(value=="全部"){
this.loadTree();
}else{
allList.map((u,i)=>{
// console.log(i,":",u)
if(u.status==value){
newitems.push(u)
}
})
this.listTasks = newitems
}
},
}, },
} }
</script> </script>
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