From eef1ef0be935d4a3d8fc691b2666f41796b2d4a5 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期一, 04 十一月 2024 19:57:08 +0800 Subject: [PATCH] 增加列表显示 --- src/views/console/product-process/process-route.vue | 23 ++++++++++++----------- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/views/console/product-process/process-route.vue b/src/views/console/product-process/process-route.vue index 83ba948..b5be74b 100644 --- a/src/views/console/product-process/process-route.vue +++ b/src/views/console/product-process/process-route.vue @@ -40,14 +40,15 @@ <el-icon class="vistion-button-icon"><DocumentCopy /></el-icon> <el-icon class="vistion-button-icon" @click="delIcon(item)"><Delete /></el-icon> </div> - <div class="btn-box most-vision" @click="changeV">{{changVTitle}}</div> + <div class="btn-box most-vision" @click="changeV" v-if="detail.dtos.length!=0">{{changVTitle}}</div> <el-button @click="addVision">+ 娣诲姞鏂扮増鏈�</el-button> </div> </div> </div> <div class="correlation-product-line">鍏宠仈浜х嚎<span>鍗冩枃绉戞妧</span></div> <div class="process-main-content"> - <workmanship :isCustomization = "true"></workmanship> + <!-- isCustomization 鏂板缓/姝ラ --> + <workmanship :isCustomization="true" :craftId="craftId"></workmanship> </div> </div> </div> @@ -102,7 +103,7 @@ this.$confirm(`纭瑕佸垹闄ゆ宸ヨ壓鐗堟湰鍚�?`, '', { type: 'warning' }).then(() => { - this.$HTTP.delete("/api/blade-cps/production-craft-version/remove/"+that.delIconId).then(res=> { + this.$HTTP.delete("/api/smis/production-craft-version/remove/"+that.delIconId).then(res=> { if(res.code == 200) { that.$message.success("鎿嶄綔鎴愬姛"); that.getDetail(); @@ -117,10 +118,10 @@ item.isBorder = false; }) this.detail.dtos[index].isBorder = true; - this.craftId = item.craftId; + this.craftId = item.id; }, addVision() { - this.$router.push({path: `/console/product-process/process-route/add-craft-version`,query: {id:this.id}}) + this.$router.push({path: `/console/product-process/process-route/add-craft-version`,query: {id:this.id,craftId:this.craftId}}) }, addRoute() { this.$router.push({path: `/console/product-process/process-route/add-craft`,query: {id:this.id}}) @@ -134,7 +135,7 @@ } }, showDetail(item) { - this.$HTTP.get(`/api/blade-cps/production-craft-version/detail/${item.id}`).then(res=> { + this.$HTTP.get(`/api/smis/production-craft-version/detail/${item.id}`).then(res=> { if(res.code == 200) { this.vHtml = `<ul class='detailUl'> <li><span class='detailStyle'>鍚嶇О</span><span>${res.data.name}</span></li> @@ -149,7 +150,7 @@ }) }, table_edit(row){ - this.$HTTP.get(`/api/blade-cps/craft-routing/not-band-craft?craftId=${row.id}`).then(res=> { + this.$HTTP.get(`/api/smis/craft-routing/not-band-craft?craftId=${row.id}`).then(res=> { if(res.code == 200) { this.dialog.save = true; this.$nextTick(() => { @@ -188,14 +189,14 @@ this.info = this.leftData[index]; }, getDetail() { - this.$HTTP.get(`/api/blade-cps/craft-routing/detail?id=${this.id}`).then(res=> { + this.$HTTP.get(`/api/smis/craft-routing/detail?id=${this.id}`).then(res=> { if(res.code == 200) { - if(res.data.dtos) { + if(res.data.dtos.length != 0) { res.data.dtos.forEach(item=> { item.isBorder = false; }) res.data.dtos[0].isBorder = true; - this.craftId = res.data.dtos[0].craftId; + this.craftId = res.data.dtos[0].id; } this.detail = res.data; } @@ -207,7 +208,7 @@ },{ key: "0",value: "" }] - this.$HTTP.post("/api/blade-cps/craft-routing/list",{params}).then(res=> { + this.$HTTP.post("/api/smis/craft-routing/list",{params}).then(res=> { if(res.code == 200) { this.leftData = res.data; if(res.data) { -- Gitblit v1.9.3