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

网站制作完成后为了seo搜狗排名点击

网站制作完成后为了,seo搜狗排名点击,店铺只做商品展示网站怎么做,比较好的做简历的网站更多ruoyi-nbcio功能请看演示系统 gitee源代码地址 前后端代码: https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后台管理系统 更多nbcio-boot功能请看演示系统 gitee源代码地址 后端代码: https://gitee.com/nbacheng/n…

更多ruoyi-nbcio功能请看演示系统

gitee源代码地址

前后端代码: https://gitee.com/nbacheng/ruoyi-nbcio

演示地址:RuoYi-Nbcio后台管理系统

更多nbcio-boot功能请看演示系统

gitee源代码地址

后端代码: https://gitee.com/nbacheng/nbcio-boot

前端代码:https://gitee.com/nbacheng/nbcio-vue.git

在线演示(包括H5) : http://122.227.135.243:9888
 

接上一节,今天主要处理新增一条动态表单数据的方法

1、后端处理

/*** 根据主表名,关键字和数据动态插入一条记录* @param tableName 主表名称*/@SaCheckPermission("workflow:form:edit")@PostMapping(value = "/addDataById")public R<?> addDataById(@RequestBody FormDataVo formDataVo) {return R.ok(formService.addDataById(formDataVo));}@Overridepublic int addDataById(FormDataVo formDataVo) {return baseMapper.addDataById(formDataVo.getTableName(), formDataVo.getPrimaryKey(),formDataVo.getUpdateMap());}int addDataById(@Param("tableName") String tableName, @Param("primaryKey") String primaryKey, @Param("insertMap") Map<String,Object> insertMap); <!-- 动态插入数据 --><insert id="addDataById">INSERT INTO ${tableName}<foreach collection="insertMap" item="val" index="field"  separator="," open="(" close=")"><if test="field != #{primaryKey}" >${field}</if>      </foreach>VALUES  <foreach collection="insertMap" item="val" index="key"  separator="," open="(" close=")"><if test="key != #{primaryKey}" >#{val}</if>          </foreach></insert>

2、前端处理


/** 新增按钮操作 */handleAdd() {this.reset();this.open = true;},// 表单重置reset() {this.form = {};//使用for循环向this.form中赋值for (let itemindex = 0; itemindex < this.columnList.length; itemindex++) {//$set()方法第一个参数是对象,第二个参数是key值,第三个参数是value值this.$set(this.form, this.columnList[itemindex].__vModel__, undefined);}this.resetForm("form");},/** 提交按钮 */submitForm() {this.$refs["form"].validate(valid => {if (valid) {this.buttonLoading = true;console.log("submitForm this.form",this.form)const id = this.form[this.primaryKey]const formData = {tableName: this.tableName,primaryKey: this.primaryKey,id: id,updateMap: this.form}console.log("submitForm formData",formData)if ( id != null && id.length > 0 ) {updateDataById(formData).then(response => {this.$modal.msgSuccess("修改成功");this.open = false;this.getList();}).finally(() => {this.buttonLoading = false;});} else {addDataById(formData).then(response => {this.$modal.msgSuccess("新增成功");this.open = false;this.getList();}).finally(() => {this.buttonLoading = false;});}}});},

3、效果图如下:

http://www.rdtb.cn/news/13466.html

相关文章:

  • php网站开发实例 电子书网站指数查询
  • 个人开办导航网站需要怎么做活动营销推广方案
  • 网站开发实践实验报告seo行业岗位有哪些
  • 一个外国人做的破解游戏网站晚上偷偷看b站软件推荐
  • 化妆品网站主页设计第三方网络营销平台有哪些
  • 凡科网站建设平台网店推广分为哪几种类型
  • aspx做网站石家庄头条今日头条新闻
  • 公司做网站注意什么太原竞价托管公司推荐
  • 美国和欧洲windowsvps的区别百度seo权重
  • web网站建设与计划论文近期国内新闻热点事件
  • 企石做网站seo互联网营销培训
  • 一家专门做男人的网站官网站内推广内容
  • 自主网站制作天津seo方案
  • 做好网站维护管理游戏广告推广平台
  • 网站视频封面怎么做怎么进入百度推广账户
  • 怎样做的无限制浏览网站品牌策划与推广方案
  • 网站建设南京百度注册公司网站
  • 万宁网站建设公司360优化大师官方下载最新版
  • 做外挂的网站叫蜗牛网站平台如何推广
  • 大型企业网站制作app推广方法及技巧
  • 太原做手机网站建设百度自助建站官网
  • 长沙vi设计公司seo外包优化网站
  • 电商网站建设多少钱在线crm网站
  • 做网站找谁好手机百度下载免费安装
  • 专业做设计的网站营销效果分析怎么写
  • 怎么确定电商网站建设的目标牛推网络
  • 关于做网站建设公司你应该知道的夜狼seo
  • 太原网站开发培训怎么营销一个产品
  • 做古代风格头像的网站百度搜索引擎营销案例
  • 建个网站怎放上一张图邵阳网站seo