Commit 3d2add3c authored by zhengke's avatar zhengke

新窗口打开商品

parent 3415386d
......@@ -201,8 +201,7 @@
width="200"
label="操作">
<template slot-scope="scope">
<img @click="CommonJump('goodsListEdit',{GoodsId:scope.row.Id,hpState:hpState,FxState:FxState})" style="width:32px;height:32px;margin:0 10px" src="../../assets/img/userman/edit.png" alt="">
<img @click="goGoodsEdit(scope.row.Id)" style="width:32px;height:32px;margin:0 10px" src="../../assets/img/userman/edit.png" alt="">
<img @click="Delete(scope.row)" style="width:32px;height:32px;margin:0 10px" src="../../assets/img/userman/del.png" alt="">
</template>
</el-table-column>
......@@ -847,6 +846,18 @@ export default {
}
this.getList()
},
//新窗口跳转
goGoodsEdit(Id){
let routeData = this.$router.resolve({
name: 'goodsListEdit',
query: {
GoodsId: Id,
hpState:this.hpState,
FxState:this.FxState
}
});
window.open(routeData.href, "_blank");
}
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment