表单提交
This commit is contained in:
parent
9ed974a912
commit
1192a37655
@ -17,8 +17,15 @@ import { useRoute } from 'vue-router'
|
||||
// import formCreate from "@form-create/element-ui";
|
||||
import { moduleById } from '@/api/data-visualization/module'
|
||||
import formCreate from '@/data-collect/render/element-plus/form-create.es.js'
|
||||
const props = defineProps({
|
||||
appId: {
|
||||
required: true,
|
||||
type: String
|
||||
}
|
||||
})
|
||||
|
||||
const route = useRoute()
|
||||
const appId:any = ref(route.query.appId)
|
||||
const appId:any = ref(props.appId)
|
||||
const field = ref([])
|
||||
|
||||
|
||||
@ -37,9 +44,9 @@ function getInit(){
|
||||
}
|
||||
moduleById(appId.value ).then(res => {
|
||||
if(res.code ==0){
|
||||
if(res.data.data.canvas_style_data != null && res.data.data.canvas_style_data != ""){
|
||||
option.value = formCreate.parseJson(res.data.data.component_data)
|
||||
rule.value = formCreate.parseJson(res.data.data.canvas_style_data)
|
||||
if(res.data.canvas_style_data != null && res.data.canvas_style_data != ""){
|
||||
option.value = formCreate.parseJson(res.data.component_data)
|
||||
rule.value = formCreate.parseJson(res.data.canvas_style_data)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user