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
2fbb1c13
Commit
2fbb1c13
authored
Aug 23, 2023
by
gao_yingdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
侦查脑图,修改和删除
parent
2e88bdd3
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
377 additions
and
181 deletions
+377
-181
src/api/brainPhoto.js
+52
-0
src/router/modules/brainPhoto.js
+4
-4
src/views/brainPhoto/brainWffzkycl.vue
+45
-18
src/views/brainPhoto/brainWffzkyfwbshQQ.vue
+45
-18
src/views/brainPhoto/brainWffzkyfwbshSJH.vue
+48
-18
src/views/brainPhoto/brainWffzkyry.vue
+39
-8
src/views/brainPhoto/kyxsGl/addKycl.vue
+37
-31
src/views/brainPhoto/kyxsGl/addKyfwbsh.vue
+36
-27
src/views/brainPhoto/kyxsGl/addKyhm.vue
+34
-28
src/views/brainPhoto/kyxsGl/addKyry.vue
+36
-28
vue.config.js
+1
-1
No files found.
src/api/brainPhoto.js
View file @
2fbb1c13
...
...
@@ -18,3 +18,55 @@ export const insertFwbshInfo = params =>
postform
(
`
${
base
.
alyIP3
}
/kyxs/insertFwbshInfo`
,
params
);
// 可疑人员删除
export
const
deleteRyKyxsList
=
params
=>
post
(
`
${
base
.
alyIP3
}
/kyxs/deleteRyKyxsList`
,
params
);
// 可疑人员详情
export
const
getRyById
=
params
=>
post
(
`
${
base
.
alyIP3
}
/kyxs/getRyById`
,
params
);
// 可疑人员修改
export
const
updateRyKyxsList
=
params
=>
postform
(
`
${
base
.
alyIP3
}
/kyxs/updateRyKyxsList`
,
params
);
// 可疑号码删除
export
const
deleteHmKyxsList
=
params
=>
post
(
`
${
base
.
alyIP3
}
/kyxs/deleteHmKyxsList`
,
params
);
// 可疑号码详情
export
const
getHmById
=
params
=>
post
(
`
${
base
.
alyIP3
}
/kyxs/getHmById`
,
params
);
// 可疑号码修改
export
const
updateHmKyxsList
=
params
=>
postform
(
`
${
base
.
alyIP3
}
/kyxs/updateHmKyxsList`
,
params
);
// 可疑标识号删除
export
const
deleteFwbshInfo
=
params
=>
post
(
`
${
base
.
alyIP3
}
/kyxs/deleteFwbshInfo`
,
params
);
// 可疑标识号详情
export
const
queryFwbshById
=
params
=>
post
(
`
${
base
.
alyIP3
}
/kyxs/queryFwbshById`
,
params
);
// 可疑标识号修改
export
const
updateFwbshInfo
=
params
=>
postform
(
`
${
base
.
alyIP3
}
/kyxs/updateFwbshInfo`
,
params
);
// 可疑车辆删除
export
const
deleteJdcInfo
=
params
=>
post
(
`
${
base
.
alyIP3
}
/kyxs/deleteJdcInfo`
,
params
);
// 可疑车辆详情
export
const
getJdcById
=
params
=>
post
(
`
${
base
.
alyIP3
}
/kyxs/getJdcById`
,
params
);
// 可疑车辆修改
export
const
updateJdcInfo
=
params
=>
postform
(
`
${
base
.
alyIP3
}
/kyxs/updateJdcInfo`
,
params
);
src/router/modules/brainPhoto.js
View file @
2fbb1c13
...
...
@@ -163,7 +163,7 @@ export default [{
path
:
"/addKyry"
,
name
:
"addKyry"
,
meta
:
{
title
:
'
新增
可疑人员'
,
title
:
'可疑人员'
,
isAdd
:
true
,
},
component
:
()
=>
import
(
"@/views/brainPhoto/kyxsGl/addKyry.vue"
)
...
...
@@ -172,7 +172,7 @@ export default [{
path
:
"/addKyfwbsh"
,
name
:
"addKyfwbsh"
,
meta
:
{
title
:
'
新增
可疑标识号'
,
title
:
'可疑标识号'
,
isAdd
:
true
,
},
component
:
()
=>
import
(
"@/views/brainPhoto/kyxsGl/addKyfwbsh.vue"
)
...
...
@@ -182,7 +182,7 @@ export default [{
path
:
"/addKyhm"
,
name
:
"addKyhm"
,
meta
:
{
title
:
'
新增
可疑号码'
,
title
:
'可疑号码'
,
isAdd
:
true
,
},
component
:
()
=>
import
(
"@/views/brainPhoto/kyxsGl/addKyhm.vue"
)
...
...
@@ -191,7 +191,7 @@ export default [{
path
:
"/addKycl"
,
name
:
"addKycl"
,
meta
:
{
title
:
'
新增
可疑机动车'
,
title
:
'可疑机动车'
,
isAdd
:
true
,
},
component
:
()
=>
import
(
"@/views/brainPhoto/kyxsGl/addKycl.vue"
)
...
...
src/views/brainPhoto/brainWffzkycl.vue
View file @
2fbb1c13
...
...
@@ -16,11 +16,11 @@
>
</
template
>
<
template
#
jrnt=
"scope"
>
<span
class=
"hbyps"
@
click=
"toBrai(scope.scope)"
>
进入脑图
</span
>
<div
style=
"display: flex"
>
<span
class=
"hbyp"
@
click=
"toBrai(scope.scope)"
>
进入脑图
</span>
<span
class=
"hbyp"
@
click=
"etail(scope.scope)"
>
修改
</span>
<span
class=
"hbyp"
@
click=
"del(scope.scope)"
>
删除
</span>
</div
>
<!--
<span
class=
"hbyps"
@
click=
"sqspBtna(scope.scope)"
...
...
@@ -199,7 +199,7 @@
</div>
</template>
<
script
>
import
{
getApproveUsers
,
saveSpxx
}
from
"@/api/brainPhoto.js"
;
import
{
getApproveUsers
,
saveSpxx
,
deleteJdcInfo
}
from
"@/api/brainPhoto.js"
;
// import SearchGraph from "@c/searchRight.vue";
import
base
from
"@/api/base"
;
import
rightContent
from
"@c/ptCxForm_components.vue"
;
...
...
@@ -431,6 +431,33 @@ export default {
add
()
{
this
.
$router
.
pushToTab
({
path
:
"/addKycl"
});
},
etail
(
scope
)
{
this
.
$router
.
pushToTab
({
path
:
"/addKycl"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
},
});
},
del
(
scope
)
{
this
.
$confirm
(
"删除后不可恢复,是否删除?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
deleteJdcInfo
({
xxzjbh
:
scope
.
row
.
xxzjbh
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功!"
);
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
}
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
,
});
});
},
},
};
</
script
>
...
...
@@ -498,18 +525,17 @@ export default {
text-align
:
center
;
}
.hbyp
{
width
:
64px
;
height
:
24px
;
background
:
#ffffff
;
border
:
1px
solid
#007aff
;
opacity
:
1
;
border-radius
:
4px
;
text-align
:
center
;
align-items
:
center
;
display
:
inline-block
;
font-size
:
12px
!important
;
font-weight
:
400
!important
;
color
:
#007aff
!important
;
font-size
:
14px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
400
;
line-height
:
22px
;
color
:
#007aff
;
margin-right
:
15px
;
cursor
:
pointer
;
display
:
inline-block
;
//
width
:
50px
;
//
border
:
1px
solid
;
line-height
:
28px
;
text-align
:
center
;
}
</
style
>
\ No newline at end of file
src/views/brainPhoto/brainWffzkyfwbshQQ.vue
View file @
2fbb1c13
...
...
@@ -24,11 +24,11 @@
>
</
template
>
<
template
#
jrnt=
"scope"
>
<
span
class=
"hbyps"
@
click=
"goDetail(scope.scope)"
>
进入脑图
</span
>
<
div
style=
"display: flex"
>
<span
class=
"hbyp"
@
click=
"toBrai(scope.scope)"
>
进入脑图
</span>
<span
class=
"hbyp"
@
click=
"etail(scope.scope)"
>
修改
</span>
<span
class=
"hbyp"
@
click=
"del(scope.scope)"
>
删除
</span>
</div
>
<!--
<span
class=
"hbyps"
@
click=
"sqspBtna(scope.scope)"
...
...
@@ -208,7 +208,7 @@
</template>
<
script
>
import
rightContent
from
"@c/ptCxForm_components.vue"
;
import
{
getApproveUsers
,
saveSpxx
}
from
"@/api/brainPhoto.js"
;
import
{
getApproveUsers
,
saveSpxx
,
deleteFwbshInfo
}
from
"@/api/brainPhoto.js"
;
import
base
from
"@/api/base"
;
import
SearchGraph
from
"@c/searchRight.vue"
;
export
default
{
...
...
@@ -414,6 +414,33 @@ export default {
add
()
{
this
.
$router
.
pushToTab
({
path
:
"/addKyfwbsh"
});
},
etail
(
scope
)
{
this
.
$router
.
pushToTab
({
path
:
"/addKyfwbsh"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
},
});
},
del
(
scope
)
{
this
.
$confirm
(
"删除后不可恢复,是否删除?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
deleteFwbshInfo
({
xxzjbh
:
scope
.
row
.
xxzjbh
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功!"
);
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
}
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
,
});
});
},
goDetail
(
scope
)
{
var
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
));
var
idcard
=
userInfo
.
identitycard
;
...
...
@@ -565,18 +592,17 @@ export default {
text-align
:
center
;
}
.hbyp
{
width
:
64px
;
height
:
24px
;
background
:
#ffffff
;
border
:
1px
solid
#007aff
;
opacity
:
1
;
border-radius
:
4px
;
text-align
:
center
;
align-items
:
center
;
display
:
inline-block
;
font-size
:
12px
!important
;
font-weight
:
400
!important
;
color
:
#007aff
!important
;
font-size
:
14px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
400
;
line-height
:
22px
;
color
:
#007aff
;
margin-right
:
15px
;
cursor
:
pointer
;
display
:
inline-block
;
//
width
:
50px
;
//
border
:
1px
solid
;
line-height
:
28px
;
text-align
:
center
;
}
</
style
>
\ No newline at end of file
src/views/brainPhoto/brainWffzkyfwbshSJH.vue
View file @
2fbb1c13
...
...
@@ -16,11 +16,11 @@
>
</
template
>
<
template
#
jrnt=
"scope"
>
<
span
class=
"hbyps"
@
click=
"toBrai(scope.scope)"
>
进入脑图
</span
>
<
div
style=
"display: flex"
>
<span
class=
"hbyp"
@
click=
"toBrai(scope.scope)"
>
进入脑图
</span>
<span
class=
"hbyp"
@
click=
"etail(scope.scope)"
>
修改
</span>
<span
class=
"hbyp"
@
click=
"del(scope.scope)"
>
删除
</span>
</div
>
<!--
<span
class=
"hbyps"
@
click=
"sqspBtna(scope.scope)"
...
...
@@ -200,7 +200,11 @@
</template>
<
script
>
// import SearchGraph from "@c/searchRight.vue";
import
{
getApproveUsers
,
saveSpxx
}
from
"@/api/brainPhoto.js"
;
import
{
getApproveUsers
,
saveSpxx
,
deleteHmKyxsList
,
}
from
"@/api/brainPhoto.js"
;
import
base
from
"@/api/base"
;
import
rightContent
from
"@c/ptCxForm_components.vue"
;
export
default
{
...
...
@@ -430,6 +434,33 @@ export default {
add
()
{
this
.
$router
.
pushToTab
({
path
:
"/addKyhm"
});
},
etail
(
scope
)
{
this
.
$router
.
pushToTab
({
path
:
"/addKyhm"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
},
});
},
del
(
scope
)
{
this
.
$confirm
(
"删除后不可恢复,是否删除?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
deleteHmKyxsList
({
xxzjbh
:
scope
.
row
.
xxzjbh
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功!"
);
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
}
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
,
});
});
},
},
};
</
script
>
...
...
@@ -453,18 +484,17 @@ export default {
text-align
:
center
;
}
.hbyp
{
width
:
64px
;
height
:
24px
;
background
:
#ffffff
;
border
:
1px
solid
#007aff
;
opacity
:
1
;
border-radius
:
4px
;
text-align
:
center
;
align-items
:
center
;
display
:
inline-block
;
font-size
:
12px
!important
;
font-weight
:
400
!important
;
color
:
#007aff
!important
;
font-size
:
14px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
400
;
line-height
:
22px
;
color
:
#007aff
;
margin-right
:
15px
;
cursor
:
pointer
;
display
:
inline-block
;
//
width
:
50px
;
//
border
:
1px
solid
;
line-height
:
28px
;
text-align
:
center
;
}
</
style
>
src/views/brainPhoto/brainWffzkyry.vue
View file @
2fbb1c13
...
...
@@ -16,11 +16,11 @@
>
</
template
>
<
template
#
jrnt=
"scope"
>
<
span
class=
"hbyp"
@
click=
"toBrai(scope.scope)"
>
进入脑图
</span
>
<
div
style=
"display: flex"
>
<span
class=
"hbyp"
@
click=
"toBrai(scope.scope)"
>
进入脑图
</span>
<span
class=
"hbyp"
@
click=
"etail(scope.scope)"
>
修改
</span>
<span
class=
"hbyp"
@
click=
"del(scope.scope)"
>
删除
</span>
</div
>
<!--
<span
class=
"hbyp"
@
click=
"sqspBtna(scope.scope)"
...
...
@@ -199,7 +199,11 @@
</div>
</template>
<
script
>
import
{
getApproveUsers
,
saveSpxx
}
from
"@/api/brainPhoto.js"
;
import
{
getApproveUsers
,
saveSpxx
,
deleteRyKyxsList
,
}
from
"@/api/brainPhoto.js"
;
import
base
from
"@/api/base"
;
import
rightContent
from
"@c/ptCxForm_components.vue"
;
export
default
{
...
...
@@ -394,6 +398,33 @@ export default {
add
()
{
this
.
$router
.
pushToTab
({
path
:
"/addKyry"
});
},
etail
(
scope
)
{
this
.
$router
.
pushToTab
({
path
:
"/addKyry"
,
query
:
{
xxzjbh
:
scope
.
row
.
xxzjbh
},
});
},
del
(
scope
)
{
this
.
$confirm
(
"删除后不可恢复,是否删除?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
deleteRyKyxsList
({
xxzjbh
:
scope
.
row
.
xxzjbh
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功!"
);
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
}
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
,
});
});
},
toBrai
(
item
)
{
debugger
;
// let path = `http://39.99.155.173:8007/naotuBox?type=KyRy&kybh=${item.row.kyxsryZjhm}`;
...
...
@@ -487,10 +518,10 @@ export default {
font-weight
:
400
;
line-height
:
22px
;
color
:
#007aff
;
margin-right
:
1
6
px
;
margin-right
:
1
5
px
;
cursor
:
pointer
;
display
:
inline-block
;
width
:
87
px
;
//
width
:
50
px
;
//
border
:
1px
solid
;
line-height
:
28px
;
text-align
:
center
;
...
...
src/views/brainPhoto/kyxsGl/addKycl.vue
View file @
2fbb1c13
...
...
@@ -14,6 +14,7 @@
<
script
>
import
formCompontent
from
"@c/form.vue"
;
import
{
insertJdcxs
}
from
"@/api/kyxs.js"
;
import
{
getJdcById
,
updateJdcInfo
}
from
"@/api/brainPhoto.js"
;
import
axios
from
"@/utils/http.js"
;
export
default
{
name
:
"ssdy"
,
...
...
@@ -59,7 +60,7 @@ export default {
disabled
:
true
,
col
:
"2"
,
},
{
{
name
:
"录入单位:"
,
id
:
"lrdw"
,
type
:
"codeTree"
,
...
...
@@ -85,7 +86,7 @@ export default {
},
],
formLabelAlign
:
{
lrsj
:
this
.
$moment
().
format
(
"YYYY-MM-DD HH:mm:ss"
),
lrsj
:
this
.
$moment
().
format
(
"YYYY-MM-DD HH:mm:ss"
),
},
glxxXxzjbh
:
""
,
xxzjbh
:
""
,
...
...
@@ -99,11 +100,11 @@ export default {
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
//
if (!this.xxzjbh) {
this
.
addSubmit
(
params
,
loading
);
//
} else {
//
this.editSubmit(params, loading);
//
}
if
(
!
this
.
xxzjbh
)
{
this
.
addSubmit
(
params
,
loading
);
}
else
{
this
.
editSubmit
(
params
,
loading
);
}
},
windowRefresh
()
{
window
.
close
();
...
...
@@ -126,24 +127,24 @@ export default {
}
});
},
//
editSubmit(params, loading) {
//
params.append("xxzjbh", this.xxzjbh);
// updatessdy
(params).then((res) => {
//
if (res.success && res.code == 200) {
// this.$alert("保存
成功!", "提示", {
//
confirmButtonText: "确定",
//
type: "success",
//
callback: () => {
//
loading.close();
//
this.windowRefresh();
//
},
//
});
//
} else {
//
loading.close();
// this.$message.error("添加失败
,请检查数据格式是否正确");
//
}
//
});
//
},
editSubmit
(
params
,
loading
)
{
params
.
append
(
"xxzjbh"
,
this
.
xxzjbh
);
updateJdcInfo
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$alert
(
"修改
成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
loading
.
close
();
this
.
windowRefresh
();
},
});
}
else
{
loading
.
close
();
this
.
$message
.
error
(
"修改成功
,请检查数据格式是否正确"
);
}
});
},
getshuju
()
{
var
self
=
this
;
let
loading
=
this
.
$loading
({
...
...
@@ -152,8 +153,8 @@ export default {
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
queryByXxzjbh
({
xxzjbh
:
this
.
xxzjbh
,
getJdcById
({
id
:
this
.
xxzjbh
,
}).
then
((
res
)
=>
{
var
result
=
res
.
data
.
rows
;
self
.
propFormField
.
forEach
((
fieldItem
)
=>
{
...
...
@@ -173,10 +174,15 @@ export default {
},
},
created
()
{
debugger
let
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
));
this
.
$set
(
this
.
formLabelAlign
,
'lrr'
,
userInfo
.
userName
)
this
.
$set
(
this
.
formLabelAlign
,
'lrdw'
,
userInfo
.
unitcode
)
debugger
;
if
(
this
.
$route
.
query
.
xxzjbh
)
{
this
.
xxzjbh
=
this
.
$route
.
query
.
xxzjbh
;
this
.
getshuju
();
}
else
{
let
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
));
this
.
$set
(
this
.
formLabelAlign
,
"lrr"
,
userInfo
.
userName
);
this
.
$set
(
this
.
formLabelAlign
,
"lrdw"
,
userInfo
.
unitcode
);
}
},
};
</
script
>
...
...
src/views/brainPhoto/kyxsGl/addKyfwbsh.vue
View file @
2fbb1c13
...
...
@@ -13,7 +13,11 @@
<
script
>
import
formCompontent
from
"@c/form.vue"
;
import
{
insertFwbshInfo
}
from
"@/api/brainPhoto.js"
;
import
{
insertFwbshInfo
,
queryFwbshById
,
updateFwbshInfo
,
}
from
"@/api/brainPhoto.js"
;
import
axios
from
"@/utils/http.js"
;
export
default
{
name
:
"ssdy"
,
...
...
@@ -91,11 +95,11 @@ export default {
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
//
if (!this.xxzjbh) {
this
.
addSubmit
(
params
,
loading
);
//
} else {
//
this.editSubmit(params, loading);
//
}
if
(
!
this
.
xxzjbh
)
{
this
.
addSubmit
(
params
,
loading
);
}
else
{
this
.
editSubmit
(
params
,
loading
);
}
},
windowRefresh
()
{
window
.
close
();
...
...
@@ -118,24 +122,24 @@ export default {
}
});
},
//
editSubmit(params, loading) {
//
params.append("xxzjbh", this.xxzjbh);
// updatessdy
(params).then((res) => {
//
if (res.success && res.code == 200) {
//
this.$alert("保存成功!", "提示", {
//
confirmButtonText: "确定",
//
type: "success",
//
callback: () => {
//
loading.close();
//
this.windowRefresh();
//
},
//
});
//
} else {
//
loading.close();
//
this.$message.error("添加失败,请检查数据格式是否正确");
//
}
//
});
//
},
editSubmit
(
params
,
loading
)
{
params
.
append
(
"xxzjbh"
,
this
.
xxzjbh
);
updateFwbshInfo
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$alert
(
"保存成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
loading
.
close
();
this
.
windowRefresh
();
},
});
}
else
{
loading
.
close
();
this
.
$message
.
error
(
"添加失败,请检查数据格式是否正确"
);
}
});
},
getshuju
()
{
var
self
=
this
;
let
loading
=
this
.
$loading
({
...
...
@@ -144,8 +148,8 @@ export default {
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
query
ByXxzjbh
({
xxzjbh
:
this
.
xxzjbh
,
query
FwbshById
({
id
:
this
.
xxzjbh
,
}).
then
((
res
)
=>
{
var
result
=
res
.
data
.
rows
;
self
.
propFormField
.
forEach
((
fieldItem
)
=>
{
...
...
@@ -164,7 +168,12 @@ export default {
});
},
},
created
()
{},
created
()
{
if
(
this
.
$route
.
query
.
xxzjbh
)
{
this
.
xxzjbh
=
this
.
$route
.
query
.
xxzjbh
;
this
.
getshuju
();
}
},
};
</
script
>
...
...
src/views/brainPhoto/kyxsGl/addKyhm.vue
View file @
2fbb1c13
...
...
@@ -14,6 +14,7 @@
<
script
>
import
formCompontent
from
"@c/form.vue"
;
import
{
insertHmxs
}
from
"@/api/kyxs.js"
;
import
{
getHmById
,
updateHmKyxsList
}
from
"@/api/brainPhoto.js"
;
import
axios
from
"@/utils/http.js"
;
export
default
{
name
:
"ssdy"
,
...
...
@@ -99,11 +100,11 @@ export default {
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
//
if (!this.xxzjbh) {
this
.
addSubmit
(
params
,
loading
);
//
} else {
//
this.editSubmit(params, loading);
//
}
if
(
!
this
.
xxzjbh
)
{
this
.
addSubmit
(
params
,
loading
);
}
else
{
this
.
editSubmit
(
params
,
loading
);
}
},
windowRefresh
()
{
window
.
close
();
...
...
@@ -126,24 +127,24 @@ export default {
}
});
},
//
editSubmit(params, loading) {
//
params.append("xxzjbh", this.xxzjbh);
// updatessdy
(params).then((res) => {
//
if (res.success && res.code == 200) {
// this.$alert("保存
成功!", "提示", {
//
confirmButtonText: "确定",
//
type: "success",
//
callback: () => {
//
loading.close();
//
this.windowRefresh();
//
},
//
});
//
} else {
//
loading.close();
// this.$message.error("添加
失败,请检查数据格式是否正确");
//
}
//
});
//
},
editSubmit
(
params
,
loading
)
{
params
.
append
(
"xxzjbh"
,
this
.
xxzjbh
);
updateHmKyxsList
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$alert
(
"修改
成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
loading
.
close
();
this
.
windowRefresh
();
},
});
}
else
{
loading
.
close
();
this
.
$message
.
error
(
"修改
失败,请检查数据格式是否正确"
);
}
});
},
getshuju
()
{
var
self
=
this
;
let
loading
=
this
.
$loading
({
...
...
@@ -152,8 +153,8 @@ export default {
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
queryByXxzjbh
({
xxzjbh
:
this
.
xxzjbh
,
getHmById
({
id
:
this
.
xxzjbh
,
}).
then
((
res
)
=>
{
var
result
=
res
.
data
.
rows
;
self
.
propFormField
.
forEach
((
fieldItem
)
=>
{
...
...
@@ -174,9 +175,14 @@ export default {
},
created
()
{
debugger
;
let
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
));
this
.
$set
(
this
.
formLabelAlign
,
"lrr"
,
userInfo
.
userName
);
this
.
$set
(
this
.
formLabelAlign
,
"lrdw"
,
userInfo
.
unitcode
);
if
(
this
.
$route
.
query
.
xxzjbh
)
{
this
.
xxzjbh
=
this
.
$route
.
query
.
xxzjbh
;
this
.
getshuju
();
}
else
{
let
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
));
this
.
$set
(
this
.
formLabelAlign
,
"lrr"
,
userInfo
.
userName
);
this
.
$set
(
this
.
formLabelAlign
,
"lrdw"
,
userInfo
.
unitcode
);
}
},
};
</
script
>
...
...
src/views/brainPhoto/kyxsGl/addKyry.vue
View file @
2fbb1c13
...
...
@@ -14,6 +14,7 @@
<
script
>
import
formCompontent
from
"@c/form.vue"
;
import
{
insertRyxs
}
from
"@/api/kyxs.js"
;
import
{
getRyById
,
updateRyKyxsList
}
from
"@/api/brainPhoto.js"
;
import
axios
from
"@/utils/http.js"
;
export
default
{
name
:
"ssdy"
,
...
...
@@ -109,11 +110,11 @@ export default {
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
//
if (!this.xxzjbh) {
this
.
addSubmit
(
params
,
loading
);
//
} else {
//
this.editSubmit(params, loading);
//
}
if
(
!
this
.
xxzjbh
)
{
this
.
addSubmit
(
params
,
loading
);
}
else
{
this
.
editSubmit
(
params
,
loading
);
}
},
windowRefresh
()
{
window
.
close
();
...
...
@@ -136,24 +137,24 @@ export default {
}
});
},
//
editSubmit(params, loading) {
//
params.append("xxzjbh", this.xxzjbh);
// updatessdy
(params).then((res) => {
//
if (res.success && res.code == 200) {
// this.$alert("保存
成功!", "提示", {
//
confirmButtonText: "确定",
//
type: "success",
//
callback: () => {
//
loading.close();
//
this.windowRefresh();
//
},
//
});
//
} else {
//
loading.close();
// this.$message.error("添加
失败,请检查数据格式是否正确");
//
}
//
});
//
},
editSubmit
(
params
,
loading
)
{
params
.
append
(
"xxzjbh"
,
this
.
xxzjbh
);
updateRyKyxsList
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$alert
(
"修改
成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
loading
.
close
();
this
.
windowRefresh
();
},
});
}
else
{
loading
.
close
();
this
.
$message
.
error
(
"修改
失败,请检查数据格式是否正确"
);
}
});
},
getshuju
()
{
var
self
=
this
;
let
loading
=
this
.
$loading
({
...
...
@@ -162,14 +163,16 @@ export default {
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
queryByXxzjbh
({
xxzjbh
:
this
.
xxzjbh
,
getRyById
({
id
:
this
.
xxzjbh
,
}).
then
((
res
)
=>
{
var
result
=
res
.
data
.
rows
;
self
.
propFormField
.
forEach
((
fieldItem
)
=>
{
if
(
fieldItem
.
data
&&
fieldItem
.
data
.
length
>
0
)
{
fieldItem
.
data
.
forEach
((
i
)
=>
{
// if (i.id != 'lrr' && i.id != 'lrdw' && i.id != 'lrsj' ) {
this
.
$set
(
this
.
formLabelAlign
,
i
.
id
,
result
[
i
.
id
]);
// }
});
}
this
.
$forceUpdate
();
...
...
@@ -184,9 +187,14 @@ export default {
},
created
()
{
debugger
;
let
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
));
this
.
$set
(
this
.
formLabelAlign
,
"lrr"
,
userInfo
.
userName
);
this
.
$set
(
this
.
formLabelAlign
,
"lrdw"
,
userInfo
.
unitcode
);
if
(
this
.
$route
.
query
.
xxzjbh
)
{
this
.
xxzjbh
=
this
.
$route
.
query
.
xxzjbh
;
this
.
getshuju
();
}
else
{
let
userInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
));
this
.
$set
(
this
.
formLabelAlign
,
"lrr"
,
userInfo
.
userName
);
this
.
$set
(
this
.
formLabelAlign
,
"lrdw"
,
userInfo
.
unitcode
);
}
},
};
</
script
>
...
...
vue.config.js
View file @
2fbb1c13
...
...
@@ -58,7 +58,7 @@ module.exports = {
},
proxy
:
{
"/apialy"
:
{
target
:
"http://
192.168.1.110:8762
"
,
//西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
target
:
"http://
47.92.48.137:1007
"
,
//西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
// ws: true,
changeOrigin
:
true
,
secure
:
false
,
...
...
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