first commit

This commit is contained in:
那些花儿
2025-06-04 11:51:25 +08:00
commit 07300ed9bc
2649 changed files with 596772 additions and 0 deletions
@@ -0,0 +1,44 @@
<template>
<el-dialog title="查看" :visible.sync="dialogVisible" width="60%">
<form-create :value.sync="dynamicFormData" v-model="fapi" :rule="formCreateRule" :option="formCreateOption" disabled></form-create>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="dialogVisible = false"> </el-button>
</span>
</el-dialog>
</template>
<script>
module.exports = {
name: "dynamic-Table-form-eval",
data() {
return {
dialogVisible: false,
dynamicFormData: {},
formCreateRule: [],
formCreateOption: {},
fapi: null
}
},
methods: {
onOpen(formConfig, dynamicFormData) {
debugger
this.dialogVisible = true
this.$nextTick(() => {
this.formCreateRule = formCreate.parseJson(formConfig.rule)
this.formCreateOption = formCreate.parseJson(formConfig.options)
if (typeof dynamicFormData === "string") {
try {
this.dynamicFormData = JSON.parse(dynamicFormData)
} catch (e) {}
} else if (typeof dynamicFormData === "object") {
this.dynamicFormData = dynamicFormData
}
this.fapi.disabled(true)
})
}
}
}
</script>
<style scoped></style>