添加预售记录

feature/0423
陈伟 11 months ago
parent 28996ec879
commit a725144794
  1. 11
      src/views/market/presale/Index.vue
  2. 3
      src/views/market/presale/modules/index.js

@ -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()

@ -1,4 +1,5 @@
import AddForm from './AddForm'
import EditForm from './EditForm'
import Log from './Log'
export { AddForm, EditForm }
export { AddForm, EditForm, Log }

Loading…
Cancel
Save