From 863c416f43b6bab4234dc00c9ecfdee91f06bd53 Mon Sep 17 00:00:00 2001 From: yinq <1345442242@qq.com> Date: Mon, 20 Nov 2023 17:36:52 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E5=B7=A5=E5=BA=8F/=E5=B7=A5?= =?UTF-8?q?=E4=BD=8D=E7=BB=B4=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 14 +++++++ src/views/base/processStation/index.vue | 52 +++++++++++++++++-------- src/views/base/productLine/index.vue | 43 +++++++++++++------- src/views/base/productStation/index.vue | 19 +++++---- 4 files changed, 88 insertions(+), 40 deletions(-) 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 @@