Skip to content
项目
群组
代码片段
帮助
正在加载...
登录/注册
切换导航
广
广东建设用地-前端
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
广东建设用地
广东建设用地-前端
Commits
e07d2c72
提交
e07d2c72
authored
1月 10, 2025
作者:
jinrongbin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加详情
上级
f0cb11d0
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
253 行增加
和
53 行删除
+253
-53
data.ts
src/views/directory/tbgj/data.ts
+78
-2
fileErrorlList.vue
src/views/directory/tbgj/fileErrorlList.vue
+4
-1
gjkjlList.vue
src/views/directory/tbgj/gjkjlList.vue
+60
-25
PushFileModal.vue
src/views/directory/tbgj/modules/PushFileModal.vue
+53
-0
zjkjlList.vue
src/views/directory/tbgj/zjkjlList.vue
+58
-25
没有找到文件。
src/views/directory/tbgj/data.ts
浏览文件 @
e07d2c72
...
...
@@ -422,4 +422,80 @@ export const columnsgjk: BasicColumn[] = [
title
:
'推送参数'
,
dataIndex
:
'requestParam'
},
]
\ No newline at end of file
]
export
const
formSchema
:
FormSchema
[]
=
[
// TODO 主键隐藏字段,目前写死为ID
{
label
:
''
,
field
:
'id'
,
component
:
'Input'
,
show
:
false
},
{
label
:
'污染地块编码'
,
field
:
'wrdkbm'
,
component
:
'Input'
,
componentProps
:{
disabled
:
true
},
},
{
label
:
'推送内容'
,
field
:
'node'
,
component
:
'Input'
,
componentProps
:{
disabled
:
true
},
},
{
label
:
'推送地址'
,
field
:
'url'
,
component
:
'Input'
,
componentProps
:{
disabled
:
true
},
},
{
label
:
'推送参数'
,
field
:
'param'
,
component
:
'Input'
,
componentProps
:{
disabled
:
true
},
},
{
label
:
'推送结果'
,
field
:
'rest'
,
component
:
'Input'
,
componentProps
:{
disabled
:
true
},
},
{
label
:
'状态'
,
field
:
'status'
,
component
:
'Select'
,
componentProps
:
()
=>
{
return
{
options
:
[
{
label
:
'成功'
,
value
:
1
,
},
{
label
:
'失败'
,
value
:
0
,
},
],
disabled
:
true
};
},
},
{
label
:
'推送时间'
,
field
:
'tsamp'
,
component
:
'DatePicker'
,
componentProps
:
{
showTime
:
true
,
valueFormat
:
'YYYY-MM-DD hh:mm:ss'
,
disabled
:
true
},
},
];
\ No newline at end of file
src/views/directory/tbgj/fileErrorlList.vue
浏览文件 @
e07d2c72
<
template
>
<div>
<!--引用表格-->
<BasicTable
@
register=
"registerTable"
:searchInfo=
"
{pageSize:10000}"
>
<BasicTable
@
register=
"registerTable"
>
</BasicTable>
</div>
</
template
>
...
...
@@ -23,6 +23,9 @@
api
:
fileErrorllist
,
columns
:
columnsgjk
,
canResize
:
false
,
pagination
:
{
pageSize
:
10000
,
},
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchemagjk
,
...
...
src/views/directory/tbgj/gjkjlList.vue
浏览文件 @
e07d2c72
<
template
>
<div>
<!--引用表格-->
<BasicTable
@
register=
"registerTable"
:searchInfo=
"
{pageSize:100}">
<BasicTable
@
register=
"registerTable"
>
<!--操作栏-->
<template
#
action=
"
{ record }">
<TableAction
:actions=
"getTableAction(record)"
/>
</
template
>
</BasicTable>
<!-- 表单区域 -->
<PushFileModal
@
register=
"registerModal"
@
success=
"handleSuccess"
></PushFileModal>
</div>
</template>
<
script
lang=
"ts"
name=
"report-pushLog"
setup
>
import
{
ref
,
computed
,
unref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'/@/components/Table'
;
import
{
useModal
}
from
'/@/components/Modal'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
import
{
columnsgjk
,
searchFormSchemagjk
}
from
'./data'
;
import
{
ref
,
computed
,
unref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'/@/components/Table'
;
import
{
useModal
}
from
'/@/components/Modal'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
;
import
PushFileModal
from
'./modules/PushFileModal.vue'
;
import
{
columnsgjk
,
searchFormSchemagjk
}
from
'./data'
;
import
{
gjkjllist
}
from
'./api'
;
//注册model
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
//注册table数据
const
{
prefixCls
,
tableContext
,
onExportXls
,
onImportXls
}
=
useListPage
({
tableProps
:{
title
:
'国家库记录'
,
api
:
gjkjllist
,
columns
:
columnsgjk
,
canResize
:
false
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchemagjk
,
autoSubmitOnEnter
:
true
,
showAdvancedButton
:
true
,
},
showActionColumn
:
false
const
{
prefixCls
,
tableContext
,
onExportXls
,
onImportXls
}
=
useListPage
({
tableProps
:
{
title
:
'国家库记录'
,
api
:
gjkjllist
,
columns
:
columnsgjk
,
canResize
:
false
,
pagination
:
{
pageSize
:
100
,
},
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchemagjk
,
autoSubmitOnEnter
:
true
,
showAdvancedButton
:
true
,
},
actionColumn
:
{
width
:
120
,
},
})
scroll
:
{
y
:
1000
},
// showActionColumn: false
},
});
const
[
registerTable
]
=
tableContext
/**
* 详情
*/
function
handleDetail
(
record
:
Recordable
)
{
openModal
(
true
,
{
record
,
isUpdate
:
true
,
showFooter
:
false
,
});
}
</
script
>
<
style
scoped
>
/**
* 操作栏
*/
function
getTableAction
(
record
)
{
return
[
{
label
:
'详情'
,
onClick
:
handleDetail
.
bind
(
null
,
record
),
},
];
}
</
style
>
const
[
registerTable
]
=
tableContext
;
</
script
>
<
style
scoped
></
style
>
src/views/directory/tbgj/modules/PushFileModal.vue
0 → 100644
浏览文件 @
e07d2c72
<
template
>
<BasicModal
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"title"
@
ok=
"handleSubmit"
width=
"40%"
>
<BasicForm
@
register=
"registerForm"
/>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
,
unref
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'/@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'/@/components/Form/index'
;
import
{
formSchema
}
from
'../data'
;
// Emits声明
const
emit
=
defineEmits
([
'register'
,
'success'
]);
const
isUpdate
=
ref
(
true
);
//表单配置
const
[
registerForm
,
{
resetFields
,
setFieldsValue
,
validate
}]
=
useForm
({
labelWidth
:
150
,
schemas
:
formSchema
,
showActionButtonGroup
:
false
,
});
//表单赋值
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
//重置表单
await
resetFields
();
setModalProps
({
confirmLoading
:
false
,
showCancelBtn
:
data
?.
showFooter
,
showOkBtn
:
data
?.
showFooter
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
if
(
unref
(
isUpdate
))
{
//表单赋值
await
setFieldsValue
({
...
data
.
record
,
});
}
});
//设置标题
const
title
=
computed
(()
=>
(
!
unref
(
isUpdate
)
?
'详情'
:
'详情'
));
//表单提交事件
async
function
handleSubmit
(
v
)
{
try
{
setModalProps
({
confirmLoading
:
true
});
//关闭弹窗
closeModal
();
}
finally
{
setModalProps
({
confirmLoading
:
false
});
}
}
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
\ No newline at end of file
src/views/directory/tbgj/zjkjlList.vue
浏览文件 @
e07d2c72
<
template
>
<div>
<!--引用表格-->
<BasicTable
@
register=
"registerTable"
:searchInfo=
"
{pageSize:100}">
<BasicTable
@
register=
"registerTable"
>
<!--操作栏-->
<template
#
action=
"
{ record }">
<TableAction
:actions=
"getTableAction(record)"
/>
</
template
>
</BasicTable>
<!-- 表单区域 -->
<PushFileModal
@
register=
"registerModal"
@
success=
"handleSuccess"
></PushFileModal>
</div>
</template>
<
script
lang=
"ts"
name=
"report-pushLog"
setup
>
import
{
ref
,
computed
,
unref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'/@/components/Table'
;
import
{
useModal
}
from
'/@/components/Modal'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
import
{
columnsgjk
,
searchFormSchemagjk
}
from
'./data'
;
import
{
ref
,
computed
,
unref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'/@/components/Table'
;
import
{
useModal
}
from
'/@/components/Modal'
;
import
PushFileModal
from
'./modules/PushFileModal.vue'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
;
import
{
columnsgjk
,
searchFormSchemagjk
}
from
'./data'
;
import
{
zjkjllist
}
from
'./api'
;
//注册model
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
//注册table数据
const
{
prefixCls
,
tableContext
,
onExportXls
,
onImportXls
}
=
useListPage
({
tableProps
:{
title
:
'中间库记录'
,
api
:
zjkjllist
,
columns
:
columnsgjk
,
canResize
:
false
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchemagjk
,
autoSubmitOnEnter
:
true
,
showAdvancedButton
:
true
,
},
showActionColumn
:
false
const
{
prefixCls
,
tableContext
,
onExportXls
,
onImportXls
}
=
useListPage
({
tableProps
:
{
title
:
'中间库记录'
,
api
:
zjkjllist
,
columns
:
columnsgjk
,
canResize
:
false
,
pagination
:
{
pageSize
:
100
,
},
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchemagjk
,
autoSubmitOnEnter
:
true
,
showAdvancedButton
:
true
,
},
actionColumn
:
{
width
:
120
,
},
})
scroll
:
{
y
:
1000
},
},
});
const
[
registerTable
]
=
tableContext
/**
* 详情
*/
function
handleDetail
(
record
:
Recordable
)
{
openModal
(
true
,
{
record
,
isUpdate
:
true
,
showFooter
:
false
,
});
}
/**
* 操作栏
*/
function
getTableAction
(
record
)
{
return
[
{
label
:
'详情'
,
onClick
:
handleDetail
.
bind
(
null
,
record
),
},
];
}
const
[
registerTable
]
=
tableContext
;
</
script
>
<
style
scoped
>
</
style
>
<
style
scoped
></
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论