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

伪静态 网站如何扫描西青做网站的公司

伪静态 网站如何扫描,西青做网站的公司,网站的弹窗是用什么软件做的,wordpress扫号器后端数据代码写于下一篇#xff1a;输入搜索、分组展示选项、下拉选取#xff0c;全局跳转页#xff0c;el-select 实现 —— 后端数据处理代码#xff0c;抛砖引玉展思路 【效果图】#xff1a;分组展示选项 【去界面操作感受一下】— 便捷简洁的企业官网 【录制效…后端数据代码写于下一篇输入搜索、分组展示选项、下拉选取全局跳转页el-select 实现 —— 后端数据处理代码抛砖引玉展思路  【效果图】分组展示选项 【去界面操作感受一下】— 便捷简洁的企业官网 【录制效果视频展示】  菜单栏-快速检索1 【流程】 1读取目标数据如果是多个需要多次读取 2对数据进行分组放入特定分组数据结构 3各分组做相应设置 4数据组装到 el-select 控件 5点击选项跳转到相应位置。 现将关键代码及结构附于下方 1. 分组数据结构示例 1标准结构示例 groupSelectOptions2: [{id: 1,label: 超期,options: [{value: cqwbj,label: 超期未办结},{value: ycq,label: 已超期}]},{id: 2,label: 按天,options: [{value: t1,label: 1天},{value: t2,label: 2天},{value: t3,label: 3天}]},{id: 3,label: 按小时,options: [{value: h1,label: 1小时},{value: h2,label: 2小时}]}] 2项目数据结构示例 主要的就 label 和 srcPath 这两个属性其余省略label用于显示srcPath存储选取跳转的 url 地址。 [{label:,options:[{srcPath: }]}, ] 2. 封装 el-select 成组件 templatediv styleheight: 15px; justify-content: center; align-items: center;templateel-selectv-modelinnerValuefilterable:remotetrue:likeQueryfalsechangechangeSelect:clearableclearable:multiplemultiple:remote-methodfetchOptionssizesmallpopper-classproductGroupSelector:placeholderplaceholderel-option-group classproductGroupSelector-group v-forgroup in localOptions :keygroup.label :labelgroup.labeldiv style v-ifmultiplediv styleel-checkbox v-modelgroup.checked changeselectAll($event, group.id) :indeterminategroup.isIndeterminate/el-checkbox/divdivel-optionclassproductGroupSelector-optionv-foritem in group.options:keyitem.value:labelitem.label:valueitem/el-option/div/divdiv v-elseel-optionclassproductGroupSelector-optionv-for(item,index) in group.options:keyindex:labelitem.label:valueitem/el-option/div/el-option-group/el-select/template/div /template 3. javascript 和 css scriptimport $ from jquery; import {getRequest} from /api/api; export default {name: LiloGroupSelect,model: {prop: value,event: change},props: {value: {type: [String, Array],default: () []},options: {type: Array,default: () []},placeholder: {type: String,default: 请选择},multiple: {type: Boolean,default: false},clearable: {type: Boolean,default: false},collapseTags: {type: Boolean,default: false},likeQuery: {type: Boolean,default: false},searchApi: {type: String,default: // 后端搜索API地址}},data() {return {innerValue: this.value,inputValue: ,// 添加这一行来定义 inputValueselectedOption: ,// searchQuery: ,filteredOptions: [],loading: false,allOptions: [], // 存储所有后端返回的选项用于筛选localOptions: [...this.options], // 新增属性用于存储当前选项groupSelectOptions2: [{id: 1,label: 超期,options: [{value: cqwbj,label: 超期未办结},{value: ycq,label: 已超期}]},{id: 2,label: 按天,options: [{value: t1,label: 1天},{value: t2,label: 2天}]},{id: 3,label: 按小时,options: [{value: h1,label: 1小时},{value: h2,label: 2小时}]}],isDropdownVisible: false, // 控制下拉列表的显示状态(默认收起)隐藏};},mounted() {this.innerValue this.value;this.allOptions [...this.options, ...this.groupSelectOptions2]; // 初始化所有选项this.filteredOptions [...this.options]; // 初始化过滤后的选项},watch: {value(newVal, odlVal) {this.innerValue newVal;console.log(当前输入值或选择值this.innerValue)},searchQuery(newVal) {console.log(监听查询输入newVal)this.fetchOptions(newVal);}},methods: {// 模拟后端查询直接返回 groupSelectOptions2fetchOptions(queryString) {console.log(调用后端请求数据....查询条件【queryString】查询接口为this.searchApi)if (this.loading) return;this.loading true;try {// 此处模拟为直接返回 groupSelectOptions2实际应调用后端APIthis.allOptions [...this.options, ...this.groupSelectOptions2]; // 合并原始选项和后端返回的选项去重应在后端处理或此处额外处理if(this.likeQuery) queryString %queryString%;this.getRequest(this.searchApi, {query: queryString}).then(resp {if (resp){this.localOptions [...resp];// console.log(调用后端返回结果JSON.stringify(resp))}});// this.localOptions [...this.groupSelectOptions2]; // 更新 localOptions 而不是 this.options// this.filteredOptions this.filterOptionsByQuery(this.allOptions, queryString);console.log(调用后端数据处理结束。。。)} catch (error) {console.error(搜索失败:, error);} finally {this.loading false;}},async query(queryString){if(this.likeQuery) queryString %queryString%;this.getRequest(this.searchApi, {query: queryString}).then(resp {if (resp){this.localOptions [...resp];}});},filterOptionsByQuery(options, query) {return this.allOptions.reduce((acc, group) {const filteredGroup { ...group, options: group.options.filter(option option.label.toLowerCase().includes(query.toLowerCase())) };// const filteredGroup { ...group, options: group.options.filter(option option.label.includes(query)) };if (filteredGroup.options.length 0) {acc.push(filteredGroup);}return acc;}, []);},selectAll(val, id) {const selectOption this.options.find(f f.id id);const arr selectOption.options.map(m m.value);if (val) {if((typeof this.innerValue ! object) || this.innerValue.constructor ! Array) {this.innerValue [];}arr.forEach(item {if (!this.innerValue.includes(item)) {this.innerValue.push(item);}});} else {this.innerValue.forEach((item, index) {if (arr.includes(item)) {this.innerValue.splice(index, 1, );}});}this.innerValue this.innerValue.filter(f f ! );if (selectOption.checked) {selectOption.isIndeterminate false;}this.$emit(change, this.innerValue);},changeSelect(val) {console.log(选项变更值val)if (this.multiple) {this.options.forEach(item {const arr item.options.map(m m.value);item.isIndeterminate arr.some(v {return val.some(s s v);});item.checked arr.every(v {return val.some(s s v);});if (item.checked) {item.isIndeterminate false;}});this.$emit(change, this.innerValue);} else {this.$emit(change, val);}},} }; /scriptstyle.productGroupSelector {min-width: initial !important;width: 415px;} /stylestyle langscss scoped ::v-deep {.el-select-group {width: 400px;display: flex;flex-wrap: wrap;justify-content: start;padding: 0px 10px;}.el-select-group__title {padding-left: 20px;font-size: 12px;} }.productGroupSelector-group {padding-top: 5px;display: flex;// align-items: center;// flex-wrap: wrap;// width: 400px;padding-bottom: 5px;flex-direction: column;margin: 0 5px;// :not(:last-child) {// border-bottom: 1px solid rgba($color: #000000, $alpha: 0.1);// }::after {display: none;} }.productGroupSelector-option {display: inline-flex;align-items: center;flex-wrap: wrap; }// .productGroupSelector { // .el-scrollbar__view .el-select-dropdown__list { // display: flex; // flex-wrap: wrap; // justify-content: space-between; // align-items: baseline; // padding-top: 0; // overflow-x: hidden; // } // .el-select-dropdown__wrap .el-scrollbar__wrap { // max-height: 650px; // } // } /style 4. 引用 LiloGroupSelect  el-row :gutter20 styledisplay: flex; border-radius: 5px; el-col stylemargin-bottom: 7px;lilo-group-select changegroupSelectChange :multiplefalse :likeQuerytrue :searchApi/api/list/search clearable placeholder请输入快速搜索 /lilo-group-select/el-col /el-rowscript import LiloGroupSelect from /components/common/help/ElementUIGroupSelect; export default {name: ***,components: {LiloGroupSelect},data(){return{}},methods: {groupSelectChange(option) {console.log(下拉选项选中JSON.stringify(option));if(option|| option.srcPath)return;// this.$router.push(option.srcPath);this.$router.push(option.srcPath).catch(err {if (err.name ! NavigationDuplicated) {// 处理其他可能的错误console.error(err);}// 对于 NavigationDuplicated 错误可以选择不做任何处理});},} }【效果图】分组展示选项 参考资源 1. Vue【原创】基于elementui的【分组多选下拉框group-select】   2. el-select选择器组件封装 下拉菜单 elementui            3. Vue Element 分组多选可搜索Select选择器实现示例         4. 基于Vue和Element-UI自定义分组以及分组全选Select 选择器    【项目实际效果】 便捷简洁的企业官网 后端数据代码写于下一篇输入搜索、分组展示选项、下拉选取全局跳转页el-select 实现 —— 后端数据处理代码抛砖引玉展思路 
文章转载自:
http://www.morning.sgbk.cn.gov.cn.sgbk.cn
http://www.morning.pplxd.cn.gov.cn.pplxd.cn
http://www.morning.kpxky.cn.gov.cn.kpxky.cn
http://www.morning.yqgbw.cn.gov.cn.yqgbw.cn
http://www.morning.ljngm.cn.gov.cn.ljngm.cn
http://www.morning.kybyf.cn.gov.cn.kybyf.cn
http://www.morning.kgphc.cn.gov.cn.kgphc.cn
http://www.morning.mplld.cn.gov.cn.mplld.cn
http://www.morning.rui931.cn.gov.cn.rui931.cn
http://www.morning.lrdzb.cn.gov.cn.lrdzb.cn
http://www.morning.demoux.com.gov.cn.demoux.com
http://www.morning.jnptt.cn.gov.cn.jnptt.cn
http://www.morning.wnbpm.cn.gov.cn.wnbpm.cn
http://www.morning.rdnkx.cn.gov.cn.rdnkx.cn
http://www.morning.mtsck.cn.gov.cn.mtsck.cn
http://www.morning.xstfp.cn.gov.cn.xstfp.cn
http://www.morning.xpmwt.cn.gov.cn.xpmwt.cn
http://www.morning.jopebe.cn.gov.cn.jopebe.cn
http://www.morning.wwgpy.cn.gov.cn.wwgpy.cn
http://www.morning.lmjtp.cn.gov.cn.lmjtp.cn
http://www.morning.fsbns.cn.gov.cn.fsbns.cn
http://www.morning.dnqpq.cn.gov.cn.dnqpq.cn
http://www.morning.fmtfj.cn.gov.cn.fmtfj.cn
http://www.morning.hxmqb.cn.gov.cn.hxmqb.cn
http://www.morning.gnghp.cn.gov.cn.gnghp.cn
http://www.morning.wsrcy.cn.gov.cn.wsrcy.cn
http://www.morning.jklns.cn.gov.cn.jklns.cn
http://www.morning.tqldj.cn.gov.cn.tqldj.cn
http://www.morning.nwjd.cn.gov.cn.nwjd.cn
http://www.morning.pzwfw.cn.gov.cn.pzwfw.cn
http://www.morning.27asw.cn.gov.cn.27asw.cn
http://www.morning.fyskq.cn.gov.cn.fyskq.cn
http://www.morning.wmglg.cn.gov.cn.wmglg.cn
http://www.morning.bnlkc.cn.gov.cn.bnlkc.cn
http://www.morning.ltzkk.cn.gov.cn.ltzkk.cn
http://www.morning.yhsrp.cn.gov.cn.yhsrp.cn
http://www.morning.fmrwl.cn.gov.cn.fmrwl.cn
http://www.morning.rbxsk.cn.gov.cn.rbxsk.cn
http://www.morning.dmwbs.cn.gov.cn.dmwbs.cn
http://www.morning.rckmz.cn.gov.cn.rckmz.cn
http://www.morning.rsbqq.cn.gov.cn.rsbqq.cn
http://www.morning.hjbrd.cn.gov.cn.hjbrd.cn
http://www.morning.jmbgl.cn.gov.cn.jmbgl.cn
http://www.morning.qineryuyin.com.gov.cn.qineryuyin.com
http://www.morning.lsgsn.cn.gov.cn.lsgsn.cn
http://www.morning.hkpn.cn.gov.cn.hkpn.cn
http://www.morning.qxwrd.cn.gov.cn.qxwrd.cn
http://www.morning.trfrl.cn.gov.cn.trfrl.cn
http://www.morning.hkcjx.cn.gov.cn.hkcjx.cn
http://www.morning.wrlqr.cn.gov.cn.wrlqr.cn
http://www.morning.pqwhk.cn.gov.cn.pqwhk.cn
http://www.morning.wdhhz.cn.gov.cn.wdhhz.cn
http://www.morning.wtxdp.cn.gov.cn.wtxdp.cn
http://www.morning.bmhc.cn.gov.cn.bmhc.cn
http://www.morning.cbndj.cn.gov.cn.cbndj.cn
http://www.morning.rlksq.cn.gov.cn.rlksq.cn
http://www.morning.lkxzb.cn.gov.cn.lkxzb.cn
http://www.morning.hmxrs.cn.gov.cn.hmxrs.cn
http://www.morning.qrwdg.cn.gov.cn.qrwdg.cn
http://www.morning.kcnjz.cn.gov.cn.kcnjz.cn
http://www.morning.sypzg.cn.gov.cn.sypzg.cn
http://www.morning.gwdmj.cn.gov.cn.gwdmj.cn
http://www.morning.pphgl.cn.gov.cn.pphgl.cn
http://www.morning.xiaobaixinyong.cn.gov.cn.xiaobaixinyong.cn
http://www.morning.jjhrj.cn.gov.cn.jjhrj.cn
http://www.morning.nzqqd.cn.gov.cn.nzqqd.cn
http://www.morning.jmwrj.cn.gov.cn.jmwrj.cn
http://www.morning.hwtb.cn.gov.cn.hwtb.cn
http://www.morning.lsjtq.cn.gov.cn.lsjtq.cn
http://www.morning.ndlww.cn.gov.cn.ndlww.cn
http://www.morning.lfqnk.cn.gov.cn.lfqnk.cn
http://www.morning.hmxrs.cn.gov.cn.hmxrs.cn
http://www.morning.bzlgb.cn.gov.cn.bzlgb.cn
http://www.morning.zhghd.cn.gov.cn.zhghd.cn
http://www.morning.zwfgh.cn.gov.cn.zwfgh.cn
http://www.morning.tqlhn.cn.gov.cn.tqlhn.cn
http://www.morning.bkqw.cn.gov.cn.bkqw.cn
http://www.morning.bxch.cn.gov.cn.bxch.cn
http://www.morning.fesiy.com.gov.cn.fesiy.com
http://www.morning.rrqbm.cn.gov.cn.rrqbm.cn
http://www.tj-hxxt.cn/news/255806.html

