From ecb3896ed4e76701c2247520e456c2f8cb29e908 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期四, 26 十二月 2024 16:22:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/projectEngineering/projectLibrary/component/BasicInfo.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/projectEngineering/projectLibrary/component/BasicInfo.vue b/src/views/projectEngineering/projectLibrary/component/BasicInfo.vue index cd47875..b08c10f 100644 --- a/src/views/projectEngineering/projectLibrary/component/BasicInfo.vue +++ b/src/views/projectEngineering/projectLibrary/component/BasicInfo.vue @@ -304,6 +304,7 @@ import {approvalList} from "@/api/system/dept"; export default { + name: 'BasicInfo', dicts: ['sys_funding_type', 'sys_investment_type', 'sys_project_type', 'sys_project_status', 'sys_competent_department' , 'sys_administrative_divisions', 'sys_centralized_management', 'sys_approval_type', 'sys_key_categories', 'sys_annual_plan'], components: { @@ -421,6 +422,7 @@ getProject(id).then(res => { this.projectForm = res.data; this.$emit('updateIsShow', true); + }); }, getApprovalList() { @@ -428,9 +430,10 @@ this.approvalList = res.data; }); }, - submit() { + submit(usedStatus) { this.$refs["projectForm"].validate(valid => { if (valid) { + this.projectForm.usedStatus = usedStatus; if (this.projectForm.id) { updateProject(this.projectForm).then(response => { this.$modal.msgSuccess("淇敼鎴愬姛"); @@ -508,7 +511,7 @@ this.$message.success('鑾峰彇鍦板潃鎴愬姛'); this.dialogMap = false; } else { - this.$message.error('鑾峰彇鍧愭爣澶辫触'); + this.$message.error('璇峰厛鐐瑰嚮鍦板浘閫夋嫨鍦板潃'); } }, @@ -530,6 +533,7 @@ this.largeCategory = labels.join(','); } }, 1000); + this.$emit('basicInfoForm', newVal) }, deep: true } -- Gitblit v1.8.0