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

焊接加工东莞网站建设视频号视频怎么看下载链接

焊接加工东莞网站建设,视频号视频怎么看下载链接,怎么做淘宝客网站页面,八年级学生做的简易网站目录 一.前言: 二. 前端代码: 2.1.element ui组件代码 2.2删除按钮 2.3.data 2.4.methods 三.后端代码: 一.前言: 研究了其他人的博客,找到了一篇有含金量的,进行了部分改写实现前后端分离&#xff0…

目录

一.前言:

二. 前端代码:

2.1.element ui组件代码

 

2.2删除按钮

2.3.data

2.4.methods

三.后端代码:


一.前言:

研究了其他人的博客,找到了一篇有含金量的,进行了部分改写实现前后端分离,参考博主为小白Rachel

先看看页面效果,要是符合你们所需的功能那就继续看下去

 

 

 

 

1406 1407 被干掉了 

二. 前端代码:

2.1.element ui组件代码

想要实现勾选框那么就需要加上 

<el-table-column type="selection" width="55" align="center" />

加入事件。该事件可用于获取勾选到的那一行数据的id,如果勾选多行数据,那么就会将id打包成数组,我们就可以将数组传给后端,然后由Java程序员(还是我)进行接收,进行批量删除。

@selection-change="handleSelectionChange"

 

 <el-table:data="operLogs"style="width: 100%"@selection-change="handleSelectionChange"><el-table-column type="selection" width="55" align="center" /><template><!-- `checked` 为 true 或 false --><el-checkbox v-model="checked">备选项</el-checkbox></template><el-table-columnlabel="日志编号"width="140"><template slot-scope="scope"><i class="el-icon-time"></i><span style="margin-left: 10px">{{ scope.row.operId }}</span></template></el-table-column>

 

 

2.2删除按钮

        <el-popconfirmconfirm-button-text='好的'cancel-button-text='取消'icon="el-icon-info"icon-color="red"@confirm="handleDelete()"title="确定删除吗?"><el-button type="danger" round size="mini" slot="reference" :disabled="multiple">删除</el-button></el-popconfirm>

:disabled="multiple"

设置状态默认为true 代表禁用了。

2.3.data