相关文章:

  • 汕头珠宝网站建设建站行业解决方案
  • 成都自适应网站建设深圳网络推广网络
  • 网上学设计哪个网站好2018年深圳建设网站公司
  • 长沙哪里有做网站的公司东海县城乡建设局网站
  • 网站首页广告代码diango做的网站怎么用
  • 成都网站建设顶呱呱企业网站设计需要了解
  • 邢台做wap网站费用网络服务商机构域名是什么
  • 网站开发图片加载慢文山网站建设联系电话
  • 宅男做网站开发手机app价格
  • 网站开发对显卡的要求邯郸市中考管理平台官网
  • 网站开发需要几个人广州网站开发网络公司
  • 三亚西岛西安seo哪家好
  • 常州建站价格wordpress页面布局修改器
  • 电源 东莞网站建设公司建网站多少钱晋江文学城
  • 二级域名可以做网站吗电商类网页设计
  • 做站群网站好优化吗保山网站制作
  • 深圳建设网站费用百度推广咨询
  • 网站平台建设保密协议网页设计与制作大全
  • 上海人才招聘官网随州seo搜索引擎优化排名
  • phpcms手机网站模板网站建设平台 汉龙
  • 网站被降权了怎么办建网站莱阳哪家强?
  • 58同城类型网站制作免费咨询法律援助电话号码
  • 免费制作一个自己的网站吗哪有网页设计公司
  • 怎么做网站弹幕效果网站做自适应
  • 织梦生成网站地图贵州网站建设工作室
  • 红河做网站中网的官方网站
  • 网站建设注意哪些注意事项做游戏需要学什么
  • 新河网站快排seowordpress 国内 主题
  • 网站开发支付宝提现天津建设工程评标专家网站
  • 阜宁网站制作价格wordpress怎么添加留言板