消息通知

master
lion 3 years ago
parent deac15f7a7
commit c10ebe0a47

@ -50,7 +50,6 @@
size="small" size="small"
shape="circle" shape="circle"
style="margin-left: 10px;padding:0 20px" style="margin-left: 10px;padding:0 20px"
@click.native="toNotice" @click.native="toNotice"
>全部</Button >全部</Button
> >
@ -60,8 +59,20 @@
<el-dropdown-item :divided="!index"> <el-dropdown-item :divided="!index">
<div style="display: flex; align-items: center"> <div style="display: flex; align-items: center">
<div v-for="(value, key) in item.data"> <div v-for="(value, key) in item.data">
{{timeymd(item.created_at)}} {{ key }} : {{ value }} <div v-if="key!='order_item_id'">
{{timeymd(item.created_at)}} {{ key }} : {{ value }}
</div>
<div v-else>
<Button
style="margin-left: 10px;"
size="small"
:type="'primary'"
@click="goOrder(value)"
>查看订单</Button>
</div>
</div> </div>
<Button <Button
style="margin-left: 10px;" style="margin-left: 10px;"
size="small" size="small"
@ -221,7 +232,9 @@ export default {
console.log(res); console.log(res);
this.noticeData = res.data; this.noticeData = res.data;
}, },
goOrder(value){
this.$router.push("/order/orderList?order_item_id="+value);
},
toggleSideBar() { toggleSideBar() {
this.$store.dispatch("app/toggleSideBar"); this.$store.dispatch("app/toggleSideBar");
}, },

@ -192,7 +192,8 @@
end_paid: "", end_paid: "",
start_updated: "", start_updated: "",
end_updated: "", end_updated: "",
order_paid: false, order_paid: false,
order_item_id:""
}, },
pickerOptions: { pickerOptions: {
shortcuts: [{ shortcuts: [{
@ -437,7 +438,8 @@
this.select.start_paid = ''; this.select.start_paid = '';
this.select.end_paid = ''; this.select.end_paid = '';
this.select.start_updated = ''; this.select.start_updated = '';
this.select.end_updated = ''; this.select.end_updated = '';
this.select.order_item_id=""
this.getOrders(); this.getOrders();
}, },
changeUpdateDate(e) { changeUpdateDate(e) {
@ -490,7 +492,8 @@
...this.select ...this.select
}) })
this.select.is_merchant = is_merchant; this.select.is_merchant = is_merchant;
this.select.order_paid = order_paid; this.select.order_paid = order_paid;
this.select.order_item_id=""
this.total = res.total this.total = res.total
this.list = res.rows this.list = res.rows
}, },
@ -527,7 +530,8 @@
} }
}, },
mounted() { mounted() {
this.memberId = this.$route.query.user_id this.memberId = this.$route.query.user_id
this.select.order_item_id = this.$route.query.order_item_id?this.$route.query.order_item_id:""
this.getTypes() this.getTypes()
this.getOrders() this.getOrders()
} }

Loading…
Cancel
Save