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

做网站前景百度推广网站平台

做网站前景,百度推广网站平台,阳江最新通知今天,wordpress禁用自动草稿目录 1.人力资源项目介绍 1.1 项目架构和解决方案 1.2 课程安排 1.3 课程具备能力 1.4 课程地址 2. 拉取项目基础代码 3.项目目录和入口文件介绍 4.App.vue根组件解析 5.基础设置settings.js和导航守卫permission.js 6.Vuex的结构 7.使用模板中的Icon图标 8.扩展…

目录

1.人力资源项目介绍

1.1 项目架构和解决方案

1.2 课程安排 

1.3 课程具备能力

1.4 课程地址 

2. 拉取项目基础代码

3.项目目录和入口文件介绍

4.App.vue根组件解析 

5.基础设置settings.js和导航守卫permission.js

6.Vuex的结构

7.使用模板中的Icon图标

8.扩展-解析Icon图标的实现思路

9.导入样式资源并使用git管理

10.登录页的结构和表单

11.登录表单校验-实现


1.人力资源项目介绍

1.1 项目架构和解决方案

1.2 课程安排 

1.3 课程具备能力

1.4 课程地址 

  • vue-element-admin文档地址:vue-element-admin
  • 演示地址: https://panjiachen.github.io/vue-element-admin/
  • 人力资源项目演示地址:人力资源后台管理系统

2. 拉取项目基础代码

  • 拉取命令
$ git clone  https://github.com/PanJiaChen/vue-admin-template.git  heimahr
  • 升级core-js版本到3.25.5
$ npm i core-js@3.25.5 # npm
$ yarn add core-js@3.25.5 # yarn
  • 安装完整依赖
$ npm i # npm
$ yarn  # yarn
  • 启动命令在package.json中查看
$ yarn dev
  • 需要检查VsCode本身的插件ESLint 和 Vutur

3.项目目录和入口文件介绍

  • 项目目录
├── src                        # 源代码目录
│   ├── api                    # 所有请求
│   ├── assets                 # 主题 字体等静态资源
│   ├── components             # 全局公用组件
│   ├── icons                  # 项目所有 svg icons
│   ├── layout                 # 全局 layout
│   ├── router                 # 路由
│   ├── store                  # 全局 store管理
│   ├── styles                 # 全局样式
│   ├── utils                  # 全局公用方法
│   ├── views                  # views 所有页面
│   ├── App.vue                # 入口页面
│   ├── main.js                # 入口文件 加载组件 初始化等
│   └── permission.js          # 权限管理
│   └── settings.js            # 配置文件
  • 入口文件

4.App.vue根组件解析 

  • App.vue组件

  • layout布局

5.基础设置settings.js和导航守卫permission.js

 settings.js导出网站基础配置,包括:网站标题、固定header、显示logo
permission.js(权限),主要负责路由导航守卫

6.Vuex的结构

注意:人资资源项目主要针对**用户模块user **进行改造和重写

  • Vuex的设计思想

1.页面交互状态(折叠侧边栏-固定头部)

2.使用全局状态Vuex根据功能拆分成不同的模块(modules)


 3.进行状态管理通过getters建立对于模块中属性的快捷访问

7.使用模板中的Icon图标

  • src/icons/svg目录下的图标都可以使用

  • 图标文件名直接设置为svg-icon组件的iconClass属性

8.扩展-解析Icon图标的实现思路

  • 引入目录所有的svg

  • 全局注册svg-icon组件

  • loader插件打包svg

  • svg-icon引用svg的链接

 

  • 知识扩展

1.了解:require.context(路径,是否扫描子目录, 正则匹配) 可以引入某个目录下的内容
2.了解:svg-sprite-loader打包了所有svg到一个svg标签上,将svg名称作为symbol标签的id属性
3.了解:svg-icon使用iconClass属性引用了symbol的id

9.导入样式资源并使用git管理

  • 将教学资源中的初始化**图片-样式-svg **拷贝到src目录下

因为项目是从github上拉取下来的,所以git记录了之前模版的信息,所以删除需要建立git

 

  • 删除原有的.git文件
  • 初始化仓库
$ git init # 初始化仓库
  • 添加到暂存区
$ git add . # 添加到暂存区
  • 提交本地仓库
$ git commit -m "初始化人力资源项目" # 提交本地仓库

接下来,同学们需要在gitee上新建一个自己的远程仓库,然后将本地的仓库推送到远程仓库托管

  • 本地仓库配置远程仓库地址
