From bb6ca60d634fa9b844583feb4a37bb7f984ab132 Mon Sep 17 00:00:00 2001 From: zzq <a13193816592@163.com> Date: 星期四, 28 九月 2023 15:18:51 +0800 Subject: [PATCH] "报表路由跳转,api调用" --- src/views/overview/AddOverviewDialog.vue | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue index 94908bd..f8abf0d 100644 --- a/src/views/overview/AddOverviewDialog.vue +++ b/src/views/overview/AddOverviewDialog.vue @@ -8,7 +8,7 @@ > <!-- 澶� --> <div slot="title" class="dialog-header"> - <span>{{ editCommonConfig.title + addName }}</span> + <span>{{ editCommonConfig.title === "鏌ョ湅" ? editCommonConfig.title : editCommonConfig.title + addName }}</span> <div class="header_btns"> <span class="btn"> <i class="el-icon-printer"></i> @@ -321,7 +321,7 @@ detailId: 0, isNoDetail: false, // 娣诲姞璇︽儏鏄庣粏琛屾椂鏄惁鏈�夋嫨 tableColumn: [], - receiptType: this.addName, // 鍏ュ簱绫诲瀷 + receiptType: "", // 鍏ュ簱绫诲瀷 companyObj: {}, contacterObj: {}, isValidateClick: false // 楠岃瘉鏄惁鏄剧ず @@ -333,6 +333,7 @@ this.setDetailTableForm() this.getCompanyList() this.getLocationList() + this.receiptType = this.editConfig.title === "鏌ョ湅" ? this.editConfig.infomation.operationTypeName : this.addName }, methods: { // 鑾峰彇鍏徃鍒楄〃 @@ -364,7 +365,7 @@ this.showEdit = false this.showFooter = true this.isValidateClick = false - } else if (this.editConfig.infomation.status === 4) { + } else if (this.editConfig.infomation.status === 4||this.editConfig.infomation.status === "瀹屾垚") { this.showButton = true this.showEdit = false this.isDelClick = true @@ -376,6 +377,7 @@ this.showFooter = false this.isValidateClick = false } else { + // 灏辩华--- this.showButton = true this.showEdit = true this.showFooter = false @@ -385,7 +387,8 @@ this.list[0].status = "active" } else { this.list.map((item) => { - if (item.value === this.editConfig.infomation.status) { + console.log(item,this.editConfig.infomation.status,"鎵撳嵃淇℃伅") + if (item.value === this.editConfig.infomation.status||item.label===this.editConfig.infomation.status) { item.status = "active" } else { item.status = "todo" @@ -443,9 +446,9 @@ let contacterName = "" if (this.editConfig.title === "鏂板缓") { companyID = Object.keys(this.companyObj).length === 0 ? 0 : this.companyObj.value - companyName = Object.keys(this.companyObj).length === 0 ? 0 : this.companyObj.label + companyName = Object.keys(this.companyObj).length === 0 ? "" : this.companyObj.label contacterID = Object.keys(this.contacterObj).length === 0 ? 0 : this.contacterObj.value - contacterName = Object.keys(this.contacterObj).length === 0 ? 0 : this.contacterObj.label + contacterName = Object.keys(this.contacterObj).length === 0 ? "" : this.contacterObj.label } else { companyID = Object.keys(this.companyObj).length === 0 ? data.companyID : this.companyObj.value companyName = Object.keys(this.companyObj).length === 0 ? data.companyName : this.companyObj.label @@ -668,7 +671,7 @@ ::v-deep { .el-dialog__headerbtn { position: absolute; - top: 18px; + top: 15px; } .el-button { &:hover { -- Gitblit v1.8.0