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

佛山市外贸网站建设价格中建集团的重要事件

佛山市外贸网站建设价格,中建集团的重要事件,WordPress浮动导航插件,苏州做网站公司有哪些功能需求#xff1a; 列表进行批量查询#xff0c;需要对输入的值做提交校验#xff0c;分三种情况#xff1a; 若部分字符串有误#xff0c;部分字符串需要变更字体颜色做提示#xff0c;再次点击确认则对部分正确数据执行批量查询 若全部数据有误则变更字体颜色做提示 列表进行批量查询需要对输入的值做提交校验分三种情况 若部分字符串有误部分字符串需要变更字体颜色做提示再次点击确认则对部分正确数据执行批量查询 若全部数据有误则变更字体颜色做提示再次点击确认查询为空 若全部数据正确则直接执行批量查询 需要变更字体颜色做提示的情况分三种 一种为重复数据 一种为未通过校验数据 一种为既没有通过校验又重复的数据 知识点 contenteditablecontenteditable为true可编辑元素内容 实现 el-button typeprimary :size$formSize clickhandleBatchQuery批量查询/el-button!--批量查询-- el-dialog title批量查询 :visible.syncbatchQuery width600pxdiv v-ifbatchQuery ideditor classeditor refeditor contenteditabletrue clickshowInputtruespan v-if!showInput classuninput手动输入多个ICCID或设备id以换行符分隔如br/94816c8ded8fbr/94816c8ded8f/span/divdiv slotfooter classdialog-footerel-button clickcancelQuery取消/el-buttonel-button typeprimary clicksubmitQuery确定/el-button/div /el-dialogimport request from /utils/request; export default {data(){return{searchForm:{}batchQuery:false,showInput:false,queryInput:,oldQueryInput:[],resultList:[],once:false,}},methods:{//批量查询handleBatchQuery(){this.showInputfalsethis.batchQuerytruethis.queryInputundefinedthis.searchForm.batchStrundefined //查询条件this.oldQueryInput[]this.oncefalse},//取消批量查询cancelQuery(){this.showInputfalsethis.batchQueryfalsethis.queryInputundefinedthis.searchForm.batchStrundefinedthis.oldQueryInput[]this.oncefalsethis.$refs.editor.innerHTML},//提交批量查询submitQuery(){//无填写内容有提示语时确认if(this.$refs.editor.innerHTML.indexOf(手动输入多个ICCID或设备id)!-1){this.handleQuery()this.batchQueryfalsereturn}this.queryInputthis.$refs.editor.innerText.split(/[(\r\n)\r\n]/).filter(itemitem)//填写内容超过100条时确认if(this.queryInput.length100){this.$message.warning(批量查询数据数量不能超过100条)this.batchQuerytruethis.oncefalsereturn}//无填写内容无提示语时确认if(this.queryInput.length0){this.handleQuery()this.batchQueryfalsereturn}let batchListthis.queryInputif(!this.once){this.oldQueryInputthis.queryInput}else{this.oldQueryInputArray.from(new Set(this.oldQueryInput.filter(item!this.resultList.includes(item))))}let batchStrthis.oldQueryInput.join(,);//联调校验接口request({url: 接口路径,method: post,data: {batchStr:batchStr},}).then((res) {if (res.code 200) {this.resultListres.data || []this.oncetrueif(this.resultList.length0){this.batchQueryfalsethis.searchForm.batchStrthis.oldQueryInput.join(,);this.handleQuery()this.$refs.editor.innerHTMLthis.showInputfalse}else{this.batchQuerytruelet repeat[]for (let i 0; i batchList.length; i) {if (batchList.indexOf(batchList[i]) ! i) {repeat.push(batchList[i]);}}batchListbatchList.map(item{if(repeat.includes(item)!this.resultList.includes(item)){return itemdiv stylecolor:red${item,数据重复}/div}else if(this.resultList.includes(item)!repeat.includes(item)){return itemdiv stylecolor:red${item,无结果}/div}else if(repeat.includes(item)this.resultList.includes(item)){return itemitemdiv stylecolor:red${item,无结果且数据重复}/div}else{return itemdiv${item}/div;}})this.$refs.editor.innerHTMLbatchList.join(\n)}}})},} }.editor{width: 100%;height: 150px;overflow: auto;border: 1px solid #dcdfe6; } .uninput{color: #dcdfe6;color: #c0c4cc;line-height: 20px; }效果 当文字颜色变更提示后再次点击确认后只会查询正确的包含数据重复的数据
http://www.tj-hxxt.cn/news/230730.html

相关文章:

  • 网站规划书包括哪些方面wordpress个性化
  • 网站创建知识海康域名网站
  • 崇义网站建设公众号登录入口在哪
  • 网站如何去分析windos 下做网站工具
  • 找i满洲做卖房广告不收费的网站网页设计需要学什么语言
  • 泰安网站开发制作公司规划院网站建设书
  • 网站开发与iso9001关系怎么做网站编程
  • 呼和浩特 的网站建设网站建设优化过程中的优化策略
  • 网站开发方向wordpress活动插件
  • 动力启航做网站校园网站建设素材
  • 世纪兴网站建设wordpress怎么放图片不显示
  • 海口免费自助建站模板淘宝关键词优化推广排名
  • 东莞高端网站建设哪个好wordpress侧栏导航栏
  • 网站开发代做东营建设网站公司电话
  • 网站建设的软件是哪个品牌推广策略包括哪些内容
  • 有什么网站可以自己做书网站首页做的好看
  • 电商型网站是否是趋势wordpress网站入口
  • 合肥网站营销网页制作中的常见问题
  • 西安网站建设开发熊掌号临沂网站哪家好
  • 网站开发小组wordpress管理员手册
  • 黄岩建设局台州网站建设为什么不用wordpress
  • 如何安装网站百度关键词搜索量查询
  • 上海网站建设流程青海建设厅的门户网站
  • 专门做讲座的英语网站手把手教你用动易做网站
  • 成都网站建设07fly网络维护管理
  • 织梦网站开发门户网站系统有哪些平台
  • 企业网站内容如何搭建单页网站 产品放哪
  • 注册域名网站asp网站开发心得体会
  • 上上海网站建设设计集团门户网站建设公司
  • 椒江网站建设578做网站wordpress需要的插件