Commit c1af9881 by liwk

增加返回

1 parent 6dc991b6
<template>
<div class="back">
<el-button @click="jump">返回</el-button>
</div>
</template>
<script>
export default {
name: 'back',
methods: {
jump () {
window.history.go(-1)
}
}
}
</script>
\ No newline at end of file \ No newline at end of file
import Vue from 'vue' import Vue from 'vue'
// 注意 有些组件使用异步加载会有影响 // 注意 有些组件使用异步加载会有影响
Vue.component('back', () =>
import ('./back/index.vue'))
Vue.component('table-tooltip', () => Vue.component('table-tooltip', () =>
import ('./table-tooltip/index.vue')) import ('./table-tooltip/index.vue'))
Vue.component('d2-table', () => Vue.component('d2-table', () =>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
:key="resetTime" :key="resetTime"
> >
<div class="box"> <div class="box">
<back />
<div class="title">商品类型</div> <div class="title">商品类型</div>
<el-radio-group :value="1"> <el-radio-group :value="1">
<el-radio-button :label="1">品牌商品</el-radio-button> <el-radio-button :label="1">品牌商品</el-radio-button>
......
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
>新增商品</el-button> >新增商品</el-button>
</div> </div>
<d2-table <d2-table
v-if="flag"
ref="table" ref="table"
:searchForm="searchObj" :searchForm="searchObj"
:tableParams="tableParams" :tableParams="tableParams"
......
<template> <template>
<div class="layout"> <div class="layout">
<div class="box"> <div class="box">
<back />
<div class="grid"> <div class="grid">
<div class="grid-item">订单编号: {{detailInfo.orderCode}}</div> <div class="grid-item">订单编号: {{detailInfo.orderCode}}</div>
<div class="grid-item">下单时间: {{detailInfo.time}}</div> <div class="grid-item">下单时间: {{detailInfo.time}}</div>
......
<template> <template>
<div class="layout"> <div class="layout">
<div class="box"> <div class="box">
<back />
<div class="grid"> <div class="grid">
<template v-for="(item,index) in detailInfoObj"> <template v-for="(item,index) in detailInfoObj">
<div <div
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!