Skip to content
项目
群组
代码片段
帮助
正在加载...
登录/注册
切换导航
广
广东建设用地-前端
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
广东建设用地
广东建设用地-前端
Commits
3a50a818
提交
3a50a818
authored
12月 06, 2023
作者:
gjx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加风险评估情况
上级
3d54137b
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
187 行增加
和
2 行删除
+187
-2
FxpgFillStatistics.vue
src/views/tjfx/tbxx/FxpgFillStatistics.vue
+74
-0
api.ts
src/views/tjfx/tbxx/api.ts
+9
-2
data.ts
src/views/tjfx/tbxx/data.ts
+104
-0
没有找到文件。
src/views/tjfx/tbxx/FxpgFillStatistics.vue
0 → 100644
浏览文件 @
3a50a818
<
template
>
<BasicTable
@
register=
"registerTable"
>
<template
#
form-userLevle=
"
{ model, field }">
<a-select
v-model:value=
"model[field]"
placeholder=
"请选择"
@
change=
"change(model)"
:fieldNames=
"
{ label: 'text', value: 'value' }"
:options="Options"
>
</a-select>
</
template
>
<
template
#
form-category=
"{ model, field }"
>
<a-tree-select
v-model:value=
"model[field]"
show-search
placeholder=
"请选择"
allow-clear
tree-default-expand-all
:field-names=
"
{ label: 'name', value: 'id', children: 'children' }"
:tree-data="treeData"
tree-node-filter-prop="label"
>
<template
#
suffixIcon
>
<SmileOutlined
/>
</
template
>
</a-tree-select>
</template>
<
template
#
tableTitle
>
<a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
v-auth=
"'tbxx-dc'"
@
click=
"onExportXls"
>
导出
</a-button>
</
template
>
</BasicTable>
</template>
<
script
setup
lang=
"ts"
>
import
{
BasicTable
}
from
'@/components/Table'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
;
import
{
DkfxpgtbColumns
,
DkfxpgtbsearchFormSchema
,
getUserLevel
,
useCategoryData
}
from
'./data'
;
import
{
dkfxpgtbqktj
,
dkfxpgtbqktjExcel
}
from
'./api'
;
const
{
tableContext
,
onExportXls
}
=
useListPage
({
tableProps
:
{
title
:
''
,
api
:
dkfxpgtbqktj
,
columns
:
DkfxpgtbColumns
,
canResize
:
false
,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey
:
'wrdkid'
,
clickToRowSelect
:
true
,
showActionColumn
:
false
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
DkfxpgtbsearchFormSchema
,
autoSubmitOnEnter
:
true
,
showAdvancedButton
:
false
,
},
actionColumn
:
{
width
:
120
,
fixed
:
'right'
,
},
},
exportConfig
:
{
name
:
'地块风险评估填报情况统计'
,
url
:
dkfxpgtbqktjExcel
,
},
});
const
[
registerTable
,
{},
{}]
=
tableContext
;
const
useCategory
=
useCategoryData
();
const
treeData
=
useCategory
.
data
;
// 行业类别-数据
const
Options
=
getUserLevel
().
data
;
function
change
(
model
)
{
model
.
cityCode
=
''
;
}
</
script
>
src/views/tjfx/tbxx/api.ts
浏览文件 @
3a50a818
...
...
@@ -59,4 +59,11 @@ export const dkfxpgtbqk = (params) => {
return
defHttp
.
get
({
url
:
`/tbxxtj/dkfxpgtbqk`
,
params
});
}
// 导出
export
const
dkfxpgtbqkExcel
=
'/tbxxtj/dkfxpgtbqkExcel'
\ No newline at end of file
export
const
dkfxpgtbqkExcel
=
'/tbxxtj/dkfxpgtbqkExcel'
// 地块风险评估填报情况统计
export
const
dkfxpgtbqktj
=
(
params
)
=>
{
return
defHttp
.
get
({
url
:
`/tbxxtj/dkfxpgtbqktj`
,
params
});
}
// 导出
export
const
dkfxpgtbqktjExcel
=
'/tbxxtj/dkfxpgtbqktjExcel'
\ No newline at end of file
src/views/tjfx/tbxx/data.ts
浏览文件 @
3a50a818
...
...
@@ -1037,4 +1037,107 @@ export const DkfxpgsearchFormSchema: FormSchema[] = [
},
},
]
// 地块风险评估填报情况统计
export
const
DkfxpgtbColumns
:
BasicColumn
[]
=
[
{
title
:
'行政区划(市)'
,
dataIndex
:
'name'
,
resizable
:
true
,
},
{
title
:
'地块数'
,
dataIndex
:
'total'
,
resizable
:
true
,
},
{
title
:
'主要风险'
,
resizable
:
true
,
children
:
[
{
title
:
'公众健康风险'
,
dataIndex
:
'gzjkfx'
,
},
{
title
:
'其他'
,
dataIndex
:
'qt'
,
},
{
title
:
'未确定'
,
dataIndex
:
'wqd'
,
},
],
},
{
title
:
'地块评审情况'
,
resizable
:
true
,
children
:
[
{
title
:
'风险可接受'
,
dataIndex
:
'fxkjs'
,
},
{
title
:
'风险管控'
,
dataIndex
:
'fxgk'
,
},
{
title
:
'修复'
,
dataIndex
:
'xf'
,
},
{
title
:
'管控及修复'
,
dataIndex
:
'gkjxf'
,
},
{
title
:
'未评审'
,
dataIndex
:
'wps'
,
},
],
},
]
export
const
DkfxpgtbsearchFormSchema
:
FormSchema
[]
=
[
{
label
:
'等级'
,
field
:
'userIdentity'
,
component
:
'ApiSelect'
,
show
:
()
=>
{
return
userStore
?.
userInfo
?.
userIdentity
==
'1'
?
true
:
false
},
slot
:
'userLevle'
},
{
label
:
'行政区(市)'
,
field
:
'cityCode'
,
component
:
'ApiSelect'
,
show
:
({
values
})
=>
{
return
values
.
userIdentity
==
'2'
?
true
:
false
},
componentProps
:
()
=>
{
return
{
api
:
getTown
,
params
:
440000
,
// 行政区划编码
labelField
:
'name'
,
valueField
:
'id'
,
};
},
},
{
label
:
'行业类别'
,
field
:
'hylb'
,
component
:
'TreeSelect'
,
slot
:
'category'
,
},
{
label
:
'政策依据'
,
field
:
'faliyiju'
,
component
:
'JSearchSelect'
,
componentProps
:
{
dict
:
'dk_zcyj'
,
},
},
]
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论