|
@@ -263,6 +263,7 @@ export default {
|
|
|
</div>
|
|
|
`;
|
|
|
} else if (modelInfo.MindType == 2) {//产品
|
|
|
+ // <p class="model-title-p model-patent" onclick="check(${modelInfo.MindId},${modelInfo.MindType},'${modelInfo.name}','${modelInfo.categoryId}')">相关专利:<span>${modelInfo.relevantProductNum}</span></p>
|
|
|
return `
|
|
|
<div class="model-edit-card">
|
|
|
<div class="img" onclick="vm.checkImg('${ (modelInfo.systemFileList && modelInfo.systemFileList.length > 0)? this.$commonJS.checkViewer(modelInfo.systemFileList[0].guid): ""}')">
|
|
@@ -271,7 +272,7 @@ export default {
|
|
|
<div class="patent">
|
|
|
<p class="model-title-p"><span>${ modelInfo.name}</span></p>
|
|
|
<p class="model-title-p model-patent" onclick="check(${modelInfo.MindId},${modelInfo.MindType},'${modelInfo.name}','${modelInfo.categoryId}')">商品化专利:<span>${modelInfo.productNum}</span></p>
|
|
|
- <p class="model-title-p model-patent1" onclick="check1(${modelInfo.MindId},${modelInfo.MindType},'${modelInfo.name}','${modelInfo.categoryId}')">相关专利:<span>${modelInfo.relevantProductNum}</span></p>
|
|
|
+
|
|
|
</div>
|
|
|
<div class="icon" style="display:${modelInfo.hasChildren? "block":"none"}">
|
|
|
>>>
|
|
@@ -286,7 +287,7 @@ export default {
|
|
|
</div>
|
|
|
<div class="patent">
|
|
|
<p class="model-title-p"><span>${ modelInfo.name}</span></p>
|
|
|
- <p class="model-title-p model-patent1" onclick="check1(${modelInfo.MindId},${modelInfo.MindType},'${modelInfo.pathName}','${modelInfo.productName}')">相关专利:<span>${modelInfo.relevantProductNum}</span></p>
|
|
|
+ <p class="model-title-p model-patent" onclick="check(${modelInfo.MindId},${modelInfo.MindType},'${modelInfo.pathName}','${modelInfo.typeId}','${modelInfo.name}')">相关专利:<span>${modelInfo.relevantProductNum}</span></p>
|
|
|
</div>
|
|
|
<div class="icon" style="display:${ modelInfo.hasChildren? "block":"none"}">
|
|
|
>>>
|
|
@@ -301,9 +302,10 @@ export default {
|
|
|
* @param {*} id 产品id或者架构id
|
|
|
* @param {*} type 类型2是产品3是架构
|
|
|
* @param {*} name 产品名称或者架构路径
|
|
|
- * @param {*} categoryId 架构id
|
|
|
+ * @param {*} categoryId 产品类别id
|
|
|
+ * @param {*} typeId
|
|
|
*/
|
|
|
- check(id, type,name,categoryId) {
|
|
|
+ check(id, type,name,categoryId,categoryName) {
|
|
|
if (type == 2) {//产品
|
|
|
var form = {
|
|
|
name:name,
|
|
@@ -314,23 +316,26 @@ export default {
|
|
|
let router = this.$router.resolve({
|
|
|
path: '/commodity',
|
|
|
query: {
|
|
|
- productId:id,
|
|
|
- productName:name,
|
|
|
+ productId:id,//产品id
|
|
|
+ productName:name,//产品名称
|
|
|
+ type:type
|
|
|
}
|
|
|
})
|
|
|
window.open(router.href, '_blank')
|
|
|
}
|
|
|
- // else if (type == 3) {//架构
|
|
|
- // name =productName + '/' + name.substring(0, name.length - 1);
|
|
|
- // const router = this.$router.resolve({
|
|
|
- // path: "/relatedPatentsIndex",
|
|
|
- // query: {
|
|
|
- // structureId: id,
|
|
|
- // name:name
|
|
|
- // },
|
|
|
- // });
|
|
|
- // window.open(router.href, "_blank");
|
|
|
- // }
|
|
|
+ else if (type == 3) {//架构
|
|
|
+ name =categoryName + '/' + name.substring(0, name.length - 1);
|
|
|
+ const router = this.$router.resolve({
|
|
|
+ path: "/commodity",
|
|
|
+ query: {
|
|
|
+ structureId: id,//架构
|
|
|
+ structureName:name,//架构名称
|
|
|
+ type:type,
|
|
|
+ categoryId:categoryId,//所属类别id
|
|
|
+ },
|
|
|
+ });
|
|
|
+ window.open(router.href, "_blank");
|
|
|
+ }
|
|
|
this.next = false;
|
|
|
},
|
|
|
// 筛选树结构
|