This commit is contained in:
zhutianqi
2022-03-21 09:10:06 +08:00
parent 139127a22f
commit 5063214eb4
5 changed files with 18 additions and 28 deletions
@@ -69,7 +69,7 @@
<label style="margin-right: 164px;">{{ child.attrName }}</label>
<template v-if="child.value && child.value.length > 0">
<!-- 单个文件时-->
<div v-for="(file, fileIndex) in child1Func(child.value)">
<div v-for="(file, fileIndex) in child1Func(child.value)" style="position: relative;display: flex;">
<span v-if="child.value && child.value.length > 0 && child.value.length === 1" style="display: flex; align-items: center;">
<a style="font-size: 16px;color: #409EFF;cursor: pointer;"
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
@@ -110,12 +110,11 @@
<!-- <span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span>-->
</div>
<el-button
v-if="child.attrField === itemNam "
v-if="child.attrField === itemNam"
v-for="(itemNam,index) in itemExistList"
:key="index"
@click="showItemsModel(child.attrField)"
class="decomposition-btn"
style="right:62px"
>标准分解单
</el-button>
</div>
@@ -613,12 +612,11 @@
<el-button
v-if="child.attrField === itemNam "
v-for="(itemNam,index) in itemExistList"
:key="index"
:key="itemNam"
@click="showItemsModel(child.attrField)"
class="decomposition-btn"
>标准分解单
</el-button>
</div>
</div>
</template>
@@ -864,16 +862,21 @@
>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="termsConditions"
min-width="200"
label="条款内容"
:resizable="false"
>
<template slot-scope="scope">
<div class="table-jump" @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">
{{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}
</div>
<!-- <div class="table-jump" @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">-->
<!-- {{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}-->
<!-- </div>-->
<el-tooltip placement="top">
<div slot="content" v-html="scope.row.termsConditions" :disabled="scope.row.termsConditions"></div>
<div class="table-jump" style=" overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">
{{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}
</div>
</el-tooltip>
</template>
</el-table-column>
<el-table-column
@@ -2852,7 +2855,7 @@ export default {
_this: this
}, res => {
this.sarStandardsInfoEO = res.data || {}
this.itemExistList = this.sarStandardsInfoEO.attrInfoMap.itemExistList;
this.itemExistList = new Set(this.sarStandardsInfoEO.attrInfoMap.itemExistList)
if (this.sarStandardsInfoEO.issueTime != null && this.sarStandardsInfoEO.issueTime !== '') {
this.sarStandardsInfoEO.issueTime = this.sarStandardsInfoEO.issueTime.split(' ')[0]
}
@@ -3697,7 +3700,7 @@ export default {
})
},*/
async mounted() {
this.sarStandardsInfoEO.id = this.$route.params.id
this.sarStandardsInfoEO.id = this.$route.params.id
// await this.selectStandMessage()
this.standItemEO.standId = this.$route.params.id
// 从数据库中查询各下拉框数据