Skip to content
项目
群组
代码片段
帮助
正在加载...
登录/注册
切换导航
广
广东建设用地-前端
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
广东建设用地
广东建设用地-前端
Commits
024a61c8
提交
024a61c8
authored
5月 05, 2024
作者:
jinrongbin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
风险评估专题
上级
dfa45abd
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
182 行增加
和
2 行删除
+182
-2
api.ts
src/views/tjfx/jsyd/api.ts
+8
-2
data.ts
src/views/tjfx/jsyd/data.ts
+125
-0
fxpgzt.vue
src/views/tjfx/jsyd/fxpgzt.vue
+49
-0
没有找到文件。
src/views/tjfx/jsyd/api.ts
浏览文件 @
024a61c8
...
...
@@ -48,4 +48,10 @@ export const scdk = (params) => {
return
defHttp
.
get
({
url
:
`/jsyd/scdk`
,
params
});
}
// 导出
export
const
scdkExcel
=
'/jsyd/scdkExcel'
\ No newline at end of file
export
const
scdkExcel
=
'/jsyd/scdkExcel'
//风险评估专题
export
const
fxpgzt
=
(
params
)
=>
{
return
defHttp
.
get
({
url
:
`/jsyd/fxpgzt`
,
params
});
}
// 风险评估专题导出
export
const
fxpgztExcel
=
'/jsyd/fxpgztExcel'
\ No newline at end of file
src/views/tjfx/jsyd/data.ts
浏览文件 @
024a61c8
...
...
@@ -999,6 +999,131 @@ export const DcColumns: BasicColumn[] = [
resizable
:
true
,
},
]
// 风险评估专题
export
const
FxpgztColumns
:
BasicColumn
[]
=
[
{
title
:
'市'
,
dataIndex
:
'name'
,
resizable
:
true
,
},
{
title
:
'地块名称'
,
dataIndex
:
'wrdkmc'
,
resizable
:
true
,
},
{
title
:
'地块编码'
,
dataIndex
:
'wrdkbm'
,
resizable
:
true
,
},
{
title
:
'关注度'
,
dataIndex
:
'gzd'
,
resizable
:
true
,
},
{
title
:
'所处阶段'
,
dataIndex
:
'scjd'
,
resizable
:
true
,
}
]
export
const
FxpgztseachFormSchema
:
FormSchema
[]
=
[
{
label
:
'市'
,
field
:
'cityCode'
,
component
:
'ApiSelect'
,
ifShow
:
()
=>
{
return
userStore
?.
userInfo
?.
userIdentity
==
'1'
?
true
:
false
},
componentProps
:
({
formModel
,
formActionType
})
=>
{
return
{
api
:
getTown
,
params
:
440000
,
// 市编码
labelField
:
'name'
,
valueField
:
'id'
,
onChange
:
(
val
:
any
)
=>
{
const
{
updateSchema
}
=
formActionType
;
formModel
.
countryCode
=
undefined
;
if
(
val
)
{
updateSchema
({
field
:
'countryCode'
,
componentProps
:
{
api
:
getTown
,
params
:
val
,
labelField
:
'name'
,
valueField
:
'id'
,
},
});
}
else
{
updateSchema
({
field
:
'countryCode'
,
componentProps
:
{
api
:
undefined
,
labelField
:
'name'
,
valueField
:
'id'
,
},
});
}
},
};
},
},
{
label
:
'县'
,
field
:
'countryCode'
,
component
:
'ApiSelect'
,
ifShow
:
()
=>
{
return
(
userStore
?.
userInfo
?.
userIdentity
==
'2'
||
userStore
?.
userInfo
?.
userIdentity
==
'1'
)
?
true
:
false
},
componentProps
:
({
formModel
,
formActionType
})
=>
{
if
(
userStore
?.
userInfo
?.
userIdentity
==
'2'
)
{
const
{
updateSchema
}
=
formActionType
;
updateSchema
({
label
:
'县'
,
field
:
'countryCode'
,
ifShow
:
true
,
componentProps
:
{
api
:
getTown
,
params
:
userStore
?.
userInfo
?.
codeRegion
,
labelField
:
'name'
,
valueField
:
'id'
,
},
});
}
return
{
labelField
:
'name'
,
valueField
:
'id'
,
}
},
},
{
label
:
'所处阶段'
,
field
:
'scjd'
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'未开展调查'
,
value
:
'S0'
},
{
label
:
'地块调查 '
,
value
:
'S2'
},
{
label
:
'风险评估'
,
value
:
'S3'
},
{
label
:
'风险管控'
,
value
:
'S4'
},
{
label
:
'修复'
,
value
:
'S5'
},
{
label
:
'管控及修复'
,
value
:
'S10'
},
{
label
:
'效果评估'
,
value
:
'S6'
},
],
}
},
{
label
:
'地块名称'
,
field
:
'wrdkmc'
,
component
:
'Input'
,
componentProps
:
{
placeholder
:
'地块名称'
}
},
]
export
const
DcseachFormSchema
:
FormSchema
[]
=
[
...
...
src/views/tjfx/jsyd/fxpgzt.vue
0 → 100644
浏览文件 @
024a61c8
<
template
>
<BasicTable
@
register=
"registerTable"
>
<template
#
tableTitle
>
<a-button
type=
"primary"
preIcon=
"ant-design:export-outlined"
v-auth=
"'fxpgzt-dc'"
@
click=
"onExportXls"
>
导出
</a-button>
</
template
>
</BasicTable>
</template>
<
script
setup
lang=
"ts"
>
import
{
BasicTable
}
from
'@/components/Table'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
;
import
{
FxpgztColumns
,
FxpgztseachFormSchema
}
from
'./data'
;
import
{
fxpgzt
,
fxpgztExcel
}
from
'./api'
;
const
{
tableContext
,
onExportXls
}
=
useListPage
({
tableProps
:
{
title
:
''
,
api
:
fxpgzt
,
columns
:
FxpgztColumns
,
canResize
:
false
,
//定义rowSelection的类型,默认是checkbox多选,可以设置成radio单选
rowKey
:
'wrdkid'
,
clickToRowSelect
:
true
,
showActionColumn
:
false
,
beforeFetch
(
params
:
any
)
{
if
(
params
.
data
)
{
const
arry
=
params
.
data
.
split
(
','
);
params
.
startTime
=
arry
[
0
];
params
.
endTime
=
arry
[
1
];
}
},
formConfig
:
{
labelWidth
:
120
,
schemas
:
FxpgztseachFormSchema
,
autoSubmitOnEnter
:
true
,
showAdvancedButton
:
false
,
},
actionColumn
:
{
width
:
120
,
fixed
:
'right'
,
},
},
exportConfig
:
{
name
:
'风险评估专题'
,
url
:
fxpgztExcel
,
},
});
const
[
registerTable
,
{},
{}]
=
tableContext
;
</
script
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论