提交 d49ca233 authored 作者: CRS's avatar CRS

new

上级 aa500602
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<div class="menu"> <div class="menu">
<p class="bg" @click="jump('projectManagement','项目管理')" v-if="this.$store.getters.getUserData.authorityCode.indexOf('000900') !== -1">
<img src="./img/WD.png">
<span>项目管理</span>
</p>
<p class="bg" @click="jump('evaluationReport','评估报告管理')" v-if="this.$store.getters.getUserData.authorityCode.indexOf('000800') !== -1"> <p class="bg" @click="jump('evaluationReport','评估报告管理')" v-if="this.$store.getters.getUserData.authorityCode.indexOf('000800') !== -1">
<img src="./img/PG.png"> <img src="./img/PG.png">
<span>评估报告管理</span> <span>评估报告管理</span>
...@@ -23,49 +27,49 @@ ...@@ -23,49 +27,49 @@
</template> </template>
<script> <script>
import $ from 'jquery'; import $ from 'jquery';
export default { export default {
data () { data () {
return { return {
} }
}, },
created() { created() {
}, },
mounted(){ mounted(){
this.init(1); // this.init(1);
}, },
methods: { methods: {
// 页面布局 // 页面布局
init(val) { init(val) {
let one = '.menu:nth-child(' + val + ')>p'; let one = '.menu:nth-child(' + val + ')>p';
if ($(one).length < 6 && $(one).length !== 0) { if ($(one).length < 6 && $(one).length !== 0) {
let i = 6 - $(one).length; let i = 6 - $(one).length;
for (let a = 0; a < i; a++) { for (let a = 0; a < i; a++) {
let html = $('<p class="blank"></p>'); let html = $('<p class="blank"></p>');
let other = '.menu:nth-child(' + val + ')'; let other = '.menu:nth-child(' + val + ')';
$(other).append(html) $(other).append(html)
$('.blank').css('width', '180px'); $('.blank').css('width', '180px');
$('.blank').css('height', '180px'); $('.blank').css('height', '180px');
}
}
},
// 跳转
jump(path,title) {
let val = {
name: path,
title: title
} }
this.$store.commit('changeHomeClick', val); // 传给导航进行样式定位和点击事件
this.$store.commit('changeNowPath', path); // 当前path传给header作比对
this.$router.push({name: path});
} }
}, },
components: { // 跳转
}, jump(path,title) {
watch: { let val = {
name: path,
title: title
}
this.$store.commit('changeHomeClick', val); // 传给导航进行样式定位和点击事件
this.$store.commit('changeNowPath', path); // 当前path传给header作比对
this.$router.push({name: path});
} }
},
components: {
},
watch: {
} }
}
</script> </script>
<style scoped> <style scoped>
.firstHome{ .firstHome{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论