Commit 15e97173 by Lyan

禅道bug

parent cb18c5c2
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<script> <script>
import Title from "../comps/title.vue"; import Title from "../comps/title.vue";
import pages from "../comps/pages2.vue"; import pages from "../comps/pages2.vue";
import { mapState, mapMutations } from "vuex";
export default { export default {
components: { components: {
Title, Title,
...@@ -36,6 +37,9 @@ export default { ...@@ -36,6 +37,9 @@ export default {
this.ycListFn(this.policyList.currPage) this.ycListFn(this.policyList.currPage)
}, },
methods:{ methods:{
...mapMutations({
setMatche: "setMatche",
}),
// 政策法规列表 // 政策法规列表
async ycListFn(page,limit) { async ycListFn(page,limit) {
const params = { const params = {
...@@ -52,6 +56,13 @@ export default { ...@@ -52,6 +56,13 @@ export default {
}, },
getInfo(id,directpath){ getInfo(id,directpath){
const matche = [
{
name: "标准文献",
path: "/Knowledge/Standard",
}
];
this.setMatche(matche);
if(directpath!==''&& directpath.length>0){ if(directpath!==''&& directpath.length>0){
window.open(directpath,'_blank'); window.open(directpath,'_blank');
}else{ }else{
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<script> <script>
import Title from "../comps/title.vue"; import Title from "../comps/title.vue";
import pages from "../comps/pages2.vue"; import pages from "../comps/pages2.vue";
import { mapState, mapMutations } from "vuex";
export default { export default {
components: { components: {
Title, Title,
...@@ -36,6 +37,9 @@ export default { ...@@ -36,6 +37,9 @@ export default {
this.initListFn(this.tableResult.currPage); this.initListFn(this.tableResult.currPage);
}, },
methods:{ methods:{
...mapMutations({
setMatche: "setMatche",
}),
// 小贴士 // 小贴士
async initListFn(page,limit) { async initListFn(page,limit) {
const params = { const params = {
...@@ -51,6 +55,13 @@ export default { ...@@ -51,6 +55,13 @@ export default {
} }
}, },
getInfo(id,directpath){ getInfo(id,directpath){
const matche = [
{
name: "小贴士",
path: "/Knowledge/xts",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){ if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank'); window.open(directpath,'_blank');
}else{ }else{
...@@ -123,8 +134,6 @@ export default { ...@@ -123,8 +134,6 @@ export default {
cursor: pointer; cursor: pointer;
border-bottom: 1px dashed #C5D8EE; border-bottom: 1px dashed #C5D8EE;
font-size: 14px; font-size: 14px;
width: 100%; width: 100%;
:hover,:active{ :hover,:active{
color: #F26335; color: #F26335;
......
...@@ -210,15 +210,17 @@ export default { ...@@ -210,15 +210,17 @@ export default {
}, },
getInfo(id,directpath){ getInfo(id,directpath){
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
const matche = [ const matche = [
{ {
name: "食品安全追溯", name: "食品安全追溯",
path: "/News/ECommerce", path: "/News/ECommerce",
} }
]; ];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
let link = this.$router.resolve({ let link = this.$router.resolve({
path: `/News/msg?id=${id}`, path: `/News/msg?id=${id}`,
}); });
......
...@@ -31,11 +31,13 @@ export default { ...@@ -31,11 +31,13 @@ export default {
border-bottom: 1px dashed #c5d8ee; border-bottom: 1px dashed #c5d8ee;
padding: 20px 0; padding: 20px 0;
margin: 0; margin: 0;
cursor: pointer;
.list-left { .list-left {
flex: 1; flex: 1;
display: flex; display: flex;
align-items: center; align-items: center;
@include ellipsis; @include ellipsis;
cursor: pointer;
span { span {
display: inline-block; display: inline-block;
&:nth-child(1) { &:nth-child(1) {
...@@ -48,7 +50,7 @@ export default { ...@@ -48,7 +50,7 @@ export default {
&:nth-child(2) { &:nth-child(2) {
flex: 1; flex: 1;
@include ellipsis; @include ellipsis;
cursor: pointer;
} }
} }
} }
......
...@@ -27,12 +27,14 @@ export default { ...@@ -27,12 +27,14 @@ export default {
justify-content: space-between; justify-content: space-between;
padding: 10px 0; padding: 10px 0;
margin: 0; margin: 0;
cursor: pointer;
>div { >div {
flex: 1; flex: 1;
display: flex; display: flex;
align-items: center; align-items: center;
@include ellipsis; @include ellipsis;
font-size: 13px; font-size: 13px;
span { span {
display: inline-block; display: inline-block;
&:nth-child(1) { &:nth-child(1) {
......
...@@ -353,7 +353,7 @@ export default { ...@@ -353,7 +353,7 @@ export default {
justify-content: space-between; justify-content: space-between;
padding: 10px 0; padding: 10px 0;
margin: 0; margin: 0;
cursor: pointer;
> div { > div {
flex: 1; flex: 1;
display: flex; display: flex;
......
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