Commit d0909569 authored by Mr.Tang's avatar Mr.Tang

角色管理 制造商信息

parent 1181abe5
// 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; // 如果解析失败,返回原始数据
}
}
This diff is collapsed.
...@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment