|
|
@@ -6,12 +6,12 @@ const tableRef = ref()
|
|
|
const modalRef = ref()
|
|
|
const opts = reactive({
|
|
|
columns: [
|
|
|
- { field: "orgId", name: "部门编号", visible: false },
|
|
|
- { field: "orgName", name: "部门名称", visible: true },
|
|
|
+ { field: "orgId", name: "组织结构编号", visible: false },
|
|
|
+ { field: "orgName", name: "组织结构名称", visible: true },
|
|
|
{ field: "leaderName", name: "负责人", visible: true },
|
|
|
{ field: "phone", name: "联系电话", visible: true },
|
|
|
{ field: "email", name: "邮箱", visible: true },
|
|
|
- { field: "status", name: "部门状态", visible: true, width: 100 },
|
|
|
+ { field: "status", name: "组织结构状态", visible: true, width: 100 },
|
|
|
{ field: "createTime", name: "创建时间", visible: true, width: 185 },
|
|
|
{ field: "actions", name: `操作`, width: 150 }
|
|
|
],
|
|
|
@@ -22,10 +22,10 @@ const opts = reactive({
|
|
|
searchFormItems: [
|
|
|
{
|
|
|
field: "orgName",
|
|
|
- label: "部门名称",
|
|
|
+ label: "组织结构名称",
|
|
|
class: "w-100",
|
|
|
required: false,
|
|
|
- placeholder: "请输入部门名称",
|
|
|
+ placeholder: "请输入组织结构名称",
|
|
|
listeners: {
|
|
|
keyup: (e: KeyboardEvent) => {
|
|
|
if (e.code == "Enter") {
|
|
|
@@ -36,12 +36,12 @@ const opts = reactive({
|
|
|
},
|
|
|
{
|
|
|
field: "status",
|
|
|
- label: "部门状态",
|
|
|
+ label: "组织结构状态",
|
|
|
class: "w-100",
|
|
|
required: false,
|
|
|
component: "Dict",
|
|
|
props: {
|
|
|
- placeholder: "请选择部门状态",
|
|
|
+ placeholder: "请选择组织结构状态",
|
|
|
dictType: "sys_normal_disable"
|
|
|
}
|
|
|
}
|
|
|
@@ -67,14 +67,14 @@ const opts = reactive({
|
|
|
deleteEntityFun: apis.system.orgApi.delOrg,
|
|
|
//exportUrl: apis.system.orgApi.exportUrl,
|
|
|
exportName: "O",
|
|
|
- modalTitle: "部门",
|
|
|
+ modalTitle: "组织结构",
|
|
|
resetForm: () => {
|
|
|
form.value = emptyFormData.value
|
|
|
getOrgTreeSelect()
|
|
|
},
|
|
|
formRules: {
|
|
|
- parentId: [{ required: true, message: "父部门不能为空", trigger: "blur" }],
|
|
|
- orgName: [{ required: true, message: "部门名称不能为空", trigger: "blur" }],
|
|
|
+ parentId: [{ required: true, message: "父组织结构不能为空", trigger: "blur" }],
|
|
|
+ orgName: [{ required: true, message: "组织结构名称不能为空", trigger: "blur" }],
|
|
|
orderNum: [{ required: true, message: "显示排序不能为空", trigger: "blur" }],
|
|
|
email: [{ type: "email", message: "请输入正确的邮箱地址", trigger: ["blur", "change"] }],
|
|
|
phone: [
|
|
|
@@ -171,7 +171,7 @@ function handleDelete(rows: any[]) {
|
|
|
const ids = rows.map((v: any) => v.orgId)
|
|
|
const _orgNames = rows.map((v: any) => v.orgName)
|
|
|
message
|
|
|
- .confirm('是否确认删除部门为"' + _orgNames + '"的数据项?')
|
|
|
+ .confirm('是否确认删除组织结构为"' + _orgNames + '"的数据项?')
|
|
|
.then(() => {
|
|
|
return apis.system.orgApi.delOrg(ids).then(() => {
|
|
|
handleQuery()
|
|
|
@@ -279,7 +279,7 @@ function getUserListByOrgId(orgId: number) {
|
|
|
<template #form>
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="父部门" prop="parentId">
|
|
|
+ <el-form-item label="父组织结构" prop="parentId">
|
|
|
<el-tree-select
|
|
|
v-model="form.parentId"
|
|
|
:data="orgOptions"
|
|
|
@@ -288,13 +288,13 @@ function getUserListByOrgId(orgId: number) {
|
|
|
value-key="orgId"
|
|
|
:render-after-expand="false"
|
|
|
:default-expand-all="true"
|
|
|
- placeholder="选择上级部门"
|
|
|
+ placeholder="选择上级组织结构"
|
|
|
check-strictly />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="部门名称" prop="orgName">
|
|
|
- <el-input v-model="form.orgName" placeholder="请输入部门名称" />
|
|
|
+ <el-form-item label="组织结构名称" prop="orgName">
|
|
|
+ <el-input v-model="form.orgName" placeholder="请输入组织结构名称" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
@@ -328,7 +328,7 @@ function getUserListByOrgId(orgId: number) {
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="部门状态" prop="status">
|
|
|
+ <el-form-item label="组织结构状态" prop="status">
|
|
|
<el-radio-group v-model="form.status">
|
|
|
<el-radio v-for="dict in sys_normal_disable" :key="dict.value" :label="dict.value">
|
|
|
{{ dict.label }}
|