Commit 6e40f123 by 前端

二轮bug修复

1 parent 78b2e1e8
...@@ -256,7 +256,7 @@ export default { ...@@ -256,7 +256,7 @@ export default {
this.validateForm().then(() => { this.validateForm().then(() => {
const {describeId,pageTheme,ruleDescribe,...params} = this.configForm const {describeId,pageTheme,ruleDescribe,...params} = this.configForm
// 页面主题判断 // 页面主题判断
if (!params.theme1 || !params.theme2) return this.$message.error('请填写页面主题'); if (!params.theme1) return this.$message.error('请填写页面主题');
// 判断富文本编辑器是不是只有空格(不改变ruleDescribe的值) // 判断富文本编辑器是不是只有空格(不改变ruleDescribe的值)
const plainTextCheck = ruleDescribe.replace(/&nbsp;|<[^>]+>/g, ' ').replace(/\s+/g, ' '); const plainTextCheck = ruleDescribe.replace(/&nbsp;|<[^>]+>/g, ' ').replace(/\s+/g, ' ');
if (plainTextCheck.trim() === '') { if (plainTextCheck.trim() === '') {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<el-col v-for="(item, index) in section.items" :key="index" :span="12"> <el-col v-for="(item, index) in section.items" :key="index" :span="12">
<div class="info-field"> <div class="info-field">
<span class="label">{{ item.label }}:</span> <span class="label">{{ item.label }}:</span>
<span class="value">{{ item.value }}</span> <span class="value" :title="item.value">{{ item.value }}</span>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -95,11 +95,15 @@ export default { ...@@ -95,11 +95,15 @@ export default {
font-size: 14px; font-size: 14px;
padding: 10px 40px; padding: 10px 40px;
border-radius: 4px; border-radius: 4px;
display: flex;
.label { .label {
color: #666666; color: #666666;
} }
.value { .value {
//margin-left: 8px; width: 170px;
white-space: nowrap; /* 防止内容换行 */
overflow: hidden;
text-overflow: ellipsis;
} }
} }
</style> </style>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-col v-for="(item, index) in section.items" :key="index" :span="12"> <el-col v-for="(item, index) in section.items" :key="index" :span="12">
<div class="info-field"> <div class="info-field">
<span class="label">{{ item.label }}:</span> <span class="label">{{ item.label }}:</span>
<span class="value">{{ item.value }}</span> <span class="value" :title="item.value">{{ item.value }}</span>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -122,11 +122,15 @@ export default { ...@@ -122,11 +122,15 @@ export default {
font-size: 14px; font-size: 14px;
padding: 10px 40px; padding: 10px 40px;
border-radius: 4px; border-radius: 4px;
display: flex;
.label { .label {
color: #666666; color: #666666;
} }
.value { .value {
//margin-left: 8px; width: 170px;
white-space: nowrap; /* 防止内容换行 */
overflow: hidden;
text-overflow: ellipsis;
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!