|
|
|
@ -19,6 +19,7 @@ |
|
|
|
|
|
|
|
|
|
<!-- 操作 --> |
|
|
|
|
<span slot="action" slot-scope="text, item"> |
|
|
|
|
<a v-action:edit style="margin-right: 8px;" @click="handleLog(item)">预售记录</a> |
|
|
|
|
<a v-action:edit style="margin-right: 8px;" @click="handleEdit(item)">编辑</a> |
|
|
|
|
<a v-action:delete @click="handleDelete(item)">删除</a> |
|
|
|
|
</span> |
|
|
|
@ -26,6 +27,7 @@ |
|
|
|
|
|
|
|
|
|
<AddForm ref="AddForm" @handleSubmit="handleRefresh" /> |
|
|
|
|
<EditForm ref="EditForm" @handleSubmit="handleRefresh" /> |
|
|
|
|
<Log ref="Log" @handleSubmit="handleRefresh" /> |
|
|
|
|
|
|
|
|
|
</a-card> |
|
|
|
|
</template> |
|
|
|
@ -33,14 +35,15 @@ |
|
|
|
|
<script> |
|
|
|
|
import * as Api from '@/api/market/presale' |
|
|
|
|
import { STable } from '@/components' |
|
|
|
|
import { AddForm, EditForm } from './modules' |
|
|
|
|
import { AddForm, EditForm, Log } from './modules' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'Index', |
|
|
|
|
components: { |
|
|
|
|
STable, |
|
|
|
|
AddForm, |
|
|
|
|
EditForm |
|
|
|
|
EditForm, |
|
|
|
|
Log |
|
|
|
|
}, |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
@ -93,6 +96,10 @@ export default { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
handleLog (item) { |
|
|
|
|
this.$refs.Log.visibleLog(item.id) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 新增记录 |
|
|
|
|
handleAdd () { |
|
|
|
|
this.$refs.AddForm.add() |
|
|
|
|