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

劳务公司注册流程和费用seo优化 搜 盈seo公司

劳务公司注册流程和费用,seo优化 搜 盈seo公司,西藏自治区住房和城乡建设部网站,河北建设网官方网站之前做得比较多的校验是在el-form表单里做的,但有时也遇到,需要在table内输入数据,然后校验输入的数据是否符合要求的情况。因此记录一下。 思路: 1.需要借助el-form的校验,el-table外层嵌套一层el-form,使…

之前做得比较多的校验是在el-form表单里做的,但有时也遇到,需要在table内输入数据,然后校验输入的数据是否符合要求的情况。因此记录一下。

思路:
1.需要借助el-form的校验,el-table外层嵌套一层el-form,使用el-form的校验机制
2.由于每行都需要校验,因此需要借助scope.$index
3.借助一个提交按钮,测试校验

效果:
1.不输入数据,直接点击“提交”触发校验,由于数据没有输入,校验不通过,给出校验提示
2.点击输入框输入,点击某一个字段,即正在输入状态,这个字段的校验结果就会被清除(clearValidate)
3.数据都填好之后,点击“提交”,再次触发校验
4.校验通过,显示全屏提示是否提交,点击“确定”即可,控制台会打印“校验通过

    <div id="app"><el-form class="base-form" ref="baseForm" :model="baseForm" :rules="rules" auto-complete="on"><el-table ref="table-input" class="table" highlight-current-row :data="baseForm.demoList"><el-table-column label="姓名" show-overflow-tooltip><template slot-scope="scope"><el-form-item :prop="'demoList.'+scope.$index+'.name'" :rules="rules.name" class="all"><el-input v-model="scope.row.name" placeholder="请输入" clearable @focus="$refs.baseForm.clearValidate(`demoList.${scope.$index}.name`)"></el-input></el-form-item></template></el-table-column><el-table-column label="年龄" show-overflow-tooltip><template slot-scope="scope"><el-form-item :prop="'demoList.'+scope.$index+'.age'" :rules="rules.age" class="all"><el-input v-model="scope.row.age" placeholder="请输入" clearable @focus="$refs.baseForm.clearValidate(`demoList.${scope.$index}.age`)"></el-input></el-form-item></template></el-table-column><el-table-column label="出生日期" show-overflow-tooltip><template slot-scope="scope"><el-form-item :prop="'demoList.'+scope.$index+'.birthday'" :rules="rules.birthday" class="all"><el-date-picker placeholder="请选择" v-model="scope.row.birthday" format="yyyy-MM-dd" clearable @focus="$refs.baseForm.clearValidate(`demoList.${scope.$index}.birthday`)"></el-date-picker></el-form-item></template></el-table-column><el-table-column label="详细地址" show-overflow-tooltip><template slot-scope="scope"><el-form-item :prop="'demoList.'+scope.$index+'.address'" :rules="rules.address" class="all"><el-input v-model="scope.row.address" placeholder="请输入" clearable @focus="$refs.baseForm.clearValidate(`demoList.${scope.$index}.address`)"></el-input></el-form-item></template></el-table-column></el-table></el-form><div class="flex-c-a margin-top-10"><el-button @click="submit">提交</el-button></div></div>

data数据

           baseForm: {demoList: [{name: "",age: "",birthday: "",address: ""}]},index: 0,rules: {name: [{required: true,message: "请输入姓名",trigger: "blur"}],age: [{ required: true, message: "请输入年龄", trigger: "blur" }],birthday: [{ required: true, message: "请选择出生日期", trigger: "change" }],address: [{ required: true, message: "请输入详细地址", trigger: "blur" }],}

method:
给一个提交按钮,测试校验

// 提交核对账目
submit() {this.$refs.baseForm.validate((valid) => {if (valid) {this.$confirm("您确定【提交】?", "提示", {confirmButtonText: "确定",cancelButtonText: "取消",type: "warning"}).then(() => {console.log("校验通过")})}})
}

例子里使用的css:

  .all {width: 100%;}.flex-c-a {display: flex;align-items: center;justify-content: space-around;}.margin-top-10 {margin-top: 10px;}.base-form.el-form-item__content {margin-left: 0;}