$ git remote add origin <你的远程仓库地址>  # 本地仓库配置远程仓库地址
  • 推送到远程仓库
$ git push -u origin master # 推送到远程仓库

10.登录页的结构和表单

接下来需要实现登录页的表单结构和表单内容

 

  • 拷贝登录页的基本结构布局-代码位置(src/views/login/index.vue)
<template><div class="login-container"><div class="logo" /><div class="form"><h1>登录</h1><el-card shadow="never" class="login-card"><!--登录表单--></el-card></div></div>
</template>
<script>
export default {name : "Login"
}
</script>
<style lang="scss">
.login-container {display: flex;align-items: stretch;height: 100vh;.logo {flex: 3;background: rgba(38, 72, 176) url(../../assets/common/login_back.png)no-repeat center / cover;border-top-right-radius: 60px;display: flex;flex-direction: column;align-items: flex-end;justify-content: center;padding: 0 100px;.icon {background: url(../../assets/common/logo.png) no-repeat 70px center /contain;width: 300px;height: 50px;margin-bottom: 50px;}p {color: #fff;font-size: 18px;margin-top: 20px;width: 300px;text-align: center;}}.form {flex: 2;display: flex;flex-direction: column;justify-content: center;padding-left: 176px;.el-card {border: none;padding: 0;}h1 {padding-left: 20px;font-size: 24px;}.el-input {width: 350px;height: 44px;.el-input__inner {background: #f4f5fb;}}.el-checkbox {color:#606266;}}
}
</style>
  • 实现登录表单的结构
<div class="form"><h1>登录</h1><el-card shadow="never" class="login-card"><!--登录表单--><!-- el-form > el-form-item > el-input --><el-form><el-form-item><el-input placeholder="请输入手机号" /></el-form-item><el-form-item><el-input placeholder="请输入密码" /></el-form-item><el-form-item><el-checkbox>用户平台使用协议</el-checkbox></el-form-item><el-form-item><el-button style="width:350px" type="primary">登录</el-button></el-form-item>
</el-form>
  • 提交代码

11.登录表单校验-实现

  1. 定义数据和校验规则
export default {name: 'Login'name: 'Login',data() {return {loginForm: {mobile: '',password: '',isAgree: false},loginRules: {mobile: [{required: true,message: '请输入手机号',trigger: 'blur'}, {pattern: /^1[3-9]\d{9}$/,message: '手机号格式不正确',trigger: 'blur'}],password: [{required: true,message: '请输入密码',trigger: 'blur'}, {min: 6,max: 16,message: '密码长度应该为6-16位之间',trigger: 'blur'}],// required只能检查 null "" undefinedisAgree: [{validator: (rule, value, callback) => {// rule规则// value检查的数据 true/false// callback 函数 执行这个函数// 成功执行callback 失败也执行callback(错误对象 new Error(错误信息))value ? callback() : callback(new Error('没有勾选用户平台协议'))}}]}}},methods: {login() {this.$refs.form.validate((isOK) => {if (isOK) {alert('校验通过')}})}}
}
</script>
  1. 绑定组件的对应属性
 <el-form ref="form" :model="loginForm" :rules="loginRules"><el-form-item prop="mobile"><el-input v-model="loginForm.mobile" placeholder="请输入手机号" /></el-form-item><el-form-item prop="password"><el-input v-model="loginForm.password" show-password placeholder="请输入密码" /></el-form-item><el-form-item prop="isAgree"><el-checkbox v-model="loginForm.isAgree">用户平台使用协议</el-checkbox></el-form-item><el-form-item><el-button style="width:350px" type="primary" @click="login">登录</el-button></el-form-item>
</el-form>

文章转载自:
http://seatmate.fcxt.cn
http://debatable.fcxt.cn
http://temple.fcxt.cn
http://supplementation.fcxt.cn
http://enrank.fcxt.cn
http://hyacinthin.fcxt.cn
http://sleight.fcxt.cn
http://ciphony.fcxt.cn
http://cryophorus.fcxt.cn
http://matinee.fcxt.cn
http://paperbelly.fcxt.cn
http://semitism.fcxt.cn
http://petalody.fcxt.cn
http://weld.fcxt.cn
http://symptom.fcxt.cn
http://photojournalism.fcxt.cn
http://laminate.fcxt.cn
http://ebbet.fcxt.cn
http://pirozhki.fcxt.cn
http://moisturize.fcxt.cn
http://resin.fcxt.cn
http://libretto.fcxt.cn
http://mosso.fcxt.cn
http://publicize.fcxt.cn
http://greed.fcxt.cn
http://philomena.fcxt.cn
http://upscale.fcxt.cn
http://hipparch.fcxt.cn
http://limosis.fcxt.cn
http://coalfish.fcxt.cn
http://cardiotomy.fcxt.cn
http://cladophyll.fcxt.cn
http://poloidal.fcxt.cn
http://goodby.fcxt.cn
http://variation.fcxt.cn
http://disbound.fcxt.cn
http://brockage.fcxt.cn
http://macilent.fcxt.cn
http://nastic.fcxt.cn
http://concubine.fcxt.cn
http://oolong.fcxt.cn
http://nell.fcxt.cn
http://porcupine.fcxt.cn
http://abduce.fcxt.cn
http://montan.fcxt.cn
http://convalescent.fcxt.cn
http://anovulatory.fcxt.cn
http://coacher.fcxt.cn
http://catoptrical.fcxt.cn
http://suctorial.fcxt.cn
http://asean.fcxt.cn
http://uncatalogued.fcxt.cn
http://pluton.fcxt.cn
http://afferent.fcxt.cn
http://auto.fcxt.cn
http://bodmin.fcxt.cn
http://empower.fcxt.cn
http://unheeding.fcxt.cn
http://eunomic.fcxt.cn
http://docetae.fcxt.cn
http://jaialai.fcxt.cn
http://dropped.fcxt.cn
http://duralumin.fcxt.cn
http://ventriloquous.fcxt.cn
http://axeman.fcxt.cn
http://cotechino.fcxt.cn
http://hemofuscin.fcxt.cn
http://coagent.fcxt.cn
http://clerestory.fcxt.cn
http://dreich.fcxt.cn
http://literati.fcxt.cn
http://spit.fcxt.cn
http://justifiability.fcxt.cn
http://tyche.fcxt.cn
http://baganda.fcxt.cn
http://mestiza.fcxt.cn
http://expressiveness.fcxt.cn
http://oxaloacetate.fcxt.cn
http://noyade.fcxt.cn
http://pentalogy.fcxt.cn
http://protoxide.fcxt.cn
http://pantheon.fcxt.cn
http://tappet.fcxt.cn
http://suicidology.fcxt.cn
http://sanforized.fcxt.cn
http://taperingly.fcxt.cn
http://velarity.fcxt.cn
http://overstory.fcxt.cn
http://panasonic.fcxt.cn
http://tibiotarsus.fcxt.cn
http://butcherbird.fcxt.cn
http://alt.fcxt.cn
http://calabar.fcxt.cn
http://psychotogen.fcxt.cn
http://indulgent.fcxt.cn
http://catomountain.fcxt.cn
http://afterburner.fcxt.cn
http://fartlek.fcxt.cn
http://pentamer.fcxt.cn
http://ossie.fcxt.cn
http://www.hrbkazy.com/news/65587.html

相关文章:

  • 怎么修改网站信息成都seo专家
  • 那个网站做调查问卷能赚钱seo网站优化价格
  • 衢州做外贸网站的公司新闻营销发稿平台
  • 高端集团网站建设企业推广网络营销外包服务
  • 宿迁网站建设开发五种营销工具
  • 网站建设模板坏处win10优化工具下载
  • 怎么做移动端网站最新的新闻 最新消息
  • 网站开发验收流程免费开店的电商平台
  • 响应式网站用什么语言网络视频营销
  • 最好wordpress积分付费插件seo网站seo
  • 个人网站如何进行网络推广网络营销都有哪些形式
  • 2狠狠做网站如何制作一个宣传网页
  • WordPress做的网站源代码搜狗seo培训
  • 南京做网站团队潍坊网站建设平台
  • 嘉兴网站建设运营什么是新媒体营销
  • 网站开发 发票武汉网站建设推广公司
  • 网络营销的6大特点开鲁网站seo转接
  • 网站域名如何续费seo系统培训课程
  • 哪个网站做动图电商平台运营
  • 有模块传奇网站怎么做自己怎么优化我网站关键词
  • vultr 做网站培训机构招生方案
  • 简书 用wordpress向日葵seo
  • 实用又有创意的设计广西seo优化
  • 网站域名的用处有没有免费的推广网站
  • wordpress多版seo网站有优化培训吗
  • 网站有收录但是没排名百度山西授权代理
  • 模版网站建设重庆seo建站
  • 自做网站教程登封seo公司
  • 宁波住房和城乡建设委员会官方网站2345网址导航下载桌面
  • dw做的网站怎么让别人看到泉州seo外包