Skip to content
项目
群组
代码片段
帮助
正在加载...
登录/注册
切换导航
广
广东建设用地-前端
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
广东建设用地
广东建设用地-前端
Commits
babf9c16
提交
babf9c16
authored
1月 12, 2024
作者:
张耀丹
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
建设用地土壤污染状况调查清单=》全部地块=》完善信息:行业分类
上级
a0d483e2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
40 行增加
和
117 行删除
+40
-117
api.ts
src/api/common/api.ts
+6
-3
GWrdkjbxxb.data.ts
src/views/directory/components/GWrdkjbxxb.data.ts
+34
-114
没有找到文件。
src/api/common/api.ts
浏览文件 @
babf9c16
...
...
@@ -28,10 +28,13 @@ export const checkList = (params) => defHttp.get({ url: Api.checkList, params })
// 获取地市行政区域
export
const
getTown
=
(
params
)
=>
{
if
(
params
?.
id
)
return
defHttp
.
get
({
url
:
`/sys/api/xzbm/
${
params
.
id
}
`
});
else
if
(
params
instanceof
Object
)
{
if
(
params
?.
id
)
{
return
defHttp
.
get
({
url
:
`/sys/api/xzbm/
${
params
.
id
}
`
});
}
}
else
if
(
typeof
params
===
'number'
||
typeof
params
===
'string'
)
{
return
defHttp
.
get
({
url
:
`/sys/api/xzbm/
${
params
}
`
});
}
}
// 行政区域划分三级树形
export
const
cityTree
=
()
=>
{
...
...
src/views/directory/components/GWrdkjbxxb.data.ts
浏览文件 @
babf9c16
...
...
@@ -413,103 +413,27 @@ export const formSchema: FormSchema[] = [
formModel
.
hydl
=
null
;
formModel
.
hyzl
=
null
;
formModel
.
hyxl
=
null
;
if
(
val
==
1
)
{
updateSchema
({
field
:
'hyml'
,
componentProps
:
({
formModel
,
formActionType
})
=>
{
return
{
options
:
allCategory
.
value
.
filter
(
item
=>
item
[
'is42'
]),
onChange
:
(
val
:
any
)
=>
{
const
{
updateSchema
}
=
formActionType
;
if
(
val
)
{
treeD
.
value
=
allCategory
.
value
.
filter
((
item
:
any
)
=>
item
.
value
===
val
)
formModel
.
hydl
=
null
;
formModel
.
hyzl
=
null
;
formModel
.
hyxl
=
null
;
updateSchema
({
field
:
'hydl'
,
componentProps
:
({
formModel
,
formActionType
})
=>
{
return
{
options
:
treeD
.
value
[
0
].
children
,
onChange
:
(
valD
:
any
)
=>
{
const
{
updateSchema
}
=
formActionType
;
if
(
valD
)
{
formModel
.
hyzl
=
null
;
formModel
.
hyxl
=
null
;
treeZ
.
value
=
treeD
?.
value
[
0
].
children
.
filter
((
item
:
any
)
=>
item
.
value
===
valD
)
updateSchema
({
field
:
'hyzl'
,
componentProps
:
({
formModel
,
formActionType
})
=>
{
return
{
options
:
treeZ
.
value
[
0
].
children
,
onChange
:
(
valZ
:
any
)
=>
{
const
{
updateSchema
}
=
formActionType
;
formModel
.
hyxl
=
null
;
if
(
valZ
)
{
treeX
.
value
=
treeZ
.
value
[
0
].
children
.
filter
((
item
:
any
)
=>
item
.
value
===
valZ
)
updateSchema
({
field
:
'hyxl'
,
componentProps
:
{
options
:
treeX
.
value
[
0
].
children
}
})
}
}
}
}
})
}
}
}
},
});
}
}
}
},
// componentProps: {
// },
});
}
else
{
updateSchema
({
field
:
'hyml'
,
componentProps
:
({
formModel
,
formActionType
})
=>
{
return
{
options
:
allCategory
.
value
,
onChange
:
(
val
:
any
)
=>
{
const
{
updateSchema
}
=
formActionType
;
updateSchema
({
field
:
'hyml'
,
componentProps
:
({
formModel
,
formActionType
})
=>
{
return
{
options
:
val
==
1
?
allCategory
.
value
.
filter
(
item
=>
item
[
'is42'
])
:
allCategory
.
value
,
onChange
:
(
val
:
any
)
=>
{
const
{
updateSchema
}
=
formActionType
;
if
(
val
)
{
treeD
.
value
=
allCategory
.
value
.
filter
((
item
:
any
)
=>
item
.
value
===
val
)
formModel
.
hydl
=
null
;
formModel
.
hyzl
=
null
;
formModel
.
hyxl
=
null
;
updateSchema
({
field
:
'hydl'
,
componentProps
:
({
formModel
,
formActionType
})
=>
{
return
{
options
:
treeD
.
value
[
0
].
children
,
onChange
:
(
valD
:
any
)
=>
{
console
.
log
(
'hydl:'
,
valD
);
const
{
updateSchema
}
=
formActionType
;
if
(
valD
!=
99
)
{
formModel
.
hyzl
=
null
;
formModel
.
hyxl
=
null
;
formModel
.
hydlQt
=
null
;
treeZ
.
value
=
treeD
?.
value
[
0
].
children
.
filter
((
item
:
any
)
=>
item
.
value
===
valD
)
updateSchema
({
field
:
'hydlQt'
,
ifShow
:
false
,
})
updateSchema
({
field
:
'hyzl'
,
ifShow
:
true
,
})
updateSchema
({
field
:
'hyxl'
,
ifShow
:
true
,
})
updateSchema
({
field
:
'hyzl'
,
...
...
@@ -518,7 +442,6 @@ export const formSchema: FormSchema[] = [
options
:
treeZ
.
value
[
0
].
children
,
onChange
:
(
valZ
:
any
)
=>
{
const
{
updateSchema
}
=
formActionType
;
formModel
.
hyxl
=
null
;
if
(
valZ
)
{
treeX
.
value
=
treeZ
.
value
[
0
].
children
.
filter
((
item
:
any
)
=>
item
.
value
===
valZ
)
updateSchema
({
...
...
@@ -532,33 +455,16 @@ export const formSchema: FormSchema[] = [
}
}
})
}
else
{
updateSchema
({
field
:
'hydlQt'
,
ifShow
:
true
,
})
updateSchema
({
field
:
'hyzl'
,
ifShow
:
false
,
})
updateSchema
({
field
:
'hyxl'
,
ifShow
:
false
,
})
}
}
}
},
});
}
}
}
,
}
);
}
}
}
,
}
);
},
};
},
...
...
@@ -580,7 +486,12 @@ export const formSchema: FormSchema[] = [
}
else
treeM
.
value
=
allCategory
.
value
return
{
options
:
treeM
?.
value
options
:
treeM
?.
value
,
onChange
:
()
=>
{
formModel
.
hydl
=
null
;
formModel
.
hyzl
=
null
;
formModel
.
hyxl
=
null
;
}
}
}
},
...
...
@@ -596,7 +507,14 @@ export const formSchema: FormSchema[] = [
console
.
log
(
formModel
.
hyml
,
'formModel.hyml'
)
treeD
.
value
=
treeM
.
value
.
filter
((
item
:
any
)
=>
item
.
value
===
formModel
.
hyml
)
return
{
options
:
treeD
?.
value
[
0
]?.
children
||
[]
options
:
treeD
?.
value
[
0
]?.
children
||
[],
onChange
:
(
valD
:
any
)
=>
{
formModel
.
hyzl
=
null
;
formModel
.
hyxl
=
null
;
if
(
valD
!=
99
)
{
formModel
.
hydlQt
=
null
;
}
}
}
}
...
...
@@ -608,12 +526,15 @@ export const formSchema: FormSchema[] = [
labelWidth
:
5
,
colProps
:
{
span
:
5
},
component
:
'Select'
,
ifShow
:
true
,
ifShow
:
({
values
})
=>
values
.
hydl
!=
99
,
componentProps
:
({
formModel
,
formActionType
})
=>
{
if
(
treeD
?.
value
.
length
>
0
)
{
treeZ
.
value
=
treeD
?.
value
[
0
].
children
.
filter
((
item
:
any
)
=>
item
.
value
===
formModel
.
hydl
)
return
{
options
:
treeZ
?.
value
[
0
]?.
children
||
[]
options
:
treeZ
?.
value
[
0
]?.
children
||
[],
onChange
:
()
=>
{
formModel
.
hyxl
=
null
;
}
}
}
...
...
@@ -627,7 +548,7 @@ export const formSchema: FormSchema[] = [
labelWidth
:
5
,
colProps
:
{
span
:
4
},
component
:
'Select'
,
ifShow
:
true
,
ifShow
:
({
values
})
=>
values
.
hydl
!=
99
,
componentProps
:
({
formModel
,
formActionType
})
=>
{
if
(
treeZ
?.
value
.
length
>
0
)
{
treeX
.
value
=
treeZ
?.
value
[
0
]?.
children
.
filter
((
item
:
any
)
=>
item
.
value
===
formModel
.
hyzl
)
...
...
@@ -641,7 +562,7 @@ export const formSchema: FormSchema[] = [
{
label
:
''
,
field
:
'hydlQt'
,
ifShow
:
false
,
ifShow
:
({
values
})
=>
values
.
hydl
==
99
,
labelWidth
:
5
,
colProps
:
{
span
:
4
},
component
:
'Input'
,
...
...
@@ -997,4 +918,4 @@ function handeCount(formActionType, formModel) {
},
});
}
}
\ No newline at end of file
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论