This commit is contained in:
zhutianqi
2021-08-13 16:17:48 +08:00
parent 45c27a8ec7
commit 7b2ed4a19f
@@ -230,6 +230,7 @@
<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 @click="checkItems(item)" class="more" style="cursor: pointer; position: absolute; right: 5px;">更多</span>
</div>
<div class="AllBoxContent" v-html="item.textContent"></div>
<div v-if="item.indexType !== 'items' && item.indexType !== 'msgdyinfo'" class="AllTime">
@@ -283,6 +284,20 @@
}"
@confirm="isTreeOk"
></org-table>
<el-dialog
title="查看详情"
:visible.sync="itermsConditionsFlag"
size="800px">
<div style="height: 500px;overflow: auto;" >
<div v-html="itermsConditionsTitle1" style="line-height: 20px;"></div>
<br>
<br>
<div v-html="itermsConditionsTitle2" style="line-height: 20px;"></div>
</div>
<div slot="footer">
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button>
</div>
</el-dialog>
</div>
</template>
@@ -298,6 +313,9 @@
name: 'StandardSearch',
data () {
return {
itermsConditionsTitle1: '',
itermsConditionsTitle2: '',
itermsConditionsFlag: false,
visibleOrgTable: false, // 分享选人
orgTableVal: '',
orgTableValName: '',
@@ -401,6 +419,14 @@
}
},
methods: {
checkItems (item) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle1 = item.textContent
this.itermsConditionsTitle2 = item.textItems
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
// 跳转
toPage (item) {
// 国内外----两个值
@@ -2526,11 +2552,21 @@
color: red;
}
.AllBoxTitle {
position: relative;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
line-height: 20px;
margin-bottom: 10px;
.more {
cursor: pointer;
position: absolute;
right: 5px;
color: #C0C4CC;
}
.more:hover {
color: #3391CE;
}
.typetext {
height: 20px;
line-height: 20px;