From a4a0ddef7658e6b7ae7cfb807af19f089f96acc8 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 28 九月 2023 14:53:39 +0800 Subject: [PATCH] 如果沒有任务前端需要是模拟后台数据结push空数据进去+2个任务的时候下发成功,跳转的不是当前选中的 --- src/components/AddIssue.vue | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/components/AddIssue.vue b/src/components/AddIssue.vue index 65a99df..223ce43 100644 --- a/src/components/AddIssue.vue +++ b/src/components/AddIssue.vue @@ -41,7 +41,7 @@ </div> </template> - <template v-else> + <template v-else-if="Object.keys(taskData).length > 0 "> <div class="title-box margin_bottom_13"> <div class="title-item color_4efefa font_size_20 title-bng"> 褰撳墠浠诲姟锛歿{ taskData.Procedure.procedure.procedureName || "" }} @@ -240,7 +240,13 @@ default: () => { return ''; }, - } + }, + activeName:{ + type: [String,Number], + default: () => { + return 1; + }, + }, }, data() { return { @@ -314,16 +320,16 @@ getInfo() { // 1 鏈敓浜� 2鐢熶骇涓� 3鐢熶骇瀹屾垚 if ( - Object.keys(this.taskData).length > 0 && - this.taskData.Procedure.ID && - this.taskData.Procedure.Status == 1 + Object.keys(this.taskData).length > 0 && this.taskData.Procedure.ID && + this.taskData.Procedure.Status == 1 ) { - this.num = 0; - this.showBtn = 1; - this.islook = true; + this.num = 0; + this.showBtn = 1; + this.islook = true; } else { this.islook = false; - // this.islook = true; + // this.islook = true; + } if(this.ArrError){ this.messageError=this.ArrError; @@ -415,7 +421,7 @@ this.num = 0; this.showBtn= 1 this.shutdown(); - this.$emit('getSetProductNumber') + this.$emit('getSetProductNumber',this.activeName) // this.$message.success("涓嬪彂鐢熶骇鏁伴噺鎴愬姛锛�"); } } else { -- Gitblit v1.8.0