uni统计2是开源、全端、云端一体、更适合uni-app的统计平台。
Atthesametime,developerscanalsocustomizethemanagementdataandcustomizethedisplayreport.
1.Fullend
Full-endtrafficstatistics,onereportcanviewtheoperationdataofalldevices(iOS,Android,WebandvariousMiniApp).
ThereisnoneedtoconnectdifferentSDKsateachend,andthereisnoneedtoviewdataindifferentreports.Atpresent,thereisonlyonesolutionknowninthemarketthatcanseethebusinesspanoramainonereport.
2.Opensource,free,freetocustomize
Allcodesareopensource.Whatdatatocollectcanbecustomized;batchrunningfrequencycanbecustomized(real-timestatisticscanbedoneduringactivities);displayreportscanbecustomized.
3.Privatedeployment,dataautomaticcontrol
Usingtraditionalsaasstatisticalproducts,alldataarereportedtostatisticalserviceproviders.
uniStatistics2.0isimplementedbasedonuniCloud,cloudfunctionsandstatisticaldataareallhostedinthedeveloper'sownservicespace(AlibabaCloudorTencentCloudoptional),anddevelopershavecompletecontrolovertheirownstatisticaldata.
4.EffectiveErrorAnalysis
TraditionalAppstatisticsplatformsdonothavejserrorstatistics.Developerscannotknowonwhichdevicestheirjscodewillreporterrors.
Theerrorinformationofunistatisticsismorecomprehensive,includingjsfront-enderrorsandappnativelayercrashes.
Becauseuni-apprunsaftercompilation,thetraditionalwebandMiniAppstatisticsplatform,itsjserrorcannotbetracedbacktothepre-compiledsourcecodeofuni-app,andtheerrorisincomprehensible.
5.Defaultfeaturerich
)页面统计内容统计New,active,retained,bouncerateanalysisChannelanalysis:auxiliarychannelpromotionErrorstatisticsandreporting:auxiliaryproductqualityimprovementNativeAppcrashstatistics,viewcrashratebyversionCustommanagement,opensourceandextensiblereports6.Moresuitableforuni-appanduniCloud
unistatisticsgoesdeepintothebottomlayerofuni-appanduniCloudframework,andprovidesmanyfunctionsthatotherstatisticsplatformscannotprovide:
,从服务器端统计各项数据7.OpenEcosystem
Fordevelopersusingunistats1.0,itisrecommendedtoupgradetounistats2.0assoonaspossible.unistats1.0willnolongerbeupdatedandmaintained.
unistats2.0includestwomodules:
Inthemanifest.jsonofthebusinessappproject,selecttheunistatisticsconfigurationitem,selecttoenableunistatisticsasrequired,andcheck2.0toenablethenewversionofstatistics.
TheabovevisualizationoperationsactuallycorrespondtotheuniStatisticsnodeofthemanifestsourceview.Themanifestspecificationisdetailedinthefollowingdocument.Ifyoudon'tcareaboutthespecificationdetails,youcanskipthissectionandcontinuetoreadthenextsection"MiniAppDomainNameWhitelist".
TheenablefieldunderuniStatisticsissettotrue|falsetoenableanddisableunistatistics
Settheversionpropertyto"2"toenablenewversionstatistics
//..."uniStatistics":{"enable":true,//全局开启"version":"2"//开启新版uni统计,值为字符串},//...uniStatisticsdescription
collectItemscollectionitemconfigurationdescription
Sub-platformsettings
attention
BecauseeachMiniAppneedstoconfigureawhitelistforaccessibledomainnames,otherwiseitwillnotbeabletoconnecttotheInternet.Therefore,whentheMiniAppneedstobereleased,itisnecessarytoconfigurethedomainnamewhitelistintheMiniAppmanagementbackgroundofeachmanufacturer.
Whendeployingunistatistics,youcanchoosetousetheAlibabaCloudversionorTencentCloudversionofuniCloud.Thedomainnamescorrespondingtodifferentcloudvendorsaredifferent(therewillbeservicespacerelatedconfigurationsinthelaterchaptersofthearticle)
AccordingtotheselecteduniCloudcloudvendor,youcanconfigurethecorrespondingdomainnameinthedomainnamewhitelistconfigurationoftheMiniApp.
Notice
Setthedebugfieldundermanifest.json->uniStatisticstotrue|falsetoenableanddisabletheunistatisticsdebugmode
Indebugmode,thekeyinformationofthereporteddatawillbeprintedtotheconsole,whichisconvenienttoobservewhetherthecollectedinformationiscorrect.Itismostlyusedwhencustomizingextensions.
Logformat
===indicatesstatisticslogrelatedlogs
Currently,therearetwowaystoinstalluni-admin:one-clickdeploymentandmanualinstallation.
uni-adminoldprojectupgrade
Ifthebusinessyouneedtocounthasuseduni-adminbefore,youcanupgradeuni-admin.Right-clickpackage.jsonundertheprojectandselect"UpdatefromPluginMarketplace".
Thenewlyaddedfilesofunistatisticsmainlyinclude:
Whenupdating,pleasemergepages.jsontoensurethatallnewpagesareregisteredsuccessfully.Otherwise,afterrunning,clickingontheleftmenuwillreportthatthexxxfilecannotbefound.
Whendb_init.jsoninitializesthedatabase,themenutableopendb-admin-menusoftheoldprojectalreadyhasdata.Atthistime,thedatawithconflictingkeyscannotbeinsertedandneedtobemergedmanually.
Inunistatistics2.0,thedefaulttriggerperiodofthetimedtaskcloudfunction(uni-stat-cron)istotriggereveryhour(ie:every1hour,thesystemwillautomaticallytriggertheuni-stat-croncloudfunction).
注意
Beforeenablingtherediscache,youneedtoconfirmwhethertheredisservicehasbeenpurchasedintheservicespacewhereunistatisticsaredeployed.Ifnot,youneedtopurchasetheredisservicefirst.
Opensteps:
Configuretheredisextensionlibraryofuni-stat-receiver
Configuretheredisextensionlibraryofuni-stat-cron
Thisfunctiononlysupportswebplatform,Appplatform,WeChatMiniAppplatform
InordertofacilitatedeveloperstousesourceMapfilestolocatecodeproblems,theerroranalysisfunctionofusingsourceMapinstatisticshasbeenadded.
Theonlinerunningterminalmayreporterrorsinvarioususerenvironments,whichrequirestatisticsandanalysisbydevelopers.However,thethree-partystatisticalsystem(suchasYoumeng,Aladdin,andBaidu)collectstheerrorreportsontherunningside,anditpromptsthenumberoferrorlinesinthecodecompiledbytheuni-appcompiler,whichisequivalenttogarbledcharacters,andcannottellthedeveloperthatitisuni-appWhichlineofcodeinvueorjsreportsanerror.
ThesourceMapfunctionofunistatisticscansolvethisproblem.Inthestatisticsbackground,youcanclearlyseetheerrorreportingenvironmentandaccurateerrorcode,whichisthespecificinformationofvueorjsbeforeuni-appcompilation.
GeneratesourceMapfileinHBuiderX
Forthewebplatform,checktheGeneratesourceMapoptioninRelease->Website.
WhentheAppplatformisRelease->NativeApp-CloudPackaging,checktheGeneratesourceMapoption.
WhentheWeChatMiniAppplatformisIssue->MiniApp-WeChat,checktheGeneratesourceMapoption.
cliprojectgeneratessourceMapfile
Vue2
Vue3
AftertheWeChatMiniAppplatformisuploadedandreleased,itwillbecompressedandpackagedagain,soanadditionalstepisrequired:
Precautions
uni-admin2.3.4+版本
注意:2.3.4+的版本同时支持阿里云和腾讯云空间。
将uni-admin项目运行到浏览器中,在uni统计/错误统计/js报错页面,错误信息列表表格的右上角有上传sourceMap按钮。点击后展示如下:
上传请前请填写完整信息:应用、平台、版本
点击选择文件并上传按钮,弹出选择文件夹框后,请选中编译的对应该平台版本的sourceMap。如:项目根目录/unpackage/dist/build/.sourcemap/h5,选中h5目录后点击上传。如果中途上传失败,在不刷新页面的情况下,重新选择文件夹上传可以跳过已上传文件。
上传完成
uni-admin2.3.4之前的版本
注意:2.3.4之前的版本只支持腾讯云空间,不支持阿里云空间。
Configureuni-statrelatedinformationinuni-adminproject/admin.config.js:
Runtheuni-adminprojectintothebrowser,andontheunistatistics/errorstatistics/jserrorreportpage,thereisanuploadsourceMapbuttonintheupperrightcorneroftheerrormessagelisttable.Afterclicking,itwilldisplayasfollows:
Pleasefillinthecompleteinformationbeforeuploading:Application,Platform,Version
ClicktheChoosefileanduploadbutton,aftertheSelectFolderboxpopsup,pleaseselectthecompiledsourceMapcorrespondingtotheplatformversion.Forexample:Projectrootdirectory/unpackage/dist/build/.sourcemap/h5,selecttheh5directoryandclickupload.Iftheuploadfailsinthemiddle,withoutrefreshingthepage,youcanskiptheuploadedfilebyre-selectingthefoldertoupload.
Thecontentsofthefolderwillbeuploadedtothecloudstorage/__UNI__/uni-stat/sourcemap/applicationappId/platform(egweb,mp-weixin,ios)/version/directory
Ontheunistatistics/errorstatistics/jserrorreportpage,intheerrorinformationlisttable,clickthedetailsbuttonontherightsideofthetablerowtoviewtheparsederrorinformationinthepop-upwindow.
Example
Originalerrormessage:
Parsederrormessage:
Tosaveserver-sideresources,thedatacollectedbythefront-endisreportedonaregularbasis.Sotheescalationrequestdoesnothappeninrealtime.
HBuilderX3.5.4orhigherversioncanadjustthereportingperiodaccordingtoyourownbusinessneeds,youcanmodifyitinunistatisticsconfiguration->front-enddatareportingperiod,inordertosaveserverresources,itisrecommendedtofillintherangeof5-between20.
Whenwillthedatabereported
Inadditiontotheabovetwocases,datareportingwillnotoccurinothercases,includingApprealmachineruntime(includingcustomdock),crashanderrordata
Applaunch
Theprogramstartsatthebeginningofthevisit,andtheendofthevisitisasfollows:enteringthebackgroundformorethan5minutes,nooperationintheforegroundformorethan30minutes,andanewsourceprogram
Appgoestobackground
Whentheapplicationentersthebackground,itistriggeredbytheapplication'sonHidelifecycleintheSDK
Pageswitch
Reportwhenthepagejumps.IntheSDK,itistriggeredbytheonHidelifecycleofthepage.
Eventtrigger
Whentheusertriggerssomebusinesslogic
Applicationerror
Reportanerrorintheapplication
lt:Statisticstype
ut:platformtype
p:phonesystem
net:networktype
Inordertohighlightthegoal,onlythefoldersandfilesrelatedtounistatisticsarecommentedout,andtherestarethesameasordinaryuni-appprojects.Fornewpages,pleaserefertosimilarpagesinuni-stat.
2.Descriptionofpublicmodules
Note:TheunistatisticscommonmoduledependsontheuniCloudconfigurationcenter(uni-config-center)
Note:Aftermodifyingtheunistatisticsconfigurationitems,youneedtore-uploadthepublicmoduleuni-config-centertotakeeffect.
Basicparameters
Thecronparameterisusedtoconfigurethetriggertimeofthescheduledtask.Generally,youdonotneedtomodifythisitem.
Thecurrenttypesofscheduledtasksare(Thecontentinbracketsbelowindicatesthetriggertimeofthescheduledtaskaftertheminute-levelstatisticsareenabled):
stat:basicdatastatistics,statisticaldimensionsinclude:
retention-device:Deviceretentiondatastatistics,statisticaldimensionsinclude:
retention-user:Userretentiondatastatistics,statisticaldimensionsinclude:
active-device:Activedevicedataarchive,statisticaldimensionsinclude:
active-user:Activeuserdataarchive,statisticaldimensionsinclude:
page:pagedatastatistics,statisticaldimensionsinclude:
page-detail:页面内容统计,统计维度包括:
event:Eventdatastatistics,statisticaldimensionsinclude:
error:Errordatastatistics,statisticaldimensionsinclude:
clean:过期日志清理定时任务:
pay-result:Paymentdataresultstatistics,statisticaldimensionsinclude:
TheerrorCheckparameterisusedtolimitthesameerrorlogtobewrittentothedatabasewithinaspecifiedtimetopreventalargenumberofdatabasewriteoperationscausedbyhigh-frequencyerrors.Itcanbeturnedonoroffasneeded.
ThecleanLogparameterisusedtoconfigureregularcleaningofexpiredlogs,reducethestoragecapacityofdatabasedata,andimproveunistatisticsperformance.
Thecurrentlyconfigurablelogtypesare:
Notes
uni.report(eventKey,param)takestwoparameters.
Likeordinaryuni-apppages,createanewpageandwritecode.
uni-admin1.9.0versionstarts(correspondingtoHBuilderX3.5.1),unistatisticsanduniuni-upgrade-centercenterreusethesameapplicationversiontable(ieopendb-app-versionstable),discardtheoriginalTheuni-stat-app-versionstable.
Ifyouhaveenableduni-statistics2.0butareusinganolderversionofuni-admin,youneedtopayattentiontothemigrationandupgradeoftheversiontable,otherwisetheversion-basedstatisticsmaybeinaccurate.
Upgradesteps:
演示图
内容统计
页面规则
设置页面规则
如果升级uni-admin后,你的uni统计没有出现内容统计的菜单,则点击菜单管理里的【更新内置菜单】按钮即可(需uni-admin版本>=2.4.0)
Recently,theuniCloudAlibabaCloudversionhasbeenofficiallycommercialized.Somedevelopershavebeguntostrugglewithcloud-integratedservicessuchas`unistatistics'basedonuniCloud.Theydon'tknowhowmuchtheseservicesareexpectedtocost.Theprogramismorecost-effective.
Thisarticleismainlydividedintothreeparts:
UniStatisticsConsumedResourceCostCalculation
Thepartsofunistatisticsinvolvingexpensesaremainlydividedinto:
Next,weconductcostassessmentsfordifferentresources.
Afterenablingunistatistics,eachofyouronlineuserswillrequesttheuni-stat-receivercloudfunctionevery10secondsbydefault(ifyourDAUismorethan10,000,youcanchangeitto60seconds,whichcanreducethecost.TimeTheintervalcanbesetinmanifest.json,iftheuserstaysononepage,itwillnotbereportedrepeatedly)
Wecansimplyderivethefollowingformula:
Cloudfunction/cloudobjectcost=resourceusage*0.000110592+numberofcalls*0.0133/10000+outboundtraffic*0.8
in:
Weassumethefollowingdatamodel:
Accordingtotheaboveformula,ifthereare100dailyactiveusers,thedailycostoftheuni-stat-receivercloudfunctionofunistatisticsis:
云函数费用(天)=资源使用量*0.000110592+调用次数*0.0133/10000+出网流量*0.8=云函数内存(单位为G)*云函数平均单次执行时长(单位为秒)*调用次数*0.000110592+调用次数*0.0133/10000+出网流量(单位GB)*0.8=0.125*0.1*(100*10)*0.000110592+(100*10)*0.0133/10000+(100*10)*(0.7/1024/1024)*0.8=0.001382+0.00133+0.000534≈0.0032(元)Thatis:yourAppDAUis100,andafterusingthecommercialversionofunistatistic,theuni-stat-receivercloudfunctionconsumesabout0.0032yuanperday.
Accordingtothis,themonthlycostcanbecalculatedas:0.0032*30≈0.1,thatis,whenthedailyactivityis100,themonthlyuni-stat-receivercloudfunctiononlyneeds0.1yuan.
Inthesameway,wecandeducethatforappswith1,000,10,000,and100,000dailyactivities,themonthlycostoftheuni-stat-receivercloudfunctionisasfollows:
unistatisticalsohasacloudfunctionuni-stat-cron,whichisascheduleddatarunningbatchtask,whichisusedtocountthereporteddataandgeneratestatisticalreports.
Thedailycostoftheuni-stat-croncloudfunctionofunistatisticsis:
云函数费用(天)=资源使用量*0.000110592+调用次数*0.0133/10000+出网流量*0.8=云函数内存(单位为G)*云函数平均单次执行时长(单位为秒)*调用次数+调用次数*0.0133/10000+出网流量*0.8=0.5*1*24*0.000110592+24*0.0133/10000+0=0.001327104+0.00003192+0≈0.0014(元)Thatis:yourAppDAUis100,andafterusingthecommercialversionofunistatistic,theuni-stat-receivercloudfunctionconsumesabout0.0014yuanperday.
Accordingtothis,itsmonthlycostcanbecalculatedas:0.0014*30≈0.04,thatis,whenthedailyactivityis100,themonthlyuni-stat-receivercloudfunctiononlyneeds0.04yuan.
Sincetheuni-stat-croncloudfunctiononlyruns24timesadayregardlessofthedailyactivity,thedailyactivityhaslittleimpactonitscost(onlythedurationofeachoperationisaffected).
unistatisticswillgeneratealargeamountoflogdata,butbydefaulttherewillbeastrategyforautomaticallyclearinghistoricallogs,forexample:sessionlogdata31daysagowillbedeleted.
Sinceunistatisticsinvolvesaverycomplicateddatabase,wehaveobtainedthefollowingresultsthroughtheactualoperationdataoftheofficialstatisticssampleproject:
ForanapplicationwithaDAUof100,theresourceusageofunistatisticsdatabaseisasfollows:
TheabovefiguresarecalculatedfromtheOfficialStatisticsSampleProject.
Therefore,thefollowingdatamodelcanbeobtained:
Becausethedatasourceisonlykeptfor31days,thedatavolumewillremainat31daysafterstableoperation.Therefore,theclouddatabasecapacityintheformulabelowneedstobemultipliedby31
数据库费用(天)=云数据库容量*31*0.07+读操作次数*0.015/10000+写操作次数*0.05/10000=0.00052*31*0.07+2000*0.015/10000+2000*0.05/10000=0.0011284+0.003+0.01≈0.0141(元)Thatis:ifyourunistatisticsbusinessDAUis100,afterusingthecloudservicespaceofAlibabaCloudCommercialEdition,thecorrespondingdatabasewillconsumeabout0.0141yuanperday.Basedonthis,themonthlycostcanbecalculatedas:0.0141*30≈0.42,thatis,whentheDAUis100,themonthlyclouddatabaseonlyneeds0.42yuan.
Redisonlyaffectsthereadoperationofthedatabase.Accordingtothecomparisonbeforeandafterusingredisintheofficialstatisticalsampleproject,itcanbeseenthatrediscanreducethenumberofdatabasereadoperationsbyabout2/3(equaltoreducingthecostofdatabasereadtimesby2/3).
Itcanbeseenthatwhenthedailyactivityislowerthan100,000,thecostreductionofredisisnotobvious.Butwhenthedailyactivityisgreaterthan100,000,theroleofredisbecomesmoreandmoreobvious.
unistatisticsneedstobeusedinconjunctionwithuni-admin,anduni-adminneedstobedeployedinthefront-endwebhosting.uni-adminismainlyusedbyadministrators,withlessfrequentuseandlowertraffic.
uni-adminiscompiledto4.7M.Accordingtotheruleof0.0043yuanperGBperdayontheofficialwebsite,themonthlycapacityfeeofuni-adminis:4.7/1024*0.0043*30=0.00059,whichislessthan1cent.Ignorable.
Theadministratorlogsintouni-adminandbrowsesthestatisticaldataontheunistatisticsmanagementpage.Thetrafficrequireddoesnotexceed3M.Evenifupdatesarereleasedtwiceamonth,theestimatedtrafficfeeis:3/1024*0.18*2=0.00105,whichislessthan1cent,canalsobeignored.
Themonthlyfeeislessthan1cent,whichcanbeignored.
Aftercomparingthedetaileditems,let'scombinethemtoseehowmuchtheyneedtospendpermonthusingunistatistics.
Usingunistatistics,freeaccess,one-clickinstallation,youwillget:
1.Fullport
Fullterminaltrafficstatistics,onereportcanviewtheoperationdataofallterminals(iOS,Android,WebandvariousMiniApp).
ThereisnoneedtoconnectdifferentSDKsateachend,andthereisnoneedtoviewdataindifferentreports.Atpresent,theonlysolutionknowninthemarketistoviewthebusinesspanoramainonereport.
2.Opensource,free,freecustomization
3.Privatedeployment,dataself-control
Usingtraditionalsaasstatisticalproducts,alldataarereportedtostatisticalservicevendors.
uniStatistics2.0isimplementedbasedonuniCloud.Cloudfunctionsandstatisticaldataareallhostedinthedeveloper'sownservicespace(AlibabaCloudorTencentCloudoptional),anddevelopershavecompletecontrolovertheirownstatisticaldata.
4.Effectiveerroranalysis
Traditionalappstatisticsplatformsdonothavejserrorstatistics.Developerscannotknowonwhichdevicestheirjscodewillreporterrors.
Theerrorinformationcollectedbyuniismorecomprehensive,includingjsfront-enderrorsandappnativelayercrashes.
Becauseuni-apprunsaftercompilation,thetraditionalwebandMiniAppstatisticsplatform,itsjserrorcannotbetracedbacktothesourcecodeofuni-appbeforecompilation,andtheerrorreportisincomprehensible.
realcasescenario
Let’sgobacktounistatisticsagain.Fromthecostcalculationabove,wecanknowthatforadailyactivityof10,000,theannualcostofeachdailyactivityisabout6centsto7cents.ThiscostisalreadyrelativelyIt'scheap.
Atpresent,statisticsonthemarket,suchasYoumengstatistics,arealsocharged.Whenthedailyactivityreaches10,000,theannualfeeneedstobe3109yuan/year(andthisisonlythecostofwebstatistics,andthecostofAPPstatisticsiscalculatedseparately).Atthesametime,itisnotasourcecodeversion,thecodeisnotopensource,andcannotbecustomizedatwill.
Andunistatisticsisfull-platformstatistics,open-sourcecode,freecustomization,whichcannotbeachievedbythree-partystatisticalplatforms.
Lookingbackatthecalculationtablejustnow,assumingthattheDAUis10,000,theannualcostofunistatisticsisonly53.31*12=639.72yuan/year.
Itshouldbethepursuitofsmartengineersnottorepeatmanufacturingwheels,focusonbusiness,quicklyverifymodels,andachievebusinessgrowth.
Thisreviewisforyourreference.
A:Itisrelatedtotheconfigurationoftimedtasks.Bydefault,datasuchasStatisticsHomeandToday'sOverviewarevisibleafter1hour,andtherestofthedataarevisiblethenextday.Tolearnmoreaboutthestatisticaltimeofvarioustypesofdata,pleasereferto[ScheduledTaskConfigurationInstructions](#%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E).
answer:
Answer:Theformulaforcalculatingthetotalnumberofdevicesis:totalnumberofdevices=numberoforiginaldevices+numberofnewdevices,andthebasisforjudgingwhetheradeviceisanewdeviceiswhetherthetimewhenthedevicelastaccessedanapplicationhasbeenstoredintheclientSDKIfitisnotstored,itisconsideredasanewdeviceoftheapplication(thatis,whenlvts=0,itisanewdevice,andwhenlvts>0,itisanolddevice).Therefore,ifadevicehasaccessedanapplicationbefore,evenifthedatainthedatabaseisclearedatthistime,sincethetimewhenthedeviceaccessedtheapplicationlasttimehasbeenstoredintheclientSDK(thatis,lvts>0atthistime),thedeviceItwillnolongerbeconsideredasanewdeviceoftheapplication,soitwillnolongerbecountedintothetotalnumberofdevicesoftheapplication,butwillonlybecountedintothenumberofactivedevices.Atthistime,thetotalnumberofdevicesmaybelessthanthenumberofactivedevices.Condition.
BusinessAppandadminare2projects.Thebusinessappisthecollectionend,andtheadministhereportend;bothprojectscontainuni-config-center;ifthesetwoprojectsareassociated(multiplexed)withthesameservicespace,itiseasytoappearuni-config-center`Themutualcoverageproblem;atthistime,itisrecommendedtomaintainasinglepoint,thereare2solutions:
首先分三步骤
第一步:添加用户角色权限
去权限管理,添加一个权限id为:READ_UNI_STAT的权限
去角色管理,添加一个角色id为:READ_UNI_STAT的角色
去用户管理,赋予子账号角色READ_UNI_STAT角色
涉及表如下:
需要赋予上面的表的read权限
将上面的表的read权限全部设置为
"permission":{"read":"'READ_UNI_STAT'inauth.permission","create":false,"update":false,"delete":false},第三步:前往菜单管理,对每一个uni统计的页面(包含子页面)设置下权限READ_UNI_STAT(菜单只有拥有对应权限才会显示)