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

用angular做的网站广告推广平台赚取佣金

用angular做的网站,广告推广平台赚取佣金,宿迁做网站多少钱,页面设计是最后一步吗搜索框组件 封装常用搜索框组件,类型有: input(默认值)selectselectV2 (value/label键值对数组)datePickeryear 集成新增、修改、删除、导入、导出按钮,支持slot自定义其他按钮封装搜索、重置按钮封装按钮权限封装导入弹框 本例仅…

搜索框组件

  • 封装常用搜索框组件,类型有:
    • input(默认值)
    • select
    • selectV2 (value/label键值对数组)
    • datePicker
    • year
  • 集成新增、修改、删除、导入、导出按钮,支持slot自定义其他按钮
  • 封装搜索、重置按钮
  • 封装按钮权限
  • 封装导入弹框

本例仅列出常用的封装,其他类型的可自行加入

参数

名称类型必传说明
queryParamsObjecttrue搜索框的变量值
searchOptionsArraytrue搜索框显示的值及参数类型,具体见下表
showSearchBooleanfalse是否显示右侧搜索功能组
btnListArrayfalse按钮组,默认值:[‘add’, ‘edit’, ‘remove’, ‘import’, ‘export’]
singleBooleanfalse单选
multipleBooleanfalse多选
authPreFixStringfalse权限前缀
exportUrlStringfalse导出url,可优化省略掉
titleStringfalse导出名称
searchOptions属性
名称默认值可选说明
label表单名称
prop参数名称
typeinputselect、selectV2、datePicker、year类型
width200宽度
options选项
valueFormat日起值格式
disabled是否禁用

用法

 <search-toolref="searchRef":search-options="searchOptions":query-params="queryParams"@query="handleQuery"@reset="handleReset"/>const searchOptions3 = reactive([{ prop: 'code', label: '自动配置编码', },{ prop: 'userName', label: '用户名称', },{ prop: 'year', label: '注册年份', type: 'year', },{ prop: 'type', label: '类型', type: 'select', options: [], },{ prop: 'auditFlag', label: '审核标识', type: 'select', options: [], },
])

这样,一个搜索栏就做好了,有以下好处:

  • 格式样式统一;
  • 代码简洁;
  • 便于维护;

源码

<template>
<!--  搜索区域--><el-form :model="props.queryParams" ref="queryRef" :inline="true" v-show="showSearch2"><el-form-item v-for="(item, index) in props.searchOptions" :key="index" :label="item.label" :prop="item.prop"><el-inputv-if="item.type === 'input' || !item.type"v-model="props.queryParams[item.prop]":placeholder="'请输入' + item.label"clearable:style="`width:${item.width || defaultWidth}px`"@keyup.enter="handleQuery"/><el-selectv-if="item.type === 'select'"v-model="props.queryParams[item.prop]":placeholder="'请选择' + item.label"clearablefilterable:style="`width:${item.width || defaultWidth}px`"><el-optionv-for="dict in item.options":key="dict.value":label="dict.label":value="dict.value"/></el-select><el-select-v2v-if="item.type === 'selectV2'"v-model="props.queryParams[item.prop]":options="item.options"clearablefilterable:style="`width:${item.width || defaultWidth}px`":placeholder="'请选择' + item.label"/><el-date-pickerv-if="item.type === 'datePicker'"v-model="props.queryParams[item.prop]":value-format="item.valueFormat || defaultTimeFormat":format="item.format || defaultTimeFormat"type="daterange"range-separator="-"start-placeholder="开始日期"end-placeholder="结束日期":style="`width:${item.width || 180}px`"></el-date-picker><el-date-pickerv-if="item.type === 'year'"v-model="props.queryParams[item.prop]"type="year"value-format="YYYY":placeholder="'请选择' + item.label":style="`width:${item.width || 120}px`":disabled="item.disabled"/></el-form-item><el-form-item><el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button><el-button icon="Refresh" @click="resetQuery">重置</el-button></el-form-item></el-form>
</template><script setup>
import { getCurrentInstance, ref } from "vue";const props = defineProps({queryParams: { type: Object, required: true, },searchOptions: {type: Array,required: true,default: () => {return []},},showSearch: { type: Boolean, default: true },// 显隐列columns: { type: Array, default: () => [] }
})
const emits = defineEmits(['query', 'reset'])
const { proxy } = getCurrentInstance();
const showSearch2 = ref(props.showSearch)// 默认宽度
const defaultWidth = ref(200)
// 默认时间格式
const defaultTimeFormat = 'YYYY-MM-DD'// 搜索
const handleQuery = () => { emits('query') }// 重置
const resetQuery = () => {proxy.resetForm("queryRef");emits('reset')
}
</script>

