Merge branch 'main' of http://123.132.248.154:10000/HC_YFZX/CaiYuanYiTiHua
commit
5d30b2aa32
|
|
@ -3,7 +3,7 @@
|
||||||
<div v-show="tabsColumns.length > 1">
|
<div v-show="tabsColumns.length > 1">
|
||||||
<a-tabs style="width: 100%" @change="tabsChange">
|
<a-tabs style="width: 100%" @change="tabsChange">
|
||||||
<a-tab-pane v-for="(colItem, index) in tabsColumns" :tab="colItem.label" :key="index">
|
<a-tab-pane v-for="(colItem, index) in tabsColumns" :tab="colItem.label" :key="index">
|
||||||
<BasicForm ref="myDataBaseFormRef" @register="registerForm">
|
<BasicForm ref="tabsFormRef" @register="registerForm">
|
||||||
<template #CardGroup>
|
<template #CardGroup>
|
||||||
<CardGourp
|
<CardGourp
|
||||||
v-if="cardGroupData.length > 0 && cardGroupData[index]"
|
v-if="cardGroupData.length > 0 && cardGroupData[index]"
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
</div>
|
</div>
|
||||||
<BasicForm
|
<BasicForm
|
||||||
ref="myDataBaseFormRef"
|
ref="formRef"
|
||||||
@register="registerForm"
|
@register="registerForm"
|
||||||
v-if="formModalVisible && tabsColumns.length < 1"
|
v-if="formModalVisible && tabsColumns.length < 1"
|
||||||
>
|
>
|
||||||
|
|
@ -91,7 +91,8 @@
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const emit = defineEmits(['getFormSuccess']);
|
const emit = defineEmits(['getFormSuccess']);
|
||||||
const subTableDataStore = subTableStore();
|
const subTableDataStore = subTableStore();
|
||||||
|
const tabsFormRef = ref()
|
||||||
|
const formRef = ref()
|
||||||
let formColumns: FormSchema[] = [];
|
let formColumns: FormSchema[] = [];
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
formConfig: Object,
|
formConfig: Object,
|
||||||
|
|
@ -315,8 +316,7 @@
|
||||||
}, 10);
|
}, 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function tabsChange(e) {
|
function tabsChange(e) {
|
||||||
clearValidate();
|
|
||||||
tabsKey.value = e;
|
tabsKey.value = e;
|
||||||
formColumns.forEach((element) => {
|
formColumns.forEach((element) => {
|
||||||
element.show = false;
|
element.show = false;
|
||||||
|
|
@ -341,6 +341,7 @@
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setFieldsValue(FieldsValue.value);
|
setFieldsValue(FieldsValue.value);
|
||||||
|
clearValidate()
|
||||||
}, 10);
|
}, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -425,8 +426,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(subTableDataStore.getGroupData);
|
console.log(subTableDataStore.getGroupData);
|
||||||
|
let resultObj = {}
|
||||||
|
tabsFormRef.value.forEach((item,index) => {
|
||||||
|
console.log(item.getFieldsValue(),index)
|
||||||
|
let data = item.getFieldsValue()
|
||||||
|
Object.keys(data).forEach(key => {
|
||||||
|
if(!resultObj[key]){
|
||||||
|
resultObj[key] = data[key]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
//卡片组的值赋值给form,优化卡片组必填验证不通过
|
//卡片组的值赋值给form,优化卡片组必填验证不通过
|
||||||
setFieldsValue({
|
setFieldsValue({
|
||||||
|
...resultObj,
|
||||||
...subTableDataStore.getGroupData,
|
...subTableDataStore.getGroupData,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -491,7 +503,8 @@
|
||||||
if (props.formVerison) {
|
if (props.formVerison) {
|
||||||
getFormHistory();
|
getFormHistory();
|
||||||
}
|
}
|
||||||
clearValidate();
|
tabsFormRef.value && tabsFormRef.value.clearValidate();
|
||||||
|
formRef.value && formRef.value.clearValidate();
|
||||||
});
|
});
|
||||||
function radioVal() {
|
function radioVal() {
|
||||||
console.log('radioVal');
|
console.log('radioVal');
|
||||||
|
|
|
||||||
|
|
@ -79,12 +79,12 @@ const initMap = () => {
|
||||||
type: 'raster',
|
type: 'raster',
|
||||||
source: 'raster-tiles-geo',
|
source: 'raster-tiles-geo',
|
||||||
minzoom: 0,
|
minzoom: 0,
|
||||||
maxzoom: 18,
|
maxzoom: 20,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
maxZoom:17,
|
maxZoom:18,
|
||||||
minZoom:1,
|
minZoom:7,
|
||||||
zoom: 10,
|
zoom: 10,
|
||||||
pitch:0,
|
pitch:0,
|
||||||
center: [117.984425,35.270654],
|
center: [117.984425,35.270654],
|
||||||
|
|
|
||||||
|
|
@ -468,11 +468,12 @@ const handlerDealCountry = (countyName:String = "临沂市"):void=>{
|
||||||
|
|
||||||
axios({
|
axios({
|
||||||
method:"get",
|
method:"get",
|
||||||
url:`http://175.27.168.120:8080/geoserver/linyishi/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=linyishi%3Axianjie&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=xzqmc%20like%20%27%25${filterName}%25%27`,
|
// url:`http://175.27.168.120:8080/geoserver/linyishi/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=linyishi%3Axianjie&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=xzqmc%20like%20%27%25${filterName}%25%27`,
|
||||||
|
url:`http://120.222.154.7:8090/geoserver/linyishi/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=linyishi%3Ashijie&maxFeatures=50&outputFormat=application%2Fjson`,
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
handlerLoadCountyLayer(res.data);
|
handlerLoadCountyLayer(res.data);
|
||||||
});
|
});
|
||||||
}else if(countyName){
|
} else if(countyName){
|
||||||
center = MAP_VIEWER[countyName].center;
|
center = MAP_VIEWER[countyName].center;
|
||||||
zoom = MAP_VIEWER[countyName].zoom;
|
zoom = MAP_VIEWER[countyName].zoom;
|
||||||
handlerLocation([center['lng'],center['lat']],zoom);
|
handlerLocation([center['lng'],center['lat']],zoom);
|
||||||
|
|
@ -480,7 +481,8 @@ const handlerDealCountry = (countyName:String = "临沂市"):void=>{
|
||||||
|
|
||||||
axios({
|
axios({
|
||||||
method:"get",
|
method:"get",
|
||||||
url:`http://175.27.168.120:8080/geoserver/linyishi/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=linyishi%3Axianjie&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=xzqmc%20like%20%27%25${filterName}%25%27`,
|
// url:`http://175.27.168.120:8080/geoserver/linyishi/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=linyishi%3Axianjie&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=xzqmc%20like%20%27%25${filterName}%25%27`,
|
||||||
|
url: `http://120.222.154.7:8090/geoserver/linyishi/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=linyishi%3Axianjie&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=xzqdm_1%20like%20%27%25${filterName}%25%27`,
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
handlerLoadCountyLayer(res.data);
|
handlerLoadCountyLayer(res.data);
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -214,11 +214,11 @@
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.screen-header-container {
|
.screen-header-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// height: 130px;
|
height: 100px;
|
||||||
// background-image: url('/public/statistical/header.png');
|
// background-image: url('/public/statistical/header.png');
|
||||||
// background-size: 100% 96px;
|
// background-size: 100% 96px;
|
||||||
background:
|
background:
|
||||||
url('/public/statistical/mask.png') no-repeat top left / 100% 130px,
|
url('/public/statistical/mask.png') no-repeat top left / 100% 100px,
|
||||||
url('/public/statistical/header.png') no-repeat top left / 100% 96px;
|
url('/public/statistical/header.png') no-repeat top left / 100% 96px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue