Commit 0771a1d2 by Lyan

文件前缀更改

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