【数据统计】修改判断是否有地图,提交图斑字段

hc_zhufu
Zhufu 2024-05-21 10:40:13 +08:00
parent 231db028e7
commit 4c7a67da19
2 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@ async function ModalSureClick() {
try {
const values = await validate();
let query = values;
query.MapGemo = toRaw(props.mapgemoList).join(" ")
query.MapGeom = toRaw(props.mapgemoList).join(" ")
console.log('query', query);
let params: any = {
schemeId: primaryQuery.value.id,

View File

@ -493,11 +493,11 @@
getFormsDesignData(params).then((res: Recordable) => {
let columnObj = JSON.parse(res.entity.scheme);
console.log(columnObj,'columnObj');
let formObj = JSON.parse(res.formScheme.scheme);
// TODO
if(columnObj.map) haveMap.value = true
haveMap.value = formObj.formInfo.schemas.findIndex(item => item.field === "MapGeom") !== -1
let formObj = JSON.parse(res.formScheme.scheme);
console.log(formObj,'formObj');
paramsId.value = res.formScheme.id;
console.log(paramsId.value,'paramsId');
@ -575,7 +575,7 @@
getFormData(params).then(res => {
console.log('res',res)
res.forEach(item => {
if(item.columnName === "mapgemo"){
if(item.columnName === "mapgeom"){
mapgemoList.value.push(item.value)
}
})