feat: There is no way the,

This commit is contained in:
super_liu
2021-12-30 14:46:03 +08:00
parent a7b42522bc
commit e8b4b7f9ea
2 changed files with 18 additions and 2 deletions
@@ -975,7 +975,7 @@
show-overflow-tooltip
>
<template slot-scope="scope">
<span style="margin-left: 10px" @click="judgeRolePermiOnSar(scope.row, 1)">{{ selectIndex === 'INLAND_LAWS' ? scope.row.lawsNumber : scope.row.numbershow}}</span>
<span style="margin-left: 10px" @click="judgeRolePermiOnSar(scope.row, 1)">{{ selectIndex === 'INLAND_LAWS' ? scope.row.lawsNumber : filterTitle(scope.row.numbershow)}}</span>
</template>
</el-table-column>
<el-table-column
@@ -1912,6 +1912,14 @@
this.page = 1;
this.searchSarBykey();
},
filterTitle(title){
if(title && (title.indexOf(",") !== -1)){
let titleSpt = title.split(",");
return titleSpt.length > 1 ? titleSpt[titleSpt.length-1] : titleSpt[0]
}else {
return title;
}
},
judgeRolePermiOnSar(item, type) {
let pagetype;
if (type !== 5 && item.type === "msgdyinfo") {
@@ -243,7 +243,7 @@
<div v-for="(item,key) in Allitems" :key="key" class="AllBox">
<div class="AllBoxTitle">
<span v-html="item.indexType === 'stand' ? '国内标准法规' : (item.indexType === 'FOREIGN' ? '海外标准法规' : (item.indexType === 'laws' ? '国内外政策' : (item.indexType === 'bussstand' ? '企业标准' : (item.indexType === 'items' ? '数据化条目' : '动态&资料'))))" class="typetext"></span>
<span style="cursor:pointer;" class="AllBoxText" v-html="item.title" @click="toPage(item)"></span>
<span style="cursor:pointer;" class="AllBoxText" v-html="filterTitle(item.title)" @click="toPage(item)"></span>
<span @click="checkItems(item)" class="more" style="cursor: pointer; position: absolute; right: 5px;">详情</span>
</div>
<div class="AllBoxContent" v-html="item.textContent"></div>
@@ -479,6 +479,14 @@
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
filterTitle(title){
if(title && (title.indexOf(",") !== -1)){
let titleSpt = title.split(",");
return titleSpt.length > 1 ? titleSpt[titleSpt.length-1] : titleSpt[0]
}else {
return title;
}
},
// 跳转
toPage (item) {
// 国内外----两个值