Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
薪
薪瑞通-前端
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
许珑标
薪瑞通-前端
Commits
a92df261
Commit
a92df261
authored
Jan 07, 2025
by
谢子梦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
647a0851
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
23 deletions
+12
-23
public/userImportTemplate.xlsx
public/userImportTemplate.xlsx
+0
-0
src/store/modules/permission.js
src/store/modules/permission.js
+1
-1
src/views/business/outPersonal/index.vue
src/views/business/outPersonal/index.vue
+11
-22
No files found.
public/userImportTemplate.xlsx
0 → 100644
View file @
a92df261
File added
src/store/modules/permission.js
View file @
a92df261
...
...
@@ -126,7 +126,7 @@ export const loadView = (view) => {
return
(
resolve
)
=>
require
([
`@/views/
${
view
}
`
],
resolve
)
}
else
{
// 使用 import 实现生产环境的路由懒加载
return
()
=>
import
(
`@/views/
${
view
}
`
)
return
()
=>
require
(
`@/views/
${
view
}
`
)
}
}
...
...
src/views/business/outPersonal/index.vue
View file @
a92df261
...
...
@@ -38,12 +38,8 @@
v-hasPermi=
"['business:outPersonal:export']"
>
导出
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"info"
icon=
"el-icon-upload2"
@
click=
"upload.open = true"
v-hasPermi=
"['business:outPersonal:add']"
>
导入
</el-button>
<el-button
type=
"info"
icon=
"el-icon-upload2"
@
click=
"upload.open = true"
v-hasPermi=
"['business:outPersonal:add']"
>
导入
</el-button>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
...
...
@@ -55,14 +51,14 @@
<el-table-column
label=
"身份证号"
align=
"center"
prop=
"userCode"
fixed
/>
<el-table-column
label=
"收款账号"
align=
"center"
prop=
"payeeAccNo"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
payeeAccNo
}}
<dict-tag
:options=
"dict.type.payee_acc_type"
:value=
"scope.row.payeeAccType"
/>
{{
scope
.
row
.
payeeAccNo
}}
<dict-tag
:options=
"dict.type.payee_acc_type"
:value=
"scope.row.payeeAccType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"性别"
align=
"center"
prop=
"gender"
/>
<el-table-column
label=
"五险一金承担方式"
align=
"center"
prop=
"bearType"
width=
"110"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.bx_bear_type"
:value=
"scope.row.bearType"
/>
<dict-tag
:options=
"dict.type.bx_bear_type"
:value=
"scope.row.bearType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"岗位名称"
align=
"center"
prop=
"postName"
/>
...
...
@@ -202,18 +198,9 @@
</el-dialog>
<!-- 用户导入对话框 -->
<el-dialog
title=
"导入人员信息"
:visible.sync=
"upload.open"
width=
"400px"
append-to-body
>
<el-upload
ref=
"upload"
:limit=
"1"
accept=
".xlsx, .xls"
:headers=
"upload.headers"
:action=
"upload.url + '?updateSupport=' + upload.updateSupport"
:disabled=
"upload.isUploading"
:on-progress=
"handleFileUploadProgress"
:on-success=
"handleFileSuccess"
:auto-upload=
"false"
drag
>
<el-upload
ref=
"upload"
:limit=
"1"
accept=
".xlsx, .xls"
:headers=
"upload.headers"
:action=
"upload.url + '?updateSupport=' + upload.updateSupport"
:disabled=
"upload.isUploading"
:on-progress=
"handleFileUploadProgress"
:on-success=
"handleFileSuccess"
:auto-upload=
"false"
drag
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<div
class=
"el-upload__tip text-center"
slot=
"tip"
>
...
...
@@ -221,7 +208,9 @@
<el-checkbox
v-model=
"upload.updateSupport"
/>
是否更新已经存在的用户数据
</div>
<span>
仅允许导入xls、xlsx格式文件。
</span>
<el-link
type=
"primary"
:underline=
"false"
style=
"font-size:12px;vertical-align: baseline;"
@
click=
"importTemplate"
>
下载模板
</el-link>
<a
style=
"color:#1890ff;margin:0px;line-height:14px"
class=
"download"
download=
"userImportTemplate"
href=
"/userImportTemplate.xlsx"
target=
"_blank"
>
下载模板
</a>
<!-- <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;" @click="importTemplate">下载模板</el-link> -->
</div>
</el-upload>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
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