若依框架学习笔记-前端

参考:

前端手册 | RuoYi

关闭当前标签并刷新父页面:

   close() {
        const obj = { path: "/system/organization",name:'Organization' };
        
        this.$tab.closeOpenPage(obj).then(() => {
          // 执行结束的逻辑
          this.$tab.refreshPage(obj);
        })
      },

 

展示svg 自定义图片:

<svg-icon class-name="tree-icon" icon-class="tree-icon" />

  

表格展示图片:

<!-- 内链地址预览 -->
<el-table-column label="图片" align="center" prop="url" width="100" >
  <template slot-scope="scope">
    <image-preview :src="scope.row.url" :width="50" :height="50"/>
  </template>
</el-table-column>

<!-- 外链地址预览 -->
<el-table-column label="图片" align="center" prop="url" width="100" >
  <image-preview src="http://ruoyi.vip/images/logo.png" />
</el-table-column>

 

posted @ 2022-12-02 21:57  DarGi  阅读(1002)  评论(0编辑  收藏  举报