leftside.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. <template>
  2. <div class="leftSideTitle sidebar-wrapper">
  3. <el-scrollbar style="height:100%">
  4. <el-menu
  5. router
  6. :collapse="collapse"
  7. :default-active="onRoutes"
  8. class="el-menu-vertical-demo"
  9. unique-opened
  10. >
  11. <el-menu-item index="/home" v-if="menuList.home135||menuList.home136">
  12. <i class="el-icon-s-home"></i>
  13. <span>首页</span>
  14. </el-menu-item>
  15. <!-- <el-menu-item index="/data">
  16. <i class="el-icon-s-data"></i>
  17. <span>企业大数据</span>
  18. </el-menu-item> -->
  19. <el-menu-item index="project" v-if="menuList.Project55">
  20. <i class="el-icon-s-grid"></i>
  21. <span>项目管理</span>
  22. </el-menu-item>
  23. <el-submenu index="1" v-if="menuList.Maintenance63">
  24. <template slot="title">
  25. <i class="el-icon-menu"></i>
  26. <span>维保管理</span>
  27. </template>
  28. <el-menu-item index="LiftMaintenancePlan" v-if="Maintenance.Maintenance64">维保计划</el-menu-item>
  29. <el-menu-item index="Maintenance" v-if="Maintenance.Maintenance71">日常保养</el-menu-item>
  30. <!-- <el-menu-item index="StopMaintenancePlan">停保管理</el-menu-item> -->
  31. </el-submenu>
  32. <el-submenu index="2" v-if="menuList.EmergencyRepair104">
  33. <template slot="title">
  34. <i class="el-icon-brush"></i>
  35. <span>急修管理</span>
  36. </template>
  37. <el-menu-item v-if="EmergencyRepair.EmergencyRepair105" index="Emergency" :route="{path:'/Emergency'}">急修派工</el-menu-item>
  38. <el-menu-item v-if="EmergencyRepair.EmergencyRepair106" index="UrgentRepair">急修中</el-menu-item>
  39. <el-menu-item index="Repair" v-if="EmergencyRepair.EmergencyRepair109">急修记录</el-menu-item>
  40. </el-submenu>
  41. <el-menu-item index="CapitalRepair" v-if="menuList.CapitalRepair134">
  42. <i class="el-icon-s-grid"></i>
  43. <span>大修管理</span>
  44. </el-menu-item>
  45. <el-submenu index="6" v-if="menuList.Lift77">
  46. <template slot="title">
  47. <i class="el-icon-menu"></i>
  48. <span>电梯管理</span>
  49. </template>
  50. <!-- <el-menu-item index="Lift">物联设备</el-menu-item> -->
  51. <el-menu-item index="Lift">电梯档案</el-menu-item>
  52. </el-submenu>
  53. <el-menu-item index="Inspection" v-if="menuList.Inspection118">
  54. <i class="el-icon-finished"></i>
  55. <span>年检管理</span>
  56. </el-menu-item>
  57. <el-submenu index="contractManagement" v-if="menuList.Contract87">
  58. <template slot="title">
  59. <i class="el-icon-s-cooperation"></i>
  60. <span>合同管理</span>
  61. </template>
  62. <el-menu-item index="contractManagement" v-if="Contract.Contract88">合同管理</el-menu-item>
  63. <el-menu-item index="collect" v-if="Contract.Contract94">收款管理</el-menu-item>
  64. </el-submenu>
  65. <el-submenu index="3" v-if="menuList.office123">
  66. <template slot="title">
  67. <i class="el-icon-s-goods"></i>
  68. <span>办公OA</span>
  69. </template>
  70. <el-menu-item index="Liftcertificate" v-if="office.office124">操作证管理</el-menu-item>
  71. <el-menu-item index="Attendance" v-if="office.office129">签到管理</el-menu-item>
  72. <el-menu-item index="Announcement" v-if="office.office131">公司公告</el-menu-item>
  73. </el-submenu>
  74. <el-submenu index="4" v-if="menuList.Enterprise6">
  75. <template slot="title">
  76. <i class="el-icon-s-tools"></i>
  77. <span>企业设置</span>
  78. </template>
  79. <el-menu-item index="Userapplication" v-if="Enterprise.Enterprise7||Enterprise.Enterprise11">申请管理</el-menu-item>
  80. <el-menu-item index="MTCompanyUserPower" v-if="Enterprise.Enterprise14">成员管理</el-menu-item>
  81. <el-menu-item index="Region" v-if="Enterprise.Enterprise22">区域设置</el-menu-item>
  82. <el-menu-item index="MTCompanyUser" v-if="Enterprise.Enterprise26">组织管理</el-menu-item>
  83. <el-menu-item index="Global" v-if="Enterprise.Enterprise28">全局设置</el-menu-item>
  84. <el-menu-item index="Members" v-if="Enterprise.Enterprise19">角色管理</el-menu-item>
  85. <el-menu-item index="MOptionCustom" v-if="Enterprise.Enterprise30">保养单增项</el-menu-item>
  86. </el-submenu>
  87. <el-menu-item index="property" v-if="menuList.property34">
  88. <i class="el-icon-user-solid"></i>
  89. <span>客户管理</span>
  90. </el-menu-item>
  91. <el-menu-item index="user" v-if="menuList.user1">
  92. <i class="el-icon-s-custom"></i>
  93. <span>用户管理</span>
  94. </el-menu-item>
  95. <el-menu-item index="CommonProblem" v-if="menuList.CommonProblem41">
  96. <i class="el-icon-question"></i>
  97. <span>常见问题</span>
  98. </el-menu-item>
  99. <el-menu-item index="/NewList" v-if="menuList.NewList49">
  100. <i class="el-icon-s-comment"></i>
  101. <span>新闻公告</span>
  102. </el-menu-item>
  103. <!---------------------------- we ----------------------------------->
  104. <el-menu-item index="/monitoring-center/index" v-if="menuList.monitoringCenter">
  105. <template slot="title">
  106. <i class="iconfont iconjiankongzhongxin"></i>
  107. <span class="sClass">监控中心</span>
  108. </template>
  109. </el-menu-item>
  110. <el-submenu index="/data-bank/index" v-if="menuList.dataBank">
  111. <template slot="title">
  112. <i class="iconfont iconziliaoku"></i>
  113. <span class="sClass">资料库</span>
  114. </template>
  115. <el-menu-item index="/data-bank/index" v-if="dataBank.dataBank1">官方文件管理</el-menu-item>
  116. <el-menu-item index="/brand/index" v-if="dataBank.dataBank2">品牌管理</el-menu-item>
  117. <!-- <el-menu-item index="/data-bank/classify" v-if="dataBank.dataBank3">资料分类拓展</el-menu-item>
  118. <el-menu-item index="/data-bank/accessory" v-if="dataBank.dataBank4">资料附件管理</el-menu-item> -->
  119. <el-menu-item index="/data-bank/code" v-if="dataBank.dataBank5">故障代码管理</el-menu-item>
  120. <el-menu-item index="/data-bank/operation" v-if="dataBank.dataBank6">操作系统管理</el-menu-item>
  121. <el-menu-item index="/data-bank/operation-accessory" v-if="dataBank.dataBank7">操作系统附件管理</el-menu-item>
  122. </el-submenu>
  123. <el-submenu index="/school/index" v-if="menuList.school">
  124. <template slot="title">
  125. <i class="iconfont iconpost_video"></i>
  126. <span class="sClass">学堂管理</span>
  127. </template>
  128. <el-menu-item index="/school/index" v-if="school.school1">视频管理</el-menu-item>
  129. <el-menu-item index="/school/video-approve" v-if="school.school2">视频审批</el-menu-item>
  130. </el-submenu>
  131. <el-submenu index="/recruitment/index" v-if="menuList.recruitment">
  132. <template slot="title">
  133. <i class="iconfont iconqidongzhaopinshenpi"></i>
  134. <span class="sClass">招聘管理</span>
  135. </template>
  136. <el-menu-item index="/recruitment/index" v-if="recruitment.recruitment1">招聘管理</el-menu-item>
  137. <el-menu-item index="/recruitment/recruitment-approval" v-if="recruitment.recruitment2">招聘审核</el-menu-item>
  138. <el-menu-item index="/recruitment/recruitment-application" v-if="recruitment.recruitment3">求职信息管理</el-menu-item>
  139. </el-submenu>
  140. <el-submenu index="/template-library" v-if="menuList.templateLibrary">
  141. <template slot="title">
  142. <i class="iconfont iconmobanguanli"></i>
  143. <span class="sClass">模板库</span>
  144. </template>
  145. <el-menu-item index="/template-library/maintenance" v-if="templateLibrary.templateLibrary1">维保项管理</el-menu-item>
  146. <el-menu-item index="/template-library/template" v-if="templateLibrary.templateLibrary2">系统模板管理</el-menu-item>
  147. <el-menu-item index="/template-library/enterprise" v-if="templateLibrary.templateLibrary3">企业模板管理</el-menu-item>
  148. </el-submenu>
  149. <el-menu-item index="/state-bank/index" v-if="menuList.state">
  150. <template slot="title">
  151. <i class="iconfont iconyijianfankui"></i>
  152. <span class="sClass">申诉管理</span>
  153. </template>
  154. </el-menu-item>
  155. <el-submenu index="/question-bank" v-if="menuList.question">
  156. <template slot="title">
  157. <i class="iconfont icontikuguanli"></i>
  158. <span class="sClass">案例管理</span>
  159. </template>
  160. <el-menu-item index="/question-bank/index" v-if="question.question1">案例管理</el-menu-item>
  161. <el-menu-item index="/question-bank/approval" v-if="question.question2">案例审批</el-menu-item>
  162. </el-submenu>
  163. <el-menu-item index="/comment/index" v-if="menuList.comment">
  164. <template slot="title">
  165. <i class="iconfont iconpinglun"></i>
  166. <span class="sClass">评论管理</span>
  167. </template>
  168. </el-menu-item>
  169. <el-menu-item index="/dialogue-bank/index" v-if="menuList.dialogue">
  170. <template slot="title">
  171. <i class="iconfont iconxiaoxi"></i>
  172. <span class="sClass">会话管理</span>
  173. </template>
  174. </el-menu-item>
  175. <el-submenu index="/card-bank" v-if="menuList.card">
  176. <template slot="title">
  177. <i class="iconfont iconyouhuiquan"></i>
  178. <span class="sClass">卡券管理</span>
  179. </template>
  180. <el-menu-item index="/card-bank/index" v-if="card.card1">卡券管理</el-menu-item>
  181. <el-menu-item index="/card-bank/card-approve" v-if="card.card2">卡券审批</el-menu-item>
  182. </el-submenu>
  183. <el-submenu index="/expert-database" v-if="menuList.expert">
  184. <template slot="title">
  185. <i class="iconfont iconwo"></i>
  186. <span class="sClass">专家库</span>
  187. </template>
  188. <el-menu-item index="/expert-database/index" v-if="expert.expert1">专家管理</el-menu-item>
  189. <el-menu-item index="/expert-database/approval" v-if="expert.expert2">专家审批</el-menu-item>
  190. <el-menu-item index="/expert-database/agreement" v-if="expert.expert3">协议管理</el-menu-item>
  191. <el-menu-item index="/expert-database/punishment" v-if="expert.expert4">处罚记录</el-menu-item>
  192. </el-submenu>
  193. <el-submenu index="/operation" v-if="menuList.operation">
  194. <template slot="title">
  195. <i class="iconfont iconzongheyunyingfenxi"></i>
  196. <span class="sClass">运营设置</span>
  197. </template>
  198. <el-menu-item index="/operation/index" v-if="operation.operation1">用户管理</el-menu-item>
  199. <el-menu-item index="/operation/rule" v-if="operation.operation2">用户规则设置</el-menu-item>
  200. <el-menu-item index="/operation/member-fee" v-if="operation.operation3">会费管理</el-menu-item>
  201. <el-menu-item index="/operation/fee-approve" v-if="operation.operation4">会费审核</el-menu-item>
  202. <el-menu-item index="/operation/reward" v-if="operation.operation5">赏金管理</el-menu-item>
  203. <el-menu-item index="/operation/rebate-rule" v-if="operation.operation6">返利规则管理</el-menu-item>
  204. <el-menu-item index="/operation/rebate-rule-approve" v-if="operation.operation7">返利规则审核</el-menu-item>
  205. <el-menu-item index="/operation/commission" v-if="operation.operation8">抽成设置</el-menu-item>
  206. <el-menu-item index="/operation/commission-approval" v-if="operation.operation9">抽成审核</el-menu-item>
  207. <el-menu-item index="/operation/expert-upgrade-rule" v-if="operation.operation10">专家升级规则</el-menu-item>
  208. <el-menu-item index="/operation/expert-upgrade-rule-approval" v-if="operation.operation11">专家升级规则审核</el-menu-item>
  209. <el-menu-item index="/operation/tax-rate" v-if="operation.operation12">税率设置</el-menu-item>
  210. <el-menu-item index="/operation/tax-rate-approval" v-if="operation.operation13">税率审核</el-menu-item>
  211. <el-menu-item index="/operation/other-settings" v-if="operation.operation14">其他设置</el-menu-item>
  212. <el-menu-item index="/operation/other-settings-approval" v-if="operation.operation15">其他设置审核</el-menu-item>
  213. </el-submenu>
  214. <el-menu-item index="/banner/index" v-if="menuList.banner">
  215. <template slot="title">
  216. <i class="iconfont iconhtmal5icon12"></i>
  217. <span class="sClass">banner管理</span>
  218. </template>
  219. </el-menu-item>
  220. <el-submenu index="/payment" v-if="menuList.payment">
  221. <template slot="title">
  222. <i class="iconfont icondaizhifu"></i>
  223. <span class="sClass">支付体系</span>
  224. </template>
  225. <el-menu-item index="/payment/index" v-if="payment.payment1">用户账户管理</el-menu-item>
  226. <el-menu-item index="/payment/withdraw-approve" v-if="payment.payment2">用户提现审批</el-menu-item>
  227. <el-menu-item index="/payment/platform-account" v-if="payment.payment3">平台账户管理</el-menu-item>
  228. <el-menu-item index="/payment/audit-invoice" v-if="payment.payment4">发票审核</el-menu-item>
  229. </el-submenu>
  230. <el-menu-item index="/Sensitive-word-library/index" v-if="menuList.sensitiveWord">
  231. <template slot="title">
  232. <i class="iconfont iconguolvqi"></i>
  233. <span class="sClass">敏感词汇管理</span>
  234. </template>
  235. </el-menu-item>
  236. <el-menu-item index="/shop/index" v-if="menuList.shop">
  237. <template slot="title">
  238. <i class="iconfont iconshangpin"></i>
  239. <span class="sClass">商品管理</span>
  240. </template>
  241. </el-menu-item>
  242. <!-- <el-submenu index="/authority" v-if="menuList.authority">
  243. <template slot="title">
  244. <i class="el-icon-s-check"></i>
  245. <span style="font-size: 16px;">权限管理</span>
  246. </template>
  247. <el-menu-item index="/authority/app-menu">app菜单管理</el-menu-item>
  248. <el-menu-item index="/authority/web-menu">web菜单管理</el-menu-item>
  249. </el-submenu> -->
  250. <el-submenu index="/personnel" v-if="menuList.personnel">
  251. <template slot="title">
  252. <i class="iconfont iconwo"></i>
  253. <span style="font-size: 16px;">轨迹定位</span>
  254. </template>
  255. <el-menu-item index="/personnel/index" v-if="personnel.personnel1">人员轨迹</el-menu-item>
  256. <el-menu-item index="/personnel/team" v-if="personnel.personnel2">团队最新定位</el-menu-item>
  257. </el-submenu>
  258. <!-- <el-menu-item index="/personnel/index" v-if="menuList.personnel">
  259. <template slot="title">
  260. <i class="iconfont iconwo"></i>
  261. <span class="sClass">人员轨迹</span>
  262. </template>
  263. </el-menu-item>
  264. <el-menu-item index="/personnel/team" v-if="menuList.personnel">
  265. <template slot="title">
  266. <i class="iconfont iconwo"></i>
  267. <span class="sClass">团队最新定位</span>
  268. </template>
  269. </el-menu-item> -->
  270. </el-menu>
  271. </el-scrollbar>
  272. </div>
  273. </template>
  274. <script>
  275. import bus from "./bus";
  276. export default {
  277. data() {
  278. return {
  279. collapse: false,
  280. menuList:{
  281. user1:false,
  282. Project55:false,
  283. Maintenance63:false,
  284. EmergencyRepair104:false,
  285. Lift77:false,
  286. Inspection118:false,
  287. Contract87:false,
  288. office123:false,
  289. Enterprise6:false,
  290. property34:false,
  291. CommonProblem41:false,
  292. NewList49:false,
  293. CapitalRepair134:false,
  294. home135:false,
  295. home136:false,
  296. //udream menus
  297. monitoringCenter: false,
  298. dataBank: false,
  299. school: false,
  300. recruitment: false,
  301. templateLibrary: false,
  302. state: false,
  303. question: false,
  304. comment: false,
  305. dialogue: false,
  306. card: false,
  307. expert: false,
  308. operation: false,
  309. banner: false,
  310. payment: false,
  311. sensitiveWord: false,
  312. shop: false,
  313. authority: false,
  314. personnel: false
  315. },
  316. Enterprise:{
  317. Enterprise7:false,
  318. Enterprise11:false,
  319. Enterprise14:false,
  320. Enterprise22:false,
  321. Enterprise26:false,
  322. Enterprise28:false,
  323. Enterprise19:false,
  324. Enterprise30:false,
  325. },
  326. Maintenance:{
  327. Maintenance64:false,
  328. Maintenance71:false,
  329. },
  330. EmergencyRepair:{
  331. EmergencyRepair105:false,
  332. EmergencyRepair106:false,
  333. EmergencyRepair109:false,
  334. },
  335. Contract:{
  336. Contract88:false,
  337. Contract94:false,
  338. },
  339. office:{
  340. office124:false,
  341. office129:false,
  342. office131:false,
  343. },
  344. dataBank:{
  345. dataBank1:false,
  346. dataBank2:false,
  347. dataBank3:false,
  348. dataBank4:false,
  349. dataBank5:false,
  350. dataBank6:false,
  351. dataBank7:false,
  352. },
  353. school:{
  354. school1:false,
  355. school2:false,
  356. },
  357. recruitment:{
  358. recruitment1:false,
  359. recruitment2:false,
  360. recruitment3:false,
  361. },
  362. templateLibrary:{
  363. templateLibrary1:false,
  364. templateLibrary2:false,
  365. templateLibrary3:false,
  366. },
  367. question:{
  368. question1:false,
  369. question2:false,
  370. },
  371. card:{
  372. card1:false,
  373. card2:false,
  374. },
  375. expert:{
  376. expert1:false,
  377. expert2:false,
  378. expert3:false,
  379. expert4:false,
  380. },
  381. operation:{
  382. operation1:false,
  383. operation2:false,
  384. operation3:false,
  385. operation4:false,
  386. operation5:false,
  387. operation6:false,
  388. operation7:false,
  389. operation8:false,
  390. operation9:false,
  391. operation10:false,
  392. operation11:false,
  393. operation12:false,
  394. operation13:false,
  395. operation14:false,
  396. operation15:false,
  397. },
  398. payment:{
  399. payment1:false,
  400. payment2:false,
  401. payment3:false,
  402. payment4:false,
  403. },
  404. personnel:{
  405. personnel1:false,
  406. personnel2:false,
  407. }
  408. };
  409. },
  410. created() {
  411. this.showMenuList()
  412. this.aBtn();
  413. },
  414. computed: {
  415. onRoutes() {
  416. return this.$route.path.replace("/", "");
  417. },
  418. },
  419. methods : {
  420. aBtn() {
  421. var that = this;
  422. bus.$on("funCol", message => {
  423. that.collapse = message;
  424. });
  425. console.log(that.collapse)
  426. },
  427. showMenuList(){
  428. var menu = JSON.parse(sessionStorage.getItem('menus'))!=null?JSON.parse(JSON.parse(sessionStorage.getItem('menus'))):''
  429. menu?menu.map((item)=>{
  430. if(item.id==55){
  431. this.menuList.Project55=true
  432. }else if(item.id==63){
  433. this.menuList.Maintenance63=true
  434. item.children?item.children.map((a)=>{
  435. if(a.id==64){
  436. this.Maintenance.Maintenance64=true
  437. }else if(a.id==71){
  438. this.Maintenance.Maintenance71=true
  439. }
  440. }):''
  441. }else if(item.id==104){
  442. this.menuList.EmergencyRepair104=true
  443. item.children?item.children.map((a)=>{
  444. if(a.id==105){
  445. this.EmergencyRepair.EmergencyRepair105=true
  446. }else if(a.id==106){
  447. this.EmergencyRepair.EmergencyRepair106=true
  448. }else if(a.id==109){
  449. this.EmergencyRepair.EmergencyRepair109=true
  450. }
  451. }):''
  452. }else if(item.id==77){
  453. this.menuList.Lift77=true
  454. }else if(item.id==118){
  455. this.menuList.Inspection118=true
  456. }else if(item.id==87){
  457. this.menuList.Contract87=true
  458. item.children?item.children.map((a)=>{
  459. if(a.id==88){
  460. this.Contract.Contract88=true
  461. }else if(a.id==94){
  462. this.Contract.Contract94=true
  463. }
  464. }):''
  465. }else if(item.id==123){
  466. this.menuList.office123=true
  467. item.children?item.children.map((a)=>{
  468. if(a.id==124){
  469. this.office.office124=true
  470. }else if(a.id==129){
  471. this.office.office129=true
  472. }else if(a.id==131){
  473. this.office.office131=true
  474. }
  475. }):''
  476. }else if(item.id==6){
  477. this.menuList.Enterprise6=true
  478. item.children?item.children.map((a)=>{
  479. if(a.id==7){
  480. this.Enterprise.Enterprise7=true
  481. }else if(a.id==11){
  482. this.Enterprise.Enterprise11=true
  483. }else if(a.id==14){
  484. this.Enterprise.Enterprise14=true
  485. }else if(a.id==22){
  486. this.Enterprise.Enterprise22=true
  487. }else if(a.id==26){
  488. this.Enterprise.Enterprise26=true
  489. }else if(a.id==19){
  490. this.Enterprise.Enterprise19=true
  491. }else if(a.id==28){
  492. this.Enterprise.Enterprise28=true
  493. }else if(a.id==30){
  494. this.Enterprise.Enterprise30=true
  495. }
  496. }):''
  497. }else if(item.id==34){
  498. this.menuList.property34=true
  499. }else if(item.id==41){
  500. this.menuList.CommonProblem41=true
  501. }else if(item.id==49){
  502. this.menuList.NewList49=true
  503. }else if(item.id==1){
  504. this.menuList.user1=true
  505. }else if(item.id==134){
  506. this.menuList.CapitalRepair134=true
  507. }else if(item.id==135){
  508. this.menuList.home135=true
  509. }else if(item.id==136){
  510. this.menuList.home136=true
  511. } else if (item.id == 138) {
  512. this.menuList.dataBank = true;
  513. item.children?item.children.map((a)=>{
  514. if(a.id==293){
  515. this.dataBank.dataBank1=true
  516. }else if(a.id==294){
  517. this.dataBank.dataBank2=true
  518. }else if(a.id==295){
  519. this.dataBank.dataBank3=true
  520. }else if(a.id==296){
  521. this.dataBank.dataBank4=true
  522. }else if(a.id==297){
  523. this.dataBank.dataBank5=true
  524. }else if(a.id==298){
  525. this.dataBank.dataBank6=true
  526. }else if(a.id==299){
  527. this.dataBank.dataBank7=true
  528. }
  529. }):''
  530. } else if (item.id == 139) {
  531. this.menuList.monitoringCenter = true;
  532. } else if (item.id == 277) {
  533. this.menuList.recruitment = true;
  534. item.children?item.children.map((a)=>{
  535. if(a.id==302){
  536. this.recruitment.recruitment1=true
  537. }else if(a.id==303){
  538. this.recruitment.recruitment2=true
  539. }else if(a.id==304){
  540. this.recruitment.recruitment3=true
  541. }
  542. }):''
  543. } else if (item.id == 278) {
  544. this.menuList.templateLibrary = true;
  545. item.children?item.children.map((a)=>{
  546. if(a.id==305){
  547. this.templateLibrary.templateLibrary1=true
  548. }else if(a.id==306){
  549. this.templateLibrary.templateLibrary2=true
  550. }else if(a.id==307){
  551. this.templateLibrary.templateLibrary3=true
  552. }
  553. }):''
  554. } else if (item.id == 279) {
  555. this.menuList.state = true;
  556. } else if (item.id == 280) {
  557. this.menuList.question = true;
  558. item.children?item.children.map((a)=>{
  559. if(a.id==308){
  560. this.question.question1=true
  561. }else if(a.id==309){
  562. this.question.question2=true
  563. }
  564. }):''
  565. } else if (item.id == 281) {
  566. this.menuList.comment = true;
  567. } else if (item.id == 282) {
  568. this.menuList.dialogue = true;
  569. } else if (item.id == 283) {
  570. this.menuList.card = true;
  571. item.children?item.children.map((a)=>{
  572. if(a.id==310){
  573. this.card.card1=true
  574. }else if(a.id==311){
  575. this.card.card2=true
  576. }
  577. }):''
  578. } else if (item.id == 284) {
  579. this.menuList.expert = true;
  580. item.children?item.children.map((a)=>{
  581. if(a.id==312){
  582. this.expert.expert1=true
  583. }else if(a.id==313){
  584. this.expert.expert2=true
  585. }else if(a.id==314){
  586. this.expert.expert3=true
  587. }else if(a.id==316){
  588. this.expert.expert4=true
  589. }
  590. }):''
  591. } else if (item.id == 285) {
  592. this.menuList.operation = true;
  593. item.children?item.children.map((a)=>{
  594. if(a.id==317){
  595. this.operation.operation1=true
  596. }else if(a.id==318){
  597. this.operation.operation2=true
  598. }else if(a.id==319){
  599. this.operation.operation3=true
  600. }else if(a.id==320){
  601. this.operation.operation4=true
  602. }else if(a.id==321){
  603. this.operation.operation5=true
  604. }else if(a.id==322){
  605. this.operation.operation6=true
  606. }else if(a.id==323){
  607. this.operation.operation7=true
  608. }else if(a.id==324){
  609. this.operation.operation8=true
  610. }else if(a.id==325){
  611. this.operation.operation9=true
  612. }else if(a.id==326){
  613. this.operation.operation10=true
  614. }else if(a.id==327){
  615. this.operation.operation11=true
  616. }else if(a.id==328){
  617. this.operation.operation12=true
  618. }else if(a.id==329){
  619. this.operation.operation13=true
  620. }else if(a.id==330){
  621. this.operation.operation14=true
  622. }else if(a.id==332){
  623. this.operation.operation15=true
  624. }
  625. }):''
  626. } else if (item.id == 286) {
  627. this.menuList.banner = true;
  628. } else if (item.id == 287) {
  629. this.menuList.payment = true;
  630. item.children?item.children.map((a)=>{
  631. if(a.id==333){
  632. this.payment.payment1=true
  633. }else if(a.id==334){
  634. this.payment.payment2=true
  635. }else if(a.id==335){
  636. this.payment.payment3=true
  637. }else if(a.id==337){
  638. this.payment.payment4=true
  639. }
  640. }):''
  641. } else if (item.id == 288) {
  642. this.menuList.sensitiveWord = true;
  643. } else if (item.id == 289) {
  644. this.menuList.shop = true;
  645. } else if (item.id == 290) {
  646. this.menuList.authority = true;
  647. } else if (item.id == 291) {
  648. this.menuList.personnel = true;
  649. item.children?item.children.map((a)=>{
  650. if(a.id==338){
  651. this.personnel.personnel1=true
  652. }else if(a.id==339){
  653. this.personnel.personnel2=true
  654. }
  655. }):''
  656. } else if (item.id == 292) {
  657. this.menuList.school = true;
  658. item.children?item.children.map((a)=>{
  659. if(a.id==300){
  660. this.school.school1=true
  661. }else if(a.id==301){
  662. this.school.school2=true
  663. }
  664. }):''
  665. } else {
  666. console.log('---------- Todo -------------');
  667. }
  668. }):''
  669. console.log(this.menuList)
  670. }
  671. }
  672. };
  673. </script>
  674. <style lang="stylus">
  675. .el-menu-vertical-demo:not(.el-menu--collapse) {
  676. width: 200px;
  677. min-height: 400px;
  678. }
  679. $fontColor = #909399;
  680. .leftSideTitle {
  681. display: inline-block;
  682. padding-left: 2%;
  683. height: calc(100vh - 80px);
  684. .el-scrollbar__wrap {
  685. overflow-x: hidden;
  686. }
  687. .el-menu-item{
  688. // i{
  689. // margin:0px;
  690. // width:18px;
  691. // height:20px;
  692. // }
  693. >.iconfangzi01-copy{
  694. padding-left:3px;
  695. margin-right:3px;
  696. }
  697. >.icongongzuoon{
  698. padding-left:3px;
  699. margin-right:3px;
  700. }
  701. >.iconnavicon-jgda{
  702. padding-left:3px;
  703. margin-right:4px;
  704. }
  705. }
  706. >.el-menu {
  707. height: 100%;
  708. }
  709. .el-icon-user-solid {
  710. color: $fontColor;
  711. }
  712. .el-submenu__title {
  713. .iconoabangong-copy {
  714. font-size: 16px;
  715. padding-left:2px;
  716. margin-right:2px;
  717. }
  718. }
  719. .el-menu-item {
  720. font-size 16px
  721. .iconnavicon-jgda {
  722. font-size: 16px;
  723. }
  724. }
  725. .iconfont {
  726. color: $fontColor;
  727. font-size: 18px;
  728. }
  729. }
  730. .el-submenu__title{
  731. font-size: 16px;
  732. }
  733. .el-menu-item [class^=el-icon-] ,.el-submenu [class^=el-icon-]{
  734. font-size: 20px;
  735. }
  736. .sClass {
  737. font-size:16px;
  738. margin-left: 10px;
  739. }
  740. </style>
  741. <style scope>
  742. .sidebar-wrapper {
  743. /* position: fixed; */
  744. top: 72px;
  745. left: 0;
  746. bottom: 0;
  747. width: 220px;
  748. background-color: #fff;
  749. }
  750. .el-scrollbar {
  751. height: 100%;
  752. }
  753. .el-scrollbar__wrap {
  754. overflow-x: hidden !important;
  755. background-color: #fff;
  756. }
  757. </style>