Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
65c35df8
authored
2023-10-30 09:19:56 +0800
by
赵千
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
查询
1 parent
bc29a0fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
267 additions
and
133 deletions
src/views/sjgx/jkgnck/dialog/detail.vue
src/views/sjgx/jkgnck/djbcxdata.js
src/views/sjgx/jkgnck/jkgnck.vue
src/views/sjgx/sbxtsjts/sbxtsjts.vue
src/views/sjgx/jkgnck/dialog/detail.vue
0 → 100644
View file @
65c35df
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-26 15:40:23
-->
<
template
>
<div
class=
"loadingtext"
>
<el-input
type=
"textarea"
:rows=
"8"
v-model=
"formData.json"
>
</el-input>
<div
class=
"text-center pt-10"
>
<el-button
type=
"primary"
@
click=
"pushRecord"
>
推送
</el-button>
</div>
</div>
</
template
>
<
script
>
import
{
push
}
from
"@/api/sysPushRecord.js"
;
export
default
{
props
:
{
formData
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
methods
:
{
/**
* @description: pushRecord
* @author: renchao
*/
pushRecord
()
{
this
.
$startLoading
()
push
(
this
.
formData
).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"推送成功"
);
}
else
{
this
.
$message
.
warning
(
res
.
message
);
}
this
.
$popupCacel
()
})
}
}
}
</
script
>
src/views/sjgx/jkgnck/djbcxdata.js
0 → 100644
View file @
65c35df
import
filter
from
'@/utils/filter.js'
let
vm
=
null
const
sendThis
=
(
_this
)
=>
{
vm
=
_this
}
class
data
extends
filter
{
constructor
()
{
super
()
}
columns
()
{
return
[
{
label
:
'序号'
,
type
:
'index'
,
width
:
'50'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
{(
vm
.
pageData
.
currentPage
-
1
)
*
vm
.
pageData
.
pageSize
+
scope
.
$index
+
1
}
<
/div
>
)
}
},
{
label
:
"推送状态"
,
render
:
(
h
,
scope
)
=>
{
let
obj
=
{
"0"
:
{
text
:
'成功'
,
color
:
'#4BD863'
},
"1"
:
{
text
:
'失败'
,
color
:
'red'
}
}
let
textName
=
obj
[
scope
.
row
.
status
]?.
text
||
''
let
colorName
=
obj
[
scope
.
row
.
status
]?.
color
||
''
return
(
<
div
>
<
span
style
=
{
`color:
${
colorName
}
`
}
>
●
&
nbsp
;
<
/span
>
<
span
>
{
textName
}
<
/span
>
<
/div
>
)
}
},
{
prop
:
"ywh"
,
label
:
"业务号"
,
// width: '110',
},
{
prop
:
"ywh1"
,
label
:
"登记业务名称"
,
// width: '110',
},
{
prop
:
"ywh2"
,
label
:
"登记情形名称"
,
// width: '110',
},
{
prop
:
"bdcdyh"
,
label
:
"不动产单元号"
,
// width: '110',
},
{
prop
:
"createtime"
,
label
:
"创建时间"
,
},
{
prop
:
"createtime"
,
label
:
"推送时间"
,
},
{
prop
:
"createtime1"
,
label
:
"响应时间"
,
},
{
label
:
'操作'
,
width
:
'100'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
"text"
icon
=
"el-icon-edit-outline"
onClick
=
{()
=>
{
vm
.
detail
(
scope
.
row
)
}}
>
详情
<
/el-button
>
<
/div
>
)
}
}
]
}
}
let
datas
=
new
data
()
export
{
datas
,
sendThis
}
src/views/sjgx/jkgnck/jkgnck.vue
View file @
65c35df
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-19 15:04:38
-->
<
template
>
<div
class=
"from-clues"
>
<!-- 表单部分 -->
<div
class=
"from-clues-header"
>
<el-form
:model=
"queryForm"
ref=
"queryForm"
label-width=
"70px"
>
<el-form
:model=
"queryForm"
ref=
"queryForm"
@
submit
.
native
.
prevent
label-width=
"70px"
>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"接口类型"
>
<el-input
placeholder=
"请输入编号"
v-model=
"queryForm.jklx"
class=
"width200px"
clearable
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"调用状态"
>
<el-input
placeholder=
"请输入编号"
v-model=
"queryForm.dyzt"
class=
"width200px"
clearable
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"访问IP"
>
<el-input
placeholder=
"请输入IP"
v-model=
"queryForm.fwip"
class=
"width200px"
clearable
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"访问时间"
>
<el-input
placeholder=
"请输入业务号"
v-model=
"queryForm.fwsj"
clearable
class=
"width200px"
>
<el-form-item
label=
"业务号"
>
<el-input
placeholder=
"请输入业务号"
v-model=
"queryForm.ywh"
clearable
class=
"width100"
>
</el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"10"
>
<el-form-item
label=
"请求地址"
>
<el-input
placeholder=
"请输入url"
v-model=
"queryForm.qqdz"
class=
"width500px"
clearable
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row>
<el-row>
<el-col
:span=
"20"
>
<el-form-item
label=
"请求头数据"
>
<el-input
placeholder=
"请输入请求头数据"
v-model=
"queryForm.qqtsj"
class=
"width500px"
clearable
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"20"
>
<el-form-item
label=
"入参数据"
>
<el-input
placeholder=
"请输入参数"
v-model=
"queryForm.rcsj"
class=
"width500px"
clearable
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"调用描述"
>
<el-input
placeholder=
"调用描述"
v-model=
"queryForm.dyms"
class=
"width200px"
clearable
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"返回数据"
>
<el-input
placeholder=
"返回数据"
v-model=
"queryForm.fhsj"
class=
"width200px"
clearable
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"4"
class=
"btnColRight"
>
<el-form-item>
<el-button
type=
"primary"
@
click=
"queryClick()"
>
发送
</el-button>
<el-button
type=
"primary"
native-type=
"submit"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div
class=
"from-clues-content"
>
<lb-table
:page-size=
"pageData.size"
class=
"loadingtext"
:current-page
.
sync=
"pageData.current"
:total=
"tableData.total"
@
size-change=
"handleSizeChange"
@
p-current-change=
"handleCurrentChange"
:column=
"tableData.columns"
:data=
"tableData.data"
>
</lb-table>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
queryForm
:
{
jklx
:
""
,
dyzt
:
""
,
fwip
:
""
,
fwsj
:
""
,
qqdz
:
""
,
qqtsj
:
""
,
rcsj
:
""
,
dyms
:
""
,
fhsj
:
""
,
},
import
{
mapGetters
}
from
"vuex"
;
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./djbcxdata"
;
import
{
list
,
detail
}
from
"@/api/sysPushRecord.js"
;
export
default
{
name
:
"djbcx"
,
mixins
:
[
table
],
mounted
()
{
sendThis
(
this
);
this
.
queryClick
()
},
data
()
{
return
{
queryForm
:
{
qllx
:
""
,
bdcdyh
:
""
,
bdcqzh
:
""
,
ywh
:
""
,
interfaceType
:
"5"
},
pageData
:
{
current
:
1
,
size
:
10
,
total
:
0
,
},
tableData
:
{
columns
:
datas
.
columns
(),
data
:
[],
}
}
},
computed
:
{
...
mapGetters
([
"dictData"
])
},
methods
:
{
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick
()
{
this
.
$startLoading
()
list
({
...
this
.
queryForm
,
...
this
.
pageData
}).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
let
{
total
,
records
}
=
res
.
result
;
this
.
tableData
.
data
=
records
;
this
.
tableData
.
total
=
total
;
}
});
},
/**
* @description: openDialog
* @param {*} scroll
* @author: renchao
*/
openDialog
(
scroll
)
{
const
h
=
this
.
$createElement
;
this
.
$msgbox
({
title
:
'推送'
,
message
:
h
(
'p'
,
null
,
[
h
(
'span'
,
null
,
'是否推送 '
),
h
(
'i'
,
{
style
:
'color: teal'
},
scroll
.
ywh
),
h
(
'span'
,
null
,
' 记录'
)
]),
showCancelButton
:
true
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
beforeClose
:
(
action
,
instance
,
done
)
=>
{
if
(
action
===
'confirm'
)
{
this
.
pushRecord
(
scroll
,
done
);
}
else
{
done
();
}
}
}).
then
(
action
=>
{
});
},
/**
* @description: detail
* @param {*} row
* @author: renchao
*/
detail
(
row
)
{
detail
(
row
.
bsm
).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
this
.
$popupDialog
(
"详情"
,
"sjgx/sbxtsjts/dialog/detail"
,
res
.
result
,
"60%"
)
}
else
{
this
.
$message
.
warning
(
res
.
message
);
}
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/public.scss"
;
</
style
>
\ No newline at end of file
@import
"~@/styles/public.scss"
;
.icon-circle
{
position
:
relative
;
}
.icon-circle
::before
{
content
:
""
;
width
:
4px
;
height
:
4px
;
border-radius
:
50%
;
background
:
#000
;
top
:
0px
;
left
:
0px
;
}
</
style
>
...
...
src/views/sjgx/sbxtsjts/sbxtsjts.vue
View file @
65c35df
...
...
@@ -48,6 +48,7 @@
bdcdyh
:
""
,
bdcqzh
:
""
,
ywh
:
""
,
interfaceType
:
"1"
},
pageData
:
{
current
:
1
,
...
...
Please
register
or
sign in
to post a comment