Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
qr-consistency-vue3
Commits
d0909569
Commit
d0909569
authored
Apr 12, 2025
by
Mr.Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色管理 制造商信息
parent
1181abe5
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
152 additions
and
101 deletions
+152
-101
factoryFormatter.js
src/utils/factoryFormatter.js
+12
-0
index.vue
src/views/system/basicdata/index.vue
+133
-92
index.vue
src/views/system/role/index.vue
+7
-9
No files found.
src/utils/factoryFormatter.js
0 → 100644
View file @
d0909569
// utils/factoryFormatter.js
export
function
formatFactories
(
factoryJson
)
{
if
(
!
factoryJson
)
return
''
;
try
{
const
factoryObj
=
JSON
.
parse
(
factoryJson
);
return
Object
.
values
(
factoryObj
).
join
(
'、'
);
}
catch
(
e
)
{
console
.
error
(
'解析制造工厂JSON失败:'
,
e
);
return
factoryJson
;
// 如果解析失败,返回原始数据
}
}
src/views/system/basicdata/index.vue
View file @
d0909569
This diff is collapsed.
Click to expand it.
src/views/system/role/index.vue
View file @
d0909569
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<el-form-item
label=
"角色名称"
prop=
"roleName"
>
<el-form-item
label=
"角色名称"
prop=
"roleName"
>
<el-input
<el-input
v-model=
"queryParams.roleName"
v-model=
"queryParams.roleName"
placeholder=
"
请输入
角色名称"
placeholder=
"角色名称"
clearable
clearable
style=
"width: 240px"
style=
"width: 240px"
@
keyup
.
enter=
"handleQuery"
@
keyup
.
enter=
"handleQuery"
...
@@ -43,11 +43,7 @@
...
@@ -43,11 +43,7 @@
@
click=
"handleAdd"
@
click=
"handleAdd"
>
新建角色
</el-button>
>
新建角色
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
</el-row>
<!-- 表格数据 -->
<!-- 表格数据 -->
<el-table
<el-table
...
@@ -55,22 +51,24 @@
...
@@ -55,22 +51,24 @@
:data=
"roleList"
:data=
"roleList"
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
>
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/
>
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
--
>
<el-table-column
label=
"序号"
prop=
"roleId"
width=
"120"
/>
<el-table-column
label=
"序号"
prop=
"roleId"
width=
"120"
align=
"center"
/>
<el-table-column
<el-table-column
label=
"角色名称"
label=
"角色名称"
prop=
"roleName"
prop=
"roleName"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
width=
"150"
width=
"150"
align=
"center"
/>
/>
<el-table-column
<el-table-column
label=
"权限字符"
label=
"权限字符"
prop=
"roleKey"
prop=
"roleKey"
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
width=
"150"
width=
"150"
align=
"center"
/>
/>
<el-table-column
label=
"显示顺序"
prop=
"roleSort"
width=
"100"
/>
<el-table-column
label=
"显示顺序"
prop=
"roleSort"
width=
"100"
align=
"center"
/>
<el-table-column
label=
"角色状态"
align=
"center"
width=
"100"
>
<el-table-column
label=
"角色状态"
align=
"center"
width=
"100"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<el-switch
<el-switch
v-model=
"scope.row.status"
v-model=
"scope.row.status"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment