Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【101】添加服务 #17

Open
Aysnine opened this issue May 5, 2020 · 0 comments
Open

【101】添加服务 #17

Aysnine opened this issue May 5, 2020 · 0 comments
Assignees

Comments

@Aysnine
Copy link
Collaborator

Aysnine commented May 5, 2020

  1. 侧边栏增加“服务管理”菜单项

  2. 右侧文件管理工具栏显示“添加服务”按钮

  3. 点击按钮,弹出标题为“添加服务”的表单

  4. 表单项,所有输入的内容要 trim:

    • 服务别名(*):输入框,长度 50
    • 服务类型(*):下拉单选,包含 ftp、百度云盘、seafile
    • 服务器地址(ftp、seafile 才显示,*):输入框,格式为合法的IP或域名
    • 服务器端口(ftp、seafile 才显示,*):合法的端口范围
    • 账号(*):长度 200
    • 密码(*):长度 200,mask
  5. 点击,提交按钮,要验证所有必填项和数据格式

  6. 验证失败提示到每个字段,成功后关闭弹框

out of scope:连接 ftp 的功能不在此处

表单组件和验证可参考:https://element.eleme.cn/#/zh-CN/component/form

@PachVerb PachVerb added wontfix This will not be worked on and removed wontfix This will not be worked on labels May 6, 2020
@PachVerb PachVerb assigned PachVerb and unassigned PachVerb May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants