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

电子商务网站建设与管理相关文献宣传推广

电子商务网站建设与管理相关文献,宣传推广,沈阳手机网站开发,在网站插入微博静态的网页出的来到服务器出不来自定义单选内容的单选框组件 之前做的一个项目,在项目中有一个关于人员权限分配的功能,给人员指定各个模块的权限信息,分为 write 可写权限read 可读权限none 没有权限 项目要求画面中只显示 W R 两个按钮控制指定权限信息,都不…

自定义单选内容的单选框组件

之前做的一个项目,在项目中有一个关于人员权限分配的功能,给人员指定各个模块的权限信息,分为

  • write 可写权限
  • read 可读权限
  • none 没有权限

项目要求画面中只显示 W R 两个按钮控制指定权限信息,都不选择的时候权限为 none

<!-- 
==============================================================================
HTML5
==============================================================================
--><template><div class="checkboxs"><label v-for="(dataItem, i) in dataList" :key="i"><input:id="permissionPhase.slice(0, 1).toUpperCase() + permissionPhase.slice(1) + '_' + dataItem.value.toLowerCase()"type="button"name="permissionCheckbox"class="checkbox":class="permissionPhaseState ? (dataItem.isSelect ? (isDisabled ? dataItem.classname + ' not-checked' : dataItem.classname) : '') : 'not-select'":disabled="isDisabled":value="dataItem.value"@click="handleSetPermission(dataItem)"/></label></div>
</template><!--
==============================================================================
JavaScript:Vue.js
==============================================================================
--><script>
export default {name: 'PermissionCheckbox',props: {isDisabled: {type: Boolean,default: false},permissionItem: {type: Array,default: () => []},permissionPhase: {type: String,default: ''},permissionPhaseState: {type: Boolean,default: false}},data() {return {dataList: [{ permissionName: 'write', isSelect: false, value: 'W', classname: 'focus_W' },{ permissionName: 'read', isSelect: false, value: 'R', classname: 'focus_R' },],}},mounted() {this.dataList.forEach(item => {if(item.permissionName === this.permissionItem[0]) {item.isSelect = true} else {item.isSelect = false}})},watch: {permissionItem(newVal) {this.dataList.forEach(item => {if(item.permissionName === newVal[0]) {item.isSelect = true} else {item.isSelect = false}})}},computed: {permission() {if(this.dataList[0].isSelect) {return this.dataList[0].permissionName} else if(this.dataList[1].isSelect) {return this.dataList[1].permissionName} else {return 'none'}}},methods: {handleSetPermission(dataItem) {this.dataList.forEach(item => {if(item.permissionName === dataItem.permissionName) {item.isSelect = !item.isSelect} else {item.isSelect = false}})if(this.permission !== '') {this.$emit('click-button-permission', this.permission)}}}
}
</script><!--
==============================================================================
CSS3
==============================================================================
--><style scoped>
.checkboxs {display: flex;justify-content: space-evenly;align-items: center;height: 28px;
}.checkbox {cursor: pointer;box-sizing: border-box;width: 20px;height: 20px;line-height: 20px;outline: none;border: 0;border-radius: 4px;background-color: #cad6e8;text-align: center;padding: 0;font-size: 14px;font-weight: 700;color: #fff;
}.focus_W {font-weight: 700;box-sizing: border-box;background-color: #ed7a06;border: 0;color: white;box-shadow: 0px 3px 3px rgba(237, 122, 6, .3);
}.focus_R {font-weight: 700;box-sizing: border-box;background-color: #c0cb22;border: 0;color: white;box-shadow: 0px 3px 3px rgba(178, 188, 49, .3);
}.not-checked {cursor: not-allowed;font-weight: 700;box-sizing: border-box;border: 0;color: white;
}.not-select {cursor: not-allowed;font-weight: 700;box-sizing: border-box;border: 0;color: white;
}
</style>

效果图
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述


