添加预售记录

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

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

Loading…
Cancel
Save