Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 b4152fb1
authored
Aug 25, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
公用组件优化等
1 parent
2b0610ad
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
10 deletions
vue3-lw-pc/src/components/RequestChartTable.vue
vue3-lw-pc/src/styles/element-ui.scss
vue3-lw-pc/src/styles/index.scss
vue3-lw-pc/src/views/drainageCode/components/SelectGroup.vue
vue3-lw-pc/src/views/index/index.vue
vue3-lw-pc/src/components/RequestChartTable.vue
View file @
b4152fb
...
@@ -17,6 +17,11 @@ export default {
...
@@ -17,6 +17,11 @@ export default {
request
:
{
request
:
{
type
:
Function
,
type
:
Function
,
},
},
// 是否在创建的时候自动调用request接口请求
isCreateRequest
:
{
type
:
Boolean
,
default
:
true
,
},
// 自定义的查询参数处理方法,可用于添加和修改查询参数
// 自定义的查询参数处理方法,可用于添加和修改查询参数
dealQueryFun
:
{
dealQueryFun
:
{
...
@@ -68,7 +73,7 @@ export default {
...
@@ -68,7 +73,7 @@ export default {
computed
:
{},
computed
:
{},
watch
:
{},
watch
:
{},
created
()
{
created
()
{
this
.
getList
()
this
.
isCreateRequest
&&
this
.
getList
()
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
...
@@ -90,7 +95,7 @@ export default {
...
@@ -90,7 +95,7 @@ export default {
}
}
delete
query
.
dateRange
delete
query
.
dateRange
this
.
request
(
query
)
return
this
.
request
(
query
)
.
then
(({
rows
,
total
,
data
})
=>
{
.
then
(({
rows
,
total
,
data
})
=>
{
data
=
data
||
rows
data
=
data
||
rows
// if (!data) return
// if (!data) return
...
@@ -98,6 +103,7 @@ export default {
...
@@ -98,6 +103,7 @@ export default {
// 表格
// 表格
this
.
data
=
data
this
.
data
=
data
this
.
total
=
+
total
this
.
total
=
+
total
this
.
dealDataFun
&&
this
.
dealDataFun
(
data
,
this
.
data
)
}
else
{
}
else
{
// 自定义echarts图表数据处理
// 自定义echarts图表数据处理
// this.data = data
// this.data = data
...
...
vue3-lw-pc/src/styles/element-ui.scss
View file @
b4152fb
...
@@ -297,6 +297,7 @@
...
@@ -297,6 +297,7 @@
.el-form-item__content
{
.el-form-item__content
{
display
:
block
;
display
:
block
;
line-height
:
30px
;
// 解决某些情况下行内块顶部不对齐,上下缝隙问题
}
}
.el-form
:not
(
.el-form--inline
)
{
.el-form
:not
(
.el-form--inline
)
{
// .el-form-item {
// .el-form-item {
...
@@ -443,7 +444,6 @@
...
@@ -443,7 +444,6 @@
max-height
:
calc
(
100%
-
30px
);
max-height
:
calc
(
100%
-
30px
);
max-width
:
calc
(
100%
-
30px
);
max-width
:
calc
(
100%
-
30px
);
border-radius
:
var
(
--
border-radius-big
);
border-radius
:
var
(
--
border-radius-big
);
padding
:
20px
30px
;
}
}
.el-dialog__title
{
.el-dialog__title
{
font-weight
:
500
;
font-weight
:
500
;
...
@@ -452,12 +452,18 @@
...
@@ -452,12 +452,18 @@
.el-dialog__footer
,
.el-dialog__footer
,
.el-dialog__body
{
.el-dialog__body
{
padding
:
0
;
padding
:
0
;
margin
:
20px
30px
;
}
.el-dialog__header
{
margin-bottom
:
0
;
}
.el-dialog__footer
{
margin-top
:
0
;
}
}
.el-dialog__body
{
.el-dialog__body
{
flex
:
1
;
flex
:
1
;
overflow-y
:
auto
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
overflow-x
:
hidden
;
margin
:
20px
0
;
}
}
.el-dialog__headerbtn
{
.el-dialog__headerbtn
{
// top: 18px;
// top: 18px;
...
...
vue3-lw-pc/src/styles/index.scss
View file @
b4152fb
...
@@ -221,6 +221,11 @@ div:focus {
...
@@ -221,6 +221,11 @@ div:focus {
&
tip-color
{
&
tip-color
{
color
:
var
(
--
font-black-6
);
color
:
var
(
--
font-black-6
);
}
}
&
tip
{
color
:
var
(
--
font-black-6
);
font-size
:
12px
;
margin-top
:
10px
;
}
// 粘性底部
// 粘性底部
&
footer-sticky
{
&
footer-sticky
{
position
:
sticky
;
position
:
sticky
;
...
...
vue3-lw-pc/src/views/drainageCode/components/SelectGroup.vue
View file @
b4152fb
...
@@ -231,10 +231,7 @@ export default {
...
@@ -231,10 +231,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
::v-deep
.el-dialog__body
{
::v-deep
.el-dialog__body
{
margin
:
30px
20px
;
padding
:
0
;
color
:
var
(
--font-black-4
);
color
:
var
(
--font-black-4
);
font-size
:
14px
;
word-break
:
break-all
;
word-break
:
break-all
;
}
}
.fixed-content
{
.fixed-content
{
...
...
vue3-lw-pc/src/views/index/index.vue
View file @
b4152fb
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
<img
class=
"portrait-img"
:src=
"$store.user.avatar"
alt=
""
v-if=
"$store.user.avatar"
/>
<img
class=
"portrait-img"
:src=
"$store.user.avatar"
alt=
""
v-if=
"$store.user.avatar"
/>
<!--
<svg-icon
icon=
"user"
class=
"code-user"
v-else
></svg-icon>
-->
<!--
<svg-icon
icon=
"user"
class=
"code-user"
v-else
></svg-icon>
-->
</div>
</div>
<
div
class=
"wel toe
"
>
<
el-tooltip
:content=
"$store.user.name"
placement=
"top-end"
effect=
"light
"
>
<
span>
{{
greetings
}}
,
{{
$store
.
user
.
name
}}
</span
>
<
div
class=
"wel toe"
>
{{
greetings
}}
,
{{
$store
.
user
.
name
}}
</div
>
</
div
>
</
el-tooltip
>
<div
class=
"role toe g-bg-lg"
>
{{
roleGroup
||
'管理员'
}}
</div>
<div
class=
"role toe g-bg-lg"
>
{{
roleGroup
||
'管理员'
}}
</div>
</div>
</div>
...
@@ -443,6 +443,7 @@ export default {
...
@@ -443,6 +443,7 @@ export default {
font-size
:
22px
;
font-size
:
22px
;
font-weight
:
bold
;
font-weight
:
bold
;
margin
:
2px
0
16px
;
margin
:
2px
0
16px
;
width
:
100%
;
}
}
.role
{
.role
{
position
:
relative
;
position
:
relative
;
...
...
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