diff --git a/src/router/index.js b/src/router/index.js index c0260e1..a265070 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -246,6 +246,20 @@ export const dynamicRoutes = [ }, ], }, + { + path: "/base/subordinate-workers", + component: Layout, + hidden: true, + permissions: ["base:processStation:list"], + children: [ + { + path:"index/:productLineCode", + component:() => import("@/views/base/processStation/index"), + name:"SubordinateWorkers", + meta: {title: "工序信息",activeMenu: "/base/processStation"}, + }, + ], + }, ] // 防止连续点击多次路由报错 diff --git a/src/views/base/processStation/index.vue b/src/views/base/processStation/index.vue index c6322f5..133e6c9 100644 --- a/src/views/base/processStation/index.vue +++ b/src/views/base/processStation/index.vue @@ -1,26 +1,28 @@ @@ -301,11 +307,18 @@ export default { this.title = "修改产线信息"; }); }, + /** 查看所属工位 */ findStation: function(row) { const productLineCode = row.productLineCode; this.$router.push("/base/product-station/index/" + productLineCode); }, + + /** 查看下级工序 */ + findSubordinateWorkers: function(row) { + const productLineCode = row.productLineCode; + this.$router.push("/base/subordinate-workers/index/" + productLineCode); + }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate(valid => { diff --git a/src/views/base/productStation/index.vue b/src/views/base/productStation/index.vue index ee9f6f7..35a3ae7 100644 --- a/src/views/base/productStation/index.vue +++ b/src/views/base/productStation/index.vue @@ -1,13 +1,15 @@