Commit 56b7f9e6 authored by Marcus's avatar Marcus

优惠申请 query

parent b5a1bfbe
...@@ -275,7 +275,7 @@ export const constantRoutes = [ ...@@ -275,7 +275,7 @@ export const constantRoutes = [
meta: {title: '特价申请', icon: '', activeMenu: '/offer/special'} meta: {title: '特价申请', icon: '', activeMenu: '/offer/special'}
}, },
{ {
path: 'discount/:id(\\d+)', path: 'discount',
component: (resolve) => import('@/views/ecw/offer/specialDiscount'), component: (resolve) => import('@/views/ecw/offer/specialDiscount'),
props: true, props: true,
name: 'offer', name: 'offer',
......
...@@ -49,9 +49,9 @@ ...@@ -49,9 +49,9 @@
prop="address" prop="address"
label="操作"> label="操作">
<template v-slot="{row}"> <template v-slot="{row}">
<el-button size="mini" type="text" v-hasPermi="['ecw:offer:update']" @click="$router.push('/offer/discount/' + row.lineId)">优惠申请</el-button> <el-button size="mini" type="text" v-hasPermi="['ecw:offer:update']" @click="$router.push('/offer/discount?id=' + row.lineId)">优惠申请</el-button>
<el-button size="mini" type="text" v-hasPermi="['ecw:offer:update']">佣金规则</el-button> <!-- <el-button size="mini" type="text" v-hasPermi="['ecw:offer:update']">佣金规则</el-button>-->
<el-button size="mini" type="text" v-hasPermi="['ecw:offer:update']">管理折扣</el-button> <!-- <el-button size="mini" type="text" v-hasPermi="['ecw:offer:update']">管理折扣</el-button>-->
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -9,7 +9,16 @@ ...@@ -9,7 +9,16 @@
export default { export default {
name: "specialDiscount", name: "specialDiscount",
props: { props: {
id: String },
created() {
if(this.$route.query.id){
this.id = this.$route.query.id
}
},
data() {
return {
id: ''
}
} }
} }
</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