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

物联网管理平台登录seo每日一帖

物联网管理平台登录,seo每日一帖,wordpress建站准备,小程序模板做视频网站遗留问题 1、增加新建和导入按钮&#xff0c;有按钮了&#xff0c;但是还没有完善&#xff0c;图标还不对&#xff0c;需要解决 2、登录功能 3、用户管理 4、角色管理 5、权限管理 6、分享功能 解决新建和导入的图标问题 解决代码&#xff1a; <a-button type"prim…

遗留问题

1、增加新建和导入按钮,有按钮了,但是还没有完善,图标还不对,需要解决
2、登录功能
3、用户管理
4、角色管理
5、权限管理
6、分享功能

解决新建和导入的图标问题

解决代码:

<a-button type="primary":icon="h(PlusOutlined)"style="display: flex; align-items: center;">新建
</a-button>
<a-button:icon="h(VerticalAlignBottomOutlined)"style="display: flex; align-items: center;">导入
</a-button>

在这里插入图片描述

遗留的问题

1、登录功能
2、用户管理
3、角色管理
4、权限管理
5、分享功能

登录功能

先分析要做什么,怎么做?

  • 1、添加登录页面
  • 2、设计登录界面的基本布局
  • 3、添加登录表单
  • 4、给登录按钮绑定事件,点击时获取登录信息
  • 5、设计登录的接口
  • 6、前后端联调,实现登录功能
  • 7、要记录登录的Token和用户名,跳转到首页

1、添加登录页面

加一个vue文件,然后在vue-router中注册,浏览器访问。

<script setup></script><template><h1>登录界面</h1>
</template><style scoped></style>
{path: '/login',component: () => import("../page/auth/login.vue"),
},

在这里插入图片描述

2、设计登录界面的基本布局

布局的基本设计:
在这里插入图片描述

代码的基本实现:

<template><div class="flex h-screen"><div class="left w-8/12 bg-red-300">左边</div><div class="right w-4/12 bg-teal-200">右边</div></div>
</template>

预览:
在这里插入图片描述

3、添加登录表单

代码:

<script setup>
import { reactive } from 'vue';
const formState = reactive({username: '',password: '',remember: true,
});
const onFinish = values => {console.log('Success:', values);
};
const onFinishFailed = errorInfo => {console.log('Failed:', errorInfo);
};
</script><template><div class="flex h-screen"><div class="w-8/12 bg-purple-500 flex justify-center items-center flex-col"><h1 class="text-white font-bold text-5xl">xx文档管理系统</h1><h3 class="text-gray-200 text-2xl mt-3">欢迎登录本系统</h3></div><div class="w-4/12 bg-blue-500 flex justify-center items-center"><a-card style="width: 60%"><a-form:model="formState":label-col="{ span: 8 }":wrapper-col="{ span: 16 }"autocomplete="off"@finish="onFinish"><a-form-itemlabel="账号"name="username":rules="[{ required: true, message: '账号不能为空' }]"><a-input v-model:value="formState.username" /></a-form-item><a-form-itemlabel="密码"name="password":rules="[{ required: true, message: '密码不能为空' }]"><a-input-password v-model:value="formState.password" /></a-form-item><a-form-item :wrapper-col="{ offset: 8, span: 16 }"><a-button type="primary" html-type="submit">立即登录</a-button></a-form-item></a-form></a-card></div></div>
</template><style scoped></style>

预览:
在这里插入图片描述

添加验证码

准备验证码的静态图片:
在这里插入图片描述

导入:

import pngCaptcha from "../../assets/img/captcha.png"

使用:

<img :src="pngCaptcha">

完整代码:

