Skip to content
项目
群组
代码片段
帮助
正在加载...
登录/注册
切换导航
广
广东建设用地-前端
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
广东建设用地
广东建设用地-前端
Commits
ad7dd5a7
提交
ad7dd5a7
authored
1月 04, 2024
作者:
wqq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
重点安全利用率权限问题处理
上级
0d05628d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
37 行增加
和
30 行删除
+37
-30
cfzgForm.vue
src/views/zcgl/monitor/components/cfzgForm.vue
+2
-1
gkxfFrom.vue
src/views/zcgl/monitor/components/gkxfFrom.vue
+2
-1
jcForm.vue
src/views/zcgl/monitor/components/jcForm.vue
+2
-1
kfForm.vue
src/views/zcgl/monitor/components/kfForm.vue
+21
-27
SaveModal.vue
src/views/zcgl/monitor/modules/SaveModal.vue
+10
-0
没有找到文件。
src/views/zcgl/monitor/components/cfzgForm.vue
浏览文件 @
ad7dd5a7
...
@@ -71,8 +71,9 @@
...
@@ -71,8 +71,9 @@
async
(
val
:
any
)
=>
{
async
(
val
:
any
)
=>
{
if
(
val
)
{
if
(
val
)
{
//重置表单
//重置表单
await
resetFields
();
await
nextTick
();
await
nextTick
();
await
resetFields
();
await
setFieldsValue
({
await
setFieldsValue
({
...
val
,
...
val
,
});
});
...
...
src/views/zcgl/monitor/components/gkxfFrom.vue
浏览文件 @
ad7dd5a7
...
@@ -111,8 +111,9 @@
...
@@ -111,8 +111,9 @@
async
(
val
:
any
)
=>
{
async
(
val
:
any
)
=>
{
if
(
val
)
{
if
(
val
)
{
//重置表单
//重置表单
await
resetFields
();
await
nextTick
();
await
nextTick
();
await
resetFields
();
await
setFieldsValue
({
await
setFieldsValue
({
...
val
,
...
val
,
});
});
...
...
src/views/zcgl/monitor/components/jcForm.vue
浏览文件 @
ad7dd5a7
...
@@ -75,8 +75,9 @@
...
@@ -75,8 +75,9 @@
async
(
val
:
any
)
=>
{
async
(
val
:
any
)
=>
{
if
(
val
)
{
if
(
val
)
{
//重置表单
//重置表单
await
resetFields
();
await
nextTick
();
await
nextTick
();
await
resetFields
();
await
setFieldsValue
({
await
setFieldsValue
({
...
val
,
...
val
,
});
});
...
...
src/views/zcgl/monitor/components/kfForm.vue
浏览文件 @
ad7dd5a7
...
@@ -67,41 +67,34 @@
...
@@ -67,41 +67,34 @@
};
};
},
},
},
},
// 用updateSchema更新不了
{
{
label
:
'区县'
,
label
:
'区县'
,
field
:
'countryCode'
,
field
:
'countryCode'
,
ifShow
:
()
=>
{
ifShow
:
()
=>
{
return
userStore
?.
userInfo
?.
userIdentity
==
'
2'
||
userStore
?.
userInfo
?.
userIdentity
==
'
1'
?
true
:
false
;
return
userStore
?.
userInfo
?.
userIdentity
==
'1'
?
true
:
false
;
},
},
component
:
'ApiSelect'
,
component
:
'ApiSelect'
,
componentProps
:
({
formModel
,
formActionType
})
=>
{
componentProps
:
{
console
.
log
(
formModel
,
'formModel'
);
labelField
:
'name'
,
if
(
userStore
?.
userInfo
?.
userIdentity
==
'2'
)
{
valueField
:
'id'
,
const
{
updateSchema
}
=
formActionType
;
},
updateSchema
({
},
label
:
'区县'
,
{
field
:
'countryCode'
,
label
:
'区县'
,
ifShow
:
true
,
field
:
'countryCode'
,
componentProps
:
{
ifShow
:
()
=>
{
api
:
getTown
,
return
userStore
?.
userInfo
?.
userIdentity
==
'2'
?
true
:
false
;
params
:
userStore
?.
userInfo
?.
codeRegion
,
},
labelField
:
'name'
,
component
:
'ApiSelect'
,
valueField
:
'id'
,
componentProps
:
{
},
api
:
getTown
,
});
params
:
userStore
?.
userInfo
?.
codeRegion
,
}
labelField
:
'name'
,
return
{
valueField
:
'id'
,
labelField
:
'name'
,
valueField
:
'id'
,
};
},
},
},
},
// {
// label: '年度',
// field: 'nd',
// component: 'InputNumber',
// },
{
{
label
:
'项目名称'
,
label
:
'项目名称'
,
field
:
'xmmc'
,
field
:
'xmmc'
,
...
@@ -179,8 +172,9 @@
...
@@ -179,8 +172,9 @@
async
(
val
:
any
)
=>
{
async
(
val
:
any
)
=>
{
if
(
val
)
{
if
(
val
)
{
//重置表单
//重置表单
await
resetFields
();
await
nextTick
();
await
nextTick
();
await
resetFields
();
await
setFieldsValue
({
await
setFieldsValue
({
...
val
,
...
val
,
});
});
...
...
src/views/zcgl/monitor/modules/SaveModal.vue
浏览文件 @
ad7dd5a7
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
import
cfzgForm
from
'../components/cfzgForm.vue'
;
import
cfzgForm
from
'../components/cfzgForm.vue'
;
import
{
formSchema
}
from
'../data'
;
import
{
formSchema
}
from
'../data'
;
import
{
saveAdd
,
saveEdit
}
from
'../api'
;
import
{
saveAdd
,
saveEdit
}
from
'../api'
;
import
{
useUserStore
}
from
'/@/store/modules/user'
;
// Emits声明
// Emits声明
const
emit
=
defineEmits
([
'register'
,
'success'
]);
const
emit
=
defineEmits
([
'register'
,
'success'
]);
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
]);
const
activeKey
=
ref
([
'1'
,
'2'
,
'3'
,
'4'
]);
...
@@ -33,6 +34,7 @@
...
@@ -33,6 +34,7 @@
const
jcForms
=
ref
<
any
>
(
null
);
const
jcForms
=
ref
<
any
>
(
null
);
const
gkxfForms
=
ref
<
any
>
(
null
);
const
gkxfForms
=
ref
<
any
>
(
null
);
const
cfzgForms
=
ref
<
any
>
(
null
);
const
cfzgForms
=
ref
<
any
>
(
null
);
const
userStore
:
any
=
useUserStore
();
//表单配置
//表单配置
const
[
registerForm
,
{
resetFields
,
setFieldsValue
,
validate
}]
=
useForm
({
const
[
registerForm
,
{
resetFields
,
setFieldsValue
,
validate
}]
=
useForm
({
labelWidth
:
220
,
labelWidth
:
220
,
...
@@ -77,6 +79,14 @@
...
@@ -77,6 +79,14 @@
let
values
=
await
validate
();
let
values
=
await
validate
();
const
params
=
{
...
kfForm
,
...
jcForm
,
...
gkxfForm
,
...
cfzgForm
,
...
values
};
const
params
=
{
...
kfForm
,
...
jcForm
,
...
gkxfForm
,
...
cfzgForm
,
...
values
};
if
(
userStore
?.
userInfo
?.
userIdentity
!=
1
)
{
// 获取市的值
params
.
cityCode
=
userStore
?.
userInfo
?.
codeRegion
.
substring
(
0
,
userStore
?.
userInfo
?.
codeRegion
.
length
-
2
)
+
'00'
;
}
// 土地使用权人4 如果有权限 再加个4
if
(
userStore
?.
userInfo
?.
userIdentity
==
'3'
&&
!
params
.
id
)
{
if
(
!
params
.
countryCode
)
params
.
countryCode
=
userStore
?.
userInfo
?.
codeRegion
;
}
setModalProps
({
confirmLoading
:
true
});
setModalProps
({
confirmLoading
:
true
});
console
.
log
(
params
,
'params'
);
console
.
log
(
params
,
'params'
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论