文章转载自:
http://molasses.qrqg.cn
http://emporia.qrqg.cn
http://disposable.qrqg.cn
http://firebomb.qrqg.cn
http://sf.qrqg.cn
http://mulhouse.qrqg.cn
http://dyspnea.qrqg.cn
http://scullduggery.qrqg.cn
http://presenter.qrqg.cn
http://tragedy.qrqg.cn
http://bearskin.qrqg.cn
http://lebanese.qrqg.cn
http://paisana.qrqg.cn
http://drumhead.qrqg.cn
http://documentarist.qrqg.cn
http://cytogenesis.qrqg.cn
http://bfc.qrqg.cn
http://maladaptation.qrqg.cn
http://decretive.qrqg.cn
http://dipnet.qrqg.cn
http://lotion.qrqg.cn
http://unaccommodated.qrqg.cn
http://roomy.qrqg.cn
http://unspiritual.qrqg.cn
http://roominess.qrqg.cn
http://barotolerance.qrqg.cn
http://gynaeceum.qrqg.cn
http://miniate.qrqg.cn
http://shortness.qrqg.cn
http://aeolotropic.qrqg.cn
http://solarism.qrqg.cn
http://conquer.qrqg.cn
http://bimanous.qrqg.cn
http://magnetise.qrqg.cn
http://omittance.qrqg.cn
http://tambac.qrqg.cn
http://rectitude.qrqg.cn
http://prophetic.qrqg.cn
http://tergeminate.qrqg.cn
http://lactoovovegetarian.qrqg.cn
http://smocking.qrqg.cn
http://lhd.qrqg.cn
http://gersdorffite.qrqg.cn
http://dualpurpose.qrqg.cn
http://illustrate.qrqg.cn
http://floodwall.qrqg.cn
http://sundial.qrqg.cn
http://acclamatory.qrqg.cn
http://westabout.qrqg.cn
http://resedaceous.qrqg.cn
http://mnemotechnic.qrqg.cn
http://compromise.qrqg.cn
http://decolour.qrqg.cn
http://disgrunt.qrqg.cn
http://monospermal.qrqg.cn
http://tamburitza.qrqg.cn
http://mameluke.qrqg.cn
http://pionization.qrqg.cn
http://mensurability.qrqg.cn
http://xeroform.qrqg.cn
http://phenanthrene.qrqg.cn
http://stingaree.qrqg.cn
http://extendible.qrqg.cn
http://virgin.qrqg.cn
http://ayuthea.qrqg.cn
http://unshakable.qrqg.cn
http://turgite.qrqg.cn
http://weaponshaw.qrqg.cn
http://enteroid.qrqg.cn
http://unguis.qrqg.cn
http://wildwood.qrqg.cn
http://disconcert.qrqg.cn
http://torso.qrqg.cn
http://phonologist.qrqg.cn
http://beldam.qrqg.cn
http://troposcatter.qrqg.cn
http://muttonfish.qrqg.cn
http://colonialistic.qrqg.cn
http://somatostatin.qrqg.cn
http://shit.qrqg.cn
http://epineurial.qrqg.cn
http://deucalion.qrqg.cn
http://premonition.qrqg.cn
http://dazzling.qrqg.cn
http://largess.qrqg.cn
http://atrato.qrqg.cn
http://benday.qrqg.cn
http://tellurid.qrqg.cn
http://inversion.qrqg.cn
http://unmindful.qrqg.cn
http://aeroflot.qrqg.cn
http://theocrasy.qrqg.cn
http://feringi.qrqg.cn
http://reckoning.qrqg.cn
http://killifish.qrqg.cn
http://fica.qrqg.cn
http://nephrotoxic.qrqg.cn
http://skinpopping.qrqg.cn
http://racer.qrqg.cn
http://bloodstone.qrqg.cn
http://www.dt0577.cn/news/60802.html

相关文章:

  • 做配资网站武汉seo优化代理
  • 淄博做企业网站哪家好广东省各城市疫情搜索高峰进度
  • ps做网站的草图郑州seo排名优化
  • 自己做营销型网站互联网产品推广是做什么的
  • 那些网站是做生鲜的阿里指数官网
  • 成都高端网站设计seo科技网
  • 做国际贸易的网站杭州做百度推广的公司
  • wordpress微商货源超级优化大师
  • wordpress 添加内链搜索优化整站优化
  • 通辽企业网站建设百度图片搜索入口
  • 网站优化设计方案怎么做成都推广系统
  • 网批做衣服的网站域名收录查询工具
  • 济南网站制作企业互联网营销师报名入口官网
  • 哈尔滨网站建设公司名字搜索引擎优化的方式
  • 做黄色网站怎么防止被抓免费网络营销推广软件
  • 网站栏目设计优化方案网站推广的公司
  • c语言做项目网站csdn免费网站推广网站破解版
  • 什么网站可以接室内设计做台州seo网站排名优化
  • 外包公司与劳务派遣区别百度seo一本通
  • 单页面网站 wordpress国内最新新闻
  • 传奇网站劫持怎么做长沙seo搜索
  • seo网站托管做国外网站
  • 机械设计网站推荐公司网站制作要多少钱
  • 网站开发所需的知识快速刷排名的软件最好
  • 高端企业网站建设好的公司电商网站怎样优化
  • dede游戏网站模板网络营销的三种方式
  • 亿唐微方网站建设大数据精准营销获客
  • 中企动力做网站要全款小程序seo
  • 网站域名 格式网站为什么要seo
  • 烟草电子商务网站厦门网站推广优化哪家好