<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="js/jquery-1.9.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<link href="css/style.css" rel="stylesheet" />
<title>人员管理</title>
</head>
<body style="font-family: 'PingFang SC'; background-color: #e9ecf5;">
<div id="api">
<div class="leftPart" v-bind:class="{'expendedmenu':showmenutype==0}">
<div class="ululdiv">
<ul>
<li v-on:click="showhidechild($event)">
<!-- <div class="menuicon">
<img src="img/ic2.png">
</div> -->
<div class="menuname">档案管理</div>
<dt>
<dl> <span>111111111</span></dl>
</dt>
</li>
<li v-on:click="showhidechild($event)">
<!-- <div class="menuicon">
<img src="img/ic3.png">
</div> -->
<div class="menuname">日志管理</div>
<dt>
<dl> <span>22222222</span></dl>
</dt>
</li>
<li v-on:click="showhidechild($event)">
<!-- <div class="menuicon">
<img src="img/ic4.png">
</div> -->
<div class="menuname">360度研判分析</div>
<dt>
<dl> <span>33333</span></dl>
</dt>
</li>
</ul>
</div>
</div>
</div>
<script>
var api = new Vue({
el: '#api',
methods: {
showhidechild: function (event) {
if ($(event.currentTarget).hasClass("show")) {
$(event.currentTarget).removeClass("show");
} else {
$(".ululdiv ul li").removeClass("show");
$(event.currentTarget).addClass("show");
}
},
},
});
</script>
</body>
</html>