Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 031f8236
authored
Sep 07, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整
1 parent
97e4bb72
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
35 deletions
src/components/search-form/index.vue
src/views/home/index.vue
src/views/material/index.vue
src/components/search-form/index.vue
View file @
031f823
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<el-form-item
v-for=
"(item, index) in formList"
:key=
"index"
:label=
"item.label || ''"
>
<el-form-item
v-for=
"(item, index) in formList"
:key=
"index"
:label=
"item.label || ''"
>
<template>
<template>
<template
v-if=
"item.type === 'input'"
>
<template
v-if=
"item.type === 'input'"
>
<el-input
v-model=
"formModel[item.prop]"
:type=
"item.inputType || 'text'"
:placeholder=
"item.placeholder || '请输入'"
:clearable=
"item.clearable || false"
:readonly=
"item.readonly || false"
@
keyup
.
enter
.
native=
"onInput"
></el-input>
<el-input
v-model=
"formModel[item.prop]"
:type=
"item.inputType || 'text'"
:placeholder=
"item.placeholder || '请输入'"
:clearable=
"item.clearable || false"
:readonly=
"item.readonly || false"
@
keyup
.
enter
.
native=
"onInput"
></el-input>
</
template
>
</
template
>
<
template
v-else-if=
"item.type === 'select'"
>
<
template
v-else-if=
"item.type === 'select'"
>
<el-select
size=
"small"
v-model=
"formModel[item.prop]"
:placeholder=
"item.placeholder || '请选择'"
:filterable=
"!item.noFilter"
>
<el-select
size=
"small"
v-model=
"formModel[item.prop]"
:placeholder=
"item.placeholder || '请选择'"
:filterable=
"!item.noFilter"
>
...
@@ -83,7 +83,7 @@ export default {
...
@@ -83,7 +83,7 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
isThreeRowShow
:{
isThreeRowShow
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
isNeedThreeBtns
:{
isNeedThreeBtns
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
}
}
...
@@ -118,34 +118,31 @@ export default {
...
@@ -118,34 +118,31 @@ export default {
//调用默认时间(30天)
//调用默认时间(30天)
this
.
getPassMonthFormatDate
()
this
.
getPassMonthFormatDate
()
}
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
var
sf
=
document
.
getElementById
(
'searchForm'
)
var
sf
=
document
.
getElementById
(
'searchForm'
)
if
(
sf
.
clientWidth
<
1280
&&
this
.
isHasSyncBtn
)
{
document
.
querySelector
(
'.itemWidth'
).
style
.
maxWidth
=
700
+
'px'
}
if
(
sf
.
clientWidth
<
952
&&
this
.
isHasSyncBtn
)
{
this
.
isShowBtns
=
false
}
let
lineHeight
=
75
//75
if
(
sf
.
clientWidth
<
1280
&&
this
.
isHasSyncBtn
)
{
if
(
document
.
getElementById
(
'searchForm'
).
offsetHeight
>
lineHeight
*
2
)
{
document
.
querySelector
(
'.itemWidth'
).
style
.
maxWidth
=
700
+
'px'
}
this
.
expande
=
false
if
(
sf
.
clientWidth
<
952
&&
this
.
isHasSyncBtn
)
{
this
.
needShowExpande
=
true
this
.
isShowBtns
=
false
}
else
{
}
this
.
needShowExpande
=
false
this
.
expande
=
true
}
if
(
sf
.
clientWidth
<
840
&&
this
.
isThreeRowShow
){
let
lineHeight
=
75
//75
document
.
querySelector
(
'.itemWidth'
).
style
.
minHeight
=
document
.
querySelector
(
'.itemWidth'
).
offsetHeight
+
50
+
'px'
if
(
document
.
getElementById
(
'searchForm'
).
offsetHeight
>
lineHeight
*
2
)
{
// 客户群里面四个表做特殊处理,当为苹果笔记本电脑尺寸时,不是现实展开收起按钮
this
.
expande
=
false
this
.
needShowExpande
=
false
this
.
needShowExpande
=
true
this
.
expande
=
true
}
else
{
}
this
.
needShowExpande
=
false
this
.
expande
=
true
}
if
(
sf
.
clientWidth
<
840
&&
this
.
isThreeRowShow
)
{
document
.
querySelector
(
'.itemWidth'
).
style
.
minHeight
=
document
.
querySelector
(
'.itemWidth'
).
offsetHeight
+
50
+
'px'
// 客户群里面四个表做特殊处理,当为苹果笔记本电脑尺寸时,不是现实展开收起按钮
this
.
needShowExpande
=
false
this
.
expande
=
true
}
})
})
//有数据不算表格高度,没数据算高度
//有数据不算表格高度,没数据算高度
...
@@ -160,7 +157,7 @@ export default {
...
@@ -160,7 +157,7 @@ export default {
// $(window).bind('resize', function() {
// $(window).bind('resize', function() {
// if (resizeTimer) clearTimeout(resizeTimer)
// if (resizeTimer) clearTimeout(resizeTimer)
// resizeTimer = setTimeout(function() {
// resizeTimer = setTimeout(function() {
//
//
// }, 100)
// }, 100)
// })
// })
// window.onresize = () => {
// window.onresize = () => {
...
@@ -215,8 +212,8 @@ export default {
...
@@ -215,8 +212,8 @@ export default {
syncClick
()
{
syncClick
()
{
this
.
$emit
(
'syncClick'
)
this
.
$emit
(
'syncClick'
)
},
},
handleExport
(){
handleExport
()
{
this
.
$emit
(
'handleExport'
)
this
.
$emit
(
'handleExport'
)
},
},
expandeClick
()
{
expandeClick
()
{
...
@@ -264,7 +261,7 @@ this.$emit('handleExport')
...
@@ -264,7 +261,7 @@ this.$emit('handleExport')
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
@import
'@/styles/variables.scss'
;
@import
'@/styles/variables.scss'
;
.search-form
{
.search-form
{
padding
:
18px
0
0
0
;
padding
:
18px
0
0
0
;
...
@@ -324,7 +321,7 @@ this.$emit('handleExport')
...
@@ -324,7 +321,7 @@ this.$emit('handleExport')
.el-select
{
.el-select
{
width
:
215px
;
width
:
215px
;
}
}
.el-select
>
.el-input
{
.el-select
>
.el-input
{
width
:
215px
;
width
:
215px
;
}
}
.el-form-item__content
{
.el-form-item__content
{
...
...
src/views/home/index.vue
View file @
031f823
...
@@ -407,7 +407,7 @@ export default {
...
@@ -407,7 +407,7 @@ export default {
.border
{
.border
{
padding
:
20px
;
padding
:
20px
;
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
//
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
}
.orange
{
.orange
{
...
...
src/views/material/index.vue
View file @
031f823
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</span>
</span>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"search-form"
>
<div
class=
"search-form"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"
2
"
:formObj=
"searchForm"
:formData=
"materialFormData"
@
handleOk=
"getListApi"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"
1
"
:formObj=
"searchForm"
:formData=
"materialFormData"
@
handleOk=
"getListApi"
@
handleRest=
"handleReset"
></GLCombiForm>
</div>
</div>
<div
class=
"tabelList"
>
<div
class=
"tabelList"
>
<el-row>
<el-row>
...
...
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