Commit d33a8862 by 李长胜

新增编辑的面包屑修改

1 parent ebe32071
...@@ -65,12 +65,12 @@ ...@@ -65,12 +65,12 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row> <el-row>
<el-form-item size="small" label="会员类型" > <el-form-item size="small" label="会员类型">
<el-select size="small" v-model="searchForm.memberType" placeholder="请选择"> <el-select size="small" v-model="searchForm.memberType" placeholder="请选择">
<el-option v-for="item in memberTypeLists" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option> <el-option v-for="item in memberTypeLists" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item size="small" label="开通日期" style="margin-left:-10px"> <el-form-item size="small" label="开通日期" style="margin-left: -10px">
<el-date-picker :size="size" v-model="searchForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker> <el-date-picker :size="size" v-model="searchForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions || {}"></el-date-picker>
</el-form-item> </el-form-item>
...@@ -140,7 +140,7 @@ export default { ...@@ -140,7 +140,7 @@ export default {
// }, 1000) // }, 1000)
} }
return { return {
isReload:true, isReload: true,
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime() return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
...@@ -152,10 +152,10 @@ export default { ...@@ -152,10 +152,10 @@ export default {
userInfo: '', userInfo: '',
status: '', status: '',
merchantName: '', merchantName: '',
memberType:'' memberType: ''
}, },
searchFormTable: {}, searchFormTable: {},
memberTypeLists:[ memberTypeLists: [
{ {
dictValue: '', dictValue: '',
dictLabel: '全部' dictLabel: '全部'
...@@ -240,7 +240,7 @@ export default { ...@@ -240,7 +240,7 @@ export default {
price: '', price: '',
marketPrice: '', marketPrice: '',
linkUrl: '', linkUrl: '',
tryAble:'' tryAble: ''
}, },
copyRuleForm: {}, copyRuleForm: {},
rules: { rules: {
...@@ -301,13 +301,15 @@ export default { ...@@ -301,13 +301,15 @@ export default {
}, },
getCardContentFun() { getCardContentFun() {
getCardContent({ merchantId: this.merchantId }).then(res => { getCardContent({ merchantId: this.merchantId }).then(res => {
if(!(res && res.length)){
return
}
this.ruleForm.equityId = res[0].id this.ruleForm.equityId = res[0].id
this.ruleForm.cardName = res[0].cardClassName this.ruleForm.cardName = res[0].cardClassName
this.ruleForm.price = res[0].price this.ruleForm.price = res[0].price
this.ruleForm.marketPrice = res[0].marketPrice this.ruleForm.marketPrice = res[0].marketPrice
this.ruleForm.linkUrl = res[0].url this.ruleForm.linkUrl = res[0].url
this.ruleForm.tryAble=res[0].tryAble this.ruleForm.tryAble = res[0].tryAble
}) })
}, },
openEditWrap() { openEditWrap() {
...@@ -330,7 +332,7 @@ export default { ...@@ -330,7 +332,7 @@ export default {
params.cardClassName = this.ruleForm.cardName params.cardClassName = this.ruleForm.cardName
params.price = this.ruleForm.price params.price = this.ruleForm.price
params.marketPrice = this.ruleForm.marketPrice params.marketPrice = this.ruleForm.marketPrice
params.tryAble=this.ruleForm.tryAble params.tryAble = this.ruleForm.tryAble
updateCardContent(params).then(res => { updateCardContent(params).then(res => {
if (!res) { if (!res) {
return return
......
...@@ -241,6 +241,7 @@ export default { ...@@ -241,6 +241,7 @@ export default {
display: flex; display: flex;
height: 34px; height: 34px;
.choseItem { .choseItem {
cursor: pointer;
width: 120px; width: 120px;
height: 34px; height: 34px;
line-height: 34px; line-height: 34px;
......
...@@ -186,7 +186,10 @@ export default { ...@@ -186,7 +186,10 @@ export default {
//创建服务 //创建服务
handleCreate() { handleCreate() {
this.$router.push({ this.$router.push({
path: '/memberCenter/serviceAddUpdateLook' path: '/memberCenter/serviceAddUpdateLook',
query:{
$title:encodeURI('创建服务')
}
}) })
}, },
//失效 //失效
...@@ -227,7 +230,8 @@ export default { ...@@ -227,7 +230,8 @@ export default {
path: '/memberCenter/serviceAddUpdateLook', path: '/memberCenter/serviceAddUpdateLook',
query: { query: {
couponId: row.id, couponId: row.id,
title: '编辑' title: '编辑',
$title:encodeURI('编辑服务')
} }
}) })
}, },
...@@ -236,7 +240,8 @@ export default { ...@@ -236,7 +240,8 @@ export default {
path: '/memberCenter/serviceAddUpdateLook', path: '/memberCenter/serviceAddUpdateLook',
query: { query: {
couponId: row.id, couponId: row.id,
title: '查看' title: '查看',
$title:encodeURI('查看服务')
} }
}) })
}, },
......
...@@ -148,7 +148,9 @@ export default { ...@@ -148,7 +148,9 @@ export default {
//创建套餐 //创建套餐
handleCreate() { handleCreate() {
this.$router.push('/memberCenter/setmealAddUpdate') this.$router.push({path:'/memberCenter/setmealAddUpdate',query:{
$title:encodeURI('创建套餐')
}})
}, },
handleClose() { handleClose() {
this.isDialogVisible = !this.isDialogVisible this.isDialogVisible = !this.isDialogVisible
...@@ -192,7 +194,7 @@ export default { ...@@ -192,7 +194,7 @@ export default {
}) })
}, },
handleEdit(row) { handleEdit(row) {
this.$router.push({ path: '/memberCenter/setmealAddUpdate', query: { id: row.id } }) this.$router.push({ path: '/memberCenter/setmealAddUpdate', query: { id: row.id,$title:encodeURI('编辑套餐') } })
}, },
// 查看示例效果 // 查看示例效果
handleLook(row) {}, handleLook(row) {},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!