Git Product home page Git Product logo

dailyreport's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dailyreport's Issues

问题

测试系统
ubuntu 13.04 64
redis Redis server v=2.6.7 sha=00000000:0 malloc=jemalloc-3.0.0 bits=64
node v0.10.13

1、linux下安装完成后报
module.js:340
throw err;
^
Error: Cannot find module './vo/response'
解决办法:将vo目录下大写的Response.js改为小写response.js

2、根据说明将
hmset users 1:user_name adminn 1:password 20eabe5d64b0e216796e834f52d61f写入redis数据库,也执行了 redis 127.0.0.1:6379> sadd administrators 1 显示正常
测试数据:
redis 127.0.0.1:6379> hmget users 1:user_name 1:password

  1. "adminn"
  2. "20eabe5d64b0e216796e834f52d61f"

但网站启动后报“密码错误”,请问是何原因,谢谢!

login failed

TypeError: Cannot set property 'userId' of undefined
at /home/wang/work/public/WalterShe-dailyReport-e3fcff6/controlers/userCtr.js:74:26
at /home/wang/work/public/WalterShe-dailyReport-e3fcff6/models/usersModel.js:119:14
at try_callback (/home/wang/work/public/WalterShe-dailyReport-e3fcff6/node_modules/redis/index.js:592:9)
at RedisClient.return_reply (/home/wang/work/public/WalterShe-dailyReport-e3fcff6/node_modules/redis/index.js:685:13)
at ReplyParser. (/home/wang/work/public/WalterShe-dailyReport-e3fcff6/node_modules/redis/index.js:321:14)
at emitOne (events.js:77:13)
at ReplyParser.emit (events.js:169:7)
at ReplyParser.send_reply (/home/wang/work/public/WalterShe-dailyReport-e3fcff6/node_modules/redis/lib/parser/javascript.js:300:10)
at ReplyParse

Maximum call stack size exceeded

反复点击后报错:
GET /admin/users 304 3ms
GET /css/bootstrap.min.css 304 5ms
GET /css/pepper-grinder/jquery-ui-1.10.3.custom.min.css 304 4ms
GET /css/adminStyle.css 304 4ms
GET /js/jquery-1.9.1.min.js 304 3ms
GET /js/jquery-ui-1.10.3.custom.min.js 304 4ms
GET /js/bootstrap.min.js 304 3ms
GET /js/knockout-2.2.1.js 304 3ms
GET /js/TreeList.js 304 2ms
GET /js/admin/DepartmentUserMode.js 304 3ms
GET /js/admin/users.js 304 2ms
GET /admin/alldepartments 200 4ms
GET /admin/getallusers 200 4ms
GET /admin 304 2ms
GET /css/bootstrap.min.css 304 5ms
GET /css/adminStyle.css 304 4ms
GET /css/pepper-grinder/jquery-ui-1.10.3.custom.min.css 304 4ms
GET /js/jquery-1.9.1.min.js 304 5ms
GET /js/jquery-ui-1.10.3.custom.min.js 304 4ms
GET /js/bootstrap.min.js 304 3ms
GET /js/knockout-2.2.1.js 304 1ms
GET /js/TreeList.js 304 3ms
GET /js/admin/DepartmentUserMode.js 304 2ms
GET /js/admin/department.js 304 2ms
GET /admin/alldepartments 200 3ms
GET /logout 302 1ms
GET /login 304 2ms
GET /css/reportStyle.css 304 4ms
GET /css/bootstrap.min.css 304 5ms
GET /js/jquery-1.9.1.min.js 304 4ms
GET /js/bootstrap.min.js 304 4ms
GET /js/knockout-2.2.1.js 304 3ms
GET /js/admin/DepartmentUserMode.js 304 3ms
GET /js/login.js 304 1ms
POST /login 200 3ms
GET /show 200 6ms
GET /css/bootstrap.min.css 304 4ms
GET /css/reportStyle.css 304 4ms
GET /css/pepper-grinder/jquery-ui-1.10.3.custom.min.css 304 5ms
GET /js/jquery-1.9.1.min.js 304 4ms
GET /js/jquery-ui-1.10.3.custom.min.js 304 3ms
GET /js/bootstrap.min.js 304 4ms
GET /js/knockout-2.2.1.js 304 3ms
GET /js/ReportModel.js 304 3ms
GET /js/reportBase.js 304 2ms
GET /js/showreports.js 404 3ms
GET /write 200 12ms
GET /css/bootstrap.min.css 304 6ms
GET /css/reportStyle.css 304 7ms
GET /css/pepper-grinder/jquery-ui-1.10.3.custom.min.css 304 6ms
GET /js/jquery-1.9.1.min.js 304 6ms
GET /js/jquery-ui-1.10.3.custom.min.js 304 5ms
GET /js/bootstrap.min.js 304 4ms
GET /ueditor/editor_config.js 304 6ms
GET /ueditor/editor_all.js 304 5ms
GET /js/knockout-2.2.1.js 304 6ms
GET /js/validator.js 304 4ms
GET /js/ReportModel.js 304 3ms
GET /js/writereport.js 404 4ms
GET /showsubordinate 200 6ms
GET /css/bootstrap.min.css 304 5ms
GET /css/reportStyle.css 304 5ms
GET /css/pepper-grinder/jquery-ui-1.10.3.custom.min.css 304 5ms
GET /js/jquery-1.9.1.min.js 304 5ms
GET /js/jquery-ui-1.10.3.custom.min.js 304 5ms
GET /js/subordinateReports.js 200 8ms
GET /js/bootstrap.min.js 304 2ms
GET /js/knockout-2.2.1.js 304 3ms
GET /js/ReportModel.js 304 3ms
GET /js/TreeList.js 304 2ms
GET /js/reportBase.js 304 3ms

/home/sunsl/dailyreport/node_modules/redis/index.js:551
throw err;
^
RangeError: Maximum call stack size exceeded

关于个人日报的权限控制

每个人都日报只能自己可见,作为上级无法看到下级的日报。建议提供日报设置上级可见,这样,作为部门上级可以看到下属设置为可见的日报

关于重复编辑事情

你这个用作很不错,但是已经提交过的可以增加重新编辑嘛?有错别字或者当时忘了写某个东西想修改的时候只能删除再添加上啊

无法发布日志

测试系统
ubuntu 13.04 64
redis Redis server v=2.6.7 sha=00000000:0 malloc=jemalloc-3.0.0 bits=64
node v0.10.13

代码已更新。
运行后创建新的部门及相关人员
部门:研发中心 员工:forrest 密码:1111111
登录后点击编写日报,录入数据: 2012-1-1或 2012/1/1 内容:测试数据 或 test data
点击发布无反应用
控制台输出:
GET /js/writereport.js 404 4ms
GET /show 304 12ms
GET /css/bootstrap.min.css 304 7ms
GET /js/bootstrap.min.js 304 6ms
GET /js/jquery-ui-1.10.3.custom.min.js 304 7ms
GET /js/jquery-1.9.1.min.js 304 7ms
GET /css/pepper-grinder/jquery-ui-1.10.3.custom.min.css 304 6ms
GET /css/reportStyle.css 304 6ms
GET /js/knockout-2.2.1.js 304 1ms
GET /js/ReportModel.js 304 2ms
GET /js/reportBase.js 304 1ms
GET /js/showreports.js 404 2ms

建议

点击日报填写(重复多次,日期为同一天)
同一用户这时会显示多个同样日期的多条记录,前台显示是否可合并处理:)
selection_005
参考:同时这三条显示的顺序是最后编写的显示在上面是否合理?(如果按一天的时间轴来处理的话,是否应该放在最下面)

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.