|
|
|
@ -12,436 +12,21 @@ |
|
|
|
style="width: 24px; height: 24px" |
|
|
|
/> |
|
|
|
<div class="maintitle">神豚体检管理系统</div> |
|
|
|
<div style="margin-left: 5%" :class="className==='userlist'?'actived userlist':'userlist'"> |
|
|
|
<el-dropdown |
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
> |
|
|
|
<span class="el-dropdown-link"> |
|
|
|
<span style="margin-top: 10px"> |
|
|
|
<!-- <img |
|
|
|
class="iconimg titleimg" |
|
|
|
src="@/assets/images/usericon.png" |
|
|
|
alt="" |
|
|
|
style="width: 20px; line-height: 150px; padding-top: 5px" |
|
|
|
/> --> |
|
|
|
</span> |
|
|
|
<!-- <span style="width: 20px">1</span> --> |
|
|
|
|
|
|
|
权限管理</span |
|
|
|
> |
|
|
|
<!--动态生成菜单 add by pengj --> |
|
|
|
<div style="margin-left:10px;" v-for="menu in menuPriv" :key="menu.id" |
|
|
|
:class="className == menu.displayName ? `actived ${menu.displayName}`:menu.displayName"> |
|
|
|
<el-dropdown @command="handleCommand"> |
|
|
|
<span class="el-dropdown-link" style="margin-left: 10px">{{ menu.displayName }}</span> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('userlist', 'organization-units')" |
|
|
|
class="dropdownmain" |
|
|
|
>科室设置</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('userlist', 'role')" class="dropdownmain" |
|
|
|
>角色管理</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('userlist', 'user-list')" class="dropdownmain" |
|
|
|
>用户管理</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('userlist', 'audit-log')" class="dropdownmain" |
|
|
|
>安全日志</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('userlist', 'menuPage')" class="dropdownmain">菜单与页面</el-dropdown-item> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</div> |
|
|
|
<!-- 基础字典 --> |
|
|
|
<div |
|
|
|
style="margin-left: 10px; padding: 0 5px" |
|
|
|
:class="className==='basicdictionany'?'actived basicdictionany':'basicdictionany'" |
|
|
|
> |
|
|
|
<el-dropdown |
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
> |
|
|
|
<span class="el-dropdown-link" style="margin-left: 10px"> |
|
|
|
<!-- <img |
|
|
|
src="@/assets/images/feesettings.png" |
|
|
|
alt="" |
|
|
|
style="width: 20px; height: 20px" |
|
|
|
class="basicimg titleimg" |
|
|
|
/> --> |
|
|
|
基础字典</span |
|
|
|
> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'guide-type')" class="dropdownmain" |
|
|
|
>导引类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('basicdictionany', 'medical-report-type')" |
|
|
|
class="dropdownmain" |
|
|
|
>体检报告类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'sex')" class="dropdownmain" |
|
|
|
>性别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'marital-status')" class="dropdownmain" |
|
|
|
>婚姻状况</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'nation')" class="dropdownmain" |
|
|
|
>民族</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'birth-place')" class="dropdownmain" |
|
|
|
>籍贯</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'result-status')" class="dropdownmain" |
|
|
|
>结果状态</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'edical-type')" class="dropdownmain" |
|
|
|
>体检类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'personnel-type')" class="dropdownmain" |
|
|
|
>人员类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'device-type')" class="dropdownmain" |
|
|
|
>仪器类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'sample-type')" class="dropdownmain" |
|
|
|
>标本类型</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'unit')" class="dropdownmain" |
|
|
|
>计量单位</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('basicdictionany', 'diagnosis-postfix')" |
|
|
|
class="dropdownmain" |
|
|
|
>诊断后缀</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('basicdictionany', 'medical-conclusion-type')" |
|
|
|
class="dropdownmain" |
|
|
|
>体检结论类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('basicdictionany', 'medical-conclusion')" |
|
|
|
class="dropdownmain" |
|
|
|
>体检结论</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('basicdictionany', 'sample-container')" |
|
|
|
class="dropdownmain" |
|
|
|
>标本容器</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('basicdictionany', 'common-char-type')" |
|
|
|
class="dropdownmain" |
|
|
|
>常用字符类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'common-char')" class="dropdownmain" |
|
|
|
>常用字符</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('basicdictionany', 'customer-org-type')" |
|
|
|
class="dropdownmain" |
|
|
|
>客户单位类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('basicdictionany', 'item-default-result')" |
|
|
|
class="dropdownmain" |
|
|
|
>项目默认结果</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('basicdictionany', 'diagnosis-level')" class="dropdownmain" |
|
|
|
>诊断级别</el-dropdown-item |
|
|
|
> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</div> |
|
|
|
<!-- 收费设置 --> |
|
|
|
<div :class="className==='charge'?'actived charge':'charge'" style="margin-left: 20px"> |
|
|
|
<el-dropdown |
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
> |
|
|
|
<span class="el-dropdown-link"> |
|
|
|
<!-- <img |
|
|
|
src="@/assets/images/chargeimg.png" |
|
|
|
alt="" |
|
|
|
style="width: 20px; height: 20px" |
|
|
|
class="chargeimg titleimg" |
|
|
|
/> --> |
|
|
|
收费设置</span |
|
|
|
> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('charge', 'invoice-item-type')" |
|
|
|
class="dropdownmain" |
|
|
|
>发票项目类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('charge', 'pay-mode')" class="dropdownmain" |
|
|
|
>支付方式</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('charge', 'cardType')" class="dropdownmain" |
|
|
|
>会员卡类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('charge', 'cardRegister')" class="dropdownmain" |
|
|
|
>会员卡管理</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('charge', 'cardBill')" class="dropdownmain" |
|
|
|
>会员卡记账</el-dropdown-item |
|
|
|
> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</div> |
|
|
|
<!--常用设置 --> |
|
|
|
<div :class="className==='fee-settings'?'actived fee-settings':'fee-settings'" style="margin-left: 20px"> |
|
|
|
<el-dropdown |
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
> |
|
|
|
<span class="el-dropdown-link"> |
|
|
|
<!-- <img |
|
|
|
src="@/assets/images/commonsetting.png" |
|
|
|
alt="" |
|
|
|
class="commonsettingimg titleimg" |
|
|
|
/> --> |
|
|
|
常用设置</span |
|
|
|
> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('fee-settings', 'item-type')" class="dropdownmain" |
|
|
|
>项目类别</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('fee-settings', 'item')" class="dropdownmain" |
|
|
|
>项目设置</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('fee-settings', 'asbitem')" class="dropdownmain" |
|
|
|
>组合项目</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('fee-settings', 'sample-group')" class="dropdownmain" |
|
|
|
>条码分组</el-dropdown-item |
|
|
|
> |
|
|
|
<!-- <el-dropdown-item |
|
|
|
@click.native="$router.push({ path: '/reference-range' })" |
|
|
|
>参考范围</el-dropdown-item |
|
|
|
> --> |
|
|
|
<!-- <el-dropdown-item |
|
|
|
@click.native=" |
|
|
|
$router.push({ path: '/sex-hormone-reference-range' }) |
|
|
|
" |
|
|
|
>性激素参考范围</el-dropdown-item |
|
|
|
> --> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('fee-settings', 'diagnosisSet')" class="dropdownmain" |
|
|
|
>诊断建议设置</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('fee-settings', 'diagnosis-template')" |
|
|
|
class="dropdownmain" |
|
|
|
>诊断模板</el-dropdown-item |
|
|
|
> |
|
|
|
<!-- |
|
|
|
<el-dropdown-item |
|
|
|
command="item-result-template" |
|
|
|
class="dropdownmain" |
|
|
|
>项目结果模板</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
command="item-result-match" |
|
|
|
class="dropdownmain" |
|
|
|
>项目结果匹配</el-dropdown-item |
|
|
|
> |
|
|
|
--> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('fee-settings', 'item-template')" class="dropdownmain" |
|
|
|
>项目模板</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('fee-settings', 'medicalPackage')" class="dropdownmain" |
|
|
|
>套餐设置</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('fee-settings', 'sys-parm-type')" class="dropdownmain" |
|
|
|
>系统参数</el-dropdown-item |
|
|
|
> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</div> |
|
|
|
<!-- 体检登记 --> |
|
|
|
<div :class="className==='examinationregistration'?'actived examinationregistration':'examinationregistration'" style="margin-left: 20px"> |
|
|
|
<el-dropdown |
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
class="dropdowncolor" |
|
|
|
> |
|
|
|
<span class="el-dropdown-link"> |
|
|
|
<!-- <img |
|
|
|
src="@/assets/images/registrationimg.png" |
|
|
|
alt="" |
|
|
|
class="registrationimgimges" |
|
|
|
/> --> |
|
|
|
体检登记</span |
|
|
|
> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('examinationregistration', 'customerOrg')" class="dropdownmain" |
|
|
|
>体检单位设置</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('examinationregistration', 'customerOrgGroup')" |
|
|
|
class="dropdownmain" |
|
|
|
>单位分组设置</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('examinationregistration', 'patientRegister')" class="dropdownmain" |
|
|
|
>体检人员登记</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('examinationregistration', 'patientRegisterBatch')" class="dropdownmain" |
|
|
|
>人员批量登记</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('examinationregistration', 'patientRegisterSign')" |
|
|
|
class="dropdownmain" |
|
|
|
>体检人员签到</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('examinationregistration', 'patientRegisterRecover')" |
|
|
|
class="dropdownmain" |
|
|
|
>体检表回收</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('examinationregistration', 'patientRegisterRefuse')" |
|
|
|
class="dropdownmain" |
|
|
|
>弃检登记</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('examinationregistration', 'charge')" class="dropdownmain" |
|
|
|
>体检收费</el-dropdown-item |
|
|
|
> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</div> |
|
|
|
<!-- 体检 --> |
|
|
|
<div :class="className==='physicalexamination'?'actived physicalexamination':'physicalexamination'" style="margin-left: 10px"> |
|
|
|
<el-dropdown |
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
> |
|
|
|
<span class="el-dropdown-link">体检</span> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('physicalexamination', 'doctorCheck')" class="dropdownmain" |
|
|
|
>体检医生诊台</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('physicalexamination', 'sumDoctorCheck')" class="dropdownmain" |
|
|
|
>总检医生诊台</el-dropdown-item |
|
|
|
> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</div> |
|
|
|
<!-- 体检查询 --> |
|
|
|
<div style="margin-left: 10px" :class="className==='examinationquery'?'actived examinationquery':'examinationquery'" > |
|
|
|
<el-dropdown |
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
> |
|
|
|
<span class="el-dropdown-link">体检查询</span> |
|
|
|
<el-dropdown-menu slot="dropdown" style="width: 180px"> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('examinationquery', 'report')" class="dropdownmain" |
|
|
|
>体检报告</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('examinationquery', 'checkStatus')" class="dropdownmain" |
|
|
|
>组合项目检查状态</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('examinationquery', 'chargeAsbitem')" class="dropdownmain" |
|
|
|
>人员费用组合项目</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('examinationquery', 'unCheckAsbitem')" class="dropdownmain" |
|
|
|
>人员未检组合项目</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('examinationquery', 'patientRegisterRecover')" |
|
|
|
class="dropdownmain" |
|
|
|
>回收表格查询</el-dropdown-item |
|
|
|
> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</div> |
|
|
|
<!-- 客户报表 --> |
|
|
|
<div :class="className==='reportforms'?'actived reportforms':'reportforms'" style="margin-left: 15px"> |
|
|
|
<el-dropdown |
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
> |
|
|
|
<span class="el-dropdown-link"> 客户报表 </span> |
|
|
|
<el-dropdown-menu slot="dropdown" style="width: 200px"> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('reportforms', 'diseaseStatistics')" |
|
|
|
class="dropdownmain" |
|
|
|
>疾病人数统计</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('reportforms', 'positiveResultsList')" class="dropdownmain" |
|
|
|
>阳性结果人员</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('reportforms', 'unitphysicalexamination')" |
|
|
|
class="dropdownmain" |
|
|
|
>单位体检报表</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('reportforms', 'personnelPositive')" |
|
|
|
class="dropdownmain" |
|
|
|
>人员阳性结果</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('reportforms', 'combinationDetails')" |
|
|
|
class="dropdownmain" |
|
|
|
>组合项目具体结果统计</el-dropdown-item |
|
|
|
> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</div> |
|
|
|
<!-- 收费 --> |
|
|
|
<div :class="className==='workload'?'actived workload':'workload'" style="margin-left: 15px"> |
|
|
|
<el-dropdown |
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
> |
|
|
|
<span class="el-dropdown-link"> 工作量统计 </span> |
|
|
|
<el-dropdown-menu slot="dropdown" style="width: 170px"> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('workload', 'registrar')" class="dropdownmain" |
|
|
|
>登记员工作量</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('workload', 'doctorstaionworkload')" |
|
|
|
class="dropdownmain" |
|
|
|
>医生站工作量</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('workload', 'directordoctor')" class="dropdownmain" |
|
|
|
>总检工作量</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('workload', 'examinedoctor')" class="dropdownmain" |
|
|
|
>审核工作量</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('workload', 'peisworkload')" class="dropdownmain" |
|
|
|
>体检工作量</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('workload', 'deskwork')" class="dropdownmain" |
|
|
|
>科室工作量</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('workload', 'collectionbloodnurse')" class="dropdownmain" |
|
|
|
>采血护士工作量</el-dropdown-item |
|
|
|
> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</div> |
|
|
|
<!-- --> |
|
|
|
<!-- 收费 --> |
|
|
|
<div :class="className==='feereport'?'actived feereport':'feereport'" style="margin-left: 15px"> |
|
|
|
<el-dropdown |
|
|
|
@command="handleCommand" |
|
|
|
|
|
|
|
> |
|
|
|
<span class="el-dropdown-link"> 收费 </span> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('feereport', 'tollcollector')" class="dropdownmain" |
|
|
|
>收费员报表</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
:command="beforeHandleCommand('feereport', 'individualfeedetails')" |
|
|
|
class="dropdownmain" |
|
|
|
>个人收费明细</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item :command="beforeHandleCommand('feereport', 'membershipcard')" class="dropdownmain" |
|
|
|
>会员卡分类</el-dropdown-item |
|
|
|
> |
|
|
|
<el-dropdown-item v-for="page in menu.treeChildren" :key="page.id" |
|
|
|
:command="beforeHandleCommand(menu.displayName, page.routeUrl)" class="dropdownmain"> |
|
|
|
{{ page.displayName }} |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- --> |
|
|
|
<div class="btn"> |
|
|
|
<img |
|
|
|
@ -733,11 +318,13 @@ |
|
|
|
<script> |
|
|
|
///api/app/item/in-filter |
|
|
|
import router from "@/router"; |
|
|
|
import { postapi } from "@/api/api"; |
|
|
|
import { getapi, postapi } from "@/api/api"; |
|
|
|
import { mapState } from "vuex"; |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
menuPriv:[], // 菜单权限 |
|
|
|
className:'', |
|
|
|
index: 1, |
|
|
|
isCollapse: false, |
|
|
|
@ -775,8 +362,22 @@ export default { |
|
|
|
// console.log(this.$store.state.changepassword, "ssssssssssss"); |
|
|
|
this.user = window.sessionStorage.getItem("user"); |
|
|
|
|
|
|
|
//获取当前用户的菜单权限 |
|
|
|
this.getUserMenuPriv() |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getUserMenuPriv(){ |
|
|
|
getapi('/api/app/menuinfo/getmymenuinfotreelist').then(res => { |
|
|
|
if(res.code != -1){ |
|
|
|
this.menuPriv = res.data |
|
|
|
this.menuPriv = this.menuPriv.filter(e =>{ |
|
|
|
return e.menuType == '0' || e.menuType == '1' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
handleCommand(val) { |
|
|
|
this.className=val.flag |
|
|
|
if (this.router.path != val.command) { |
|
|
|
@ -932,14 +533,16 @@ export default { |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
.el-dropdown-menu { |
|
|
|
text-align: center; |
|
|
|
overflow: scroll; |
|
|
|
max-height: 500px; |
|
|
|
width: 150px; |
|
|
|
overflow-x: hidden; |
|
|
|
/* margin-left: 5%; */ |
|
|
|
margin-left: 5%; |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
.el-header { |
|
|
|
position: fixed; |
|
|
|
|