当前位置: 首页 > news >正文

西安建设网站首页怎么网上宣传自己的产品

西安建设网站首页,怎么网上宣传自己的产品,潜江资讯网 手机版免费生活,怎么制作网页教程步骤目录 一、需求效果二、代码详情html方法接口 一、需求效果 在使用elementui的Popover 弹出框时&#xff0c;需求是在table列表里使用&#xff0c;循环出来&#xff0c;无法取消。 二、代码详情 html <el-table-column v-if"checkPermission([admin,user:resetPass…

目录

    • 一、需求效果
    • 二、代码详情
      • html
      • 方法
      • 接口

一、需求效果

在使用elementui的Popover 弹出框时,需求是在table列表里使用,循环出来,无法取消。
在这里插入图片描述
在这里插入图片描述

二、代码详情

html

 <el-table-column v-if="checkPermission(['admin','user:resetPass','user:edit','user:del'])" label="操作" width="200" align="center" fixed="right"><template slot-scope="scope"><el-popoverv-permission="['admin','user:resetPass']":ref="scope.row.id"placement="top"width="180"><p>确定重置密码吗?</p><div style="text-align: right; margin: 0"><el-button size="mini" type="text" @click="handleClick()">取消</el-button><el-button type="primary" size="mini" @click="subResetPass(scope.row)">确定</el-button></div><el-button slot="reference" type="primary" icon="el-icon-key" size="mini"/></el-popover><el-button v-permission="['admin','user:edit']" size="mini" type="primary" icon="el-icon-edit" @click="edit(scope.row)"/><el-popoverv-permission="['admin','user:del']":ref="scope.row.id"placement="top"width="180"><p>确定删除本条数据吗?</p><div style="text-align: right; margin: 0"><el-button size="mini" type="text" @click="$refs[scope.row.id].doClose()">取消</el-button><el-button :loading="delLoading" type="primary" size="mini" @click="subDelete(scope.row.id)">确定</el-button></div><el-button slot="reference" type="danger" icon="el-icon-delete" size="mini"/></el-popover></template></el-table-column>

方法

    handleClick(val) {document.body.click()},
    subResetPass(row) {const params = { userId: row.id }resetPass(params).then(res => {this.$notify({title: '重置成功',message: '默认密码:123456',type: 'success',duration: 2500})document.body.click()}).catch(err => {document.body.click()console.log(err.response.data.message)})},

接口

export function resetPass(params) {return request({url: 'stbiapi/api/users/resetPass',method: 'get',params})
}

参考文章:el-popover在列表里循环使用,关闭不了???
el-popover 使用 doClose() 关闭窗口不生效
[Vue] element表格中使用el-popover弹窗编辑内容保存和取消的doClose无效解决办法

http://www.hkea.cn/news/602994/

相关文章:

  • 让顾客心动的句子seo模拟点击软件源码
  • 设计类专业包括哪些kj6699的seo综合查询
  • 手机网站制作哪家好查关键词
  • 米拓企业网站管理系统电商培训机构排名前十
  • 做效果图有哪些网站seo点击排名
  • 网络营销推广网站收录seo推广排名平台有哪些
  • 产品经理如何看待网站开发广州软件系统开发seo推广
  • wordpress 忘记管理员如何做网站seo
  • app和网站哪个有优势淘宝关键词排名
  • wordpress该域名宁波网站seo公司
  • 建购物网站怎么建呀简单的网站建设
  • 江苏省建设教育协会网站首页百度知道合伙人答题兼职入口
  • 做优化的网站平台搭建
  • 做网站需要多久网络推广是什么专业
  • 厦门加盟网站建设线上推广营销
  • 定制网站案例seo搜索引擎优化薪酬
  • 网站制作成功后怎么使用浏览器观看b站视频的最佳设置
  • 一家专门做开网店的网站北京seo专员
  • 专业企业网站搭建服务头条权重查询
  • 去哪儿网站上做民宿需要材料免费的黄冈网站有哪些平台
  • 网站建设网现在推广什么app最挣钱
  • 嘉兴装修公司做网站安装百度到桌面
  • 电商网站特点外贸营销网站建站
  • 上海市住房城乡建设管理委员会网站网络营销软文范例大全800
  • 莱芜区政协网站做网络优化的公司排名
  • 太原网站建设开发公司电商运营基本知识
  • php做企业网站seo网站推广企业
  • 万网网站备案授权书免费发布推广信息的b2b
  • 乡镇可以做门户网站seo是什么意思职业
  • 建设银行网站优点做个公司网站大概多少钱