Commit 6d5f8dbc authored by kangzhenfei's avatar kangzhenfei

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

parents 993b49ed d314e858
...@@ -37,13 +37,17 @@ export default { ...@@ -37,13 +37,17 @@ export default {
return { return {
gnFlag: 0, gnFlag: 0,
listTasks: [], listTasks: [],
dataLength: 0 dataLength: 0,
}; };
}, },
props: { props: {
order: { order: {
type: String, type: String,
default: '', default: '',
},
asc: {
type: Boolean,
default: true,
} }
}, },
created() { created() {
...@@ -53,7 +57,7 @@ export default { ...@@ -53,7 +57,7 @@ export default {
loadTree(value) { loadTree(value) {
let parmse = { let parmse = {
status: value, status: value,
isAsc: true isAsc: this.asc
}; };
Api.getCardList(parmse).then(res => { Api.getCardList(parmse).then(res => {
if (res.success) { if (res.success) {
...@@ -82,6 +86,11 @@ export default { ...@@ -82,6 +86,11 @@ export default {
order(v) order(v)
{ {
//alert(v) //alert(v)
},
asc(v)
{
this.asc=v
this.loadTree(-9)
} }
} }
}; };
......
...@@ -21,11 +21,11 @@ ...@@ -21,11 +21,11 @@
</Select> </Select>
</div> </div>
<div class="select_t"> <div class="select_t">
<Button class>时间正序排列</Button> <Button @click="changeAsc">{{ascTitle}}</Button>
</div> </div>
</div> </div>
<!-- 列表卡片主内容 --> <!-- 列表卡片主内容 -->
<orderlist ref="orderlist" :order="inputId" /> <orderlist ref="orderlist" :asc="asc" :order="inputId" />
</Drawer> </Drawer>
<!-- 功能区 --> <!-- 功能区 -->
<Drawer <Drawer
...@@ -59,6 +59,8 @@ export default { ...@@ -59,6 +59,8 @@ export default {
orderId: this.$route.query.id, orderId: this.$route.query.id,
condition: [], condition: [],
inputId: null, inputId: null,
asc:true,
ascTitle:'时间正序排序'
}; };
}, },
created() { created() {
...@@ -76,9 +78,6 @@ export default { ...@@ -76,9 +78,6 @@ export default {
mounted() {}, mounted() {},
comments: {}, comments: {},
methods: { methods: {
starFun() {
this.$Message.success("开工...");
},
// getListLength(len){ this.listLength = len }, // getListLength(len){ this.listLength = len },
// 返回工单列表 // 返回工单列表
goToOrder() { goToOrder() {
...@@ -124,6 +123,18 @@ export default { ...@@ -124,6 +123,18 @@ export default {
this.$Message.info("尊敬的用户,您没有该权限!") this.$Message.info("尊敬的用户,您没有该权限!")
// this.detail = () => import("./testdata/index"); // this.detail = () => import("./testdata/index");
} //测试数据 } //测试数据
},
changeAsc()
{
this.asc=!this.asc
if(this.asc)
{
this.ascTitle='时间正序排序'
}
else
{
this.ascTitle='时间倒序排序'
}
} }
}, },
watch: { watch: {
......
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