Commit 4debf274 by chenwq

众筹联调

1 parent d4f94dea
......@@ -2,7 +2,7 @@
<template>
<div class="marketing p-t-20">
<div class="m-b-20">
<GLButton :size="size" class="default-blue-btn el-icon-plus" type="default" @click="handleEdit(1)" fn="新建众筹" mode="el-button">新建众筹</GLButton>
<GLButton :size="size" class="default-blue-btn el-icon-plus" type="default" @click="handleEdit('add')" fn="新建众筹" mode="el-button">新建众筹</GLButton>
<el-button :size="size" type="default" class="default-blue-btn" @click="handleJump">订单管理</el-button>
</div>
<div class="container">
......@@ -116,9 +116,9 @@ export default {
listeners: {
click: row => {
var editOrDetail = {
1: 2,
2: 3,
3: 3
1: 'edit',
2: 'detail',
3: 'detail'
}[row.activityStatus]
return this.handleEdit(editOrDetail, row)
}
......@@ -343,9 +343,9 @@ export default {
handleEdit(addOrEdit, row) {
var params = {
addOrEdit: addOrEdit,
$title: encodeURI(addOrEdit == 1 ? '新建众筹活动' : '编辑众筹活动')
$title: encodeURI(addOrEdit == 'add' ? '新建众筹活动' : '编辑众筹活动')
}
addOrEdit != 1 && (params.id = row.id)
addOrEdit != 'add' && (params.id = row.id)
this.$router.push({
path: '/seckillActivity/editCrowdFund',
query: params
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!