waltershe / dailyreport Goto Github PK
View Code? Open in Web Editor NEWdaily report system
daily report system
测试系统
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
但网站启动后报“密码错误”,请问是何原因,谢谢!
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
反复点击后报错:
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
当点击下属日报时,即使有下属信息,也无法显示下属列表
nohup里有这个错[RangeError: Maximum call stack size exceeded]
browser里显示如下错误
POST http://oa.ikidstv.com/getsubordinateuseranddepartment 502 (Proxy Error)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.