From 5c53a09ff28e5be90af9c1bc0534a4320fc5aec0 Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期一, 23 十二月 2024 14:08:11 +0800 Subject: [PATCH] ll --- admin/src/views/project/components/OperaYwBuildingWindow.vue | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/admin/src/views/project/components/OperaYwBuildingWindow.vue b/admin/src/views/project/components/OperaYwBuildingWindow.vue index 83fecbe..f1387b7 100644 --- a/admin/src/views/project/components/OperaYwBuildingWindow.vue +++ b/admin/src/views/project/components/OperaYwBuildingWindow.vue @@ -89,7 +89,7 @@ }) }, methods: { - open (title, target,type) { + open(title, target, type) { this.title = title this.visible = true this.getProject() @@ -98,14 +98,14 @@ this.$nextTick(() => { this.$refs.form.resetFields() this.form[this.configData['field.id']] = null - this.form.type=type + this.form.type = type }) return } // 缂栬緫 this.$nextTick(() => { - console.log('----'); - + console.log('----') + this.getDetail(target.id) }) }, @@ -117,6 +117,10 @@ getProject() { getProjectList({}).then(res => { this.projectList = res || [] + if (this.projectList.length > 0) { + this.$set(this.form, 'projectId', this.projectList[0].id) + // this.changeProject(this.projectList[0].id) + } }) } } -- Gitblit v1.9.3