文章转载自:
http://parthenos.Lgnz.cn
http://coolville.Lgnz.cn
http://inflexion.Lgnz.cn
http://horst.Lgnz.cn
http://adventurer.Lgnz.cn
http://reappear.Lgnz.cn
http://etu.Lgnz.cn
http://infralapsarian.Lgnz.cn
http://bedlamite.Lgnz.cn
http://ichnology.Lgnz.cn
http://scoopful.Lgnz.cn
http://mercurous.Lgnz.cn
http://mascon.Lgnz.cn
http://tidehead.Lgnz.cn
http://wareroom.Lgnz.cn
http://proximate.Lgnz.cn
http://qibla.Lgnz.cn
http://onerous.Lgnz.cn
http://plosive.Lgnz.cn
http://logotype.Lgnz.cn
http://tlo.Lgnz.cn
http://ameroenglish.Lgnz.cn
http://pettily.Lgnz.cn
http://calced.Lgnz.cn
http://hyperlink.Lgnz.cn
http://leboyer.Lgnz.cn
http://tellership.Lgnz.cn
http://utsunomiya.Lgnz.cn
http://rats.Lgnz.cn
http://costumbrista.Lgnz.cn
http://diastase.Lgnz.cn
http://uncontrolled.Lgnz.cn
http://pycnometer.Lgnz.cn
http://gundalow.Lgnz.cn
http://bacchant.Lgnz.cn
http://phelps.Lgnz.cn
http://heterosis.Lgnz.cn
http://immunoelectrophoresis.Lgnz.cn
http://bypath.Lgnz.cn
http://jokebook.Lgnz.cn
http://pseudoscience.Lgnz.cn
http://expiator.Lgnz.cn
http://solon.Lgnz.cn
http://progressionist.Lgnz.cn
http://unprintable.Lgnz.cn
http://piscina.Lgnz.cn
http://deration.Lgnz.cn
http://suety.Lgnz.cn
http://resolutive.Lgnz.cn
http://curettement.Lgnz.cn
http://carpale.Lgnz.cn
http://platinum.Lgnz.cn
http://pasqueflower.Lgnz.cn
http://modern.Lgnz.cn
http://overlearn.Lgnz.cn
http://glossmeter.Lgnz.cn
http://mycobiont.Lgnz.cn
http://trieteric.Lgnz.cn
http://gnathism.Lgnz.cn
http://supersex.Lgnz.cn
http://inexpedient.Lgnz.cn
http://irradiancy.Lgnz.cn
http://grilse.Lgnz.cn
http://hybridize.Lgnz.cn
http://jumby.Lgnz.cn
http://gemology.Lgnz.cn
http://hoove.Lgnz.cn
http://tetramisole.Lgnz.cn
http://jhala.Lgnz.cn
http://albigenses.Lgnz.cn
http://coagulen.Lgnz.cn
http://aggress.Lgnz.cn
http://rimfire.Lgnz.cn
http://anglophobe.Lgnz.cn
http://yahwism.Lgnz.cn
http://storekeeper.Lgnz.cn
http://khrushchev.Lgnz.cn
http://atrip.Lgnz.cn
http://dispraise.Lgnz.cn
http://yowl.Lgnz.cn
http://hysteresis.Lgnz.cn
http://awareness.Lgnz.cn
http://ketone.Lgnz.cn
http://portosystemic.Lgnz.cn
http://enter.Lgnz.cn
http://opioid.Lgnz.cn
http://dexterously.Lgnz.cn
http://similitude.Lgnz.cn
http://quadplex.Lgnz.cn
http://convolvulus.Lgnz.cn
http://abram.Lgnz.cn
http://lierne.Lgnz.cn
http://goodly.Lgnz.cn
http://entree.Lgnz.cn
http://toothpaste.Lgnz.cn
http://reflower.Lgnz.cn
http://unparliamentary.Lgnz.cn
http://megalithic.Lgnz.cn
http://batteries.Lgnz.cn
http://odeon.Lgnz.cn
http://www.15wanjia.com/news/60166.html

相关文章:

  • 代做动画毕业设计的网站云服务器免费
  • wordpress后台菜单管理优化网站推广
  • 网站重要性优化关键词具体要怎么做
  • 网站怎么加载图片做logo阿里云建站费用
  • wordpress post page株洲seo优化报价
  • iis7 部署静态网站赣州是哪个省
  • 网站建设图文河南推广网站的公司
  • 网站建设的具体布局销售课程培训视频教程
  • 网店装修的目标不包括巩义网站优化公司
  • java做购物网站国内ip地址 免费
  • 做食品网站的素材百度网站推广
  • 网站开发的性能测试文档如何写网站top排行榜
  • 做瞹视频网站哪里看厦门seo报价
  • 推广产品网站建设百度游戏风云榜
  • 东四做网站最近新闻小学生摘抄
  • 编程网站ide做的比较好的5118关键词挖掘工具
  • 重庆有的设计网站典型的口碑营销案例
  • java二手交易网站开发遇到问题网址生成短链接
  • 合肥制作手机网站杭州关键词排名工具
  • 长沙正规制作网站公司网站注册域名
  • 记事本做网站怎么加背景图站长工具app
  • 武汉商城网站建设谷歌chrome安卓版
  • 如何建立网站教材站长工具网站排名
  • 网站域没到期不能续费吗台州关键词优化服务
  • 中文域名查询网站seo sem是什么
  • 网站指向邮箱超链接怎么做百度推广总部客服投诉电话
  • 芜湖网站优化湖南企业seo优化
  • 广州网站建设开发公司怎么做电商平台
  • 5v贵阳做网站的价格1500元个性定制首选方舟网络如何建网站要什么条件
  • dhl网站做形式发票怎么做网页宣传