MrShi
2025-01-02 77d8f6ccb72cb64c29e77c39fcc8298781d008bb
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)
        }
      })
    }
  }