Browse Source

bug新增编辑大屏点不到焦点事件

master
xuwenbo 4 years ago
parent
commit
b6dece65ae
  1. 12
      src/views/activity/combination/index.vue
  2. 12
      src/views/activity/seckill/index.vue
  3. 12
      src/views/shop/goods/index.vue

12
src/views/activity/combination/index.vue

@ -15,10 +15,9 @@
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="toAddURL"
> >
<router-link :to="'/activity/combinationAdd'">
新增 新增
</router-link>
</el-button> </el-button>
</div> </div>
<el-button <el-button
@ -68,10 +67,9 @@
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-edit" icon="el-icon-edit"
@click="toUpdateURL(scope.row.id)"
> >
<router-link :to="'/activity/combinationEdit/'+scope.row.id">
编辑 编辑
</router-link>
</el-button> </el-button>
<el-popover <el-popover
:ref="scope.row.id" :ref="scope.row.id"
@ -123,6 +121,12 @@ export default {
}) })
}, },
methods: { methods: {
toAddURL(){
this.$router.push({ path: '/activity/combinationAdd' })
},
toUpdateURL(id){
this.$router.push({ path: '/activity/combinationEdit/'+id })
},
parseTime, parseTime,
formatTimeTwo, formatTimeTwo,
checkPermission, checkPermission,

12
src/views/activity/seckill/index.vue

@ -15,10 +15,9 @@
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="toAddURL"
> >
<router-link :to="'/activity/secKillAdd'">
新增 新增
</router-link>
</el-button> </el-button>
</div> </div>
</div> </div>
@ -54,10 +53,9 @@
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-edit" icon="el-icon-edit"
@click="toUpdateURL(scope.row.id)"
> >
<router-link :to="'/activity/secKillEdit/'+scope.row.id">
编辑 编辑
</router-link>
</el-button> </el-button>
<el-popover <el-popover
:ref="scope.row.id" :ref="scope.row.id"
@ -107,6 +105,12 @@ export default {
}) })
}, },
methods: { methods: {
toAddURL(){
this.$router.push({ path: '/activity/secKillAdd' })
},
toUpdateURL(id){
this.$router.push({ path: '/activity/secKillEdit/'+id })
},
parseTime, parseTime,
formatTimeTwo, formatTimeTwo,
checkPermission, checkPermission,

12
src/views/shop/goods/index.vue

@ -21,10 +21,9 @@
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="toAddURL"
> >
<router-link :to="'/shop/goodsAdd'">
新增 新增
</router-link>
</el-button> </el-button>
<el-button <el-button
type="danger" type="danger"
@ -63,10 +62,9 @@
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-edit" icon="el-icon-edit"
@click="toUpdateURL(scope.row.id)"
> >
<router-link :to="'/shop/goodsEdit/'+scope.row.id">
编辑 编辑
</router-link>
</el-button> </el-button>
<el-popover <el-popover
:ref="scope.row.id" :ref="scope.row.id"
@ -125,6 +123,12 @@ export default {
}) })
}, },
methods: { methods: {
toAddURL(){
this.$router.push({ path: '/shop/goodsAdd' })
},
toUpdateURL(id){
this.$router.push({ path: '/shop/goodsEdit/'+id })
},
dataFilter(val){ dataFilter(val){
this.value=val this.value=val
if(val){ if(val){

Loading…
Cancel
Save