Mr.Zhang
2023-08-15 38dff69b2c218ae53b4cc79257368139a2803ebc
platform_web/src/components/system/menu/OperaMenuH5Window.vue
@@ -29,7 +29,7 @@
            @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>
@@ -59,7 +59,8 @@
      // 需排除选择的菜单ID
      excludeMenuId: null,
      uploadData: {
        floader: 'company/menu'
        // floader: 'company/menu'
        folder: 'company/menu'
      },
      parent: {},
      // 表单数据
@@ -98,7 +99,6 @@
      debugger
      this.title = title
      
      console.log('-----',parent);
      this.visible = true
      // 新建,menu为空时表示新建菜单
      if (target == null) {
@@ -109,6 +109,7 @@
          this.form.id = null
          this.form.parentId = parent == null ? null : parent.id
          this.parentName = parent == null ? null : parent.name
          this.form.fullIcon = ''
        })
        return
      }
@@ -124,6 +125,10 @@
    uploadReverseSuccess(file) {
      this.form.icon = file.imgurl;
      this.form.fullIcon = file.imgurlfull;
    },
    deletePic() {
      this.form.fullIcon=''
      this.form.icon=''
    }
  },
}