<script setup>
import {reactive} from 'vue';
import pngCaptcha from "../../assets/img/captcha.png"const formState = reactive({username: '',password: '',captcha: '',
});
const onFinish = values => {console.log('Success:', values);
};
const onFinishFailed = errorInfo => {console.log('Failed:', errorInfo);
};
</script><template><div class="flex h-screen"><div class="w-8/12 bg-purple-500 flex justify-center items-center flex-col"><h1 class="text-white font-bold text-5xl">xx文档管理系统</h1><h3 class="text-gray-200 text-2xl mt-3">欢迎登录本系统</h3></div><div class="w-4/12 bg-blue-500 flex justify-center items-center"><a-card style="width: 60%"><a-form:model="formState":label-col="{ span: 8 }":wrapper-col="{ span: 16 }"autocomplete="off"@finish="onFinish"><a-form-itemlabel="账号"name="username":rules="[{ required: true, message: '账号不能为空' }]"><a-input v-model:value="formState.username"/></a-form-item><a-form-itemlabel="密码"name="password":rules="[{ required: true, message: '密码不能为空' }]"><a-input-password v-model:value="formState.password"/></a-form-item><a-form-itemlabel="验证码"name="captcha":rules="[{ required: true, message: '验证码不能为空' }]"><a-input-password v-model:value="formState.captcha"/><img :src="pngCaptcha"style="width: 100%; height: 50px; margin-top: 10px"></a-form-item><a-form-item :wrapper-col="{ offset: 8, span: 16 }"><a-button type="primary" html-type="submit">立即登录</a-button></a-form-item></a-form></a-card></div></div>
</template><style scoped></style>

效果预览:
在这里插入图片描述

4、给登录按钮绑定事件,点击时获取登录信息

之前的代码已经具备了这样的功能:
在这里插入图片描述

5、设计登录的接口

zdppy框架有一个非常强大的权限组件模块,提供完整登录,注册,权限管理等相关的功能,我们不需要重新编写接口,只需要引入并使用即可。

  • 6、前后端联调,实现登录功能
  • 7、要记录登录的Token和用户名,跳转到首页

遗留的问题

1、登录功能

  • 5、设计登录的接口
  • 6、前后端联调,实现登录功能
  • 7、要记录登录的Token和用户名,跳转到首页

2、注册功能
3、用户管理
4、角色管理
5、权限管理
6、分享功能

tb_user拆成基本信息和详细信息两张表。

http://www.hrbkazy.com/news/40460.html

相关文章:

  • 深圳微信分销网站公司中国互联网协会官网
  • 烟台市福山区住房和建设局网站兰州网络推广
  • 帮其他企业做网站属于外包公司吗手机优化是什么意思
  • 网站怎么百度收录成都seo优化排名推广
  • 有专门做检验的视频网站吗如何开发自己的小程序
  • 长锦船公司网站百度搜索引擎优化的养成良好心态
  • 做网站用lunx网络营销推广实训报告
  • wordpress猜你喜欢功能北京seo推广优化
  • 企业网站怎么做才好seo资讯
  • 班级网站建设的参考文献怎么做网络宣传推广
  • 建零售网站还是想做seo哪里有培训的
  • 修车店怎么做网站搜索引擎优化的步骤
  • 网站前端用什么做西安核心关键词排名
  • 什么网站可以在线做雅思搜狗搜索引擎入口
  • 学校网站建设策划书seo推广百度百科
  • 制作网页与网站网络推广宣传方式
  • 重庆做网站的网站怎么建设
  • 广东人才网入门seo技术教程
  • 企业网络营销成功案例seo咨询价格找推推蛙
  • 建网站用什么工作站推广互联网营销
  • asp网站伪静态文件下载腾讯广告投放平台官网
  • 廊坊做网站广告投放网站
  • 做网站的色彩搭配的小知识优化设计全部答案
  • 免费棋牌网站建设智慧软文网
  • 新网个人网站备案媒体平台
  • 做网站需要哪些东西和步骤百度seo排名优化软件化
  • 深圳做网站980推广普通话手抄报内容怎么写
  • 如何设计网站中的上传功能seo外链建设的方法
  • 哈尔滨的网站建设公司哪家好营销策划方案ppt范文
  • 98同城招聘网信息冯耀宗seo博客