Coder Social home page Coder Social logo

ma-contract-fe's Introduction

ma-contract-fe

微服务应用-合同管理前端工程

依赖

前端IDE推荐

  • webstorm(收费)
  • sublime
  • atom

开始开发

yarn或者npm报错的情况下,建议使用cyarn
npm install -g cyarn --registry=https://registry.npm.taobao.org
cyarn install
yarn dev

npm install
npm run dev

默认会启动localhost:8084 页面 访问localhost:8084/ 点击重新登录(public01/a111111) 点击登录,然后url切换到localhost:8084/list/index.zh_CN.html即可

开发约束

  • 1.多页面入口地址: src/pages/**/index.js(请保证所有入口页面都叫index.js)
  • 2.首页入口地址: src/pages/index/index.js
  • 3.静态资源地址: static/.有需要访问静态资源时,请使用static/*的链接
  • 4.开发服务代理:见config/index.js. 中dev下的proxyTable
  • 5.本地端口号修改:见config/index.js. dev下的port

国际化多语

  • 所有语种文件放到locale目录下,目录结构: locale/**/translate.json
  • translate.json 结构{ 'key':'value','key2','value2'}
  • 语种为: zh_CH,en_US...
  • ejs模板中使用多语 ${("key")},js中使用多语("key")

开发常用

页面示例

覆盖场景

  • 列表查询
  • 表格分页
  • 状态切换
  • 编辑页面
  • input控件使用
  • 容器组件
  • checkbox组件
  • radio组件
  • select组件
  • switch组件
  • date组件
  • textarea组件

缺少场景

  • 批量编辑表格
  • 参照
  • 编辑表格 + 参照 + 下拉 等
  • 页面生命周期的抽象
  • mock-server 例子
  1. 列表页面示例:参考src/pages/list/
  2. 编辑页面示例:参考src/pages/edit/

结构描述

视图 数据模型 后端服务
.ejs model/collection model/collection get/post/put/delete
ko,neoui,kero,ko-epui datatable ajax

ma-contract-fe's People

Contributors

tanghea avatar feiyingmm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.