merge
parent
c556d80c58
commit
b2605cb816
|
|
@ -65,7 +65,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, defineProps } from 'vue';
|
import { onMounted, ref, defineProps,defineEmits } from 'vue';
|
||||||
import { BasicForm, useForm } from '@/components/Form';
|
import { BasicForm, useForm } from '@/components/Form';
|
||||||
import { functionGetFormDataFormScheme, LoadFormScheme } from '@/api/demo/formScheme';
|
import { functionGetFormDataFormScheme, LoadFormScheme } from '@/api/demo/formScheme';
|
||||||
import { PlusOutlined, DeleteOutlined } from '@ant-design/icons-vue';
|
import { PlusOutlined, DeleteOutlined } from '@ant-design/icons-vue';
|
||||||
|
|
@ -77,6 +77,7 @@
|
||||||
import { subTableStore } from '@/store/modules/subTable';
|
import { subTableStore } from '@/store/modules/subTable';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
|
const emit = defineEmits(["getFormSuccess"])
|
||||||
const subTableDataStore = subTableStore();
|
const subTableDataStore = subTableStore();
|
||||||
|
|
||||||
let formColumns: FormSchema[] = [];
|
let formColumns: FormSchema[] = [];
|
||||||
|
|
@ -381,6 +382,8 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit("getFormSuccess")
|
||||||
}
|
}
|
||||||
const groupRef = ref();
|
const groupRef = ref();
|
||||||
async function getForm() {
|
async function getForm() {
|
||||||
|
|
@ -449,6 +452,7 @@
|
||||||
}
|
}
|
||||||
.my-form-viewer {
|
.my-form-viewer {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
width:100%;
|
||||||
height: calc(100vh - 350px);
|
height: calc(100vh - 350px);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
"
|
"
|
||||||
v-if="formVisble"
|
v-if="formVisble"
|
||||||
>
|
>
|
||||||
<div :class="mapConfig?.isShowMap ? 'form-container' : ''">
|
<div >
|
||||||
<FormViewer
|
<FormViewer
|
||||||
ref="formBoxRef"
|
ref="formBoxRef"
|
||||||
:formConfig="formConfig"
|
:formConfig="formConfig"
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
:formVerison="designerData.formCurrentNode.formVerison"
|
:formVerison="designerData.formCurrentNode.formVerison"
|
||||||
:formRelationId="designerData.formCurrentNode.formRelationId"
|
:formRelationId="designerData.formCurrentNode.formRelationId"
|
||||||
:instanceInfo="designerData.process.instanceInfo"
|
:instanceInfo="designerData.process.instanceInfo"
|
||||||
|
@getFormSuccess="getFormSuccess"
|
||||||
v-if="formVisble"
|
v-if="formVisble"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -185,7 +186,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, reactive, onBeforeMount, defineAsyncComponent } from 'vue';
|
import { ref, reactive, onBeforeMount,watch,defineAsyncComponent } from 'vue';
|
||||||
import { ProcessViewer } from '@/components/ProcessViewer';
|
import { ProcessViewer } from '@/components/ProcessViewer';
|
||||||
import { PageWrapper } from '@/components/Page';
|
import { PageWrapper } from '@/components/Page';
|
||||||
import { createAgain, signAudit, audit, ReadFlow } from '@/api/sys/WFProcess';
|
import { createAgain, signAudit, audit, ReadFlow } from '@/api/sys/WFProcess';
|
||||||
|
|
@ -772,34 +773,31 @@
|
||||||
} else if (key === targetKey && obj[key] == 'MapGeom') {
|
} else if (key === targetKey && obj[key] == 'MapGeom') {
|
||||||
// 如果当前键等于目标键,则返回对应的值
|
// 如果当前键等于目标键,则返回对应的值
|
||||||
chooseLayer.value = obj['mapSetData'].chooseLayer;
|
chooseLayer.value = obj['mapSetData'].chooseLayer;
|
||||||
geomfield.value = obj['field']
|
geomfield.value = obj["field"]
|
||||||
return obj[key];
|
return obj[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handlerShowGeomtrys(currentNode) {
|
function getFormSuccess(){
|
||||||
findValue(currentNode.value.schemas,"component")
|
handlerShowGeomtrys(designerData.currentNode);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function handlerShowGeomtrys(currentNode) {
|
||||||
|
findValue(currentNode.authFields,"component")
|
||||||
let info = currentNode.authFields?.find((item, index) => {
|
let info = currentNode.authFields?.find((item, index) => {
|
||||||
return item.component == 'MapGeom';
|
return item.component == 'MapGeom';
|
||||||
});
|
});
|
||||||
let layer: string = chooseLayer.value;
|
let layer: string = chooseLayer.value;
|
||||||
|
|
||||||
// let layer:string="drone_shp_data";
|
|
||||||
// if (info) {
|
|
||||||
// layer = info?.mapSetData?.chooseLayer;
|
|
||||||
// }
|
|
||||||
if (!layer) {
|
if (!layer) {
|
||||||
createMessage.error('图斑未绑定图层服务!');
|
createMessage.error('图斑未绑定图层服务!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let geomfiledValue = geomfield.value;
|
let geomfiledValue = geomfield.value;
|
||||||
|
|
||||||
let gids = '';
|
let gids = '';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await formBoxRef.value.getForm().then((res) => {
|
await formBoxRef.value.getForm().then((res) => {
|
||||||
|
geomfiledValue = geomfiledValue.toLowerCase();
|
||||||
gids = res[geomfiledValue];
|
gids = res[geomfiledValue];
|
||||||
// 根据ids获取图斑
|
// 根据ids获取图斑
|
||||||
if (gids) {
|
if (gids) {
|
||||||
|
|
@ -843,7 +841,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMapboxLoad() {
|
function onMapboxLoad() {
|
||||||
handlerShowGeomtrys(designerData.formCurrentNode);
|
|
||||||
}
|
}
|
||||||
// 驳回到指定节点
|
// 驳回到指定节点
|
||||||
async function rejectHandleOk() {
|
async function rejectHandleOk() {
|
||||||
|
|
@ -863,6 +861,8 @@
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
getTaskInfo();
|
getTaskInfo();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
::v-deep .ant-tabs-nav-wrap {
|
::v-deep .ant-tabs-nav-wrap {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue