Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
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
李苏
sgaqgl-vue
Commits
2de23999
Commit
2de23999
authored
Nov 09, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加岗位
parent
af704cfe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
14 deletions
+97
-14
screeningCriteria.js
src/api/riskPrecontrol/screeningCriteria.js
+3
-11
content.vue
src/views/riskPrecontrol/screeningCriteria/content.vue
+43
-3
contentFp.vue
src/views/riskPrecontrol/screeningCriteria/contentFp.vue
+51
-0
No files found.
src/api/riskPrecontrol/screeningCriteria.js
View file @
2de23999
...
...
@@ -62,6 +62,7 @@ export function doDeleteJcnr(query) {
})
}
/* 已选择 */
export
function
doQueryFpgw
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxjcfp/query'
,
...
...
@@ -69,7 +70,7 @@ export function doQueryFpgw(query) {
data
:
query
||
{}
})
}
/* 分配 jcnrid gwlist */
export
function
doFxjcfp
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxjcfp/fpgw'
,
...
...
@@ -78,7 +79,7 @@ export function doFxjcfp(query) {
})
}
/*
query
*/
/*
查询基础数据
*/
export
function
doQueryScgw
(
query
)
{
return
request
({
url
:
'/aqgl/jcsj/scgw/query'
,
...
...
@@ -86,12 +87,3 @@ export function doQueryScgw(query) {
data
:
query
||
{}
})
}
src/views/riskPrecontrol/screeningCriteria/content.vue
View file @
2de23999
<
template
>
<div
v-show=
"queryParams.mid"
class=
"min_full"
style=
"height: calc(84vh - 75px);"
>
<Fp
ref=
'fp'
:app=
'this'
v-if=
'showDialog'
></Fp>
<!-- 分配弹框-->
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
...
...
@@ -14,7 +16,19 @@
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
<template
slot=
"tabCustom"
>
<el-table-column
fixed=
"right"
label=
"分配操作"
width=
"90"
header-align=
"center"
>
<template
slot-scope=
"scope"
v-if=
"scope.row.id"
>
<el-button
v-if=
"scope.row.id"
style=
"text-align: center;color: #13ce66;width: 100%;"
@
click
.
native
.
prevent=
"apiFp(scope.row)"
type=
"text"
size=
"small"
>
<i
class=
"el-icon-s-promotion"
></i>
分配
</el-button>
<!--
<el-switch
@
click
.
native=
"setEnable(scope.row.id)"
:value=
'tybz(scope)'
style=
"width: 80px;justify-content: center;"
active-color=
"#13ce66"
inactive-color=
"#eee"
>
</el-switch>
-->
</
template
>
</el-table-column>
</template>
</TablePager>
</div>
</div>
...
...
@@ -26,10 +40,12 @@
doQueryJcnr
,
doAddJcnr
,
doUpdateJcnr
,
doDeleteJcnr
doDeleteJcnr
,
doQueryFpgw
}
from
'@/api/riskPrecontrol/screeningCriteria'
;
/* edit页面*/
import
Edit
from
'./contentEdit.vue'
import
Fp
from
'./contentFp.vue'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
...
...
@@ -42,6 +58,9 @@
},
data
()
{
return
{
DialogWidth
:
'60vw'
,
showDialog
:
false
,
DialogTitle
:
'分配'
,
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
...
...
@@ -71,11 +90,32 @@
apiUpdate
:
doUpdateJcnr
,
/* 删除操作*/
apiDelete
:
doDeleteJcnr
,
apiFp
(
row
){
let
jcnrid
=
row
.
id
doQueryFpgw
({
jcnrid
:
jcnrid
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
showDialog
=
true
let
gwlist
=
res
.
data
.
records
||
[]
let
newGwlist
=
[]
gwlist
.
forEach
(
e
=>
{
newGwlist
.
push
(
e
.
gwid
)
})
this
.
$nextTick
(()
=>
{
this
.
$refs
.
fp
.
jcnrid
=
jcnrid
this
.
$refs
.
fp
.
value
=
newGwlist
})
}
})
// doQueryFpgw()
// this.showDialog=true
}
/* 初始化赋值操作*/
},
/* 注册组件*/
components
:
{
Edit
Edit
,
Fp
}
}
</
script
>
...
...
src/views/riskPrecontrol/screeningCriteria/contentFp.vue
0 → 100644
View file @
2de23999
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
>
<!-- 按钮-->
<RelSelect
style=
"width: 100%;"
multiple
src=
'/aqgl/jcsj/scgw/query'
:match=
"
{value:'id',label:'name'}" v-model='value' >
</RelSelect>
<!-- 表格-->
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
style=
"position: absolute;right: 10px;top: 12px;"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
{
doFxjcfp
}
from
'@/api/riskPrecontrol/screeningCriteria'
;
export
default
{
props
:
{
app
:
{
type
:
Object
,
default
:
{}
}
},
async
mounted
()
{
},
methods
:
{
save
(){
let
params
=
{
jcnrid
:
this
.
jcnrid
,
gwlist
:
this
.
value
}
doFxjcfp
(
params
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'保存成功'
)
this
.
app
.
showDialog
=
false
}
})
}
},
data
()
{
return
{
value
:[],
jcnrid
:
''
}
}
}
</
script
>
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