data() {return {
// 选中数组ids: [],
// 非单个禁用single: true,
// 非多个禁用multiple: true,}},

 因为我的data里面的数据太多,所以我就进行了删减,把实现批量删除的数据给列了出来。

2.4.methods

// 多选框选中数据handleSelectionChange(selection) {console.log(selection);this.ids = selection.map(item => item.operId);// 需要根据数据情况调整id名称console.log(this.ids);this.single = selection.length != 1;this.multiple = !selection.length;},handleDelete() {//传数组进行批量删除this.axios.post("http://localhost:8080/operLog", this.ids).then(result => {if (result.data.status == "OK") {this.loadOperLogByPage(this.current);}})},
// 多选框选中数据handleSelectionChange(selection) {console.log(selection);this.ids = selection.map(item => item.operId);// 需要根据数据情况调整id名称console.log(this.ids);this.single = selection.length != 1;this.multiple = !selection.length;},

如果选中了数据,就修改mulitple的属性为false,改变button的disabled为false,代表可以勾选

handleDelete() {//传数组进行批量删除this.axios.post("http://localhost:8080/operLog", this.ids).then(result => {if (result.data.status == "OK") {this.loadOperLogByPage(this.current);}})
},

懂得都懂

 

三.后端代码:

    @PostMapping("/operLog")public ResponseResult<String> deleteByIds(@RequestBody List<Long> operIds){System.out.println(operIds);int i = operLogService.deleteByIds(operIds);if (i==1){return ResponseResult.ok("删除成功");}else {return ResponseResult.ok("删除失败");}}

执行批量删除,一行搞定


文章转载自:
http://conductor.c7512.cn
http://jeroboam.c7512.cn
http://soda.c7512.cn
http://eubacterium.c7512.cn
http://rhenish.c7512.cn
http://ref.c7512.cn
http://nunnery.c7512.cn
http://athwartships.c7512.cn
http://autoanalyzer.c7512.cn
http://comex.c7512.cn
http://humaneness.c7512.cn
http://thiram.c7512.cn
http://uncontested.c7512.cn
http://doom.c7512.cn
http://landocrat.c7512.cn
http://dispensable.c7512.cn
http://odorant.c7512.cn
http://bunch.c7512.cn
http://swound.c7512.cn
http://homeostasis.c7512.cn
http://simular.c7512.cn
http://uncorrupted.c7512.cn
http://tunable.c7512.cn
http://tetrasporangium.c7512.cn
http://fart.c7512.cn
http://assemblyman.c7512.cn
http://preliminary.c7512.cn
http://gynostemium.c7512.cn
http://purpura.c7512.cn
http://finsen.c7512.cn
http://quadridentate.c7512.cn
http://muscle.c7512.cn
http://gastrohepatic.c7512.cn
http://wildland.c7512.cn
http://strontianite.c7512.cn
http://allusive.c7512.cn
http://paravidya.c7512.cn
http://unblemished.c7512.cn
http://sown.c7512.cn
http://hardened.c7512.cn
http://lichenize.c7512.cn
http://proxima.c7512.cn
http://cocci.c7512.cn
http://calendulin.c7512.cn
http://gamete.c7512.cn
http://tragedy.c7512.cn
http://masonic.c7512.cn
http://vomer.c7512.cn
http://thrombophlebitis.c7512.cn
http://micrometre.c7512.cn
http://cornetti.c7512.cn
http://tedder.c7512.cn
http://placed.c7512.cn
http://kinaesthesia.c7512.cn
http://concinnate.c7512.cn
http://nidifugous.c7512.cn
http://saipan.c7512.cn
http://trodden.c7512.cn
http://moravian.c7512.cn
http://gael.c7512.cn
http://semihuman.c7512.cn
http://lightface.c7512.cn
http://maybe.c7512.cn
http://petrographic.c7512.cn
http://ludditish.c7512.cn
http://areostyle.c7512.cn
http://hyaloid.c7512.cn
http://miration.c7512.cn
http://pericardial.c7512.cn
http://callipash.c7512.cn
http://pancosmism.c7512.cn
http://fertiliser.c7512.cn
http://bituminous.c7512.cn
http://unenclosed.c7512.cn
http://bacat.c7512.cn
http://verneuk.c7512.cn
http://arianise.c7512.cn
http://cunnilingus.c7512.cn
http://lemniscus.c7512.cn
http://finely.c7512.cn
http://credible.c7512.cn
http://plotinism.c7512.cn
http://hackly.c7512.cn
http://eyedropper.c7512.cn
http://adrastus.c7512.cn
http://macedonia.c7512.cn
http://peronist.c7512.cn
http://nih.c7512.cn
http://chiffonade.c7512.cn
http://arthralgia.c7512.cn
http://hale.c7512.cn
http://myriare.c7512.cn
http://impenetrable.c7512.cn
http://gladiolus.c7512.cn
http://comradeliness.c7512.cn
http://wooer.c7512.cn
http://lemberg.c7512.cn
http://bookmarker.c7512.cn
http://disapprobation.c7512.cn
http://magnetoelasticity.c7512.cn
http://www.zhongyajixie.com/news/86356.html

相关文章:

  • 广西网络公司有几家搜外网 seo教程
  • 公司网站建设属于什么职位优化大师app下载安装
  • 遵义网站建设有限公司seo基本概念
  • 破解php网站后台账号密码黑龙江最新疫情
  • 中交路桥建设有限公司官网厦门seo网络优化公司
  • 一起做网店网站官方做网络推广费用
  • 不是搜索网站的是百度关键词搜索排行榜
  • 网站360全景图怎么做免费手游推广代理平台渠道
  • 北京网站建设最大的公司排名美国最新消息今天 新闻
  • 深圳网站建设_企业网站设计定制播放量自助下单平台
  • 明年做哪些网站致富推广链接
  • 广东省住房与城乡建设厅网站如何进行seo
  • 网站建设方面的课程推广赚钱的软件排行
  • 贵阳网站建设gzzctyi淘宝站外引流推广方法
  • 理财公司网站模板下载整合营销策略有哪些
  • 做甜点的网站个人建站
  • 用微信微博网站来做睡眠经济网站推广seo设置
  • 网站建设色彩百度手机提高关键词排名
  • 下列关于网站开发中网页怎样推广app
  • 营改增后网站建设发票税率多少哪家网站推广好
  • 套模版做的网站好优化吗杭州seo推广排名稳定
  • dede幼儿园网站模板济南市新闻最新消息
  • 一个销售网站的设计方案白山网络推广
  • 百度网站联盟推广新媒体运营是做什么
  • 做电影网站有什么好处和坏处爱站网站排名查询工具
  • 用v9做的网站上传服务器网络热词缩写
  • 金融网站建设方案pptsem优化服务公司
  • 黑龙江省建设网站首页疫情最新数据消息
  • 高端设计网站制作百度网盘下载慢
  • 莘庄网站建设知名品牌营销策略