Commit a031facb by Lyan

修改一些bug

parent 9d0ab2fe
......@@ -59,7 +59,7 @@
<div>
<div class="list-style">
<ul>
<li v-for="(item, i) in dsList" :key="i"><a href="#" @click="goInfo(item.id,item.directpath)">{{item.title}}</a></li>
<li v-for="(item, i) in dsList" :key="i"><a href="#" @click="goInfo(item.id,item.directpath)" >{{item.title}}</a></li>
</ul>
</div>
</div>
......@@ -76,7 +76,7 @@
<a href=""> <img src="../../assets/image/djwh/2020122802.jpg" alt=""></a>
<a href=""> <img src="../../assets/image/djwh/2020122803.jpg" alt=""></a>
<a href=""> <img src="../../assets/image/djwh/2020122804.jpg" alt=""></a> -->
<a v-for="(item,i) in pictureListArr" :key="i" @click="goInfo(item.pictureid,item.directpath)"> <img :src="item.picFile" alt=""></a>
<a v-for="(item,i) in pictureListArr" :key="i" @click="goInfo(item.pictureid,item.directpath)"> <img :src="item.picFile" ></a>
</div>
</div>
</div>
......@@ -94,11 +94,11 @@
</div>
<div class="middle-list">
<ul>
<li><a href=" " target="_blank">《中国共产党第十九届中央委员会第五次全体会议公报》</a></li>
<li><a href="http://www.xinhuanet.com/politics/2020-10/29/c_1126674147.htm" target="_blank">《中国共产党第十九届中央委员会第五次全体会议公报》</a></li>
<li><a :href="path+'/djwh/download/19thfile/党的十九大报告全文.docx'" target="_blank">党的十九大报告全文</a></li>
<li><a :href="path+'/djwh/download/19thfile/质检总局党组关于认真学习宣传贯彻党的十九大精神的通知.doc'" target="_blank">质检总局党组关于认真学习宣传贯彻党的十九大精神的通知</a></li>
<li><a :href="path+'/djwh/download/19thfile/质检总局党组关于印发质检系统学习宣传贯彻党的十九大精神工作方案的通知.doc'" target="_blank">质检总局党组关于印发质检系统学习宣传贯彻党的十九大精神工作方案的通知</a></li>
<li><a :href="path+'/djwh/download/19thfile/中共中央关 于认真学习宣传贯彻党的十九大精神的决定.docx'" target="_blank">中共中央关于认真学习宣传贯彻党的十九大精神的决定</a></li>
<li><a :href="path+'/djwh/download/19thfile/中共中央关于认真学习宣传贯彻党的十九大精神的决定.docx'" target="_blank">中共中央关于认真学习宣传贯彻党的十九大精神的决定</a></li>
<li><a :href="path+'/djwh/download/19thfile/中共中央宣传部关于印发《党的十九大精神宣讲提纲》的通知.pdf'" target="_blank">中共中央宣传部关于印发《党的十九大精神宣讲提纲》的通知</a></li>
<li><a :href="path+'/djwh/download/19thfile/中国物品编码中心关于印发学习宣传贯彻党的十九大精神工作方案的通知.PDF'" target="_blank">中国物品编码中心关于印发学习宣传贯彻党的十九大精神工作方案的通知</a></li>
......@@ -160,7 +160,7 @@ export default {
},
data() {
return {
path:process.env.VUE_APP_HOST_URL,
path:'',
animate:false,
marginTop:0,
hotList:[],
......@@ -194,6 +194,7 @@ export default {
},
mounted () {
this.timer1= setInterval(this.scroll,2000)
this.path=`${this.urls.gs1cnTwo}`
},
methods: {
...mapMutations({
......
......@@ -3,7 +3,7 @@
<li v-for="(tmp, i) in list" :key="i" >
<div class="sousuoList-top">
<span>【资讯动态】</span>
<span v-html="tmp.title" @click="handelMsg(tmp.urlid)"></span>
<span v-html="tmp.title" @click="handelMsg(tmp.urlid,tmp.type)"></span>
</div>
<div class="sousuoList-middle" v-html="changeText(tmp.content)"></div>
<div class="sousuoList-bottom">
......@@ -30,11 +30,23 @@ export default {
}
},
methods: {
handelMsg(id) {
this.InfoFn(id)
handelMsg(id,type) {
// this.InfoFn(id,type)
if(type==2){
this.$router.push({
path: `/Knowledge/Statuteinfo?id=${id}`,
});
}else if(type==6){
this.$router.push({
path: `/Knowledge/article?id=${id}`,
});
}else{
this.$router.push({
path: `/News/msg?id=${id}`,
});
}
},
async InfoFn(id) {
async InfoFn(id,type) {
const params = {
id:id,
};
......@@ -46,9 +58,8 @@ export default {
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
this.$router.push({
path: `/News/msg?id=${id}`,
});
}
}
......
......@@ -14,7 +14,7 @@
</div>
</template>
<script>
import { mapMutations } from "vuex";
import pages from "../../comps/pages2.vue";
export default {
components: {
......@@ -45,6 +45,9 @@ export default {
this.initListFn(this.tableResult.currPage);
},
methods:{
...mapMutations({
setMatche: "setMatche",
}),
// 列表
async initListFn(page) {
const params = {
......@@ -60,6 +63,13 @@ export default {
}
},
getInfo(id,directpath){
const matche = [
{
name: "动物编码",
path: "/Knowledge/GS1System/dwbm",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
......
......@@ -14,7 +14,7 @@
</div>
</template>
<script>
import { mapMutations } from "vuex";
import pages from "../../comps/pages2.vue";
export default {
components: {
......@@ -45,6 +45,9 @@ export default {
this.initListFn(this.tableResult.currPage);
},
methods:{
...mapMutations({
setMatche: "setMatche",
}),
// 列表
async initListFn(page) {
const params = {
......@@ -60,6 +63,13 @@ export default {
}
},
getInfo(id,directpath){
const matche = [
{
name: "ebXML",
path: "/Knowledge/GS1System/ebxml",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
......
......@@ -14,7 +14,7 @@
</div>
</template>
<script>
import { mapMutations } from "vuex";
import pages from "../../comps/pages2.vue";
export default {
components: {
......@@ -43,6 +43,9 @@ export default {
this.initListFn(this.tableResult.currPage);
},
methods:{
...mapMutations({
setMatche: "setMatche",
}),
// 列表
async initListFn(page) {
const params = {
......@@ -58,6 +61,13 @@ export default {
}
},
getInfo(id,directpath){
const matche = [
{
name: "二维条码",
path: "/Knowledge/GS1System/ewbm",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
......
......@@ -14,7 +14,7 @@
</div>
</template>
<script>
import { mapMutations } from "vuex";
import pages from "../../comps/pages2.vue";
export default {
components: {
......@@ -45,6 +45,9 @@ export default {
this.initListFn(this.tableResult.currPage);
},
methods:{
...mapMutations({
setMatche: "setMatche",
}),
// 行业应用
async initListFn(page) {
const params = {
......@@ -60,6 +63,13 @@ export default {
}
},
getInfo(id,directpath){
const matche = [
{
name: "产品电子代码(EPC)",
path: "/Knowledge/GS1System/goodsEpc",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
......
......@@ -14,7 +14,7 @@
</div>
</template>
<script>
import { mapMutations } from "vuex";
import pages from "../../comps/pages2.vue";
export default {
components: {
......@@ -45,6 +45,9 @@ export default {
this.initListFn(this.tableResult.currPage,);
},
methods:{
...mapMutations({
setMatche: "setMatche",
}),
// 行业应用
async initListFn(page) {
const params = {
......@@ -60,6 +63,13 @@ export default {
}
},
getInfo(id,directpath){
const matche = [
{
name: "全球数据同步(GDS)",
path: "/Knowledge/GS1System/goodsGDS",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
......
......@@ -14,7 +14,7 @@
</div>
</template>
<script>
import { mapMutations } from "vuex";
import pages from "../../comps/pages2.vue";
export default {
components: {
......@@ -45,7 +45,10 @@ export default {
this.initListFn(this.tableResult.currPage);
},
methods:{
// 行业应用
...mapMutations({
setMatche: "setMatche",
}),
// 列表
async initListFn(page) {
const params = {
page: page,
......@@ -60,6 +63,13 @@ export default {
}
},
getInfo(id,directpath){
const matche = [
{
name: "商品条码",
path: "/Knowledge/GS1System/goodsGln",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
......
......@@ -14,7 +14,7 @@
</div>
</template>
<script>
import { mapMutations } from "vuex";
import pages from "../../comps/pages2.vue";
export default {
components: {
......@@ -45,7 +45,10 @@ export default {
this.initListFn(this.tableResult.currPage);
},
methods:{
// 行业应用
...mapMutations({
setMatche: "setMatche",
}),
// 列表
async initListFn(page) {
const params = {
page: page,
......@@ -60,6 +63,13 @@ export default {
}
},
getInfo(id,directpath){
const matche = [
{
name: "全球位置编码(GLN)",
path: "/Knowledge/GS1System/goodsPosition",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
......
......@@ -14,7 +14,7 @@
</div>
</template>
<script>
import { mapMutations } from "vuex";
import pages from "../../comps/pages2.vue";
export default {
components: {
......@@ -45,6 +45,9 @@ export default {
this.initListFn(this.tableResult.currPage);
},
methods:{
...mapMutations({
setMatche: "setMatche",
}),
// 列表
async initListFn(page) {
const params = {
......@@ -60,6 +63,13 @@ export default {
}
},
getInfo(id,directpath){
const matche = [
{
name: "高效消费者响应(ECR)",
path: "/Knowledge/GS1System/gxfECR",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
......
......@@ -14,7 +14,7 @@
</div>
</template>
<script>
import { mapMutations } from "vuex";
import pages from "../../comps/pages2.vue";
export default {
components: {
......@@ -45,7 +45,11 @@ export default {
this.initListFn(this.tableResult.currPage);
},
methods:{
...mapMutations({
setMatche: "setMatche",
}),
// 列表
async initListFn(page) {
const params = {
page: page,
......@@ -60,6 +64,13 @@ export default {
}
},
getInfo(id,directpath){
const matche = [
{
name: "自行车编码",
path: "/Knowledge/GS1System/zxcbm",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
......
......@@ -5,13 +5,13 @@
<span>{{title}}</span>
<span>日期:{{checkTime(showtime)}}</span>
</p>
<div v-html="content"></div>
<div class="showHtml" v-html="content"></div>
</div>
</div>
</template>
<script>
import { mapState } from "vuex";
import breadcrumb from "../comps/breadcrumb.vue";
import pages from "../comps/pages2.vue";
export default {
......@@ -24,13 +24,14 @@ export default {
id:this.$route.query.id,
content:'',
title:'',
showtime:''
showtime:'',
breadcrumb: [{ name: "技术与标准", path: "/Knowledge" }],
};
},
computed: {
routes() {
},
...mapState({
matche: (state) => state.matche,
}),
},
created() {
this.initInfoFn();
......@@ -56,11 +57,11 @@ export default {
this.content=data.content;
this.title=data.title
this.showtime=data.inputdate
this.$store.commit("system/SET_BREADCRUMB", [
{ name: "技术与标准 ", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: this.title },
]);
this.breadcrumb = this.breadcrumb.concat(this.matche);
this.breadcrumb.push({
name: this.title,
});
this.$store.commit("system/SET_BREADCRUMB", this.breadcrumb);
console.log(1)
}
......@@ -110,6 +111,19 @@ export default {
font-size: 14px;
padding-bottom:30px;
}
.showHtml{
border-bottom: 1px solid #b2b2b8;
padding-bottom: 30px;
margin-bottom: 25px;
margin-top: 20px;
line-height: 28px;
font-size: 14px;
text-indent: 28px;
color: #454545;
/deep/p{
margin: 0 0 10px
}
}
}
}
......
......@@ -719,6 +719,7 @@ export default {
img {
width: 100%;
margin: 26px 0 0 0;
cursor: pointer;
}
.bzwx {
.cjwtbtn {
......@@ -736,6 +737,7 @@ export default {
padding-bottom: 0px;
.card-title {
color: #f26335;
cursor: pointer;
}
.card-text {
// font-family: PingFangSC-Regular, PingFang SC;
......
......@@ -209,7 +209,25 @@
</div>
</div>
</div>
<!-- EbXML -->
<div class="knowledge-cnt" v-if="listResult.rfid && listResult.rfid.length>0">
<div class="knowledge-title">
RFID
</div>
<div class="knowledge-container card ">
<div class="row g-2 ">
<div class="col bzwx">
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of listResult.rfid" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath)">{{item.Title}}</li>
</ul>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<!-- 热点点击 -->
......@@ -269,7 +287,8 @@ export default {
gln:[],
rfid:[],
sptm:[],
zxcbm:[]
zxcbm:[],
rfid:[]
},
hotListArr:[],
message:''
......
......@@ -89,16 +89,17 @@ export default {
},
getInfo(id,directpath){
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
const matche = [
const matche = [
{
name: "其他",
path: "/News/Other",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
let link = this.$router.resolve({
path: `/News/msg?id=${id}`,
});
......
......@@ -91,16 +91,17 @@ export default {
},
// 详情
getInfo(id,directpath){
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
const matche = [
const matche = [
{
name: "图片资讯",
path: "/News/PicNews",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
let link = this.$router.resolve({
path: `/News/msg?id=${id}`,
});
......
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