Commit c40df54d by 林家欣

修改首页质检中心列表跳转定位

parent 8f0f2410
...@@ -163,6 +163,7 @@ export default { ...@@ -163,6 +163,7 @@ export default {
handler(val) { handler(val) {
this.$nextTick(() => { this.$nextTick(() => {
Object.keys(this.$refs).forEach((key) => { Object.keys(this.$refs).forEach((key) => {
console.log(this.$refs[key], "this.$refs");
this.$refs[key].setAttribute("class", "msg-title"); this.$refs[key].setAttribute("class", "msg-title");
}); });
const top = this.$refs[val.query.id].offsetTop; const top = this.$refs[val.query.id].offsetTop;
......
...@@ -3,20 +3,24 @@ ...@@ -3,20 +3,24 @@
<div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg(tmp)"> <div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg(tmp)">
<div class="col li"> <div class="col li">
<span></span> <span></span>
<span :title="tmp.name">{{tmp.name}}</span> <span :title="tmp.name">{{ tmp.name }}</span>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: ['list'], props: ["list"],
methods: { methods: {
handelMsg(obj) { handelMsg(obj) {
window.open(obj.url, '_blank'); let routeData = this.$router.resolve({
path: obj.url,
query: obj.query,
});
window.open(routeData.href, "_blank");
}, },
}, },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.list { .list {
...@@ -33,7 +37,7 @@ export default { ...@@ -33,7 +37,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 14px; font-size: 14px;
color: #7E8EA9; color: #7e8ea9;
@include ellipsis; @include ellipsis;
span { span {
display: inline-block; display: inline-block;
......
...@@ -923,54 +923,93 @@ export default { ...@@ -923,54 +923,93 @@ export default {
{ {
name: "国家射频识别产品质量检验检测中心", name: "国家射频识别产品质量检验检测中心",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-1'
}
}, },
{ {
name: "国家条码质量检验检测中心", name: "国家条码质量检验检测中心",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-2'
}
}, },
{ {
name: "中国自动识别技术协会", name: "中国自动识别技术协会",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-3'
}
}, },
{ {
name: "中国条码技术与应用协会", name: "中国条码技术与应用协会",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-4'
}
}, },
{ {
name: "《中国自动识别技术》杂志社电子版", name: "《中国自动识别技术》杂志社电子版",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-5'
}
}, },
{ {
name: "中国ECR委员会", name: "中国ECR委员会",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-6'
}
}, },
{ {
name: "全国物品编码标准化技术委员会", name: "全国物品编码标准化技术委员会",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-7'
}
}, },
{ {
name: "全国物流信息管理标准化技术委员会", name: "全国物流信息管理标准化技术委员会",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-8'
}
}, },
{ {
name: "全国自动识别与数据采集分委员会", name: "全国自动识别与数据采集分委员会",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-9'
}
}, },
{ {
name: "物联网标识工作组", name: "物联网标识工作组",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-10'
}
}, },
{ {
name: "全球产品电子代码中国管理中心", name: "全球产品电子代码中国管理中心",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-11'
}
}, },
{ {
name: "中国UNSPSC动态维护管理中心", name: "中国UNSPSC动态维护管理中心",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-12'
}
}, },
{ {
name: "北京东方捷码科技开发中心", name: "北京东方捷码科技开发中心",
url: '/Org/Sites', url: '/Org/Sites',
query: {
id: '1-13'
}
}, },
], ],
}, },
......
<template> <template>
<div class="zxcxgj-title"> <div class="zxcxgj-title"><span></span>{{ father.name }}</div>
<span></span>{{ father.name }}
</div>
</template> </template>
<script> <script>
export default { export default {
...@@ -11,7 +9,7 @@ export default { ...@@ -11,7 +9,7 @@ export default {
<style lang="scss"> <style lang="scss">
.zxcxgj-title { .zxcxgj-title {
font-size: 16px; font-size: 16px;
color: #04408d; color: #008dbd;
border-bottom: 1px solid #c5d8ee; border-bottom: 1px solid #c5d8ee;
padding: 14px 0; padding: 14px 0;
display: flex; display: flex;
...@@ -25,5 +23,8 @@ export default { ...@@ -25,5 +23,8 @@ export default {
border-radius: 50%; border-radius: 50%;
margin-right: 10px; margin-right: 10px;
} }
&.actived {
color: #04408d;
}
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment