Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4d7f5365
authored
Jun 02, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加提示
1 parent
5fc17fdf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
13 deletions
src/assets/tip.png
src/components/glsx-combi-form/index.vue
src/views/serviceConfig/components/ServicesTable/index.vue
src/assets/tip.png
0 → 100644
View file @
4d7f536
1.09 KB
src/components/glsx-combi-form/index.vue
View file @
4d7f536
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
<el-form
:ref=
"formRef"
:disabled=
"formDisable"
:inline=
"isInline"
:model=
"formObj"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<el-form
:ref=
"formRef"
:disabled=
"formDisable"
:inline=
"isInline"
:model=
"formObj"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<template
v-for=
"(item, index) in formData"
>
<template
v-for=
"(item, index) in formData"
>
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:labelWidth=
"isEdit ? '144px' : labelWidth"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :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 ? '144px' : labelWidth"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :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-
wrap
"
slot=
"label"
>
<span
class=
"tips-label"
>
{{
item
.
label
}}
</span>
<span
class=
"tips-label"
>
{{
item
.
label
}}
</span>
<el-
tooltip
popper-class=
"tooltip-class"
effect=
"dark"
:content=
"item.tips"
:placement=
"item.placement || 'top'
"
>
<el-
popover
:effect=
"item.effect ? item.effect : 'dark'"
:placement=
"item.placement || 'top'"
width=
"200"
trigger=
"hover"
:content=
"item.tips
"
>
<
span
class=
"tips-icon"
></span
>
<
img
slot=
"reference"
class=
"tips-icon"
:src=
"require('@/assets/tip.png')"
/
>
</el-
tooltip
>
</el-
popover
>
{{
item
.
label
}}
:
</span>
</span>
<span
v-else-if=
"!item.isHide && item.label"
slot=
"label"
>
<span
v-else-if=
"!item.isHide && item.label"
slot=
"label"
>
<span
class=
"combi-form-label"
:style=
"
{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">
{{
item
.
label
}}
</span>
<span
class=
"combi-form-label"
:style=
"
{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">
{{
item
.
label
}}
</span>
...
@@ -326,7 +326,7 @@ export default {
...
@@ -326,7 +326,7 @@ export default {
background-color
:
#fff
;
background-color
:
#fff
;
}
}
/* 提示图标 */
/* 提示图标 */
.glsx-combi-form
.tips-
block
{
.glsx-combi-form
.tips-
wrap
{
position
:
relative
;
position
:
relative
;
}
}
.glsx-combi-form
.tips-label
{
.glsx-combi-form
.tips-label
{
...
@@ -335,16 +335,15 @@ export default {
...
@@ -335,16 +335,15 @@ export default {
.glsx-combi-form
.tips-icon
{
.glsx-combi-form
.tips-icon
{
position
:
absolute
;
position
:
absolute
;
display
:
inline-block
;
display
:
inline-block
;
width
:
1
2
px
;
width
:
1
4
px
;
height
:
1
2
px
;
height
:
1
4
px
;
top
:
3px
;
top
:
3px
;
right
:
14px
;
right
:
14px
;
margin-right
:
4px
;
margin-right
:
4px
;
cursor
:
pointer
;
cursor
:
pointer
;
border
:
1px
dotted
#7f7f7f
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
.glsx-combi-form
.tips-icon
::before
{
/*
.glsx-combi-form .tips-icon::before {
content: '?';
content: '?';
position: absolute;
position: absolute;
width: 8px;
width: 8px;
...
@@ -352,7 +351,7 @@ export default {
...
@@ -352,7 +351,7 @@ export default {
top: -8px;
top: -8px;
left: 1px;
left: 1px;
font-size: 10px;
font-size: 10px;
}
}
*/
/* .glsx-combi-form .tips {
/* .glsx-combi-form .tips {
margin: 0;
margin: 0;
} */
} */
...
...
src/views/serviceConfig/components/ServicesTable/index.vue
View file @
4d7f536
...
@@ -9,8 +9,16 @@
...
@@ -9,8 +9,16 @@
</tr>
</tr>
<tr>
<tr>
<template
v-for=
"(item, index) in tableData.salePeriodData"
>
<template
v-for=
"(item, index) in tableData.salePeriodData"
>
<th
:key=
"index"
>
上架成本
</th>
<th
:key=
"index"
>
上架成本
<th
:key=
"index"
>
销售成本
</th>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"提示待运营提供"
placement=
"top"
>
<img
class=
"tip"
:src=
"require('@/assets/tip.png')"
/>
</el-tooltip>
</th>
<th
:key=
"index"
>
销售成本
<el-tooltip
class=
"item"
effect=
"dark"
content=
"提示待运营提供"
placement=
"top"
>
<img
class=
"tip"
:src=
"require('@/assets/tip.png')"
/>
</el-tooltip>
</th>
</
template
>
</
template
>
</tr>
</tr>
<tr>
<tr>
...
@@ -144,6 +152,12 @@
...
@@ -144,6 +152,12 @@
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.table-wrap
{
.table-wrap
{
.tip{
width
:
14px
;
vertical-align
:
middle
;
margin-bottom
:
2px
;
cursor
:
pointer
;
}
/
deep
/
.el-input__inner
{
/
deep
/
.el-input__inner
{
padding
:
0
2px
;
padding
:
0
2px
;
text-align
:
center
;
text-align
:
center
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment