Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
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 2a73f075
authored
Dec 31, 2021
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
搜索样式修改
1 parent
66bcfcb9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
src/views/employee/glsx-combi-form/index.vue
src/views/employee/index.vue
src/views/employee/glsx-combi-form/index.vue
View file @
2a73f07
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"glsx-combi-form"
>
<div
class=
"glsx-combi-form"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
: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"
: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"
: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-block"
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-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
:content=
"item.tips"
:placement=
"item.placement || 'top'"
>
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
{{
item
.
label
}}
{{
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>
</span>
</span>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
></slot>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
></slot>
<div
v-else-if=
"item.type === 'input'"
>
<div
v-else-if=
"item.type === 'input'"
>
...
@@ -90,7 +90,9 @@
...
@@ -90,7 +90,9 @@
</template>
</template>
</el-form-item>
</el-form-item>
</template>
</template>
<el-form-item
class=
"footer-btns"
>
<slot
name=
"footer"
></slot>
<slot
name=
"footer"
></slot>
</el-form-item>
</el-form>
</el-form>
<el-dialog
:visible
.
sync=
"isImgVisible"
>
<el-dialog
:visible
.
sync=
"isImgVisible"
>
<img
class=
"dialog-img"
width=
"100%"
:src=
"dialogImageUrl"
alt=
""
/>
<img
class=
"dialog-img"
width=
"100%"
:src=
"dialogImageUrl"
alt=
""
/>
...
@@ -319,7 +321,7 @@ export default {
...
@@ -319,7 +321,7 @@ export default {
.glsx-combi-form
.activity-img
{
.glsx-combi-form
.activity-img
{
position
:
relative
;
position
:
relative
;
color
:
#999999
;
color
:
#999999
;
background-color
:
#
F7F7F
7
;
background-color
:
#
f7f7f
7
;
border
:
1px
dashed
#d9d9d9
;
border
:
1px
dashed
#d9d9d9
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
@@ -388,4 +390,7 @@ export default {
...
@@ -388,4 +390,7 @@ export default {
height
:
100%
;
height
:
100%
;
}
}
/* 图片上传 */
/* 图片上传 */
.footer-btns
{
float
:
right
;
}
</
style
>
</
style
>
src/views/employee/index.vue
View file @
2a73f07
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<div>
<template
v-if=
"userInfo.accountLevel != 4"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData2"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData2"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
>
...
@@ -15,6 +16,17 @@
...
@@ -15,6 +16,17 @@
<!--
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
-->
<!--
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
-->
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
</
template
>
<
template
v-else
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData3"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<GLButton
@
click=
"handleExport"
fn=
"导出"
:size=
"size"
type=
"primary"
mode=
"el-button"
>
导出
</GLButton>
<!--
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
-->
</span>
</glsx-combi-form>
</
template
>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
...
@@ -134,6 +146,7 @@ export default {
...
@@ -134,6 +146,7 @@ export default {
}
}
}
}
],
],
searchFormData3
:
[],
// 表格
// 表格
getListApi
:
this
.
$apis
.
employee
.
getListApi
,
getListApi
:
this
.
$apis
.
employee
.
getListApi
,
tableParams
:
{
tableParams
:
{
...
@@ -228,6 +241,7 @@ export default {
...
@@ -228,6 +241,7 @@ export default {
this
.
searchFormData
.
splice
(
0
,
1
)
this
.
searchFormData
.
splice
(
0
,
1
)
var
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
prop
==
'merchantName'
)
var
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
prop
==
'merchantName'
)
this
.
tableParams
.
tableColumns
.
splice
(
idx
,
1
)
this
.
tableParams
.
tableColumns
.
splice
(
idx
,
1
)
this
.
searchFormData3
=
[...
this
.
searchFormData
,
...
this
.
searchFormData2
]
}
}
this
.
getAllMerchantList
()
this
.
getAllMerchantList
()
this
.
getStaffStatusList
()
this
.
getStaffStatusList
()
...
...
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