Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
89f60d93
提交
89f60d93
authored
1月 08, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style(all): 把 app-container > 第一个 div 设置背景颜色
首页的单独调整透明背景色
上级
d90f80d8
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
161 行增加
和
119 行删除
+161
-119
index.scss
src/assets/styles/index.scss
+2
-1
index.vue
src/views/bi/competitor/index.vue
+0
-2
index.vue
src/views/bi/prd_tag/index.vue
+0
-1
index.vue
src/views/bi/product/index.vue
+0
-2
index.vue
src/views/bi/sale/index.vue
+0
-2
index.vue
src/views/bi/store/index.vue
+0
-3
index.vue
src/views/index.vue
+1
-0
index.vue
src/views/system/dept/index.vue
+158
-108
没有找到文件。
src/assets/styles/index.scss
浏览文件 @
89f60d93
...
...
@@ -130,9 +130,10 @@ aside {
align-items
:
center
;
padding
:
20px
;
>
div
{
>
div
:first-of-type
{
width
:
100%
;
padding
:
20px
;
background-color
:
var
(
--
el-bg-color-overlay
);
}
}
...
...
src/views/bi/competitor/index.vue
浏览文件 @
89f60d93
...
...
@@ -32,10 +32,8 @@ provide('activeName', activeName);
.app-container
{
.tabs
{
background
:
var
(
--
el-bg-color-overlay
);
display
:
flex
;
flex-direction
:
column
;
width
:
100%
;
::v-deep
(
.el-tabs__content
)
{
flex
:
1
;
...
...
src/views/bi/prd_tag/index.vue
浏览文件 @
89f60d93
...
...
@@ -298,7 +298,6 @@ getSeriesGoodsTagList()
lang=
"scss"
>
.app-container
{
.el-row
{
background-color
:
var
(
--
el-bg-color-overlay
);
.right_col
{
flex
:
1
!
important
;
...
...
src/views/bi/product/index.vue
浏览文件 @
89f60d93
...
...
@@ -178,9 +178,7 @@ getProductList()
lang=
"scss"
>
.app-container
{
>
.el-row
{
/* flex: 1; */
display
:
flex
;
background-color
:
var
(
--
el-bg-color-overlay
);
.right_col
{
flex
:
1
!
important
;
...
...
src/views/bi/sale/index.vue
浏览文件 @
89f60d93
...
...
@@ -606,9 +606,7 @@ init()
/* 套表 */
.excel_charts_item
{
background-color
:
var
(
--
el-bg-color-overlay
);
margin-top
:
20px
;
width
:
100%
;
/* 图容器 */
.echarts_wrap
{
...
...
src/views/bi/store/index.vue
浏览文件 @
89f60d93
...
...
@@ -289,9 +289,6 @@ getList()
<
style
scoped
lang=
"scss"
>
.content
{
background-color
:
var
(
--
el-bg-color-overlay
);
width
:
100%
;
.el-radio-group
{
.el-radio
{
margin-bottom
:
10px
;
...
...
src/views/index.vue
浏览文件 @
89f60d93
...
...
@@ -74,6 +74,7 @@ const handleSetLineChartData = (type) => {
>
div
{
padding
:
0
;
background-color
:
transparent
;
}
.chart-wrapper
{
...
...
src/views/system/dept/index.vue
浏览文件 @
89f60d93
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryRef"
:inline=
"true"
v-show=
"showSearch"
>
<el-form-item
label=
"部门名称"
prop=
"deptName"
>
<el-input
v-model=
"queryParams.deptName"
<div>
<el-form
:model=
"queryParams"
ref=
"queryRef"
:inline=
"true"
v-show=
"showSearch"
>
<el-form-item
label=
"部门名称"
prop=
"deptName"
>
<el-input
v-model=
"queryParams.deptName"
placeholder=
"请输入部门名称"
clearable
style=
"width: 200px"
@
keyup
.
enter=
"handleQuery"
/>
@
keyup
.
enter=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"部门状态"
clearable
style=
"width: 200px"
>
<el-option
v-for=
"dict in sys_normal_disable"
<el-form-item
label=
"状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"部门状态"
clearable
style=
"width: 200px"
>
<el-option
v-for=
"dict in sys_normal_disable"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"Search"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"Refresh"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
type=
"primary"
icon=
"Search"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"Refresh"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
<el-button
type=
"primary"
plain
icon=
"Plus"
@
click=
"handleAdd"
v-hasPermi=
"['system:dept:add']"
>
新增
</el-button>
v-hasPermi=
"['system:dept:add']"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"info"
<el-button
type=
"info"
plain
icon=
"Sort"
@
click=
"toggleExpandAll"
>
展开/折叠
</el-button>
@
click=
"toggleExpandAll"
>
展开/折叠
</el-button>
</el-col>
<right-toolbar
v-model:showSearch=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
v-model:showSearch=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-if=
"refreshTable"
<el-table
v-if=
"refreshTable"
v-loading=
"loading"
:data=
"deptList"
row-key=
"deptId"
:default-expand-all=
"isExpandAll"
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }"
>
<el-table-column
prop=
"deptName"
label=
"部门名称"
width=
"260"
></el-table-column>
<el-table-column
prop=
"orderNum"
label=
"排序"
width=
"200"
></el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
width=
"100"
>
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }">
<el-table-column
prop=
"deptName"
label=
"部门名称"
width=
"260"
></el-table-column>
<el-table-column
prop=
"orderNum"
label=
"排序"
width=
"200"
></el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
width=
"100"
>
<template
#
default=
"scope"
>
<dict-tag
:options=
"sys_normal_disable"
:value=
"scope.row.status"
/>
<dict-tag
:options=
"sys_normal_disable"
:value=
"scope.row.status"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"200"
>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"200"
>
<
template
#
default=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
#
default=
"scope"
>
<el-button
link
type=
"primary"
icon=
"Edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['system:dept:edit']"
>
修改
</el-button>
<el-button
link
type=
"primary"
icon=
"Plus"
@
click=
"handleAdd(scope.row)"
v-hasPermi=
"['system:dept:add']"
>
新增
</el-button>
<el-button
v-if=
"scope.row.parentId != 0"
link
type=
"primary"
icon=
"Delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:dept:remove']"
>
删除
</el-button>
<el-button
link
type=
"primary"
icon=
"Edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['system:dept:edit']"
>
修改
</el-button>
<el-button
link
type=
"primary"
icon=
"Plus"
@
click=
"handleAdd(scope.row)"
v-hasPermi=
"['system:dept:add']"
>
新增
</el-button>
<el-button
v-if=
"scope.row.parentId != 0"
link
type=
"primary"
icon=
"Delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:dept:remove']"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<!-- 添加或修改部门对话框 -->
<el-dialog
:title=
"title"
v-model=
"open"
width=
"600px"
append-to-body
>
<el-form
ref=
"deptRef"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-dialog
:title=
"title"
v-model=
"open"
width=
"600px"
append-to-body
>
<el-form
ref=
"deptRef"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-row>
<el-col
:span=
"24"
v-if=
"form.parentId !== 0"
>
<el-form-item
label=
"上级部门"
prop=
"parentId"
>
<el-tree-select
v-model=
"form.parentId"
<el-col
:span=
"24"
v-if=
"form.parentId !== 0"
>
<el-form-item
label=
"上级部门"
prop=
"parentId"
>
<el-tree-select
v-model=
"form.parentId"
:data=
"deptOptions"
:props=
"{ value: 'deptId', label: 'deptName', children: 'children' }"
value-key=
"deptId"
placeholder=
"选择上级部门"
check-strictly
/>
check-strictly
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"部门名称"
prop=
"deptName"
>
<el-input
v-model=
"form.deptName"
placeholder=
"请输入部门名称"
/>
<el-form-item
label=
"部门名称"
prop=
"deptName"
>
<el-input
v-model=
"form.deptName"
placeholder=
"请输入部门名称"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"显示排序"
prop=
"orderNum"
>
<el-input-number
v-model=
"form.orderNum"
controls-position=
"right"
:min=
"0"
/>
<el-form-item
label=
"显示排序"
prop=
"orderNum"
>
<el-input-number
v-model=
"form.orderNum"
controls-position=
"right"
:min=
"0"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"负责人"
prop=
"leader"
>
<el-input
v-model=
"form.leader"
placeholder=
"请输入负责人"
maxlength=
"20"
/>
<el-form-item
label=
"负责人"
prop=
"leader"
>
<el-input
v-model=
"form.leader"
placeholder=
"请输入负责人"
maxlength=
"20"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系电话"
prop=
"phone"
>
<el-input
v-model=
"form.phone"
placeholder=
"请输入联系电话"
maxlength=
"11"
/>
<el-form-item
label=
"联系电话"
prop=
"phone"
>
<el-input
v-model=
"form.phone"
placeholder=
"请输入联系电话"
maxlength=
"11"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"邮箱"
prop=
"email"
>
<el-input
v-model=
"form.email"
placeholder=
"请输入邮箱"
maxlength=
"50"
/>
<el-form-item
label=
"邮箱"
prop=
"email"
>
<el-input
v-model=
"form.email"
placeholder=
"请输入邮箱"
maxlength=
"50"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"部门状态"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio
v-for=
"dict in sys_normal_disable"
<el-radio
v-for=
"dict in sys_normal_disable"
:key=
"dict.value"
:value=
"dict.value"
>
{{ dict.label }}
</el-radio>
:value=
"dict.value"
>
{{ dict.label }}
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
...
...
@@ -132,30 +179,33 @@
</el-form>
<
template
#
footer
>
<div
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</
template
>
</el-dialog>
</div>
</div>
</template>
<
script
setup
name=
"Dept"
>
import
{
listDept
,
getDept
,
delDept
,
addDept
,
updateDept
,
listDeptExcludeChild
}
from
"@/api"
;
<
script
setup
name=
"Dept"
>
import
{
listDept
,
getDept
,
delDept
,
addDept
,
updateDept
,
listDeptExcludeChild
}
from
"@/api"
;
const
{
proxy
}
=
getCurrentInstance
();
const
{
sys_normal_disable
}
=
proxy
.
useDict
(
"sys_normal_disable"
);
const
{
proxy
}
=
getCurrentInstance
();
const
{
sys_normal_disable
}
=
proxy
.
useDict
(
"sys_normal_disable"
);
const
deptList
=
ref
([]);
const
open
=
ref
(
false
);
const
loading
=
ref
(
true
);
const
showSearch
=
ref
(
true
);
const
title
=
ref
(
""
);
const
deptOptions
=
ref
([]);
const
isExpandAll
=
ref
(
true
);
const
refreshTable
=
ref
(
true
);
const
deptList
=
ref
([]);
const
open
=
ref
(
false
);
const
loading
=
ref
(
true
);
const
showSearch
=
ref
(
true
);
const
title
=
ref
(
""
);
const
deptOptions
=
ref
([]);
const
isExpandAll
=
ref
(
true
);
const
refreshTable
=
ref
(
true
);
const
data
=
reactive
({
const
data
=
reactive
({
form
:
{},
queryParams
:
{
deptName
:
undefined
,
...
...
@@ -168,28 +218,28 @@ const data = reactive({
email
:
[{
type
:
"email"
,
message
:
"请输入正确的邮箱地址"
,
trigger
:
[
"blur"
,
"change"
]
}],
phone
:
[{
pattern
:
/^1
[
3|4|5|6|7|8|9
][
0-9
]\d{8}
$/
,
message
:
"请输入正确的手机号码"
,
trigger
:
"blur"
}]
},
});
});
const
{
queryParams
,
form
,
rules
}
=
toRefs
(
data
);
const
{
queryParams
,
form
,
rules
}
=
toRefs
(
data
);
/** 查询部门列表 */
function
getList
()
{
/** 查询部门列表 */
function
getList
()
{
loading
.
value
=
true
;
listDept
(
queryParams
.
value
).
then
(
response
=>
{
deptList
.
value
=
proxy
.
handleTree
(
response
.
data
,
"deptId"
);
loading
.
value
=
false
;
});
}
}
/** 取消按钮 */
function
cancel
()
{
/** 取消按钮 */
function
cancel
()
{
open
.
value
=
false
;
reset
();
}
}
/** 表单重置 */
function
reset
()
{
/** 表单重置 */
function
reset
()
{
form
.
value
=
{
deptId
:
undefined
,
parentId
:
undefined
,
...
...
@@ -201,21 +251,21 @@ function reset() {
status
:
"0"
};
proxy
.
resetForm
(
"deptRef"
);
}
}
/** 搜索按钮操作 */
function
handleQuery
()
{
/** 搜索按钮操作 */
function
handleQuery
()
{
getList
();
}
}
/** 重置按钮操作 */
function
resetQuery
()
{
/** 重置按钮操作 */
function
resetQuery
()
{
proxy
.
resetForm
(
"queryRef"
);
handleQuery
();
}
}
/** 新增按钮操作 */
function
handleAdd
(
row
)
{
/** 新增按钮操作 */
function
handleAdd
(
row
)
{
reset
();
listDept
().
then
(
response
=>
{
deptOptions
.
value
=
proxy
.
handleTree
(
response
.
data
,
"deptId"
);
...
...
@@ -225,19 +275,19 @@ function handleAdd(row) {
}
open
.
value
=
true
;
title
.
value
=
"添加部门"
;
}
}
/** 展开/折叠操作 */
function
toggleExpandAll
()
{
/** 展开/折叠操作 */
function
toggleExpandAll
()
{
refreshTable
.
value
=
false
;
isExpandAll
.
value
=
!
isExpandAll
.
value
;
nextTick
(()
=>
{
refreshTable
.
value
=
true
;
});
}
}
/** 修改按钮操作 */
function
handleUpdate
(
row
)
{
/** 修改按钮操作 */
function
handleUpdate
(
row
)
{
reset
();
listDeptExcludeChild
(
row
.
deptId
).
then
(
response
=>
{
deptOptions
.
value
=
proxy
.
handleTree
(
response
.
data
,
"deptId"
);
...
...
@@ -247,10 +297,10 @@ function handleUpdate(row) {
open
.
value
=
true
;
title
.
value
=
"修改部门"
;
});
}
}
/** 提交按钮 */
function
submitForm
()
{
/** 提交按钮 */
function
submitForm
()
{
proxy
.
$refs
[
"deptRef"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
form
.
value
.
deptId
!=
undefined
)
{
...
...
@@ -268,17 +318,17 @@ function submitForm() {
}
}
});
}
}
/** 删除按钮操作 */
function
handleDelete
(
row
)
{
proxy
.
$modal
.
confirm
(
'是否确认删除名称为"'
+
row
.
deptName
+
'"的数据项?'
).
then
(
function
()
{
/** 删除按钮操作 */
function
handleDelete
(
row
)
{
proxy
.
$modal
.
confirm
(
'是否确认删除名称为"'
+
row
.
deptName
+
'"的数据项?'
).
then
(
function
()
{
return
delDept
(
row
.
deptId
);
}).
then
(()
=>
{
getList
();
proxy
.
$modal
.
msgSuccess
(
"删除成功"
);
}).
catch
(()
=>
{
});
}
}).
catch
(()
=>
{
});
}
getList
();
getList
();
</
script
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论