Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
dqms-manage
Project
Project
Details
Activity
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
zhangzhaohui
dqms-manage
Commits
4b54de36
Commit
4b54de36
authored
Nov 22, 2022
by
zhangzhaohui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加清空表按钮
parent
f41db662
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
5 deletions
+28
-5
.gitignore
.gitignore
+3
-1
index.html
public/index.html
+2
-1
dqpersonel.vue
src/views/modules/dq/dqpersonel.vue
+23
-3
No files found.
.gitignore
View file @
4b54de36
node_modules
\ No newline at end of file
node_modules
dist
dist.zip
\ No newline at end of file
public/index.html
View file @
4b54de36
...
...
@@ -9,7 +9,8 @@
window
.
SITE_CONFIG
=
{};
window
.
SITE_CONFIG
[
'version'
]
=
'v1.0.0'
;
window
.
SITE_CONFIG
[
'nodeEnv'
]
=
'<%= process.env.VUE_APP_NODE_ENV %>'
;
window
.
SITE_CONFIG
[
'apiURL'
]
=
'http://192.168.10.39:18000/hmit-admin'
;
// api请求地址
window
.
SITE_CONFIG
[
'apiURL'
]
=
'http://119.3.50.187:8096/hmit-admin'
;
// api请求地址
// window.SITE_CONFIG['apiURL'] = 'http://192.168.10.39:8096/hmit-admin'; // api请求地址
window
.
SITE_CONFIG
[
'storeState'
]
=
{};
// vuex本地储存初始化状态(用于不刷新页面的情况下,也能重置初始化项目中所有状态)
window
.
SITE_CONFIG
[
'contentTabDefault'
]
=
{
// 内容标签页默认属性对象
'name'
:
''
,
// 名称, 由 this.$route.name 自动赋值(默认,名称 === 路由名称 === 路由路径)
...
...
src/views/modules/dq/dqpersonel.vue
View file @
4b54de36
...
...
@@ -2,12 +2,12 @@
<el-card
shadow=
"never"
class=
"aui-card--fill"
>
<div
class=
"mod-dq__dqpersonel}"
>
<el-form
:inline=
"true"
:model=
"dataForm"
@
keyup
.
enter
.
native=
"getDataList()"
>
<el-form-item>
<
!--
<
el-form-item>
<el-input
v-model=
"dataForm.id"
placeholder=
"id"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
@
click=
"getDataList()"
>
{{
$t
(
'query'
)
}}
</el-button>
</el-form-item>
</el-form-item>
-->
<el-form-item>
<el-button
type=
"info"
@
click=
"exportHandle()"
>
{{
$t
(
'export'
)
}}
</el-button>
</el-form-item>
...
...
@@ -20,10 +20,13 @@
<el-form-item>
<el-button
type=
"primary"
:loading=
"uploading"
@
click=
"importExcel"
>
导入
</el-button>
</el-form-item>
<el-form-item>
<el-button
v-if=
"$hasPermission('dq:dqpersonel:delete')"
type=
"danger"
@
click=
"deleteAll"
>
清空表
</el-button>
</el-form-item>
</el-form>
<el-table
v-loading=
"dataListLoading"
:data=
"dataList"
border
@
selection-change=
"dataListSelectionChangeHandle"
style=
"width: 100%;"
>
<el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column>
<
el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column
>
<
!--
<el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<el-table-column
prop=
"name"
label=
"用户名"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"idcardType"
label=
"证件类型"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"idcard"
label=
"证件号码"
header-align=
"center"
align=
"center"
></el-table-column>
...
...
@@ -114,6 +117,23 @@ export default {
AddOrUpdate
},
methods
:
{
deleteAll
()
{
this
.
$confirm
(
'是否确认清空表数据'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$http
.
delete
(
"/dq/dqpersonel/delall"
)
.
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
);
}
this
.
$message
.
success
(
'删除成功'
);
this
.
getDataList
();
});
})
},
importExcel
()
{
this
.
$refs
.
uploadRef
.
dispatchEvent
(
new
MouseEvent
(
"click"
));
},
...
...
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