|  |  |  | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <GlobalWindow | 
|---|
|  |  |  | :title="title" | 
|---|
|  |  |  | width="80%" | 
|---|
|  |  |  | width="100%" | 
|---|
|  |  |  | :visible.sync="visible" | 
|---|
|  |  |  | :confirm-working="isWorking" | 
|---|
|  |  |  | @confirm="confirm" | 
|---|
|  |  |  | 
|---|
|  |  |  | user: '', | 
|---|
|  |  |  | region: '' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | value1: '', | 
|---|
|  |  |  | visible1: false, | 
|---|
|  |  |  | visible2: false, | 
|---|
|  |  |  | visible3: false, | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | open (title, target) { | 
|---|
|  |  |  | this.title = title | 
|---|
|  |  |  | this.visible = true | 
|---|
|  |  |  | // 新建 | 
|---|
|  |  |  | // if (target == null) { | 
|---|
|  |  |  | //     this.$nextTick(() => { | 
|---|
|  |  |  | //         this.$refs.form.resetFields() | 
|---|
|  |  |  | //         this.form[this.configData['field.id']] = null | 
|---|
|  |  |  | //     }) | 
|---|
|  |  |  | //     return | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | // 编辑 | 
|---|
|  |  |  | this.$nextTick(() => { | 
|---|
|  |  |  | for (const key in this.form) { | 
|---|
|  |  |  | this.form[key] = target[key] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleRemove(file, fileList) { | 
|---|
|  |  |  | console.log(file, fileList); | 
|---|
|  |  |  | }, | 
|---|