Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-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
2a6afc13
authored
2022-12-07 10:53:09 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:报文重新入库日志
1 parent
e36fd0bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
48 deletions
src/views/bwcxrkrz/index.vue
src/views/jsbwcxrk/index.vue
src/views/bwcxrkrz/index.vue
View file @
2a6afc1
<
template
>
<div
class=
"reportLog from-clues"
>
<!-- 报文重新入库日志 -->
<div
class=
"from-clues"
>
<!-- 头部搜索 -->
<div
class=
"from-clues-header"
>
<el-form
ref=
"ruleForm"
:model=
"form"
label-width=
"100px"
>
<el-row
class=
"marginbtm5"
>
...
...
@@ -41,6 +43,7 @@
</el-select>
</el-form-item>
</el-col>
<!-- 操作按钮 -->
<el-col
:span=
"18"
class=
"btnColRight"
>
<el-button
@
click=
"resetForm('ruleForm')"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
查询结果
</el-button>
...
...
@@ -48,6 +51,7 @@
</el-row>
</el-form>
</div>
<!-- 列表 -->
<div
class=
"from-clues-content"
>
<lb-table
ref=
"table"
:heightNum=
"300"
:page-size=
"pageData.size"
:current-page
.
sync=
"pageData.current"
:total=
"pageData.total"
@
size-change=
"handleSizeChange"
@
p-current-change=
"handleCurrentChange"
...
...
@@ -56,10 +60,11 @@
</div>
</div>
</
template
>
<
script
>
// 报文重新入库日志
// 引入列表头部
import
data
from
"./data"
import
journal
from
'@/api/journal.js'
// 引入表格混入方法
import
tableMixin
from
'@/mixins/tableMixin.js'
export
default
{
name
:
"bwcxrkrz"
,
...
...
@@ -86,8 +91,7 @@ export default {
}
}
},
bsmSjsb
:
''
,
diaData
:
[],
// 头部表单
form
:
{
pcode
:
''
,
bwmc
:
''
,
...
...
@@ -96,6 +100,7 @@ export default {
rkjg
:
''
,
currentPage
:
1
},
// 表单校验
rules
:
{
pcode
:
[
{
required
:
true
,
message
:
'响应结果'
,
trigger
:
'change'
}
...
...
@@ -106,17 +111,20 @@ export default {
endTime
:
[
{
required
:
true
,
message
:
'结束日期'
,
trigger
:
'change'
}
],
},
// 表格
tableData
:
{
// 表格头部
columns
:
[{
label
:
'序号'
,
type
:
'index'
,
width
:
'50'
,
index
:
this
.
indexMethod
,
}].
concat
(
data
.
columns
()),
// 表格列表
data
:
[]
},
// 分页
pageData
:
{
total
:
0
,
pageSize
:
15
,
...
...
@@ -144,27 +152,12 @@ export default {
}
},
methods
:
{
// 重置表单
resetForm
()
{
this
.
$refs
.
ruleForm
.
resetFields
();
},
// 数据请求
async
featchData
()
{
try
{
this
.
form
=
Object
.
assign
(
this
.
form
,
this
.
formData
)
let
{
result
:
{
list
,
total
,
pages
:
pageSize
,
pageNum
:
current
}
}
=
await
journal
.
querySjsbTask
(
this
.
form
)
if
(
this
.
$store
.
state
.
dictionaries
.
addDic
)
{
this
.
tableData
.
data
=
list
this
.
pageData
=
{
pageSize
,
current
,
total
}
}
else
{
this
.
featchData
()
}
}
catch
(
error
)
{
this
.
message
=
error
}
}
}
}
...
...
src/views/jsbwcxrk/index.vue
View file @
2a6afc1
<
template
>
<div
class=
"reportLog from-clues"
>
<!-- 接收报文重新入库 -->
<div
class=
"from-clues"
>
<!-- 头部搜索 -->
<div
class=
"from-clues-header"
>
<el-form
ref=
"ruleForm"
:model=
"form"
label-width=
"55px"
>
<el-row
class=
"marginbtm5"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"行政区"
prop=
"pcode"
>
<el-select
v-model=
"form.pcode"
class=
"width100"
clearable
placeholder=
"行政区"
>
<el-option
v-for=
"item in
xzqOptions
"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
<el-option
v-for=
"item in
[]
"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -19,6 +21,7 @@
</el-select>
</el-form-item>
</el-col>
<!-- 操作按钮 -->
<el-col
:span=
"12"
class=
"btnColRight"
>
<el-form-item>
<el-button
@
click=
"resetForm('ruleForm')"
>
重置
</el-button>
...
...
@@ -28,6 +31,7 @@
</el-row>
</el-form>
</div>
<!-- 列表 -->
<div
class=
"from-clues-content"
>
<lb-table
ref=
"table"
:page-size=
"pageData.size"
:current-page
.
sync=
"pageData.current"
:total=
"pageData.total"
@
size-change=
"handleSizeChange"
@
p-current-change=
"handleCurrentChange"
:column=
"tableData.columns"
...
...
@@ -36,26 +40,32 @@
</div>
</div>
</
template
>
<
script
>
// 接收报文重新入库
// 引入列表头部数据
import
data
from
"./data"
// 引入混入方法
import
tableMixin
from
'@/mixins/tableMixin.js'
export
default
{
name
:
"reportLog"
,
mixins
:
[
tableMixin
],
data
()
{
return
{
// 表单
form
:
{
pcode
:
''
,
status
:
''
,
currentPage
:
1
},
// 表单校验
rules
:
{
pcode
:
[
{
required
:
true
,
message
:
'请选择行政区'
,
trigger
:
'change'
}
],
},
// 列表
tableData
:
{
// 列表头部
columns
:
[{
label
:
'序号'
,
type
:
'index'
,
...
...
@@ -71,8 +81,6 @@ export default {
<
el
-
button
type
=
"text"
size
=
"mini"
icon
=
"el-icon-edit"
style
=
"margin-left: 10px"
onClick
=
{()
=>
{
this
.
handleEdit
(
scope
.
row
)
}}
>
编辑
...
...
@@ -82,38 +90,23 @@ export default {
}
}
]),
// 列表数据
data
:
[{}]
},
// 分页
pageData
:
{
total
:
0
,
pageSize
:
15
,
current
:
1
,
},
// 行政区
xzqOptions
:
[
{
value
:
'632321'
,
label
:
'同仁县'
},
{
value
:
'632322'
,
label
:
'尖扎县'
},
{
value
:
'632323'
,
label
:
'泽库县'
},
{
value
:
'632324'
,
label
:
'河南县'
}
]
}
}
},
methods
:
{
// 重置
resetForm
()
{
this
.
$refs
.
ruleForm
.
resetFields
();
},
// 数据请求
async
featchData
()
{
},
handleEdit
(
row
)
{
...
...
Please
register
or
sign in
to post a comment