Commit 0771a1d2 by Lyan

文件前缀更改

parent e8dabe9d
......@@ -870,6 +870,15 @@ const routes = [{
children: []
},
{
path: "/Knowledge/index",
name: "KnowledgeIndex",
meta: {
name: "技术知识",
},
component: () => import("@/views/Knowledge/index"),
children: []
},
{
path: "/Knowledge/KnowledgeList",
name: "KnowledgeList",
meta: {
......
......@@ -122,7 +122,7 @@
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of xtsList" :key="i" @click="getInfo(item.knowledgeinfoid,item.directpath)">{{item.title}}</li>
<li v-for="(item,i) of xtsList" :key="i" @click="getInfo(item.knowledgeinfoid,item.directpath,'小贴士')">{{item.title}}</li>
</ul>
</p>
</div>
......@@ -176,7 +176,7 @@
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of listResult.sptm.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath)">{{item.Title}}</li>
<li v-for="(item,i) of listResult.sptm.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath,'商品条码')">{{item.Title}}</li>
</ul>
</p>
</div>
......@@ -197,7 +197,7 @@
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of listResult.epc.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath)">{{item.Title}}</li>
<li v-for="(item,i) of listResult.epc.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath,'产品电子代码(EPC)')">{{item.Title}}</li>
</ul>
</p>
</div>
......@@ -218,7 +218,7 @@
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of listResult.gds.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath)">{{item.Title}}</li>
<li v-for="(item,i) of listResult.gds.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath,'全球数据同步(GDS)')">{{item.Title}}</li>
</ul>
</p>
</div>
......@@ -239,7 +239,7 @@
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of listResult.gln.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath)">{{item.Title}}</li>
<li v-for="(item,i) of listResult.gln.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath,'全球位置编码(GLN)')">{{item.Title}}</li>
</ul>
</p>
</div>
......@@ -252,7 +252,7 @@
<!-- 自称车编码 -->
<div class="knowledge-cnt">
<div class="knowledge-title">
<a href="/Knowledge/GS1System/zxcbm">车编码</a>
<a href="/Knowledge/GS1System/zxcbm">车编码</a>
</div>
<div class="knowledge-container card ">
<div class="row g-2 ">
......@@ -260,7 +260,7 @@
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of listResult.zxcbm.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath)">{{item.Title}}</li>
<li v-for="(item,i) of listResult.zxcbm.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath,'自行车编码')">{{item.Title}}</li>
</ul>
</p>
</div>
......@@ -281,7 +281,7 @@
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of listResult.dwbm.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath)">{{item.Title}}</li>
<li v-for="(item,i) of listResult.dwbm.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath,'动物编码')">{{item.Title}}</li>
</ul>
</p>
</div>
......@@ -302,7 +302,7 @@
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of listResult.ewtm.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath)">{{item.Title}}</li>
<li v-for="(item,i) of listResult.ewtm.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath,'二维条码')">{{item.Title}}</li>
</ul>
</p>
</div>
......@@ -323,7 +323,7 @@
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of listResult.ecr.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath)">{{item.Title}}</li>
<li v-for="(item,i) of listResult.ecr.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath,'高效消费者响应(ECR)')">{{item.Title}}</li>
</ul>
</p>
</div>
......@@ -336,7 +336,7 @@
<!-- EbXML -->
<div class="knowledge-cnt">
<div class="knowledge-title">
<a href="/Knowledge/GS1System/ebxml">EbXML</a>
<a href="/Knowledge/GS1System/ebxml">ebXML</a>
</div>
<div class="knowledge-container card ">
<div class="row g-2 ">
......@@ -344,7 +344,7 @@
<div class="card-body">
<p class="card-text">
<ul style="padding-left:0">
<li v-for="(item,i) of listResult.ebXML.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath)">{{item.Title}}</li>
<li v-for="(item,i) of listResult.ebXML.slice(0,5)" :key="i" @click="getInfo(item.knowledgeInfoID,item.directpath,'ebXML')">{{item.Title}}</li>
</ul>
</p>
</div>
......@@ -362,7 +362,7 @@
</template>
<script>
// import sousuoList from "../Home/comps/sousuo-list.vue";
import { mapMutations } from "vuex";
export default {
components: {
// sousuoList,
......@@ -449,6 +449,49 @@ export default {
},
},
],
matcheList:[
{
name: "商品条码",
path: "/Knowledge/GS1System/goodsGln",
},
{
name: "产品电子代码(EPC)",
path: "/Knowledge/GS1System/goodsEpc",
},
{
name: "全球数据同步(GDS)",
path: "/Knowledge/GS1System/goodsGDS",
},
{
name: "全球位置编码(GLN)",
path: "/Knowledge/GS1System/goodsPosition",
},
{
name: "自行车编码",
path: "/Knowledge/GS1System/zxcbm",
},
{
name: "动物编码",
path: "/Knowledge/GS1System/dwbm",
},
{
name: "二维条码",
path: "/Knowledge/GS1System/ewbm",
},
{
name: "高效消费者响应(ECR)",
path: "/Knowledge/GS1System/gxfECR",
},
{
name: "ebXML",
path: "/Knowledge/GS1System/ebxml",
},
{
name: "小贴士",
path: "/Knowledge/xts",
},
]
};
},
created() {
......@@ -462,6 +505,9 @@ export default {
this.searchKnowledgeInfoList();
},
methods: {
...mapMutations({
setMatche: "setMatche",
}),
goGlossary() {
this.$router.push({
path: "/Knowledge/Glossary",
......@@ -524,10 +570,20 @@ export default {
this.xtsList = dataArr.slice(0, 5);
}
},
getInfo(id, directpath) {
getInfo(id, directpath,name) {
if (directpath && directpath !== "" && directpath.length > 0) {
window.open(directpath, "_blank");
} else {
let matche = this.matcheList.filter((item) => item.name === name)[0];
console.log(matche,typeof(matche))
if(typeof(matche)==='undefined'){
matche = [{
name:'技术知识',
path:'/Knowledge/index'
}]
}
this.setMatche(matche);
let link = this.$router.resolve({
path: `/Knowledge/article?id=${id}`,
});
......@@ -550,6 +606,7 @@ export default {
if (directpath !== "" && directpath.length > 0) {
window.open(directpath, "_blank");
} else {
let link = this.$router.resolve({
path: `/Knowledge/Statuteinfo?id=${id}`,
});
......
......@@ -63,10 +63,10 @@
</p>
<div class="list-style">
<ul >
<li ><a :href="`${urls.gs1cnTwo}Manage/down/201601Ecomm.pdf`" target="_blank">《电子商务商品条码应用指南》</a></li>
<li ><a :href="`${urls.gs1cnTwo}Manage/down/2016Ecommerce.pdf`" target="_blank">《商品条码在电子商务领域的应用》</a></li>
<li ><a :href="`${urls.gs1cnTwo}News/viewsub.aspx?id=38`" target="_blank">《ebXML标准技术规范——全球电子商务标准》</a></li>
<li ><a :href="`${urls.gs1cnTwo}Manage/down/201204GLN.pdf`" target="_blank">GLN</a></li>
<li ><a :href="`${url}/office/uploadFileResource/manage/down/201601Ecomm.pdf`" target="_blank">《电子商务商品条码应用指南》</a></li>
<li ><a :href="`${url}/office/uploadFileResource/manage/down/2016Ecommerce.pdf`" target="_blank">《商品条码在电子商务领域的应用》</a></li>
<li ><a href="/News/viewsub?id=38" target="_blank">《ebXML标准技术规范——全球电子商务标准》</a></li>
<li ><a :href="`${url}/office/uploadFileResource/manage/down/201204GLN.pdf`" target="_blank">GLN</a></li>
</ul>
</div>
......@@ -164,6 +164,7 @@ export default {
created(){
this.initListFn(this.tableResult.currPage);
this.spListFn()
this.url = process.env.VUE_APP_HOST_URL;
},
mounted() {
// 面包屑单独处理
......
......@@ -42,12 +42,12 @@ export default {
this.tableResult.list= [
{
title: "《电子商务商品条码应用指南》",
url: `${this.urls.gs1cnTwo}Manage/down/201601Ecomm.pdf`,
url: `${this.url}/office/uploadFileResource/manage/down/201601Ecomm.pdf`,
flag: 1,
},
{
title: "《商品条码在电子商务领域的应用》",
url: `${this.urls.gs1cnTwo}Manage/down/2016Ecommerce.pdf`,
url: `${this.url}/office/uploadFileResource/manage/down/2016Ecommerce.pdf`,
flag: 1,
},
{
......@@ -57,13 +57,15 @@ export default {
},
{
title: "GLN",
url:`${this.urls.gs1cnTwo}Manage/down/201204GLN.pdf`,
url:`${this.url}/office/uploadFileResource/manage/down/201204GLN.pdf`,
flag: 1,
},
]
},
created() {},
created() {
this.url = process.env.VUE_APP_HOST_URL;
},
methods: {
// 详情
getInfo(item) {
......
......@@ -112,7 +112,7 @@ export default {
};
},
created(){
this.url = process.env.VUE_APP_HOST_URL;
this.initListFn(this.tableResult.currPage);
},
......@@ -120,44 +120,44 @@ export default {
this.listFile= [
{
title: "GS1全球追溯标准(第二版)",
directpath: `${this.urls.gs1cnTwo}Manage/down/GS1全球追溯标准(第二版).pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/GS1全球追溯标准(第二版).pdf`
},
{
title: "GS1生鲜果蔬追溯实施指南",
directpath: `${this.urls.gs1cnTwo}Manage/down/GS1生鲜果蔬追溯实施指南.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/GS1生鲜果蔬追溯实施指南.pdf`
},
{
title: "GS1肉禽追溯指南",
directpath: `${this.urls.gs1cnTwo}Manage/down/GS1肉禽追溯指南.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/GS1肉禽追溯指南.pdf`
},
{
title: "GS1鱼类、海鲜和水产养殖追溯指南",
directpath: `${this.urls.gs1cnTwo}Manage/down/GS1鱼类、海鲜和水产养殖追溯指南.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/GS1鱼类、海鲜和水产养殖追溯指南.pdf`
},
{
title: "GS1标准助力食品安全全程追溯",
directpath: `${this.urls.gs1cnTwo}Manage/down/GS1标准助力食品安全全程追溯.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/GS1标准助力食品安全全程追溯.pdf`
},
{
title: "食品追溯 我来教你怎么做",
directpath: `${this.urls.gs1cnTwo}Manage/down/食品追溯我来教你怎么做.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/食品追溯我来教你怎么做.pdf`
},
{
title: "GS1标准在食品安全领域中的应用",
directpath: `${this.urls.gs1cnTwo}Manage/down/GS1全球追溯标准在食品安全领域中的应用.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/GS1全球追溯标准在食品安全领域中的应用.pdf`
},
{
title: "中国食品的跨国追溯",
directpath: `${this.urls.gs1cnTwo}Manage/down/中国食品的跨国追溯.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/中国食品的跨国追溯.pdf`
},
{
title: "商品条码食品安全追溯案例集",
directpath: `${this.urls.gs1cnTwo}Manage/down/shangpintiaomaanquanzhuisuanliji.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/shangpintiaomaanquanzhuisuanliji.pdf`
},
{
title: "乳制品、熟食品与烘烤食品追溯实施指南(美国)",
directpath: `${this.urls.gs1cnTwo}Manage/down/ruzhipinshushipin.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/ruzhipinshushipin.pdf`
},
]
},
......
......@@ -4,7 +4,7 @@
<div class="container">
<div class="down" style="padding:20px 30px;">
<p>全世界超过四十亿人正在应用移动电话。移动电话正在成为企业和消费者互动的重要渠道。今天的移动电话可以与条码“对话” ,读取无线射频识别(RFID)标签,并访问互联网。 通过使用移动电话对产品标识的读取,消费者就可获得有关这个产品的服务和信息,在明白消费的同时,增进消费者与品牌信任。</p>
<p>移动商务专题:<a :href="`${urls.gs1cnTwo}2012/MobileCom/index.html`">{{urls.gs1cnTwo}}2012/MobileCom/index.html</a></p>
<p>移动商务专题:<a :href="`${url}/2012/MobileCom/index.html`">{{url}}/2012/MobileCom/index.html</a></p>
</div>
<div class="down">
<span style="margin:0 0 10px;font-size:14px;display:inline-block">资料下载</span>
......@@ -101,11 +101,14 @@ export default {
};
},
created() {
this.url = process.env.VUE_APP_HOST_URL;
},
mounted(){
this.list2=[
{
title:'移动商务(宣传折页)',
directpath: `${this.urls.gs1cnTwo}Manage/down/20130620GS1 MobileCom.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/20130620GS1 MobileCom.pdf`
}
]
},
......
......@@ -59,15 +59,16 @@ export default {
},
created() {
this.initListFn(this.tableResult.currPage);
this.url = process.env.VUE_APP_HOST_URL;
},
mounted(){
this.list2=[{
title:'《建材行业商品条码应用指南》',
directpath: `${this.urls.gs1cnTwo}Manage/down/建材行业商品条码应用指南.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/建材行业商品条码应用指南.pdf`
},
{
title:' 服装行业商品条码应用指南',
directpath: `${this.urls.gs1cnTwo}Manage/down/服装行业商品条码应用指南.pdf`
directpath: `${this.url}/office/uploadFileResource/manage/down/服装行业商品条码应用指南.pdf`
}]
},
methods:{
......
......@@ -26,8 +26,7 @@
<ul>
<li v-for="(tmp, i) in topData.slice(0,5)" :key="i" @click="goInfo(tmp.id,tmp.directpath)">
<span></span
><span>{{tmp.title}}</span
>
><span>{{tmp.title}}</span>
</li>
</ul>
</div>
......
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