From e326dec25872956f64c0ff07f882b80400728006 Mon Sep 17 00:00:00 2001 From: shenyuan Date: Tue, 20 Dec 2022 18:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AC=BE=E5=BC=8F=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/process/modules/ZyClothsComponentListDetail.vue | 8 ++++++-- .../views/process/modules/ZyClothsModularListDetail.vue | 6 ++++++ .../zyclothsstyle/modules/ZyClothsStyleListDetail.vue | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentListDetail.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentListDetail.vue index 4f59de85..61e21d5d 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentListDetail.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentListDetail.vue @@ -81,6 +81,12 @@ this.visible = true; this.$http.get('/base/zyClothsComponent/detail?id='+id).then( res=>{ + if (res.code !== 200) { + this.$message({ + type: 'error', + message: '未查询到数据!' + }); + } this.model = res.result.zyClothsComponent this.data1 = res.result.zyProcessComponents this.confirmLoading = false @@ -89,8 +95,6 @@ // this.basicActionData = res.result.zyClothActions // this.accessoriesData = res.result.zyFabrics // this.fabricData = res.result.zyAccessories - console.log('工序详情页') - console.log(res.result) // console.log(this.data) // console.log(this.accessoriesData) // console.log(this.fabricData) diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsModularListDetail.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsModularListDetail.vue index 29e46cea..dd18a223 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsModularListDetail.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsModularListDetail.vue @@ -111,6 +111,12 @@ // this.model = record this.$http.get('/base/zyClothsModular/detail?id='+id).then( res=>{ + if (res.code !== 200) { + this.$message({ + type: 'error', + message: '未查询到数据!' + }); + } // this.data = res.result this.model = res.result.zyClothsModular this.data1 = res.result.zyClothsModularComponents diff --git a/ant-design-vue-jeecg/src/views/zyclothsstyle/modules/ZyClothsStyleListDetail.vue b/ant-design-vue-jeecg/src/views/zyclothsstyle/modules/ZyClothsStyleListDetail.vue index bce304ea..e8ce5ca1 100644 --- a/ant-design-vue-jeecg/src/views/zyclothsstyle/modules/ZyClothsStyleListDetail.vue +++ b/ant-design-vue-jeecg/src/views/zyclothsstyle/modules/ZyClothsStyleListDetail.vue @@ -385,7 +385,7 @@ if (res.code !== 200) { this.$message({ type: 'error', - message: '查询不到知识点数据' + message: '未查询到数据!' }); } this.confirmLoading = false