修改bug

This commit is contained in:
zhuangxinwei
2022-09-30 16:52:51 +08:00
parent 506237c79f
commit dd30e3e457
2 changed files with 7 additions and 6 deletions
@@ -86,10 +86,11 @@
:resizable="false" :resizable="false"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip placement="top"> <div class="itemsText" @click="itemsTextDialog(scope.row.itemsNum, scope.row.itermsConditions)">{{ scope.row.itermsConditions ? scope.row.itermsConditions.replace(/<.*?>/ig, ' ') : '' }}</div>
<div slot="content">{{scope.row.itermsConditions}}</div> <!-- <el-tooltip placement="top">-->
<div class="itemsText" @click="itemsTextDialog(scope.row.itemsNum, scope.row.itermsConditions)">{{ scope.row.itermsConditions ? scope.row.itermsConditions.replace(/<.*?>/ig, ' ') : '' }}</div> <!-- <div slot="content">{{scope.row.itermsConditions}}</div>-->
</el-tooltip> <!-- <div class="itemsText" @click="itemsTextDialog(scope.row.itemsNum, scope.row.itermsConditions)">{{ scope.row.itermsConditions ? scope.row.itermsConditions.replace(/<.*?>/ig, ' ') : '' }}</div>-->
<!-- </el-tooltip>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="50" :resizable="false" fixed="right"> <el-table-column label="操作" align="center" width="50" :resizable="false" fixed="right">
@@ -317,7 +317,7 @@
title="查看修改前内容" title="查看修改前内容"
:visible.sync="itermsConditionsFlag" :visible.sync="itermsConditionsFlag"
size="800px"> size="800px">
<div style="height: 500px;overflow: auto;" v-html="itermsConditionsTitle"></div> <div class="itemsTextBox" v-html="itermsConditionsTitle"></div>
<div slot="footer"> <div slot="footer">
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button> <el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button>
</div> </div>
@@ -423,7 +423,7 @@
}, },
itermsConditionsOpen (row) { itermsConditionsOpen (row) {
this.itermsConditionsFlag = true this.itermsConditionsFlag = true
this.itermsConditionsTitle = row this.itermsConditionsTitle = row.replace(/''/g, '\'')
}, },
optionsChange (data) { optionsChange (data) {
for (let a = 0; a < this.options.length; a++) { for (let a = 0; a < this.options.length; a++) {