Commit d13285c5 by 前端

更改tooltip展示 修改提示

1 parent b6c11d80
...@@ -6,10 +6,17 @@ ...@@ -6,10 +6,17 @@
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '154px' : labelWidth" :class="[{ 'no-label': !item.label, isBlock: isBlock },{'textBox':item.type=='textBox'}]" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '154px' : labelWidth" :class="[{ 'no-label': !item.label, isBlock: isBlock },{'textBox':item.type=='textBox'}]" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label }}</span>
<el-popover placement="top" width="200" trigger="hover" :content="item.tips"> <!-- :content="item.tips" -->
<!-- <el-popover placement="top" width="200" trigger="hover" :content="item.tips >
<img slot="reference" class="tips-icon" src="./images/icon-tip.png" /> <img slot="reference" class="tips-icon" src="./images/icon-tip.png" />
</el-popover> </el-popover>
: : -->
<el-tooltip lacement="top" width="200" trigger="hover" effect="light">
<img class="tips-icon" src="@/assets/icon-tip.png" alt=""/>
<div slot="content" class="tips-icon" v-html="item.tips">
</div>
</el-tooltip>
:
</span> </span>
<span v-else-if="!item.isHide && item.label && !item.tips" slot="label"> <span v-else-if="!item.isHide && item.label && !item.tips" slot="label">
<span class="combi-form-label" :style="{ width: item.labelWidth || labelWidth }">{{ item.label }}:</span> <span class="combi-form-label" :style="{ width: item.labelWidth || labelWidth }">{{ item.label }}:</span>
......
...@@ -678,7 +678,7 @@ export default { ...@@ -678,7 +678,7 @@ export default {
} }
}, },
judgeDisable() { judgeDisable() {
var list = ['sopName', 'customerOptType', 'customerOptUpdate'] var list = ['sopName', 'customerOptType', 'customerOptUpdate','sopType']
list.forEach(item => { list.forEach(item => {
var idx = this.editFormData.findIndex(k => k.name == item) var idx = this.editFormData.findIndex(k => k.name == item)
this.editFormData[idx].isDisabled = this.editDisabled this.editFormData[idx].isDisabled = this.editDisabled
......
...@@ -562,8 +562,9 @@ export default { ...@@ -562,8 +562,9 @@ export default {
{ {
label: '标签更新', label: '标签更新',
name: 'labelOptUpdate', name: 'labelOptUpdate',
tips: `当前事件产生的用户行为会自动更新营销客户/群标签<br/> tips:
潜在客户行为示例:<br/>1.朋友圈点赞1次<br/>2.朋友圈评论1次<br/>3.打开营销链接内容<br/>4.浏览营销链接内容超过10s`, `<div>当前事件产生的用户行为会</div><div>会自动更新营销客户/群标签</div><div>潜在客户行为示例:</div><div>1.朋友圈点赞1次</div><div>2.朋友圈评论1次</div>
<div>3.打开营销链接内容</div><div>4.浏览营销链接内容超过10s</div>`,
type: 'radio', type: 'radio',
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!