Commit 0d8d7960 authored by wanglianghe's avatar wanglianghe

产品黑名单列表

parent 7642139a
...@@ -214,6 +214,21 @@ export const constantRoutes = [ ...@@ -214,6 +214,21 @@ export const constantRoutes = [
] ]
}, },
// {
// path: '/product',
// component: Layout,
// hidden: true,
// redirect: 'noredirect',
// children: [{
// path: 'product-black',
// component: (resolve) => require(['@/views/ecw/productPrice/index'], resolve),
// name: 'ProductPrice',
// meta: {title: '黑名单产品列表', activeMenu: '/product/product-black'}
// }
// ]
// },
{ {
path: '/shelf', path: '/shelf',
component: Layout, component: Layout,
......
...@@ -338,7 +338,8 @@ export default { ...@@ -338,7 +338,8 @@ export default {
this.$router.push({ this.$router.push({
name:'ProductPrice', name:'ProductPrice',
query: { query: {
product_id: row.id product_id: row.id,
product_type: row.typeId
} }
}) })
}, },
......
This diff is collapsed.
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="" prop="blacklist"> <el-form-item label="" prop="blacklist" v-if="false">
<el-checkbox v-model="queryParams.blacklist" <el-checkbox v-model="queryParams.blacklist"
:true-label="1" :false-label="0">黑名单</el-checkbox> :true-label="1" :false-label="0">黑名单</el-checkbox>
</el-form-item> </el-form-item>
...@@ -506,6 +506,16 @@ export default { ...@@ -506,6 +506,16 @@ export default {
} }
}, },
activated() {
let typeId = this.$route.query.product_type;
if(typeId) {
if(!this.queryParams.typeId || this.queryParams.typeId != typeId)
this.$set(this.queryParams, 'typeId', typeId);
// this.queryParams.typeId = typeId;
this.getList();
}
},
created() { created() {
// this.transportDatas = getDictDatas(DICT_TYPE.ECW_TRANSPORT_TYPE); // this.transportDatas = getDictDatas(DICT_TYPE.ECW_TRANSPORT_TYPE);
// console.log(this.transportDatas); // console.log(this.transportDatas);
...@@ -513,6 +523,8 @@ export default { ...@@ -513,6 +523,8 @@ export default {
// console.log(productJson); // console.log(productJson);
this.product = eval('(' + productJson + ')'); this.product = eval('(' + productJson + ')');
let typeListJson = localStorage.getItem('typeList'); let typeListJson = localStorage.getItem('typeList');
if(typeListJson) { if(typeListJson) {
this.typeList = eval('(' + typeListJson + ')'); this.typeList = eval('(' + typeListJson + ')');
......
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