Commit c297fa51 by 李伟康

```

feat(915_earlyWarningManager): 添加门店看板功能和详情查看权限

- 在路由配置中添加门店看板页面的权限配置和路由信息
- 集成详情查看权限控制,支持跳转到门店看板页面
- 实现策略中心页面的详情按钮权限控制和路由跳转功能
```
1 parent 9a854104
......@@ -151,6 +151,21 @@ export const routerName = {
parentId: "915",
cache: false
},
auth: [
{
authId: "9150601",
parentId: "91506",
label: "查看详情",
handle: "handleDetail",
addRoutePath: [
{
authId: "9150602",
name: "门店看板",
parentId: "91506"
}
]
}
],
component: _import("earlyWarningManager/strategyCentre/index")
},
91507: {
......@@ -163,5 +178,17 @@ export const routerName = {
cache: false
},
component: _import("earlyWarningManager/strategyAnalysis/index")
}
},
9150602: {
path: "/storeSignboard",
name: "storeSignboard",
meta: {
title: "门店看板",
authId: "9150601",
parentId: "91506",
activePath: "/storeSignboard",
cache: false
},
component: _import("earlyWarningManager/strategyCentre/storeSignboard/index")
},
}
......@@ -159,7 +159,7 @@
<div class="card-foot">
<span class="info">共{{ item.alertCount }}项预警</span>
<span class="link">查看详情 <i class="el-icon-arrow-right"></i></span>
<span class="link" > <auth-button :show-btn-ids="['9150601']" ></auth-button><i class="el-icon-arrow-right"></i></span>
</div>
</div>
</el-col>
......@@ -295,6 +295,15 @@
transform: `translateX(${offsetLeft}px)`,
width: `${offsetWidth}px`
};
},
handleDetail(row = {}){
this.$router.push({
name: "storeSignboard",
query: {
merchantId: row.merchantId
}
})
}
}
};
......
<template>
<div>
门店
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!