joyplus / o2oadmin Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
登陆页面参考 这个改一下
修改admin项目里,rbrc.go里的checkLogin()方法,orgId从fin_mediation_member里根据userId获取memberId, orgId,displayName, baseCityId。放在membervo.go的member对象里,然后用“member”key放在session里,后续从session里取出。
无权限的功能菜单不要出现
<html>
<head>
<link rel="stylesheet" type="text/css" href="uploadify.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="jquery.uploadify-3.1.min.js"></script>
</head>
<body>
<input type="file" name="file_upload" id="file_upload" />
<script>
$(function(){
$('#file_upload').uploadify({
'swf' :'uploadify.swf',
'uploader':'uploadify.php'
// Put your options here
});
});
</script>
</body>
</html>
[SELECT ddr.ad_date, pda.demand_id as demand_id, dpd.name as demand_name, pda.id as demand_adspace_id, pda.name as demand_adspace_name, pmp_media.id as pmp_media_id, pmp_media.name as pmp_media_name, pmp_adspace.id as pmp_adspace_id, pmp_adspace.name as pmp_adspace_name, sum(ddr.req_success) as req_success, sum(ddr.req_noad) as req_noad, sum(ddr.req_timeout) as req_timeout, sum(ddr.req_error) as req_error, sum(pdr.imp) as imp, sum(pdr.clk) as clk FROM pmp_demand_daily_report ddr INNER JOIN pmp_daily_report pdr ON ddr.demand_adspace_id=pdr.demand_adspace_id INNER JOIN pmp_adspace ON pdr.pmp_adspace_id=pmp_adspace.id INNER JOIN pmp_media ON pmp_adspace.media_id=pmp_media.id INNER JOIN pmp_demand_adspace pda ON pda.id=ddr.demand_adspace_id INNER JOIN pmp_demand_platform_desk dpd ON pda.demand_id=dpd.id WHERE 1=1 AND ddr.ad_date >= ? AND ddr.ad_date <= ? GROUP BY ddr.ad_date,pda.demand_id,pda.id,pmp_media.id,pmp_adspace.id LIMIT 20 OFFSET 0] - 2015-10-01 08:00:00
, 2015-10-19 08:00:00
换一个新的菜单样式
需要修改beego/admin项目
2015/10/18 23:07:29 http: panic serving [::1]:54569: runtime error: index out of range
goroutine 562 [running]:
net/http.(_conn).serve.func1(0xc8200c0370, 0x54adb40, 0xc8202aa2f0)
/usr/local/go/src/net/http/server.go:1287 +0xb5
github.com/astaxie/beego.(_ControllerRegistor).recoverPanic(0xc82009d580, 0xc820390380)
/Users/1/kanbox/gocode/src/github.com/astaxie/beego/router.go:862 +0x19f
o2oadmin/controllers.(_CampaignController).GetCampaignReport(0xc82039c750)
/Users/1/kanbox/gocode/src/o2oadmin/controllers/CampaignController.go:91 +0x8b5
reflect.Value.call(0x48202c0, 0xc82039c750, 0x1713, 0x482a440, 0x4, 0xc8202d1830, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/reflect/value.go:432 +0x120a
reflect.Value.Call(0x48202c0, 0xc82039c750, 0x1713, 0xc8202d1830, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/reflect/value.go:300 +0xb1
github.com/astaxie/beego.(_ControllerRegistor).ServeHTTP(0xc82009d580, 0x68401f8, 0xc8200e20b0, 0xc8209788c0)
/Users/1/kanbox/gocode/src/github.com/astaxie/beego/router.go:794 +0x2413
net/http.serverHandler.ServeHTTP(0xc8200702a0, 0x68401f8, 0xc8200e20b0, 0xc8209788c0)
/usr/local/go/src/net/http/server.go:1862 +0x19e
net/http.(_conn).serve(0xc8200c0370)
/usr/local/go/src/net/http/server.go:1361 +0xbee
created by net/http.(_Server).Serve
/usr/local/go/src/net/http/server.go:1910 +0x3f6
数据库node表里数据如下
PDB活动报表:campaign/index
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.