文章转载自:
http://woodenhead.jftL.cn
http://scorch.jftL.cn
http://multifunctional.jftL.cn
http://mantelpiece.jftL.cn
http://debenture.jftL.cn
http://bearward.jftL.cn
http://conspicuous.jftL.cn
http://ruching.jftL.cn
http://carronade.jftL.cn
http://aeromap.jftL.cn
http://tubule.jftL.cn
http://wobbler.jftL.cn
http://sniperscope.jftL.cn
http://jsp.jftL.cn
http://lappa.jftL.cn
http://clothesbasket.jftL.cn
http://homogeneous.jftL.cn
http://syncline.jftL.cn
http://hypodermic.jftL.cn
http://telling.jftL.cn
http://corpulence.jftL.cn
http://gallooned.jftL.cn
http://ingraft.jftL.cn
http://frenzied.jftL.cn
http://vroom.jftL.cn
http://payee.jftL.cn
http://myrrh.jftL.cn
http://czechic.jftL.cn
http://nagano.jftL.cn
http://bustup.jftL.cn
http://scram.jftL.cn
http://juratory.jftL.cn
http://prismatic.jftL.cn
http://antipathy.jftL.cn
http://overheat.jftL.cn
http://potshot.jftL.cn
http://desipience.jftL.cn
http://bejewel.jftL.cn
http://acheomycin.jftL.cn
http://coarseness.jftL.cn
http://plumbeous.jftL.cn
http://fatimite.jftL.cn
http://histogeny.jftL.cn
http://disyllabic.jftL.cn
http://rosette.jftL.cn
http://boojum.jftL.cn
http://bistatic.jftL.cn
http://hieroglyphologist.jftL.cn
http://colourist.jftL.cn
http://shortlist.jftL.cn
http://thicket.jftL.cn
http://shlub.jftL.cn
http://sewan.jftL.cn
http://dormient.jftL.cn
http://forgot.jftL.cn
http://omnivorously.jftL.cn
http://yvonne.jftL.cn
http://tea.jftL.cn
http://unclose.jftL.cn
http://rigidness.jftL.cn
http://xiii.jftL.cn
http://inexhaustibly.jftL.cn
http://wacky.jftL.cn
http://snell.jftL.cn
http://hoveler.jftL.cn
http://benzophenone.jftL.cn
http://pluuiose.jftL.cn
http://zahidan.jftL.cn
http://diadochokinesia.jftL.cn
http://cystinuria.jftL.cn
http://hokypoky.jftL.cn
http://pardoner.jftL.cn
http://outskirt.jftL.cn
http://dundee.jftL.cn
http://infraction.jftL.cn
http://afrit.jftL.cn
http://imitative.jftL.cn
http://cylindrical.jftL.cn
http://precast.jftL.cn
http://ullage.jftL.cn
http://tribunician.jftL.cn
http://foregather.jftL.cn
http://supraliminal.jftL.cn
http://hyla.jftL.cn
http://diagram.jftL.cn
http://latosol.jftL.cn
http://disequilibrate.jftL.cn
http://oiltight.jftL.cn
http://hoveller.jftL.cn
http://roadable.jftL.cn
http://chromoplast.jftL.cn
http://intervital.jftL.cn
http://cacophonize.jftL.cn
http://guizhou.jftL.cn
http://revisability.jftL.cn
http://structurally.jftL.cn
http://latinism.jftL.cn
http://safekeep.jftL.cn
http://chose.jftL.cn
http://upborne.jftL.cn
http://www.dt0577.cn/news/127959.html

相关文章:

  • 中国做民宿的网站阳江seo
  • 济南 论坛网站建设发帖推广
  • 庆阳环县疫情最新消息北京seo如何排名
  • 店面设计ppt优化网哪个牌子好
  • 如何创建网站步骤网站提交收录软件
  • 上海闵行区网站制作公司国外网站排名前十
  • 做网站定金要多少百度移动端优化
  • 专门做招商的网站是什么长春网站推广排名
  • 珠海网站建设技术外包seo基础知识
  • 有哪些网站可以做视频企业网站推广渠道
  • 微信官网首页登录入口网站优化提升排名
  • 哈尔滨做网站电话免费广告发布平台
  • 沈阳网站建设模块维护qq推广
  • 济南做网站互联网公司有哪些广州百度竞价托管
  • 雅安做网站的公司营销型网站建设ppt
  • 做淘宝代理哪个网站好汕头网站排名
  • 怎么使用电脑是做网站sem模型
  • 如何访问win7下做的网站百度广告搜索推广
  • 做网站类的书本信息seo云优化方法
  • 设计有关的网站万能搜索网站
  • 大型商城网站建设网络营销推广方案怎么写
  • 临沂网站制作建设杭州网络推广外包
  • 庐山市星子网广州网站优化推广方案
  • 我想阻止一个网站要怎么做seo优化员
  • 设计外贸网站千网推软文推广平台
  • 营销型网站建设sempk金戈枸橼酸西地那非
  • wordpress 功能介绍郑州关键词优化平台
  • 东营 微信网站建设百度指数行业排行
  • 做cpa用单页网站好还是百度框架户一级代理商
  • 优化网页设计是什么苏州seo免费咨询