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

做名片最好的网站档案网站建设现状分析

做名片最好的网站,档案网站建设现状分析,优化网站要多少钱,什么公司做企业网站期望目标#xff1a;实现一个能通过按钮来动态增加表格栏#xff0c;每次能添加一行#xff0c;每行末尾有一个删减按钮。 el-button typetext classprimaryclickaddMember()添加/el-button el-table:datam…期望目标实现一个能通过按钮来动态增加表格栏每次能添加一行每行末尾有一个删减按钮。 el-button typetext classprimaryclickaddMember()添加/el-button el-table:datamemberListstylewidth: 100%:header-cell-style{background: #fafafa,color: #aaa,fontSize: 15px,}el-table-column propindex label序号 width60template slot-scopescopespan{{ getMemberIndex(scope.$index) }}/span/template/el-table-columnel-table-column propfacilityName label设施名称template slot-scopescopeel-select v-modelscope.row.facilityName placeholder请选择名称 clearableel-option v-fordict in dict.type.data_facilities_name :labeldict.label :valuedict.value //el-select/template/el-table-columnel-table-column propfacilitySpecificType label具体类型template slot-scopescopeel-select v-modelscope.row.facilitySpecificType placeholder请选择类型 clearableel-option v-fordict in dict.type.data_facilities_type :labeldict.label :valuedict.value//el-select/template/el-table-columnel-table-column propfacilityLocation label设施位置template slot-scopescopeel-select v-modelscope.row.facilityLocation placeholder请选择位置 clearableel-option v-fordict in dict.type.data_equipment_location :labeldict.label :valuedict.value//el-select/template/el-table-columnel-table-column propfacilityTp label规格template slot-scopescopeel-input v-modelscope.row.facilityTp/el-input/template/el-table-columnel-table-column propaccountabilityUnit label责任单位template slot-scopescopeel-input v-modelscope.row.accountabilityUnit/el-input/template/el-table-columnel-table-column label操作template slot-scopescopeel-buttonsizeminitypetexticonel-icon-deleteclickhandleDelete(scope.$index,memberList)删除/el-button/template/el-table-column/el-table// 添加杆件数据按钮addMember() {var member {index: this.dataId,facilityNo: ,facilityName: ,facilitySpecificType: ,facilityLocation: ,facilityTp: ,accountabilityUnit: ,};this.memberList.push(member);}, 效果 遇到的问题一在删减时当前所有行的序号需要自动删减重新计算变更序号 // 删除行数据后序号自动连贯更新getMemberIndex(index) {return this.memberList.slice(0, index 1).length ;}, /** 删除按钮操作 */handleDelete(index, listName) {if (index ! -1 listName memberList) {this.memberList.splice(index, 1)}}, 给序号那一栏字段单独重设动态变更indexspan{{ getMemberIndex(scope.$index) }}/span每次删除一行调用handleDelete函数再用getMember重新计算一遍所有序号 如果有数据验证的需求就需要在table外面再嵌套一层form因为只有el-form表单猜有数据验证的功能。 el-form :modelmemberForm :rulesrules refmemberForm/el-form 问题二 多个表单同时用一个接口提交在提交数据表单时后端要求有特殊的数据结构需要将获取到的多个表单数据重新按要求整合。新设立一个json字段存储 /** 提交按钮 */async submitForms() {// 构建数据结构const facilitiesData {pointId: this.pointForm.pointId,pointName: this.pointForm.pointName,memberList: this.memberList.map(member ({facilityName: member.facilityName,facilitySpecificType: member.facilitySpecificType,facilityLocation: member.facilityLocation,facilityTp: member.facilityTp,accountabilityUnit: member.accountabilityUnit,})),}// 发送请求添加设施await addFacilities(facilitiesData).then(response {this.$modal.msgSuccess(新增成功);this.goBack();})},
http://www.w-s-a.com/news/780055/

相关文章:

  • 国税网站页面申报撤销怎么做网站空间如何买
  • 简单的购物网站模板跨境建站平台
  • 网站主机多大html网站地图生成
  • 可信赖的邵阳网站建设德清做网站
  • 上传文件网站根目录wordpress博客管理
  • 网站seo优缺点网站建设公司咨
  • 网站设计需要会什么建设网站的目的以及意义
  • 怎么样推广自己的网站wordpress register_form
  • 网站公司建站凤翔网站建设
  • 网站建设协低价格的网站建设公司
  • 研发网站建设报价深圳网站建设前十名
  • 宠物发布网站模板wordpress中文免费电商模板
  • 济南做网站创意服装品牌策划公司
  • 本地电脑做视频网站 外网连接不上软件商城源码
  • 足球直播网站怎么做crm系统介绍
  • 株洲网站建设联系方式东莞凤岗网站制作
  • 小纯洁网站开发如何注册域名
  • 网上做试卷的网站如何把刚做的网站被百度抓取到
  • 滕州网站建wordpress用户中心按钮不弹出
  • 清远新闻最新消息福建seo搜索引擎优化
  • 凡客建站网微信网站怎么做的
  • 网站建设费怎么写会计科目行业网站建设公司
  • 网站里的友情链接网站建设个人简历的网页
  • 佛山自助建站软件湖南seo优化推荐
  • 免费微信微网站模板下载不了优化人员配置
  • wordpress 导航网站主题画流程图的网站
  • 皮卡剧网站怎样做排名网
  • 网站开发 兼职哪个网站是做安全教育
  • 商品展示类网站怎么用群晖nas做网站
  • 长腿蜘蛛wordpresssem优化推广