feat: 新增需求

This commit is contained in:
caijun
2026-01-20 18:07:35 +08:00
parent 9f5b2a92c4
commit 4243e1213f
26 changed files with 2837 additions and 936 deletions

View File

@@ -1,7 +1,7 @@
<template>
<view class="dynamicModel-v">
<Form v-if="webType == 1" :config="config" :modelId="modelId" :isPreview="isPreview" />
<List v-if="webType == 2 || webType == 4" :config="config" :modelId="modelId" :isPreview="isPreview"
<!-- <Form :config="config" :modelId="modelId" :isPreview="isPreview" /> -->
<List :config="config" :modelId="modelId" :isPreview="isPreview"
:title="title" :menuId="menuId" ref="List" />
</view>
</template>
@@ -18,6 +18,7 @@
import {
useBaseStore
} from '@/store/modules/base'
import { computed } from "vue";
const baseStore = useBaseStore()
export default {
@@ -41,18 +42,18 @@
};
},
onLoad(obj) {
baseStore.getDictionaryDataAll()
// baseStore.getDictionaryDataAll()
this.config = JSON.parse(this.jnpf.base64.decode(obj.config)) || {};
this.isPreview = this.config.isPreview || false;
this.enableFlow = this.config.type === 9 ? 1 : 0;
this.title = this.config.fullName || "";
this.menuId = this.config.id || "";
this.title = this.config.name || "";
this.modelId = this.config.id || "";
uni.setNavigationBarTitle({
title: this.title,
});
if (!this.enableFlow) return this.getConfigData();
// if (!this.enableFlow) return this.getConfigData();
this.flowId = this.config.moduleId
this.getModelId()
// this.getModelId()
},
methods: {
// 获取流程版本ID和发起节点表单ID
@@ -60,7 +61,7 @@
getFlowStartFormId(this.flowId).then(res => {
if (!res.data || !res.data.formId) return;
this.config.moduleId = res.data.formId
this.getConfigData();
// this.getConfigData();
})
},
getConfigData() {