| | |
| | | @uploadBegin="isUploading=true" |
| | | /> |
| | | <div style="display: flex; flex-direction: column-reverse;" v-if="!!form.icon"> |
| | | <el-button style="margin-left: 5px; padding: 0 5px;" type="text" @click="form.icon=''">删除</el-button> |
| | | <el-button style="margin-left: 5px; padding: 0 5px;" type="text" @click="deletePic">删除</el-button> |
| | | </div> |
| | | </div> |
| | | </el-form-item> |
| | |
| | | // 需排除选择的菜单ID |
| | | excludeMenuId: null, |
| | | uploadData: { |
| | | floader: 'company/menu' |
| | | // floader: 'company/menu' |
| | | folder: 'company/menu' |
| | | }, |
| | | parent: {}, |
| | | // 表单数据 |
| | |
| | | debugger |
| | | this.title = title |
| | | |
| | | console.log('-----',parent); |
| | | this.visible = true |
| | | // 新建,menu为空时表示新建菜单 |
| | | if (target == null) { |
| | |
| | | this.form.id = null |
| | | this.form.parentId = parent == null ? null : parent.id |
| | | this.parentName = parent == null ? null : parent.name |
| | | this.form.fullIcon = '' |
| | | }) |
| | | return |
| | | } |
| | |
| | | uploadReverseSuccess(file) { |
| | | this.form.icon = file.imgurl; |
| | | this.form.fullIcon = file.imgurlfull; |
| | | }, |
| | | deletePic() { |
| | | this.form.fullIcon='' |
| | | this.form.icon='' |
| | | } |
| | | }, |
| | | } |