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
b81e23fe
Commit
b81e23fe
authored
Dec 02, 2021
by
gao_yingdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
路由跳转修改
parent
96d24af8
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1841 additions
and
67 deletions
+1841
-67
src/layout/menuLayout.vue
+1
-1
src/router/modules/qgccj.js
+8
-0
src/views/hbyprw/hbyprw/queryHbyp.vue
+7
-7
src/views/hbyprw/hpyprwSp/hpyprwSp.vue
+1
-1
src/views/hbyprw/queryYpcp/queryYpcp.vue
+3
-3
src/views/queryLz/queryLz/queryLz.vue
+8
-8
src/views/queryLz/queryLz/zyyppg.vue
+7
-7
src/views/shse/fzth/fzth.vue
+1719
-0
src/views/shse/fzth/queryFzth.vue
+39
-15
src/views/shse/shseaj/queryShseaj.vue
+5
-5
src/views/shse/shsexs/queryXsxx.vue
+4
-4
src/views/yhz/cxyhz/cxyhz.vue
+20
-14
src/views/yhz/cxyhz/yhzXz.vue
+19
-2
No files found.
src/layout/menuLayout.vue
View file @
b81e23fe
...
...
@@ -174,7 +174,7 @@ export default {
path
:
"zdryGl"
,
});
}
else
if
(
item
.
id
==
"queryYpzl"
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/wfzdzczl"
,
});
}
else
{
...
...
src/router/modules/qgccj.js
View file @
b81e23fe
...
...
@@ -515,6 +515,14 @@ const menuLayouts = [
component
:
()
=>
import
(
"@/views/shse/fzth/fzthxz.vue"
)
},
{
path
:
"/fzth"
,
name
:
"fzth"
,
meta
:
{
title
:
'犯罪团伙信息'
},
component
:
()
=>
import
(
"@/views/shse/fzth/fzth.vue"
)
},
{
path
:
"/cf"
,
name
:
"cf"
,
meta
:
{
...
...
src/views/hbyprw/hbyprw/queryHbyp.vue
View file @
b81e23fe
...
...
@@ -822,7 +822,7 @@ export default {
},
methods
:
{
add
()
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/queryAdd"
,
});
},
...
...
@@ -895,7 +895,7 @@ export default {
}
},
toJj
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/jjhcyp"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -903,7 +903,7 @@ export default {
});
},
toFp
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/fphcyp"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -987,7 +987,7 @@ export default {
});
},
edit
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/queryXg"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -995,7 +995,7 @@ export default {
});
},
toInfor
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/detailHbyp"
,
query
:
{
xxzjbh
:
scope
.
xxzjbh
,
...
...
@@ -1037,7 +1037,7 @@ export default {
if
(
res
.
code
==
200
&&
res
.
success
)
{
this
.
$message
.
success
(
"导入成功"
);
this
.
revokeVisiable
=
false
;
this
.
$router
.
push
(
"queryZdjyhd"
);
this
.
$router
.
push
ToTab
(
"queryZdjyhd"
);
sessionStorage
.
setItem
(
"routerPath"
,
"queryZdjyhd"
);
setTimeout
(()
=>
{
this
.
$bus
.
$emit
(
"routerPath"
);
...
...
@@ -1058,7 +1058,7 @@ export default {
}
},
toCbyp
(
scoped
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/bshcb"
,
});
},
...
...
src/views/hbyprw/hpyprwSp/hpyprwSp.vue
View file @
b81e23fe
...
...
@@ -203,7 +203,7 @@ export default {
});
},
toInfor
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/detailHbyp"
,
query
:
{
xxzjbh
:
scope
.
xxzjbh
,
...
...
src/views/hbyprw/queryYpcp/queryYpcp.vue
View file @
b81e23fe
...
...
@@ -468,7 +468,7 @@ export default {
},
methods
:
{
add
()
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/queryAdd"
,
});
},
...
...
@@ -641,7 +641,7 @@ export default {
});
},
toInfor
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/detailHbyp"
,
query
:
{
xxzjbh
:
scope
.
xxzjbh
,
...
...
@@ -650,7 +650,7 @@ export default {
},
tohqhcp
(
scope
)
{
debugger
;
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/detailHcypcp"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
src/views/queryLz/queryLz/queryLz.vue
View file @
b81e23fe
...
...
@@ -184,7 +184,7 @@ export default {
},
methods
:
{
add
()
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/queryAdd"
,
});
},
...
...
@@ -257,7 +257,7 @@ export default {
}
},
toJj
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/jjhcyp"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -265,7 +265,7 @@ export default {
});
},
toFp
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/fphcyp"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -277,7 +277,7 @@ export default {
this
.
dialogVisibleFk
=
true
;
},
toSq
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/queryspAdd"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
...
...
@@ -355,7 +355,7 @@ export default {
});
},
edit
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/queryXg"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -363,7 +363,7 @@ export default {
});
},
toInfor
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/detailHbyp"
,
query
:
{
xxzjbh
:
scope
.
xxzjbh
,
...
...
@@ -372,7 +372,7 @@ export default {
},
tohqhcp
(
scope
)
{
debugger
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/detailHcypcp"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -414,7 +414,7 @@ export default {
if
(
res
.
code
==
200
&&
res
.
success
)
{
this
.
$message
.
success
(
"导入成功"
);
this
.
revokeVisiable
=
false
;
this
.
$router
.
push
(
"queryZdjyhd"
);
this
.
$router
.
push
ToTab
(
"queryZdjyhd"
);
sessionStorage
.
setItem
(
"routerPath"
,
"queryZdjyhd"
);
setTimeout
(()
=>
{
this
.
$bus
.
$emit
(
"routerPath"
);
...
...
src/views/queryLz/queryLz/zyyppg.vue
View file @
b81e23fe
...
...
@@ -373,7 +373,7 @@ export default {
},
methods
:
{
add
()
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/queryAdd"
,
});
},
...
...
@@ -446,7 +446,7 @@ export default {
}
},
toJj
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/jjhcyp"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -454,7 +454,7 @@ export default {
});
},
toFp
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/fphcyp"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -539,7 +539,7 @@ export default {
});
},
edit
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/queryXg"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -547,7 +547,7 @@ export default {
});
},
toInfor
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/detailHbyp"
,
query
:
{
xxzjbh
:
scope
.
xxzjbh
,
...
...
@@ -556,7 +556,7 @@ export default {
},
tohqhcp
(
scope
)
{
debugger
;
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/detailHcypcp"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
,
...
...
@@ -598,7 +598,7 @@ export default {
if
(
res
.
code
==
200
&&
res
.
success
)
{
this
.
$message
.
success
(
"导入成功"
);
this
.
revokeVisiable
=
false
;
this
.
$router
.
push
(
"queryZdjyhd"
);
this
.
$router
.
push
ToTab
(
"queryZdjyhd"
);
sessionStorage
.
setItem
(
"routerPath"
,
"queryZdjyhd"
);
setTimeout
(()
=>
{
this
.
$bus
.
$emit
(
"routerPath"
);
...
...
src/views/shse/fzth/fzth.vue
0 → 100644
View file @
b81e23fe
<
template
>
<div
ref=
"zlXq"
class=
"xsfk"
element-loading-text=
"正在加载......"
v-loading=
"loadingFk"
>
<div
style=
"
position: fixed;
width: 100%;
z-index: 99;
height: 48px;
background: #0061f7;
font-size: 18px;
font-weight: bold;
line-height: 48px;
color: #ffffff;
padding: 0 17px;
"
>
<img
style=
"width: 36px; margin-left: 10px"
src=
"~@/assets/img/login/jinhui.png"
alt=
""
/>
{{
headerTitle
}}
</div>
<div
class=
"form"
>
<div
@
click=
"cf"
class=
"cf"
>
<span>
拆分
</span>
</div>
<fj-sc
:xxzjbh=
"xxzjbh"
:shsexsbh=
"shsexsbh"
:jshcxxzjbh=
"jshcxxzjbh"
:formField=
"formField"
:formLabelAlign=
"formLabelAlign"
:propSt=
"st"
:rule=
"rules"
:propxsTitle=
"title"
:propBottonType=
"bottonType"
:url=
"url"
@
hxShuju=
"ajHx(arguments)"
@
xyrIdentity=
"xyrIdentity(arguments)"
@
ajbhHx=
"ajbhHx"
@
deleteObj=
"deleteObj"
@
submit=
"callSubmit"
:autowidth=
"autowidth"
>
</fj-sc>
<el-dialog
title=
"推荐团伙"
:visible
.
sync=
"dialogVisible"
width=
"60%"
center
>
<div
style=
"margin-top: 20px"
>
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"案件列表"
name=
"first"
>
<div>
<el-table
center
@
selection-change=
"handleSelectionChange"
:data=
"ajList"
stripe
border
>
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
v-for=
"(columnTitle, index) in ajTableList"
:key=
"index"
:label=
"columnTitle.label"
:width=
"columnTitle.width"
:prop=
"columnTitle.prop"
align=
"center"
>
</el-table-column>
</el-table>
</div>
</el-tab-pane>
<el-tab-pane
label=
"嫌疑人列表"
name=
"second"
>
<div>
<el-table
center
@
selection-change=
"handleSelectionChange1"
:data=
"xyrList"
stripe
border
>
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
v-for=
"(columnTitle, index) in xyrTableList"
:key=
"index"
:label=
"columnTitle.label"
:width=
"columnTitle.width"
:prop=
"columnTitle.prop"
align=
"center"
>
</el-table-column>
</el-table>
</div>
</el-tab-pane>
</el-tabs>
</div>
<div
style=
"padding: 20px 0"
>
<el-button
type=
"primary"
class=
"hbbtn"
@
click=
"handleHb"
>
确认
</el-button
>
</div>
</el-dialog>
</div>
</div>
</
template
>
<
script
>
import
{
insertThxx
,
selectHxThAsjbh
,
updateThxxjt
,
deleteThajxx
,
deleteThxyrxx
,
selectSjByAsjbh
,
selectXyrByZjhm
,
}
from
"@/api/shse/shse.js"
;
import
FjSc
from
"@/views/xshb/xshb/gzjlxz/fksc.vue"
;
export
default
{
name
:
"xshc"
,
components
:
{
FjSc
,
},
data
()
{
return
{
aj
:
[],
xyr
:
[],
ajList
:
[],
xyrList
:
[],
ajTableList
:
[
{
label
:
"案事件编号"
,
prop
:
"asjbh"
,
},
{
label
:
"案件名称"
,
prop
:
"ajmc"
,
},
{
label
:
"立案单位"
,
prop
:
"ladwdm"
,
},
{
label
:
"案件类别"
,
prop
:
"ajlbdm"
,
},
{
label
:
"立案日期"
,
prop
:
"larq"
,
},
],
xyrTableList
:
[
{
label
:
"姓名"
,
prop
:
"xm"
,
},
{
label
:
"证件号码"
,
prop
:
"zjhm"
,
},
{
label
:
"户籍地"
,
prop
:
"hjddm"
,
},
],
activeName
:
"first"
,
dialogVisible
:
false
,
url
:
this
.
$route
.
query
.
fkid
,
loadingFk
:
false
,
headerTitle
:
"犯罪团伙新增"
,
title
:
"犯罪团伙信息"
,
autowidth
:
"1268px"
,
xsly
:
""
,
codeData
:
[],
xmDetail
:
{},
xxzjbh
:
""
,
shsexsbh
:
""
,
ajXxzjbh
:
""
,
result
:
{
xyrResult
:
[],
jbrResult
:
[],
gzryResult
:
[],
xdzl
:
[],
bjbrResult
:
[],
tgrResult
:
[],
tbrResult
:
[],
},
xsly
:
""
,
xslyCode
:
""
,
rules
:
{},
formField
:
[
{
name
:
"团伙头目:"
,
id
:
"thtm"
,
prop
:
"checkEmpty"
,
type
:
"text"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"2"
,
},
{
name
:
"团伙名称:"
,
id
:
"thmc"
,
prop
:
"checkEmpty"
,
type
:
"text"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"2"
,
},
{
childrenAsAdd
:
[
{
name
:
"案件信息:"
,
id
:
"aj"
,
list
:
[
{
name
:
[
{
name
:
"案事件编号:"
,
id
:
"asjbh"
,
type
:
"text"
,
value
:
""
,
prop
:
"checkEmpty"
,
placeholder
:
"请输入"
,
append
:
true
,
col
:
"2"
,
},
{
name
:
"案件名称:"
,
id
:
"ajmc"
,
type
:
"text"
,
value
:
""
,
// prop: "checkEmpty",
placeholder
:
"请输入"
,
col
:
"2"
,
},
{
name
:
"立案单位:"
,
id
:
"ladwdm"
,
type
:
"codeTree"
,
codeOptions
:
[],
codeTree
:
"QGCODE_UNIT"
,
value
:
""
,
placeholder
:
"请选择"
,
col
:
"2"
,
},
{
name
:
"案件类别:"
,
id
:
"ajlbdm"
,
type
:
"codeTree"
,
codeOptions
:
[],
codeTree
:
"CODE_AJLB"
,
value
:
""
,
placeholder
:
"请选择"
,
col
:
"2"
,
},
{
name
:
"立案日期:"
,
id
:
"larq"
,
type
:
"date"
,
value
:
""
,
placeholder
:
"请选择"
,
col
:
"2"
,
},
],
},
],
iconClass
:
"el-icon-delete"
,
},
],
},
{
childrenAsAdd
:
[
{
name
:
"嫌疑人信息:"
,
id
:
"xyr"
,
list
:
[
{
name
:
[
{
name
:
"姓名:"
,
id
:
"xm"
,
type
:
"text"
,
prop
:
"checkEmpty"
,
value
:
""
,
placeholder
:
"请输入姓名"
,
col
:
"2"
,
},
{
name
:
"证件号码:"
,
id
:
"zjhm"
,
type
:
"textxx"
,
prop
:
"emptyAbleIdentity"
,
append
:
true
,
value
:
""
,
placeholder
:
"请输入姓名"
,
col
:
"2"
,
},
{
name
:
"户籍地:"
,
id
:
"hjddm"
,
type
:
"codeTree"
,
codeOptions
:
[],
codeTree
:
"CODE_XZQH"
,
value
:
""
,
placeholder
:
"请选择"
,
col
:
"2"
,
},
],
},
],
iconClass
:
"el-icon-delete"
,
},
],
},
// {
// name: '核查报告电子文档:',
// id: 'hcbgDzwd',
// fileId: 'hcbgDzwd',
// type: 'file',
// value: '0',
// placeholder: '',
// col: '1',
// requestUrl: 'http://39.99.224.27:8006/xsHcfkSp/xsHcfk',
// fileList: []
// },
// {
// name: '四长签字扫描件:',
// id: 'szqzySmj',
// fileId: 'szqzySmj',
// type: 'file',
// value: '0',
// placeholder: '',
// col: '1',
// requestUrl: 'http://39.99.224.27:8006/xsHcfkSp/xsHcfk',
// fileList: []
// },
// {
// name: "附件上传:",
// id: "qtFj",
// fileId: "qtFj",
// type: "file",
// value: "",
// placeholder: "",
// col: "1",
// requestUrl: "/flwsFj/tbstasjflwsCj/save",
// fileList: [],
// },
],
formLabelAlign
:
{},
st
:
"th"
,
bottonType
:
"fk"
,
loading
:
true
,
xszxx
:
[],
isParent
:
""
,
jshcxxzjbh
:
this
.
$route
.
query
.
jshcxxzjbh
,
sftj
:
""
,
thbh
:
""
,
};
},
created
()
{
// if (this.$route.query.xsbh) {
// this.getTqHxFksj();
// }
// this.getselectHxThAsjbh1();
},
methods
:
{
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
);
},
cf
()
{
this
.
$router
.
push
({
path
:
"/cf"
,
query
:
{
asjbh
:
this
.
$route
.
query
.
asjbh
,
},
});
},
deleteObj
(
obj
)
{
var
self
=
this
;
debugger
;
self
.
formField
.
forEach
((
val
)
=>
{
if
(
val
.
childrenAsAdd
)
{
val
.
childrenAsAdd
.
forEach
((
val2
)
=>
{
if
(
val2
.
id
==
"aj"
)
{
deleteThajxx
({
xxzjbh
:
obj
.
xxzjbh
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
"200"
)
{
self
.
formField
.
forEach
((
val
)
=>
{
if
(
val
.
childrenAsAdd
)
{
val
.
childrenAsAdd
.
forEach
((
val2
)
=>
{
self
.
formLabelAlign
[
val2
.
id
].
forEach
((
val3
,
index
)
=>
{
console
.
log
(
index
);
if
(
val3
==
obj
)
{
debugger
;
self
.
formLabelAlign
[
val2
.
id
].
splice
(
// val2.list.indexOf(val3),
index
,
1
);
// this.$message.success("删除成功");
this
.
$alert
(
"删除成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
// this.$router.go(0)
// self.formLabelAlign[val2.id].splice(
// // val2.list.indexOf(val3),
// index,
// 1
// )
},
});
}
});
});
}
});
}
});
}
else
if
(
val2
.
id
==
"xyr"
)
{
deleteThxyrxx
({
xxzjbh
:
obj
.
xxzjbh
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
"200"
)
{
self
.
formField
.
forEach
((
val
)
=>
{
if
(
val
.
childrenAsAdd
)
{
val
.
childrenAsAdd
.
forEach
((
val2
)
=>
{
self
.
formLabelAlign
[
val2
.
id
].
forEach
((
val3
,
index
)
=>
{
console
.
log
(
index
);
if
(
val3
==
obj
)
{
debugger
;
self
.
formLabelAlign
[
val2
.
id
].
splice
(
// val2.list.indexOf(val3),
index
,
1
);
// this.$message.success("删除成功");
this
.
$alert
(
"删除成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
// this.$router.go(0)
// self.formLabelAlign[val2.id].splice(
// // val2.list.indexOf(val3),
// index,
// 1
// )
},
});
}
});
});
}
});
}
});
}
});
}
});
},
handleSelectionChange
(
row
)
{
this
.
aj
=
row
;
},
handleSelectionChange1
(
row
)
{
this
.
xyr
=
row
;
},
getselectHxThAsjbh1
()
{
selectHxThAsjbh
({
asjbh
:
this
.
$route
.
query
.
asjbh
,
}).
then
((
res
)
=>
{
this
.
sftj
=
res
.
data
.
rows
.
sftj
;
if
(
res
.
data
.
rows
.
sftj
==
"0"
)
{
this
.
getselectHxThAsjbh
();
this
.
headerTitle
=
"犯罪团伙修改"
;
}
else
{
this
.
dialogVisible
=
true
;
this
.
ajList
=
res
.
data
.
rows
.
tjaj
;
this
.
xyrList
=
res
.
data
.
rows
.
tjxyr
;
this
.
headerTitle
=
"犯罪团伙新增"
;
}
});
},
handleHb
()
{
this
.
$confirm
(
"是否进行新增, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
dialogVisible
=
false
;
})
.
catch
(()
=>
{
this
.
toNt
();
});
},
toNt
()
{
// let path = `http://39.99.155.173:8007/naotuBox?type=hnDxzp&kybh=${scope.row.asjbh}`;
// window.open(path, "_blank");
// ?userId=142302198901012417
var
obj
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
));
var
params
=
{
type
:
"shse"
,
kybh
:
this
.
$route
.
query
.
asjbh
,
userId
:
obj
.
identitycard
,
};
console
.
log
(
params
);
this
.
toDetail
(
"http://39.99.155.173:8007/naotuBox"
,
params
);
},
toDetail
(
url
,
PARAMS
)
{
var
temp_form
=
document
.
createElement
(
"form"
);
temp_form
.
action
=
url
;
temp_form
.
target
=
"_blank"
;
temp_form
.
method
=
"post"
;
temp_form
.
style
.
display
=
"none"
;
for
(
var
x
in
PARAMS
)
{
var
opt
=
document
.
createElement
(
"textarea"
);
opt
.
name
=
x
;
opt
.
value
=
PARAMS
[
x
];
temp_form
.
appendChild
(
opt
);
}
document
.
body
.
appendChild
(
temp_form
);
temp_form
.
submit
();
},
// 提取反馈的回显
getselectHxThAsjbh
()
{
this
.
loadingFk
=
true
;
var
self
=
this
;
selectHxThAsjbh
({
asjbh
:
this
.
$route
.
query
.
asjbh
,
}).
then
((
res
)
=>
{
this
.
thbh
=
res
.
data
.
rows
.
th
.
thbh
;
debugger
;
// 线索反馈
this
.
loadingFk
=
false
;
var
result
=
res
.
data
.
rows
.
th
;
self
.
formField
.
forEach
((
item
,
i
)
=>
{
var
fieldVale
=
result
[
item
.
id
];
debugger
;
if
(
item
.
type
==
"codeTree"
)
{
debugger
;
axios
.
get
(
`JsonData/
${
item
.
codeTree
}
.json`
).
then
((
codRes
)
=>
{
let
value
=
self
.
queryTree
(
codRes
.
data
.
data
.
rows
,
fieldVale
)[
0
];
item
.
codeOptions
=
[{
id
:
fieldVale
,
name
:
value
}];
});
self
.
$set
(
self
.
formLabelAlign
,
item
.
id
,
fieldVale
);
}
else
if
(
item
.
type
==
"date"
)
{
// var singleObject = {}
// singleObject[key] = new Date(realChildrenItem[key]);
self
.
$set
(
self
.
formLabelAlign
,
item
.
id
,
new
Date
(
fieldVale
));
}
else
{
self
.
$set
(
self
.
formLabelAlign
,
item
.
id
,
fieldVale
);
}
});
// 嫌疑人信息1:
debugger
;
var
result1
=
res
.
data
.
rows
;
self
.
formField
[
2
].
childrenAsAdd
.
forEach
((
childrenIdem
)
=>
{
//有可添加子集的情况
//遍历可配置化列表的子集
self
.
$set
(
self
.
formLabelAlign
,
childrenIdem
.
id
,
[]);
var
realChildrenData
=
result1
[
"tjaj"
];
if
(
realChildrenData
&&
realChildrenData
.
length
>
0
)
{
realChildrenData
.
forEach
((
realChildrenItem
,
childrenIndex
)
=>
{
var
singleObject
=
{};
var
dateFields
=
[];
var
lazyLoadCodeFields
=
[];
if
(
childrenIdem
.
list
&&
childrenIdem
.
list
.
length
>
0
&&
childrenIdem
.
list
[
0
].
name
)
{
dateFields
=
childrenIdem
.
list
[
0
].
name
.
filter
((
fieldItem
)
=>
{
return
fieldItem
.
type
==
"date"
;
});
dateFields
=
dateFields
.
map
((
fieldItem
)
=>
{
return
fieldItem
.
id
;
});
lazyLoadCodeFields
=
childrenIdem
.
list
[
0
].
name
.
filter
(
(
fieldItem
)
=>
{
return
fieldItem
.
type
==
"lazyCodeTree"
;
}
);
lazyLoadCodeFields
=
dateFields
.
map
((
fieldItem
)
=>
{
return
fieldItem
.
id
;
});
}
for
(
var
key
in
realChildrenItem
)
{
if
(
dateFields
.
indexOf
(
key
)
>=
0
)
{
//过滤时间
if
(
realChildrenItem
[
key
])
{
singleObject
[
key
]
=
new
Date
(
realChildrenItem
[
key
]);
}
}
else
if
(
lazyLoadCodeFields
.
indexOf
(
key
)
>=
0
)
{
}
else
{
singleObject
[
key
]
=
realChildrenItem
[
key
];
}
}
childrenIdem
.
list
[
0
].
name
.
forEach
((
currentField
)
=>
{
if
(
currentField
.
type
==
"lazyCodeTree"
)
{
queryCodeByType
({
type
:
currentField
.
codeTree
,
id
:
realChildrenItem
[
currentField
.
id
],
grade
:
"prev"
,
})
.
then
((
codRes
)
=>
{
var
codeArry
=
[];
var
realCodeResult
=
[];
for
(
var
j
=
0
;
j
<
codRes
.
data
.
length
;
j
++
)
{
var
singleRow
=
codRes
.
data
[
j
];
if
(
singleRow
.
children
)
{
codeArry
.
push
(
singleRow
.
id
);
self
.
getChildrenCode
(
codeArry
,
singleRow
);
}
}
codeArry
.
push
(
realChildrenItem
[
currentField
.
id
]);
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
][
childrenIndex
],
currentField
.
id
,
codeArry
);
//改变类型使级联控件重新加载
self
.
$set
(
currentField
,
"type"
,
"lazyCodeTree2"
);
setTimeout
(()
=>
{
self
.
$set
(
currentField
,
"type"
,
"lazyCodeTree"
);
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
][
childrenIndex
],
currentField
.
id
,
codeArry
);
},
5
);
})
.
catch
((
err
)
=>
{
// console.log(err);
});
}
else
if
(
currentField
.
type
==
"codeTree"
)
{
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if
(
realChildrenItem
[
currentField
.
id
])
{
axios
.
get
(
`JsonData/
${
currentField
.
codeTree
}
.json`
)
.
then
((
codRes
)
=>
{
let
value
=
this
.
queryTree
(
codRes
.
data
.
data
.
rows
,
realChildrenItem
[
currentField
.
id
]
)[
0
];
currentField
.
codeOptions
=
[
{
id
:
realChildrenItem
[
currentField
.
id
],
name
:
value
,
},
];
})
.
catch
((
err
)
=>
{});
self
.
$set
(
self
.
formLabelAlign
,
currentField
.
id
,
realChildrenItem
[
currentField
.
id
]
);
}
}
});
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
],
childrenIndex
,
singleObject
);
debugger
;
});
}
else
{
var
singleObject
=
{};
childrenIdem
.
list
[
0
].
name
.
forEach
((
val4
)
=>
{
if
(
(
val4
.
multiple
==
true
&&
val4
.
type
==
"code"
)
||
val4
.
type
==
"lazyCodeTree"
)
{
singleObject
[
val4
.
id
]
=
[];
}
else
{
singleObject
[
val4
.
id
]
=
""
;
}
});
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
],
0
,
singleObject
);
}
});
// 涉及案件
debugger
;
var
result1
=
res
.
data
.
rows
;
self
.
formField
[
3
].
childrenAsAdd
.
forEach
((
childrenIdem
)
=>
{
//有可添加子集的情况
//遍历可配置化列表的子集
self
.
$set
(
self
.
formLabelAlign
,
childrenIdem
.
id
,
[]);
var
realChildrenData
=
result1
[
"tjxyr"
];
if
(
realChildrenData
&&
realChildrenData
.
length
>
0
)
{
realChildrenData
.
forEach
((
realChildrenItem
,
childrenIndex
)
=>
{
var
singleObject
=
{};
var
dateFields
=
[];
var
lazyLoadCodeFields
=
[];
if
(
childrenIdem
.
list
&&
childrenIdem
.
list
.
length
>
0
&&
childrenIdem
.
list
[
0
].
name
)
{
dateFields
=
childrenIdem
.
list
[
0
].
name
.
filter
((
fieldItem
)
=>
{
return
fieldItem
.
type
==
"date"
;
});
dateFields
=
dateFields
.
map
((
fieldItem
)
=>
{
return
fieldItem
.
id
;
});
lazyLoadCodeFields
=
childrenIdem
.
list
[
0
].
name
.
filter
(
(
fieldItem
)
=>
{
return
fieldItem
.
type
==
"lazyCodeTree"
;
}
);
lazyLoadCodeFields
=
dateFields
.
map
((
fieldItem
)
=>
{
return
fieldItem
.
id
;
});
}
for
(
var
key
in
realChildrenItem
)
{
if
(
dateFields
.
indexOf
(
key
)
>=
0
)
{
//过滤时间
if
(
realChildrenItem
[
key
])
{
singleObject
[
key
]
=
new
Date
(
realChildrenItem
[
key
]);
}
}
else
if
(
lazyLoadCodeFields
.
indexOf
(
key
)
>=
0
)
{
}
else
{
singleObject
[
key
]
=
realChildrenItem
[
key
];
}
}
childrenIdem
.
list
[
0
].
name
.
forEach
((
currentField
)
=>
{
if
(
currentField
.
type
==
"lazyCodeTree"
)
{
queryCodeByType
({
type
:
currentField
.
codeTree
,
id
:
realChildrenItem
[
currentField
.
id
],
grade
:
"prev"
,
})
.
then
((
codRes
)
=>
{
var
codeArry
=
[];
var
realCodeResult
=
[];
for
(
var
j
=
0
;
j
<
codRes
.
data
.
length
;
j
++
)
{
var
singleRow
=
codRes
.
data
[
j
];
if
(
singleRow
.
children
)
{
codeArry
.
push
(
singleRow
.
id
);
self
.
getChildrenCode
(
codeArry
,
singleRow
);
}
}
codeArry
.
push
(
realChildrenItem
[
currentField
.
id
]);
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
][
childrenIndex
],
currentField
.
id
,
codeArry
);
//改变类型使级联控件重新加载
self
.
$set
(
currentField
,
"type"
,
"lazyCodeTree2"
);
setTimeout
(()
=>
{
self
.
$set
(
currentField
,
"type"
,
"lazyCodeTree"
);
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
][
childrenIndex
],
currentField
.
id
,
codeArry
);
},
5
);
})
.
catch
((
err
)
=>
{
// console.log(err);
});
}
else
if
(
currentField
.
type
==
"codeTree"
)
{
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if
(
realChildrenItem
[
currentField
.
id
])
{
axios
.
get
(
`JsonData/
${
currentField
.
codeTree
}
.json`
)
.
then
((
codRes
)
=>
{
let
value
=
this
.
queryTree
(
codRes
.
data
.
data
.
rows
,
realChildrenItem
[
currentField
.
id
]
)[
0
];
currentField
.
codeOptions
=
[
{
id
:
realChildrenItem
[
currentField
.
id
],
name
:
value
,
},
];
})
.
catch
((
err
)
=>
{});
self
.
$set
(
self
.
formLabelAlign
,
currentField
.
id
,
realChildrenItem
[
currentField
.
id
]
);
}
}
});
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
],
childrenIndex
,
singleObject
);
debugger
;
});
}
else
{
var
singleObject
=
{};
childrenIdem
.
list
[
0
].
name
.
forEach
((
val4
)
=>
{
if
(
(
val4
.
multiple
==
true
&&
val4
.
type
==
"code"
)
||
val4
.
type
==
"lazyCodeTree"
)
{
singleObject
[
val4
.
id
]
=
[];
}
else
{
singleObject
[
val4
.
id
]
=
""
;
}
});
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
],
0
,
singleObject
);
}
});
// self.formLabelAlign["qtFj"] = [];
// res.data.xsxq.fjList.forEach((item, index) => {
// self.formLabelAlign["qtFj"][index] = {
// name: item.xsfjDzwjmc,
// url: item.xsfjDzwjnr,
// xxzjbh: item.xxzjbh,
// };
// });
});
self
.
$set
(
self
.
formLabelAlign
,
"editing"
,
true
);
self
.
$forceUpdate
();
},
//案件回显
ajHx
(
content
)
{
var
self
=
this
;
debugger
;
selectSjByAsjbh
({
asjbh
:
content
[
0
],
}).
then
((
res
)
=>
{
var
result
=
res
.
data
.
rows
;
self
.
formField
[
2
].
childrenAsAdd
[
0
].
list
[
0
].
name
.
forEach
((
item
)
=>
{
var
fieldVale
=
result
[
item
.
id
];
self
.
$set
(
self
.
formLabelAlign
.
aj
[
content
[
1
]],
item
.
id
,
fieldVale
);
});
var
result
=
res
.
data
.
rows
;
self
.
formField
[
2
].
childrenAsAdd
[
0
].
list
[
0
].
name
.
forEach
((
item
)
=>
{
var
fieldVale
=
result
[
item
.
id
];
if
(
item
.
type
==
"codeTree"
)
{
axios
.
get
(
`JsonData/
${
item
.
codeTree
}
.json`
).
then
((
codRes
)
=>
{
let
value
=
self
.
queryTree
(
codRes
.
data
.
data
.
rows
,
fieldVale
)[
0
];
item
.
codeOptions
=
[{
id
:
fieldVale
,
name
:
value
}];
});
self
.
$set
(
self
.
formLabelAlign
.
aj
[
content
[
1
]],
item
.
id
,
fieldVale
);
}
else
if
(
item
.
type
==
"date"
)
{
debugger
;
// var singleObject = {}
// singleObject[key] = new Date(realChildrenItem[key]);
if
(
fieldVale
==
null
)
{
self
.
$set
(
self
.
formLabelAlign
.
asjList
[
content
[
1
]],
item
.
id
,
""
);
}
else
{
self
.
$set
(
self
.
formLabelAlign
.
aj
[
content
[
1
]],
item
.
id
,
new
Date
(
fieldVale
)
);
}
}
else
{
// singleObject[key] = new Date(realChildrenItem[key]);
if
(
fieldVale
==
null
)
{
self
.
$set
(
self
.
formLabelAlign
.
asjList
[
content
[
1
]],
item
.
id
,
""
);
}
else
{
self
.
$set
(
self
.
formLabelAlign
.
aj
[
content
[
1
]],
item
.
id
,
fieldVale
);
}
}
});
});
},
// 嫌疑人提取回显
xyrIdentity
(
content
)
{
debugger
;
this
.
loadingFk
=
true
;
var
self
=
this
;
this
.
loading
=
true
;
selectXyrByZjhm
({
zjhm
:
content
[
0
],
}).
then
((
res
)
=>
{
// 嫌疑人信息1
var
result
=
res
.
data
.
rows
;
self
.
formField
[
3
].
childrenAsAdd
[
0
].
list
[
0
].
name
.
forEach
((
item
)
=>
{
var
fieldVale
=
result
[
item
.
id
];
self
.
$set
(
self
.
formLabelAlign
.
xyr
[
content
[
1
]],
item
.
id
,
fieldVale
);
});
var
result
=
res
.
data
.
rows
;
self
.
formField
[
3
].
childrenAsAdd
[
0
].
list
[
0
].
name
.
forEach
((
item
)
=>
{
var
fieldVale
=
result
[
item
.
id
];
if
(
item
.
type
==
"codeTree"
)
{
axios
.
get
(
`JsonData/
${
item
.
codeTree
}
.json`
).
then
((
codRes
)
=>
{
let
value
=
self
.
queryTree
(
codRes
.
data
.
data
.
rows
,
fieldVale
)[
0
];
item
.
codeOptions
=
[{
id
:
fieldVale
,
name
:
value
}];
});
self
.
$set
(
self
.
formLabelAlign
.
xyr
[
content
[
1
]],
item
.
id
,
fieldVale
);
}
else
if
(
item
.
type
==
"date"
)
{
debugger
;
// var singleObject = {}
// singleObject[key] = new Date(realChildrenItem[key]);
if
(
fieldVale
==
null
)
{
self
.
$set
(
self
.
formLabelAlign
.
xyr
[
content
[
1
]],
item
.
id
,
""
);
}
else
{
self
.
$set
(
self
.
formLabelAlign
.
xyr
[
content
[
1
]],
item
.
id
,
new
Date
(
fieldVale
)
);
}
}
else
{
// singleObject[key] = new Date(realChildrenItem[key]);
if
(
fieldVale
==
null
)
{
self
.
$set
(
self
.
formLabelAlign
.
xyr
[
content
[
1
]],
item
.
id
,
""
);
}
else
{
self
.
$set
(
self
.
formLabelAlign
.
xyr
[
content
[
1
]],
item
.
id
,
fieldVale
);
}
}
});
this
.
loadingFk
=
false
;
this
.
loading
=
false
;
});
},
// 案件编号回显
ajbhHx
(
content
)
{
var
self
=
this
;
this
.
loadingFk
=
true
;
this
.
loading
=
true
;
debugger
;
getAjAndXyrByAsjbh
({
asjbh
:
content
,
}).
then
((
res
)
=>
{
debugger
;
var
result1
=
res
.
data
;
self
.
formField
[
5
].
childrenAsAdd
.
forEach
((
childrenIdem
)
=>
{
//有可添加子集的情况
//遍历可配置化列表的子集
self
.
$set
(
self
.
formLabelAlign
,
childrenIdem
.
id
,
[]);
var
realChildrenData
=
result1
[
"laList"
];
if
(
realChildrenData
&&
realChildrenData
.
length
>
0
)
{
realChildrenData
.
forEach
((
realChildrenItem
,
childrenIndex
)
=>
{
var
singleObject
=
{};
var
dateFields
=
[];
var
lazyLoadCodeFields
=
[];
if
(
childrenIdem
.
list
&&
childrenIdem
.
list
.
length
>
0
&&
childrenIdem
.
list
[
0
].
name
)
{
dateFields
=
childrenIdem
.
list
[
0
].
name
.
filter
((
fieldItem
)
=>
{
return
fieldItem
.
type
==
"date"
;
});
dateFields
=
dateFields
.
map
((
fieldItem
)
=>
{
return
fieldItem
.
id
;
});
lazyLoadCodeFields
=
childrenIdem
.
list
[
0
].
name
.
filter
(
(
fieldItem
)
=>
{
return
fieldItem
.
type
==
"lazyCodeTree"
;
}
);
lazyLoadCodeFields
=
dateFields
.
map
((
fieldItem
)
=>
{
return
fieldItem
.
id
;
});
}
for
(
var
key
in
realChildrenItem
)
{
if
(
dateFields
.
indexOf
(
key
)
>=
0
)
{
//过滤时间
if
(
realChildrenItem
[
key
])
{
singleObject
[
key
]
=
new
Date
(
realChildrenItem
[
key
]);
}
}
else
if
(
lazyLoadCodeFields
.
indexOf
(
key
)
>=
0
)
{
}
else
{
singleObject
[
key
]
=
realChildrenItem
[
key
];
}
}
childrenIdem
.
list
[
0
].
name
.
forEach
((
currentField
)
=>
{
if
(
currentField
.
type
==
"lazyCodeTree"
)
{
queryCodeByType
({
type
:
currentField
.
codeTree
,
id
:
realChildrenItem
[
currentField
.
id
],
grade
:
"prev"
,
})
.
then
((
codRes
)
=>
{
var
codeArry
=
[];
var
realCodeResult
=
[];
for
(
var
j
=
0
;
j
<
codRes
.
data
.
length
;
j
++
)
{
var
singleRow
=
codRes
.
data
[
j
];
if
(
singleRow
.
children
)
{
codeArry
.
push
(
singleRow
.
id
);
self
.
getChildrenCode
(
codeArry
,
singleRow
);
}
}
codeArry
.
push
(
realChildrenItem
[
currentField
.
id
]);
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
][
childrenIndex
],
currentField
.
id
,
codeArry
);
//改变类型使级联控件重新加载
self
.
$set
(
currentField
,
"type"
,
"lazyCodeTree2"
);
setTimeout
(()
=>
{
self
.
$set
(
currentField
,
"type"
,
"lazyCodeTree"
);
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
][
childrenIndex
],
currentField
.
id
,
codeArry
);
},
5
);
})
.
catch
((
err
)
=>
{
// console.log(err);
});
}
else
if
(
currentField
.
type
==
"codeTree"
)
{
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if
(
realChildrenItem
[
currentField
.
id
])
{
axios
.
get
(
`JsonData/
${
currentField
.
codeTree
}
.json`
)
.
then
((
codRes
)
=>
{
let
value
=
this
.
queryTree
(
codRes
.
data
.
data
.
rows
,
realChildrenItem
[
currentField
.
id
]
)[
0
];
currentField
.
codeOptions
=
[
{
id
:
realChildrenItem
[
currentField
.
id
],
name
:
value
,
},
];
})
.
catch
((
err
)
=>
{});
self
.
$set
(
self
.
formLabelAlign
,
currentField
.
id
,
realChildrenItem
[
currentField
.
id
]
);
}
}
});
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
],
childrenIndex
,
singleObject
);
debugger
;
});
}
else
{
var
singleObject
=
{};
childrenIdem
.
list
[
0
].
name
.
forEach
((
val4
)
=>
{
if
(
(
val4
.
multiple
==
true
&&
val4
.
type
==
"code"
)
||
val4
.
type
==
"lazyCodeTree"
)
{
singleObject
[
val4
.
id
]
=
[];
}
else
{
singleObject
[
val4
.
id
]
=
""
;
}
});
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
],
0
,
singleObject
);
}
this
.
loadingFk
=
false
;
this
.
loading
=
false
;
});
// 嫌疑人信息1:
debugger
;
var
result1
=
res
.
data
;
self
.
formField
[
6
].
childrenAsAdd
.
forEach
((
childrenIdem
)
=>
{
//有可添加子集的情况
//遍历可配置化列表的子集
self
.
$set
(
self
.
formLabelAlign
,
childrenIdem
.
id
,
[]);
var
realChildrenData
=
result1
[
"xyrList"
];
if
(
realChildrenData
&&
realChildrenData
.
length
>
0
)
{
realChildrenData
.
forEach
((
realChildrenItem
,
childrenIndex
)
=>
{
var
singleObject
=
{};
var
dateFields
=
[];
var
lazyLoadCodeFields
=
[];
if
(
childrenIdem
.
list
&&
childrenIdem
.
list
.
length
>
0
&&
childrenIdem
.
list
[
0
].
name
)
{
dateFields
=
childrenIdem
.
list
[
0
].
name
.
filter
((
fieldItem
)
=>
{
return
fieldItem
.
type
==
"date"
;
});
dateFields
=
dateFields
.
map
((
fieldItem
)
=>
{
return
fieldItem
.
id
;
});
lazyLoadCodeFields
=
childrenIdem
.
list
[
0
].
name
.
filter
(
(
fieldItem
)
=>
{
return
fieldItem
.
type
==
"lazyCodeTree"
;
}
);
lazyLoadCodeFields
=
dateFields
.
map
((
fieldItem
)
=>
{
return
fieldItem
.
id
;
});
}
for
(
var
key
in
realChildrenItem
)
{
if
(
dateFields
.
indexOf
(
key
)
>=
0
)
{
//过滤时间
if
(
realChildrenItem
[
key
])
{
singleObject
[
key
]
=
new
Date
(
realChildrenItem
[
key
]);
}
}
else
if
(
lazyLoadCodeFields
.
indexOf
(
key
)
>=
0
)
{
}
else
{
singleObject
[
key
]
=
realChildrenItem
[
key
];
}
}
childrenIdem
.
list
[
0
].
name
.
forEach
((
currentField
)
=>
{
if
(
currentField
.
type
==
"lazyCodeTree"
)
{
queryCodeByType
({
type
:
currentField
.
codeTree
,
id
:
realChildrenItem
[
currentField
.
id
],
grade
:
"prev"
,
})
.
then
((
codRes
)
=>
{
var
codeArry
=
[];
var
realCodeResult
=
[];
for
(
var
j
=
0
;
j
<
codRes
.
data
.
length
;
j
++
)
{
var
singleRow
=
codRes
.
data
[
j
];
if
(
singleRow
.
children
)
{
codeArry
.
push
(
singleRow
.
id
);
self
.
getChildrenCode
(
codeArry
,
singleRow
);
}
}
codeArry
.
push
(
realChildrenItem
[
currentField
.
id
]);
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
][
childrenIndex
],
currentField
.
id
,
codeArry
);
//改变类型使级联控件重新加载
self
.
$set
(
currentField
,
"type"
,
"lazyCodeTree2"
);
setTimeout
(()
=>
{
self
.
$set
(
currentField
,
"type"
,
"lazyCodeTree"
);
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
][
childrenIndex
],
currentField
.
id
,
codeArry
);
},
5
);
})
.
catch
((
err
)
=>
{
// console.log(err);
});
}
else
if
(
currentField
.
type
==
"codeTree"
)
{
//self.$set(self.formLabelAlign, fieldItem.id, fieldVale);
if
(
realChildrenItem
[
currentField
.
id
])
{
axios
.
get
(
`JsonData/
${
currentField
.
codeTree
}
.json`
)
.
then
((
codRes
)
=>
{
let
value
=
this
.
queryTree
(
codRes
.
data
.
data
.
rows
,
realChildrenItem
[
currentField
.
id
]
)[
0
];
currentField
.
codeOptions
=
[
{
id
:
realChildrenItem
[
currentField
.
id
],
name
:
value
,
},
];
})
.
catch
((
err
)
=>
{});
self
.
$set
(
self
.
formLabelAlign
,
currentField
.
id
,
realChildrenItem
[
currentField
.
id
]
);
}
}
});
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
],
childrenIndex
,
singleObject
);
debugger
;
});
}
else
{
var
singleObject
=
{};
childrenIdem
.
list
[
0
].
name
.
forEach
((
val4
)
=>
{
if
(
(
val4
.
multiple
==
true
&&
val4
.
type
==
"code"
)
||
val4
.
type
==
"lazyCodeTree"
)
{
singleObject
[
val4
.
id
]
=
[];
}
else
{
singleObject
[
val4
.
id
]
=
""
;
}
});
self
.
$set
(
self
.
formLabelAlign
[
childrenIdem
.
id
],
0
,
singleObject
);
}
});
});
},
// 搜索树状数据中的 ID
queryTree
(
tree
,
id
)
{
debugger
;
const
tmp
=
[];
// 路径数组
const
FindPos
=
(
sourceTree
,
sourceId
)
=>
{
if
(
sourceTree
.
id
==
sourceId
)
{
tmp
.
push
(
sourceTree
.
label
);
return
;
}
else
{
if
(
sourceTree
.
children
&&
sourceTree
.
children
.
length
!=
0
)
{
sourceTree
.
children
.
forEach
((
item
)
=>
{
if
(
item
.
id
===
sourceId
)
{
// 寻找到指定的元素节点
tmp
.
push
(
item
.
label
);
FindPos
(
tree
,
sourceTree
.
id
);
// 继续寻找上层元素的位置
}
else
{
// 当前继续寻找别的子项
FindPos
(
item
,
sourceId
);
}
});
}
}
};
tree
.
forEach
((
item2
)
=>
{
FindPos
(
item2
,
id
);
});
return
tmp
.
reverse
();
},
//获取子线索信息
getXsJbxxs
()
{
getXsJbxxsByPid
({
pid
:
this
.
shsexsbh
,
}).
then
((
res
)
=>
{
var
obj
=
{};
res
.
data
.
xsxxList
.
forEach
((
item
)
=>
{
obj
.
xsname
=
item
.
shsexsmc
;
obj
.
lrrname
=
item
.
xxdjryXm
;
obj
.
lrsj
=
item
.
djsj
;
obj
.
shsexsbh
=
item
.
shsexsbh
;
this
.
xszxx
.
push
(
obj
);
obj
=
{};
});
});
},
//初始化表单
initFields
()
{
var
self
=
this
;
for
(
var
i
=
0
;
i
<
this
.
formField
.
length
;
i
++
)
{
//遍历可配置化数组
if
(
this
.
formField
[
i
].
prop
)
{
this
.
rules
[
this
.
formField
[
i
].
id
]
=
this
.
$rules
[
this
.
formField
[
i
].
prop
];
//如果有规则的话 拿到全局的规则 规则是一个数组,数组里是对象 将规则复制到所绑定的对象那个中去,然后每一项绑定对象
}
}
},
getCode
()
{
axios
.
get
(
`JsonData/CODE_SHCE_SJHYLYDM.json`
)
.
then
((
res
)
=>
{
this
.
codeData
=
res
.
data
.
data
.
rows
;
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
//提交
callSubmit
(
params
,
fileLists
)
{
debugger
;
this
.
loadingFk
=
true
;
this
.
loading
=
true
;
// if (this.sftj == "0") {
// this.updateThxxjt(params);
// } else {
this
.
insertThxx
(
params
);
// }
},
insertThxx
(
params
)
{
if
(
this
.
aj
.
length
>
0
)
{
this
.
aj
.
forEach
((
item
,
index
)
=>
{
this
.
ajTableList
.
forEach
((
items
)
=>
{
let
indexaj
=
index
+
1
;
params
.
append
(
"aj"
+
"["
+
indexaj
+
"]"
+
"."
+
items
.
prop
,
item
[
items
.
prop
]
);
});
});
}
if
(
this
.
xyr
.
length
>
0
)
{
this
.
xyr
.
forEach
((
item
,
index
)
=>
{
this
.
xyrTableList
.
forEach
((
items
)
=>
{
let
indexxyr
=
index
+
1
;
params
.
append
(
"xyr"
+
"["
+
indexxyr
+
"]"
+
"."
+
items
.
prop
,
item
[
items
.
prop
]
);
});
});
}
insertThxx
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
"200"
)
{
this
.
$alert
(
"提交成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
debugger
;
this
.
loading
=
false
;
this
.
loadingFk
=
false
;
this
.
toNt
();
},
});
}
});
},
updateThxxjt
(
params
)
{
debugger
;
params
.
append
(
"th.thbh"
,
this
.
thbh
);
updateThxxjt
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
"200"
)
{
this
.
$alert
(
"提交成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
debugger
;
this
.
loading
=
false
;
this
.
loadingFk
=
false
;
this
.
toNt
();
},
});
}
});
},
//指令详情信息查询
getZlxx
()
{
var
self
=
this
;
getZlxqAllByBh
({
xxzjbh
:
this
.
xxzjbh
,
}).
then
((
res
)
=>
{
self
.
xsList
[
0
].
xstz
=
res
.
data
.
zlxq
;
});
},
//获取线索信息
getAjDetail
()
{
var
self
=
this
;
getShsexsXq
({
shsexsbh
:
self
.
shsexsbh
,
page
:
1
,
rows
:
5
,
}).
then
((
res
)
=>
{
// if (res.data.xs.sfbjPdbz == '是') {
// self.xsList[1].vShow = true
// self.getXsbjFj()
// self.xsList[1].xsxx.forEach(item => {
// item.content = res.data.xs[item.id]
// })
// }
self
.
xsList
[
0
].
xsxx
.
forEach
((
item
)
=>
{
item
.
content
=
res
.
data
.
xs
[
item
.
id
];
});
self
.
xsly
=
res
.
data
.
xs
.
shsexslydm
;
self
.
isParent
=
res
.
data
.
xs
.
isparent
;
if
(
self
.
xsly
==
"群众来信"
||
self
.
xsly
==
"群众来电"
)
{
self
.
xslyCode
==
"1"
;
}
setTimeout
(()
=>
{
self
.
loading
=
false
;
},
100
);
});
},
getDetails
(
res
,
i
)
{
var
self
=
this
;
self
.
xsList
[
0
].
xsss
[
i
].
page
.
total
=
res
.
data
.
total
;
var
obj
=
{};
var
key
=
""
;
var
value
=
""
;
res
.
data
.
rows
.
forEach
((
item
)
=>
{
self
.
xsList
[
0
].
xsss
[
i
].
tableList
.
forEach
((
subItem
)
=>
{
obj
[
subItem
.
prop
]
=
item
[
subItem
.
prop
];
});
self
.
xsList
[
0
].
xsss
[
i
].
shuju
.
push
(
obj
);
obj
=
{};
});
},
//嫌疑人信息
getXyrDetail
()
{
var
self
=
this
;
getXsglxyrList
({
shsexsbh
:
this
.
shsexsbh
,
page
:
self
.
xsList
[
0
].
xsss
[
0
].
page
.
currentPage
,
rows
:
self
.
xsList
[
0
].
xsss
[
0
].
page
.
pageSize
,
}).
then
((
res
)
=>
{
if
(
self
.
xslyCode
==
"1"
)
{
self
.
getDetails
(
res
,
5
);
self
.
result
.
bjbrResult
=
res
.
data
.
rows
;
self
.
xsList
[
0
].
xsss
[
5
].
type
=
"show"
;
self
.
xsList
[
0
].
xsss
[
0
].
type
=
""
;
}
else
{
self
.
getDetails
(
res
,
0
);
self
.
result
.
xyrResult
=
res
.
data
.
rows
;
self
.
xsList
[
0
].
xsss
[
0
].
type
=
"show"
;
self
.
xsList
[
0
].
xsss
[
5
].
type
=
""
;
}
});
self
.
xsList
[
0
].
xsss
[
0
].
shuju
=
[];
},
//举报人信息
getJbrDetail
()
{
var
self
=
this
;
getXsgljbrList
({
shsexsbh
:
this
.
shsexsbh
,
page
:
self
.
xsList
[
0
].
xsss
[
1
].
page
.
currentPage
,
rows
:
self
.
xsList
[
0
].
xsss
[
1
].
page
.
pageSize
,
}).
then
((
res
)
=>
{
if
(
res
.
data
.
rows
[
0
].
jbrxm
)
{
self
.
getDetails
(
res
,
1
);
self
.
result
.
jbrResult
=
res
.
data
.
rows
;
self
.
xsList
[
0
].
xsss
[
1
].
type
=
"show"
;
self
.
xsList
[
0
].
xsss
[
3
].
type
=
""
;
self
.
xsList
[
0
].
xsss
[
4
].
type
=
""
;
}
else
if
(
res
.
data
.
rows
[
0
].
tbrxm
)
{
self
.
getDetails
(
res
,
3
);
self
.
result
.
jbrResult
=
res
.
data
.
rows
;
self
.
xsList
[
0
].
xsss
[
3
].
type
=
"show"
;
self
.
xsList
[
0
].
xsss
[
4
].
type
=
""
;
self
.
xsList
[
0
].
xsss
[
1
].
type
=
""
;
}
else
if
(
res
.
data
.
rows
[
0
].
xstgrbm
)
{
self
.
getDetails
(
res
,
4
);
self
.
result
.
tgrResult
=
res
.
data
.
rows
;
self
.
xsList
[
0
].
xsss
[
4
].
type
=
"show"
;
self
.
xsList
[
0
].
xsss
[
1
].
type
=
""
;
self
.
xsList
[
0
].
xsss
[
3
].
type
=
""
;
}
});
self
.
xsList
[
0
].
xsss
[
1
].
shuju
=
[];
},
//公职人员信息
getGzryDetail
()
{
var
self
=
this
;
getSjgzryList
({
shsexsbh
:
this
.
shsexsbh
,
page
:
self
.
xsList
[
0
].
xsss
[
2
].
page
.
currentPage
,
rows
:
5
,
}).
then
((
res
)
=>
{
self
.
getDetails
(
res
,
2
);
self
.
result
.
gzryResult
=
res
.
data
.
rows
;
if
(
res
.
data
.
rows
[
0
].
gzryXm
)
{
self
.
xsList
[
0
].
xsss
[
2
].
type
=
"show"
;
}
else
{
self
.
xsList
[
0
].
xsss
[
2
].
type
=
""
;
}
});
self
.
xsList
[
0
].
xsss
[
2
].
shuju
=
[];
},
getXsFj
()
{
var
self
=
this
;
getXsfjByXsbh
({
shsexsbh
:
self
.
shsexsbh
,
}).
then
((
res
)
=>
{
var
obj
=
{};
var
key
=
""
;
var
value
=
""
;
res
.
data
.
rows
.
forEach
((
item
)
=>
{
obj
.
fjName
=
item
.
xsfjDzwjmc
;
obj
.
xxzjbh
=
item
.
xxzjbh
;
obj
.
type
=
"no"
;
self
.
xsList
[
0
].
xsFj
.
default
.
push
(
obj
);
obj
=
{};
});
});
},
},
watch
:
{
// 'formLabelAlign.hcjgdm': {
// handler: function (val, oldval) {
// debugger
// console.log(val)
// if (val == '02' || val == '03') {
// this.rules['hcfkglxyr.xm'] = this.$rules.checkEmpty
// this.rules['hcfkglxyr.gmsfzh'] = this.$rules.checkEmpty
// this.rules['asjbh'] = this.$rules.checkEmpty
// // this.$set(this.rules, 'hcfkglxyr.xm', this.$rules.checkEmpty)
// // this.$set(this.rules, 'hcfkglxyr.gmsfzh', this.$rules.checkEmpty)
// // this.rules.hcfkglxyr.xm = this.$rules.checkEmpty
// // this.rules.hcfkglxyr.gmsfzh = this.$rules.checkEmpty
// this.initFields()
// } else {
// this.rules['hcfkglxyr.xm'] = null
// this.rules['asjbh'] = null
// this.rules['hcfkglxyr.gmsfzh'] = null
// // this.$set(this.rules, 'hcfkglxyr.xm', '')
// // this.$set(this.rules, 'hcfkglxyr.gmsfzh', '')
// this.$forceUpdate()
// }
// },
// deep: true
// },
// formLabelAlign: {
// handler: function (val, oldval) {
// console.log(val)
// if (this.$route.query.fkid) {
// this.rules['hcjgdm'] = this.$rules.checkEmpty
// this.rules['sjhyly'] = this.$rules.checkEmpty
// this.rules['fknrJyqk'] = this.$rules.checkEmpty
// this.initFields()
// } else {
// this.rules['hcjgdm'] = null
// this.rules['sjhyly'] = null
// this.rules['fknrJyqk'] = null
// this.$forceUpdate()
// }
// if (val.hcjgdm == '04') {
// this.rules['sjhyly'] = null
// this.rules['fknrJyqk'] = null
// }
// },
// deep: true
// }
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.xsfk
{
/deep/.el-loading-spinner
{
//
top
:
72%
;
//
margin-top
:
-21px
;
//
width
:
100%
;
//
text-align
:
center
;
//
position
:
absolute
;
position
:
fixed
;
top
:
50%
;
}
//
background-image
:
url
(../../
assets
/
img
/
bj
.png
);
background-repeat
:
no-repeat
;
background-attachment
:
scroll
;
max-height
:
100
%;
overflow-y
:
scroll
;
/
deep
/
.el-loading-mask
{
height
:
249%
;
position
:
absolute
;
z-index
:
2000
;
background-color
:
rgba
(
255
,
255
,
255
,
0.9
);
margin
:
0
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
transition
:
opacity
0.3s
;
}
}
.form
{
margin-top
:
85px
;
/deep/
.formContent
.allForm
{
margin
:
0
!important
;
}
/
deep
/
.itemtextarea
.el-textarea__inner
{
width
:
800px
;
}
/
deep
/
#formCommonPage
.formContent
.childrenAsAdd
.addContent
{
width
:
1000px
;
margin-left
:
140px
;
margin-top
:
0px
;
margin-bottom
:
16px
!important
;
padding-top
:
10px
;
}
/
deep
/
#formCommonPage
.formContent
.addChildBtn
.el-button
{
width
:
1000px
;
}
/
deep
/
#formCommonPage
.formContent
.addChildBtn
{
margin-top
:
0
!important
;
}
/
deep
/
#formCommonPage
.formContent
{
padding-left
:
15px
;
}
}
.det
/
deep
/
#xsDet
.xs_main
.content
.xs
.xs_xq
.xs_xq_wrap
.xs_xq_contents
{
&:nth-child(5)
{
width
:
600px
;
}
}
.det
/
deep
/
#xsDet
.xs_main
.content
.xs
.xs_xq
{
padding-left
:
35px
;
}
.det
/
deep
/
#xsDet
.xs_main
.content
.xs
.xs_xq
.xs_xq_wrap
.xs_xq_contents
.xs_xq_content
{
width
:
250px
;
}
.det
/
deep
/
#xsDet
.xs_main
.content
.xs
.xs_xq
.xs_xq_wrap
.xs_xq_contents
.xs_xq_name
{
width
:
118px
;
}
.det
/
deep
/
#xsDet
.xs_main
.content
.xs
.xs_xq
.xs_xq_wrap
{
width
:
1280px
;
}
.det
/
deep
/
#xsDet
.xs_main
.content
.xs
.xs_form
.name
{
width
:
118px
;
min-width
:
118px
;
}
.det
/
deep
/
#xsDet
.xs_main
.content
.xs
.xs_fj
.fj_title
{
width
:
118px
;
min-width
:
118px
;
}
.det
/
deep
/
#xsDet
.xs_main
.content
{
margin-left
:
7px
;
}
.hcfksh
{
width
:
1400px
;
margin
:
10px
auto
;
box-shadow
:
0px
1px
2px
rgba
(
$
color
:
#000000
,
$
alpha
:
0.2
);
padding
:
20px
;
background
:
#fff
;
color
:
#8c97a0
;
.content_item
{
.name
{
color
:
$
base-color
;
}
.ba_radio
{
display
:
flex
;
}
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
//
.xshc
/
deep
/
#xsDet
.xs_main
{
//
margin-left
:
7px
;
//
}
.form
/
deep
/
.childrenAsAdd
{
.addName
{
width
:
110px
!important
;
}
}
/
deep
/
.el-button
{
margin-right
:
-19px
!important
;
}
/
deep
/
.el-dialog__header
{
background
:
#ffffff
!important
;
}
/
deep
/
.el-dialog
{
position
:
relative
;
margin
:
0
auto
50px
;
border-radius
:
2px
;
box-sizing
:
border-box
;
width
:
50%
;
}
.cf
{
float
:
right
;
/* right: 20%; */
margin-right
:
17%
;
margin-top
:
0.5%
;
border
:
1px
solid
#0061f7
;
width
:
40px
;
text-align
:
center
;
color
:
#0061f7
;
}
</
style
>
src/views/shse/fzth/queryFzth.vue
View file @
b81e23fe
...
...
@@ -11,6 +11,7 @@
ref=
"rightContent"
>
<template
#
listOperation=
"scope"
>
<span
class=
"hbyps"
@
click=
"toAdd(scope.scope)"
>
新增
</span>
<span
class=
"hbyps"
@
click=
"toHb(scope.scope)"
>
合并
</span>
</
template
>
<
template
#
btnGroup=
"scope"
>
...
...
@@ -29,7 +30,7 @@
v-for=
"(columnTitle, index) in xsTableList"
:key=
"index"
:label=
"columnTitle.label"
:width=
"columnTitle.width
"
align=
"center
"
>
<
template
slot-scope=
"scope"
>
<div
style=
"color: #555555"
>
...
...
@@ -37,13 +38,13 @@
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"是否主团伙"
>
<el-table-column
label=
"是否主团伙"
align=
"center"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-radio
-group
v-model=
"scope.row.sfzth"
>
<!-- :disabled="scope.row.disabled" -->
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"0"
>
否
</el-radio>
</el-radio-group
>
<el-radio
v-model=
"radio"
:label=
"scope.$index"
@
change
.
native=
"getRadio(scope.row, scope.$index)"
></el-radio
>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -69,6 +70,7 @@ export default {
},
data
()
{
return
{
radio
:
false
,
xsTableList
:
[
{
label
:
"团伙编号"
,
...
...
@@ -85,11 +87,6 @@ export default {
width
:
"145"
,
prop
:
"thtm"
,
},
// {
// label: "是否主团伙",
// prop: "sfzth",
// width: "200",
// },
],
sfzth
:
""
,
dialogVisible
:
false
,
...
...
@@ -166,13 +163,15 @@ export default {
},
fileArr
:
[],
zdXxzjbh
:
""
,
indexRadio
:
0
,
};
},
created
()
{
this
.
$store
.
commit
(
"user/SET_Menu"
,
this
.
Menu
);
},
methods
:
{
toCf
(
scope
)
{
getRadio
(
scope
,
index
)
{
this
.
indexRadio
=
index
;
debugger
;
},
selectionChange
(
row
)
{
...
...
@@ -197,10 +196,16 @@ export default {
},
// 确认合并
handleHb
()
{
debugger
;
let
params
=
new
FormData
();
this
.
xsShuju
.
forEach
((
item
,
index
)
=>
{
params
.
append
(
"th"
+
"["
+
index
+
"]"
+
".thbh"
,
item
.
thbh
);
params
.
append
(
"th"
+
"["
+
index
+
"]"
+
".sfzth"
,
item
.
sfzth
);
params
.
append
(
"th"
+
"["
+
index
+
"]"
+
".sfzth"
,
index
==
this
.
indexRadio
?
"1"
:
"0"
);
console
.
log
(
index
==
this
.
indexRadio
?
"1"
:
"0"
);
});
hbThajxyr
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
...
...
@@ -215,13 +220,27 @@ export default {
},
thxq
(
scope
)
{
debugger
;
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/xq"
,
query
:
{
thbh
:
scope
.
row
.
thbh
,
},
});
},
toAdd
()
{
this
.
$router
.
pushToTab
({
path
:
"/fzth"
,
});
},
},
mounted
()
{},
watch
:
{
xsShuju
:
{
handler
(
val
,
old
)
{
debugger
;
},
},
deep
:
true
,
},
};
</
script
>
...
...
@@ -273,6 +292,11 @@ export default {
}
</
style
>
<
style
scoped
lang=
"scss"
>
/
deep
/
.el-radio__label
{
font-size
:
14px
;
padding-left
:
10px
;
display
:
none
;
}
.el-form-item
{
margin
:
15px
0
20px
0
;
}
...
...
src/views/shse/shseaj/queryShseaj.vue
View file @
b81e23fe
...
...
@@ -87,11 +87,11 @@ export default {
prop
:
"ajmc"
,
width
:
"200"
,
},
{
label
:
"接警编号"
,
prop
:
"jjbh"
,
width
:
"200"
,
},
//
{
//
label: "接警编号",
//
prop: "jjbh",
//
width: "200",
//
},
{
label
:
"发现时间"
,
prop
:
"fxasjsj"
,
...
...
src/views/shse/shsexs/queryXsxx.vue
View file @
b81e23fe
...
...
@@ -171,7 +171,7 @@ export default {
},
methods
:
{
toInfor
(
obj
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
'/xsxq'
,
query
:
{
shsexsbh
:
obj
.
shsexsbh
...
...
@@ -194,7 +194,7 @@ export default {
});
},
add
()
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/xsxxxz"
,
});
},
...
...
@@ -225,7 +225,7 @@ export default {
});
},
toXg
(
scope
)
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
"/xsxxxz"
,
query
:
{
shsexsbh
:
scope
.
row
.
shsexsbh
,
...
...
@@ -237,7 +237,7 @@ export default {
this
.
slect
=
row
;
},
toXf
()
{
this
.
$router
.
push
({
this
.
$router
.
push
ToTab
({
path
:
'/wfzdzczl'
})
},
...
...
src/views/yhz/cxyhz/cxyhz.vue
View file @
b81e23fe
...
...
@@ -23,6 +23,7 @@
:cxUrl=
"cxUr2"
@
selectionChange=
"selectionChange"
@
onSelect=
"onSelect"
@
getRadio=
"getRadio"
></eldialog-content>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
...
...
@@ -86,6 +87,7 @@ export default {
},
data
()
{
return
{
indexRadio
:
0
,
jjlyJyqk
:
""
,
sfjsPdbz
:
""
,
dialogFormYq
:
false
,
...
...
@@ -169,10 +171,10 @@ export default {
label
:
"用户手机"
,
prop
:
"telephone"
,
},
{
label
:
"用户单位代码"
,
prop
:
"unitcode"
,
},
//
{
//
label: "用户单位代码",
//
prop: "unitcode",
//
},
{
label
:
"用户单位名称"
,
prop
:
"unitname"
,
...
...
@@ -238,7 +240,10 @@ export default {
},
mounted
()
{},
methods
:
{
toInfor
()
{},
getRadio
(
scope
,
index
)
{
this
.
indexRadio
=
index
;
},
toInfor
()
{},
dialogBcYQ
()
{
jsYhzYq
({
sfjsPdbz
:
this
.
sfjsPdbz
,
...
...
@@ -322,13 +327,13 @@ export default {
debugger
;
}
},
onSelect
(
rows
,
row
)
{
debugger
let
selected
=
rows
.
length
&&
rows
.
indexOf
(
row
)
!=
-
1
if
(
selected
==
true
)
{
this
.
dialogForm
=
true
;
onSelect
(
rows
,
row
)
{
debugger
;
let
selected
=
rows
.
length
&&
rows
.
indexOf
(
row
)
!=
-
1
;
//
if (selected == true) {
//
this.dialogForm = true;
}
//
}
},
// 保存
dialogBc
()
{
...
...
@@ -345,10 +350,11 @@ export default {
params
.
append
(
`userList[
${
index
}
].yhLxdh`
,
item
.
telephone
);
params
.
append
(
`userList[
${
index
}
].yhDwdm`
,
item
.
unitcode
);
params
.
append
(
`userList[
${
index
}
].yhDwmc`
,
item
.
unitname
);
params
.
append
(
`userList[
${
index
}
].yhJb`
,
index
==
this
.
indexRadio
?
'0001'
:
'0000'
);
});
this
.
selectedId1
.
forEach
((
item
,
index
)
=>
{
params
.
append
(
`userList[
${
index
}
].yhJb`
,
item
.
radio
);
});
//
this.selectedId1.forEach((item, index) => {
//
params.append(`userList[${index}].yhJb`, item.radio);
//
});
saveNewYhz
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
"200"
)
{
this
.
$message
({
...
...
src/views/yhz/cxyhz/yhzXz.vue
View file @
b81e23fe
...
...
@@ -317,6 +317,15 @@
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"负责人"
align=
"center"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-radio
v-model=
"radio"
:label=
"scope.$index"
@
change
.
native=
"getRadio(scope.row, scope.$index)"
></el-radio>
</
template
>
</el-table-column>
</el-table>
<!--分页-->
<el-pagination
...
...
@@ -377,6 +386,7 @@ export default {
},
data
()
{
return
{
radio
:
false
,
srcList
:
[],
tagType
:
[
"danger"
,
"success"
,
"warning"
,
"info"
,
""
],
tPage
:
null
,
...
...
@@ -473,6 +483,9 @@ export default {
self
.
doQuery
(
"yes"
);
},
methods
:
{
getRadio
(
scope
,
index
)
{
this
.
$emit
(
"getRadio"
,
scope
,
index
);
},
change
(
scope
)
{
debugger
;
},
...
...
@@ -492,8 +505,7 @@ export default {
this
.
$emit
(
"selectionChange"
,
row
);
},
onSelect
(
rows
,
row
)
{
this
.
$emit
(
"onSelect"
,
rows
,
row
);
this
.
$emit
(
"onSelect"
,
rows
,
row
);
},
EditCode
()
{
var
self
=
this
;
...
...
@@ -1039,6 +1051,11 @@ export default {
}
</
style
>
<
style
scoped
lang=
"scss"
>
/
deep
/
.el-radio__label
{
font-size
:
14px
;
padding-left
:
10px
;
display
:
none
;
}
@import
"@/assets/styles/rightContent.scss"
;
.el-dropdown-menu
{
...
...
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