Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43301624
Component
提交
4190a3e0
C
Component
项目概览
weixin_43301624
/
Component
与 Fork 源项目一致
Fork自
inscode / VueJS
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Component
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4190a3e0
编写于
11月 20, 2023
作者:
水
水晶土豆
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mon Nov 20 19:31:00 CST 2023 inscode
上级
cd287ae3
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
218 addition
and
1 deletion
+218
-1
src/App.vue
src/App.vue
+2
-0
src/api/api.ts
src/api/api.ts
+3
-1
src/component/humanResources/emp.vue
src/component/humanResources/emp.vue
+10
-0
src/component/humanResources/jobTitle.vue
src/component/humanResources/jobTitle.vue
+173
-0
src/component/humanResources/personnelTransfer.vue
src/component/humanResources/personnelTransfer.vue
+10
-0
src/component/humanResources/resignation.vue
src/component/humanResources/resignation.vue
+10
-0
src/component/materialApplication/deviceManagement/deviceManagement.vue
...materialApplication/deviceManagement/deviceManagement.vue
+10
-0
未找到文件。
src/App.vue
浏览文件 @
4190a3e0
...
@@ -4,6 +4,7 @@ import contractCategory from './component/contractManagement/contractCategory/co
...
@@ -4,6 +4,7 @@ import contractCategory from './component/contractManagement/contractCategory/co
import
register
from
'
./component/userLogin/login-dialog-button.vue
'
import
register
from
'
./component/userLogin/login-dialog-button.vue
'
import
announcementType
from
'
./component/enterpriseAnnouncement/announcementType.vue
'
;
import
announcementType
from
'
./component/enterpriseAnnouncement/announcementType.vue
'
;
import
departments
from
'
./component/humanResources/department.vue
'
import
departments
from
'
./component/humanResources/department.vue
'
import
jobTitle
from
'
./component/humanResources/jobTitle.vue
'
;
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -11,6 +12,7 @@ import departments from './component/humanResources/department.vue'
...
@@ -11,6 +12,7 @@ import departments from './component/humanResources/department.vue'
<contract-list></contract-list>
<contract-list></contract-list>
<!--
<announcementType></announcementType>
<!--
<announcementType></announcementType>
<departments></departments>
-->
<departments></departments>
-->
<job-title></job-title>
<el-row>
<el-row>
<el-col>
后台管理平台
</el-col>
<el-col>
后台管理平台
</el-col>
</el-row>
</el-row>
...
...
src/api/api.ts
浏览文件 @
4190a3e0
...
@@ -49,4 +49,6 @@ export function getContractListType(): Promise<AxiosResponse<any>>{
...
@@ -49,4 +49,6 @@ export function getContractListType(): Promise<AxiosResponse<any>>{
export
function
getHumanResourcesDepartment
():
Promise
<
AxiosResponse
<
any
>>
{
export
function
getHumanResourcesDepartment
():
Promise
<
AxiosResponse
<
any
>>
{
return
request
.
get
(
HUMAN_RESOURCES_DEPARTMENT
,
{});
return
request
.
get
(
HUMAN_RESOURCES_DEPARTMENT
,
{});
}
}
\ No newline at end of file
// export function
\ No newline at end of file
src/component/humanResources/emp.vue
0 → 100644
浏览文件 @
4190a3e0
<
script
setup
>
</
script
>
<
template
>
</
template
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/component/humanResources/jobTitle.vue
0 → 100644
浏览文件 @
4190a3e0
<
script
setup
>
import
mains
from
'
@/component/main/main.vue
'
import
headers
from
'
@/component/main/header/header.vue
'
;
import
addDownload
from
'
@/component/main/header/add_download/addDownload.vue
'
;
import
buttoner
from
'
@/component/main/header/add_download/button.vue
'
;
import
downloadItem
from
'
@/component/main/header/add_download/downloadItem.vue
'
;
import
ejectDialog
from
'
@/component/main/ejectDialog.vue
'
;
import
{
ref
,
provide
,
onMounted
}
from
'
vue
'
;
import
{
getHumanResourcesDepartment
}
from
'
@/api/api
'
;
import
{
FlatToTree
}
from
'
@/util/toTree
'
;
import
{
deepClone
}
from
'
@/util/deepCode
'
;
import
{
computed
}
from
'
@vue/reactivity
'
;
let
tableData
=
ref
([
])
let
respData
=
ref
();
const
getData
=
()
=>
{
getHumanResourcesDepartment
().
then
((
res
)
=>
{
respData
.
value
=
res
.
data
.
data
.
data
;
tableData
.
value
=
FlatToTree
(
deepClone
(
res
.
data
.
data
.
data
)).
tree
;
})
}
onMounted
(
async
()
=>
{
getData
();
})
let
tableType
=
ref
([
{
name
:
"
id号
"
,
type
:
"
id
"
,
width
:
"
150px
"
,
isSort
:
false
,
align
:
"
center
"
},
{
name
:
'
上级ID
'
,
type
:
"
parentID
"
,
width
:
"
80px
"
,
isSort
:
false
,
align
:
"
left
"
},
{
name
:
'
部门名称
'
,
type
:
"
departmentName
"
,
width
:
"
auto
"
,
isSort
:
false
,
align
:
"
center
"
},
{
name
:
"
排序
"
,
type
:
"
sort
"
,
width
:
"
100px
"
,
isSort
:
true
,
align
:
"
center
"
},
{
name
:
'
部门负责人
'
,
type
:
"
departmentHead
"
,
width
:
"
100px
"
,
isSort
:
false
,
align
:
"
center
"
},
{
name
:
'
部门电话
'
,
type
:
"
departmentPhone
"
,
width
:
"
200px
"
,
isSort
:
false
,
align
:
"
center
"
},
{
name
:
'
状态
'
,
type
:
'
state
'
,
width
:
'
120px
'
,
}
]
);
let
operation
=
ref
({
type
:
[
"
details
"
,
"
edit
"
,
"
delete
"
],
width
:
"
220px
"
});
const
addDept
=
ref
();
const
addSubDept
=
ref
();
const
editDept
=
computed
({
get
:
()
=>
{
return
row
.
value
.
departmentName
;
},
set
:
(
val
)
=>
{
row
.
value
.
departmentName
=
val
;
getData
();
}
})
const
cellStyle
=
({
row
,
column
,
rowIndex
,
columnIndex
})
=>
{
if
(
column
.
property
===
"
state
"
)
{
if
(
row
.
state
==
"
正常
"
)
return
{
color
:
"
#16b777
"
};
}
return
;
}
const
addDialog
=
ref
(
false
);
const
addSubcategoriesDialog
=
ref
(
false
);
const
disabledDialog
=
ref
(
false
);
const
detailsDialog
=
ref
(
false
);
const
editDialog
=
ref
(
false
);
const
deleteDialog
=
ref
(
false
);
const
row
=
ref
();
provide
(
"
addSubcategoriesDialog
"
,
addSubcategoriesDialog
);
provide
(
"
disabledDialog
"
,
disabledDialog
);
provide
(
"
detailsDialog
"
,
detailsDialog
);
provide
(
"
editDialog
"
,
editDialog
);
provide
(
"
deleteDialog
"
,
deleteDialog
);
provide
(
"
tableData
"
,
tableData
);
provide
(
"
row
"
,
row
);
provide
(
"
changeState
"
,
()
=>
{
console
.
log
(
1111
);
})
provide
(
"
subString
"
,
"
子部门
"
);
provide
(
"
cellSetStyle
"
,
({
row
,
column
,
rowIndex
,
columnIndex
})
=>
{
if
(
column
.
property
===
"
state
"
)
{
if
(
row
.
state
==
"
正常
"
)
{
return
{
color
:
"
#16b777
"
};
}
else
if
(
row
.
state
==
"
禁用
"
)
{
return
{
color
:
"
#F56C6C
"
}
}
}
return
;
});
</
script
>
<
template
>
<mains
:tableType=
"tableType"
:operation=
"operation"
>
<headers>
<!--
<headerFmainsorm></headerForm>
-->
<addDownload>
<buttoner
class=
"left"
@
openDialog=
"addDialog = true"
>
添加岗位
</buttoner>
<downloadItem></downloadItem>
</addDownload>
</headers>
<ejectDialog
v-model:openDialog=
"addDialog"
>
<template
#header
>
添加岗位
</
template
>
<el-input
v-model=
"addDept"
></el-input>
</ejectDialog>
<ejectDialog
v-model:openDialog=
"addSubcategoriesDialog"
>
<
template
#header
>
详情
</
template
>
<el-input
v-model=
"addSubDept"
></el-input>
</ejectDialog>
<ejectDialog
v-model:openDialog=
"editDialog"
>
<
template
#header
>
编辑
</
template
>
<el-input
v-model=
"editDept"
></el-input>
</ejectDialog>
<ejectDialog
v-model:openDialog=
"deleteDialog"
>
<
template
#header
>
删除
</
template
>
</ejectDialog>
</mains>
</template>
<
style
scoped
>
.left
{
margin-right
:
auto
;
}
</
style
>
src/component/humanResources/personnelTransfer.vue
0 → 100644
浏览文件 @
4190a3e0
<
script
setup
>
</
script
>
<
template
>
</
template
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/component/humanResources/resignation.vue
0 → 100644
浏览文件 @
4190a3e0
<
script
setup
>
</
script
>
<
template
>
</
template
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/component/materialApplication/deviceManagement/deviceManagement.vue
0 → 100644
浏览文件 @
4190a3e0
<
script
setup
>
</
script
>
<
template
>
</
template
>
<
style
scoped
>
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录