Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
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
常超
founder_vue
Commits
5a9c9dab
Commit
5a9c9dab
authored
Sep 23, 2021
by
米嘉伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全部人员库接口
parent
dce5ebfc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
314 additions
and
19 deletions
+314
-19
src/views/AllPersonnelBase/AllPersonnelBase.vue
+75
-9
src/views/AllPersonnelBase/modules/dcftpx.vue
+0
-0
src/views/AllPersonnelBase/modules/ggrytm.vue
+36
-9
src/views/AllPersonnelBase/modules/gz.vue
+179
-0
src/views/AllPersonnelBase/modules/tjddl.vue
+24
-1
No files found.
src/views/AllPersonnelBase/AllPersonnelBase.vue
View file @
5a9c9dab
...
@@ -53,8 +53,14 @@
...
@@ -53,8 +53,14 @@
class=
"btn"
class=
"btn"
@
click=
"getBarcode"
@
click=
"getBarcode"
>
复制条码
</div>
>
复制条码
</div>
<div
class=
"btn"
>
导出FTPX
</div>
<div
<div
class=
"btn"
>
关注
</div>
class=
"btn"
@
click=
"isShowDcftpxBtn"
>
导出FTPX
</div>
<div
class=
"btn"
@
click=
"isShowGzBtn"
>
关注
</div>
<div
<div
class=
"btn"
class=
"btn"
@
click=
"delMore"
@
click=
"delMore"
...
@@ -196,7 +202,7 @@
...
@@ -196,7 +202,7 @@
>
>
<div
<div
class=
"icon sc"
class=
"icon sc"
@
click=
"
handleClick
(scope.row)"
@
click=
"
isShowGzBtn1
(scope.row)"
>
>
<img
<img
src=
"../../assets/img/qbryk/sc.png"
src=
"../../assets/img/qbryk/sc.png"
...
@@ -316,6 +322,18 @@
...
@@ -316,6 +322,18 @@
:rowData=
"rowData"
:rowData=
"rowData"
@
closeTjddl=
"closeTjddl"
@
closeTjddl=
"closeTjddl"
></tjddl>
></tjddl>
<!-- 关注弹窗 -->
<gz
:isShowGz=
"isShowGz"
:rowData=
"rowData"
@
closeGz=
"closeGz"
></gz>
<!-- 导出FTPX弹窗 -->
<dcftpx
:isShowDcftpx=
"isShowDcftpx"
:rowData=
"rowData"
@
closeDcftpx=
"closeDcftpx"
></dcftpx>
<!-- 复制数据弹窗 -->
<!-- 复制数据弹窗 -->
<fztm
<fztm
:isShowFztm=
"isShowFztm"
:isShowFztm=
"isShowFztm"
...
@@ -336,19 +354,25 @@
...
@@ -336,19 +354,25 @@
<
script
>
<
script
>
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
tjddl
from
"./modules/tjddl.vue"
// 添加到队列弹窗
import
tjddl
from
"./modules/tjddl.vue"
// 添加到队列弹窗
import
gz
from
"./modules/gz.vue"
// 关注
import
fztm
from
"./modules/fztm.vue"
// 复制数据弹窗
import
fztm
from
"./modules/fztm.vue"
// 复制数据弹窗
import
dcftpx
from
"./modules/dcftpx.vue"
//导出FTPX弹窗
import
ggrytm
from
"./modules/ggrytm.vue"
// 更改人员条码弹窗
import
ggrytm
from
"./modules/ggrytm.vue"
// 更改人员条码弹窗
export
default
{
export
default
{
name
:
'AllPersonnelBase'
,
name
:
'AllPersonnelBase'
,
components
:
{
components
:
{
tjddl
,
tjddl
,
gz
,
fztm
,
fztm
,
dcftpx
,
ggrytm
ggrytm
},
},
data
()
{
data
()
{
return
{
return
{
isSelected
:
false
,
// 是否批量操作
isSelected
:
false
,
// 是否批量操作
isShowTjddl
:
false
,
// 添加到队列
isShowTjddl
:
false
,
// 添加到队列
isShowGz
:
false
,
// 关注
isShowDcftpx
:
false
,
// 导出FTPX
isShowGgrytm
:
false
,
// 更改人员条码
isShowGgrytm
:
false
,
// 更改人员条码
isShowFztm
:
false
,
//复制条码
isShowFztm
:
false
,
//复制条码
rowData
:
{},
// 单行数据
rowData
:
{},
// 单行数据
...
@@ -446,10 +470,6 @@ export default {
...
@@ -446,10 +470,6 @@ export default {
console
.
log
(
this
.
reqParam
.
page
.
checkboxQuery
)
console
.
log
(
this
.
reqParam
.
page
.
checkboxQuery
)
this
.
search
()
this
.
search
()
},
},
// 添加到队列
addList
()
{
console
.
log
(
'添加到队列'
,
this
.
multipleSelection
)
},
// 复制条码号 获取选中条码值
// 复制条码号 获取选中条码值
getBarcode
()
{
getBarcode
()
{
this
.
barcode
=
null
;
this
.
barcode
=
null
;
...
@@ -477,13 +497,59 @@ export default {
...
@@ -477,13 +497,59 @@ export default {
// 添加到队列
// 添加到队列
isShowTjddlBtn
()
{
isShowTjddlBtn
()
{
console
.
log
(
'添加到队列'
)
console
.
log
(
'添加到队列'
)
this
.
rowData
=
this
.
multipleSelection
if
(
this
.
multipleSelection
.
length
===
0
)
{
this
.
isShowTjddl
=
true
;
this
.
$message
.
error
(
"请选择需要添加到队列的数据!"
);
}
else
{
this
.
rowData
=
this
.
multipleSelection
this
.
isShowTjddl
=
true
;
}
},
},
closeTjddl
(
val
)
{
closeTjddl
(
val
)
{
console
.
log
(
'添加到队列关闭'
,
val
)
console
.
log
(
'添加到队列关闭'
,
val
)
this
.
isShowTjddl
=
val
this
.
isShowTjddl
=
val
},
},
// 导出FTPX
isShowDcftpxBtn
()
{
// 多行
console
.
log
(
'导出FTPX'
)
if
(
this
.
multipleSelection
.
length
===
0
)
{
this
.
$message
.
error
(
"请选择需要关注的数据!"
);
}
else
{
this
.
rowData
=
this
.
multipleSelection
this
.
isShowDcftpx
=
true
;
}
},
isShowDcftpxBtn1
(
val
)
{
// 单行
console
.
log
(
val
,
123
)
let
rowVal
=
[];
rowVal
.
push
(
val
)
this
.
rowData
=
rowVal
this
.
isShowDcftpx
=
true
;
},
closeDcftpx
(
val
)
{
console
.
log
(
'导出FTPX关闭'
,
val
)
this
.
isShowDcftpx
=
val
},
// 关注
isShowGzBtn
()
{
// 多行
console
.
log
(
'关注'
)
if
(
this
.
multipleSelection
.
length
===
0
)
{
this
.
$message
.
error
(
"请选择需要关注的数据!"
);
}
else
{
this
.
rowData
=
this
.
multipleSelection
this
.
isShowGz
=
true
;
}
},
isShowGzBtn1
(
val
)
{
// 单行
console
.
log
(
val
,
123
)
let
rowVal
=
[];
rowVal
.
push
(
val
)
this
.
rowData
=
rowVal
this
.
isShowGz
=
true
;
},
closeGz
(
val
)
{
console
.
log
(
'关注关闭'
,
val
)
this
.
isShowGz
=
val
},
// 更改条码操作
// 更改条码操作
isShowGgrytmBtn
(
val
)
{
isShowGgrytmBtn
(
val
)
{
console
.
log
(
'更改条码'
,
val
)
console
.
log
(
'更改条码'
,
val
)
...
...
src/views/AllPersonnelBase/modules/dcftpx.vue
0 → 100644
View file @
5a9c9dab
This diff is collapsed.
Click to expand it.
src/views/AllPersonnelBase/modules/ggrytm.vue
View file @
5a9c9dab
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"修改条码号:"
>
<el-form-item
label=
"修改条码号:"
>
<el-input
<el-input
v-model=
"reqParam.person
StoreCustomSearch.
barcode"
v-model=
"reqParam.person
Do.rfp
barcode"
placeholder=
"请修改条码号"
placeholder=
"请修改条码号"
maxlength=
'22'
maxlength=
'22'
show-word-limit
show-word-limit
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
>
>
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click=
"
dialogVisible = false
"
@
click=
"
updata
"
>
确 定
</el-button>
>
确 定
</el-button>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
...
@@ -57,13 +57,11 @@ export default {
...
@@ -57,13 +57,11 @@ export default {
labelPosition
:
'left'
,
// 标签对齐方式
labelPosition
:
'left'
,
// 标签对齐方式
dialogVisible
:
false
,
// 弹窗状态
dialogVisible
:
false
,
// 弹窗状态
reqParam
:
{
// 请求参数
reqParam
:
{
// 请求参数
// page: {
barcode
:
''
,
//
// total: 0,//表格条数
pid
:
''
,
// 关注ID
// pageSize: 10, //当前选择要显示的条数
ifidcard
:
''
,
//
// currPage: 1 // 当前在第几页
personDo
:
{
// },
rfpbarcode
:
''
,
// 增加条码号
personStoreCustomSearch
:
{
barcode
:
''
,
// 增加条码号
}
}
},
},
};
};
...
@@ -81,6 +79,35 @@ export default {
...
@@ -81,6 +79,35 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
updata
()
{
this
.
reqParam
.
barcode
=
this
.
rowData
.
barcode
;
this
.
reqParam
.
pid
=
this
.
rowData
.
pid
this
.
reqParam
.
ifidcard
=
this
.
rowData
.
ifidcard
// 确认提示
this
.
$confirm
(
"是否确定更改数据?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"info"
})
.
then
(()
=>
{
this
.
$axios
.
put
(
"/api/api/personstore/update"
,
this
.
reqParam
)
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
0
)
{
this
.
$message
.
success
(
"更改成功"
);
this
.
search
();
}
else
{
this
.
$message
.
error
(
"更改失败"
);
}
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消提交"
});
});
},
handleClose
(
done
)
{
handleClose
(
done
)
{
this
.
$confirm
(
'确认关闭?'
)
this
.
$confirm
(
'确认关闭?'
)
.
then
(
_
=>
{
.
then
(
_
=>
{
...
...
src/views/AllPersonnelBase/modules/gz.vue
0 → 100644
View file @
5a9c9dab
<
template
>
<el-dialog
title=
"加入关注人员列表"
:visible
.
sync=
"dialogVisible"
width=
"757px"
append-to-body
:before-close=
"handleClose"
>
<el-table
:data=
"rowData"
:header-cell-style=
"
{background:'#eef1f6',color:'#606266'}"
style="width: 100%"
>
<el-table-column
type=
"index"
label=
"#"
width=
"50"
>
</el-table-column>
<el-table-column
prop=
"barcode"
label=
"条码号"
width=
"240"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"姓名"
width=
"80"
>
</el-table-column>
<el-table-column
prop=
"sex"
label=
"性别"
width=
"80"
>
</el-table-column>
<el-table-column
prop=
"idnumber"
label=
"身份证号"
>
</el-table-column>
</el-table>
<div
class=
'total'
>
<span>
共计
{{
rowData
.
length
}}
条数据
</span>
</div>
<div>
<span
style=
'color:red'
>
*
</span>
备注
</div>
<el-input
type=
"textarea"
:rows=
"5"
placeholder=
"请输入内容"
v-model=
"reqParam.myPerson.comments"
>
</el-input>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"focus"
>
确 定
</el-button>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
</span>
</el-dialog>
</
template
>
<
script
>
export
default
{
name
:
"gz"
,
props
:
{
isShowGz
:
{
type
:
[
Number
,
String
,
Boolean
],
default
:
false
},
rowData
:
{
default
:
false
}
},
data
()
{
return
{
labelPosition
:
'left'
,
// 标签对齐方式
dialogVisible
:
false
,
// 弹窗状态
reqParam
:
{
// 请求参数
pid
:
''
,
// 关注ID
barcode
:
''
,
//条码号
myPerson
:
{
comments
:
''
,
//备注
pid
:
''
,
// 关注ID
barcode
:
''
,
//条码号
}
},
};
},
mounted
()
{
this
.
dialogVisible
=
this
.
isShowGz
;
},
watch
:
{
isShowGz
(
newVal
,
oldVal
)
{
this
.
dialogVisible
=
newVal
;
},
dialogVisible
(
val
)
{
console
.
log
(
this
.
dialogVisible
,
123
)
this
.
$emit
(
'closeGz'
,
this
.
dialogVisible
);
}
},
methods
:
{
focus
()
{
let
barCode
=
[];
let
myPerson
=
[];
for
(
let
i
=
0
;
i
<
this
.
rowData
.
length
;
i
++
)
{
myPerson
.
push
(
this
.
rowData
[
i
].
pid
);
barCode
.
push
(
this
.
rowData
[
i
].
barcode
);
}
this
.
reqParam
.
pid
=
myPerson
[
0
];
this
.
reqParam
.
myPerson
.
pid
=
myPerson
;
this
.
reqParam
.
barcode
=
barCode
[
0
];
this
.
reqParam
.
myPerson
.
barcode
=
barCode
;
console
.
log
(
'关注ID'
,
myPerson
)
// 确认提示
this
.
$confirm
(
"是否确定提交数据?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"info"
})
.
then
(()
=>
{
this
.
$axios
.
post
(
"/api/api/mypsn/add"
,
this
.
reqParam
)
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
0
)
{
this
.
$message
.
success
(
"关注成功"
);
this
.
search
();
}
else
{
this
.
$message
.
error
(
"关注失败"
);
}
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消提交"
});
});
},
handleClose
(
done
)
{
this
.
$confirm
(
'确认关闭?'
)
.
then
(
_
=>
{
done
();
this
.
dialogVisible
=
false
;
})
.
catch
(
_
=>
{
});
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-dialog__header
{
border-bottom
:
1px
solid
#eee
;
}
/
deep
/
.el-dialog__footer
{
text-align
:
center
;
}
.total
{
width
:
100%
;
display
:
flex
;
justify-content
:
right
;
margin
:
6px
0
;
span
{
height
:
16px
;
font-size
:
12px
;
font-family
:
MicrosoftYaHei
;
color
:
#999999
;
line-height
:
16px
;
}
}
</
style
>
\ No newline at end of file
src/views/AllPersonnelBase/modules/tjddl.vue
View file @
5a9c9dab
...
@@ -20,6 +20,26 @@
...
@@ -20,6 +20,26 @@
label=
"处理队列"
label=
"处理队列"
value=
"cldl"
value=
"cldl"
></el-option>
></el-option>
<el-option
label=
"检查队列"
value=
"jcdl"
></el-option>
<el-option
label=
"编辑队列"
value=
"bjdl"
></el-option>
<el-option
label=
"查询队列"
value=
"cxdl"
></el-option>
<el-option
label=
"上报队列"
value=
"sbdl"
></el-option>
<el-option
label=
"下载队列"
value=
"xzdl"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"删除原图"
>
<el-form-item
label=
"删除原图"
>
...
@@ -47,7 +67,7 @@
...
@@ -47,7 +67,7 @@
>
>
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click=
"
dialogVisible = false
"
@
click=
"
addList
"
>
确 定
</el-button>
>
确 定
</el-button>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
...
@@ -101,6 +121,9 @@ export default {
...
@@ -101,6 +121,9 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
addList
()
{
console
.
log
(
this
.
reqParam
,
'添加到队列'
)
},
handleClose
(
done
)
{
handleClose
(
done
)
{
this
.
$confirm
(
'确认关闭?'
)
this
.
$confirm
(
'确认关闭?'
)
.
then
(
_
=>
{
.
then
(
_
=>
{
...
...
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