fujunling
2023-06-01 2210c590f886d75bc760fa08caa18dd0181026b5
Source/UBCS-WEB/src/views/MasterData/FormTempalteTest.vue
@@ -1,18 +1,33 @@
<template>
  <div>
    <el-button @click="visible = true">测试</el-button>
    <FormTemplate :visible.sync="visible" templateOid="78B8C7C5-A042-0B96-FE6D-65421451782A" codeClassifyOid="4524E801-6CC6-92E8-1AC3-2AB9604E8F96"></FormTemplate>
    <FormTemplateDialog
      :visible.sync="visible"
      :FormTemplateProp="FormTemplateProp"
      :type="this.type"
      :editForm="editForm"
      :templateOid="this.templateOid"
      :codeClassifyOid="this.codeClassifyOid"
      :disabledProp="disabledProp"
    ></FormTemplateDialog>
  </div>
</template>codeClassifyOid
</template>
codeClassifyOid
<script>
import FormTemplate from "../../components/FormTemplate/index";
export default {
  name: "FormTempalteTest",
  components: { FormTemplate },
  data() {
    return {
      visible: false,
      // 默认禁用的表元素
      disabledProp: ["id"],
      // 修改回显的数据
      editForm: {},
      // 表单类型
      type: "add",
      templateOid: "D32FC682-4376-A148-DF8D-6261206E6412",
      codeClassifyOid: "91E05D2B-FEB2-6D41-5CE5-5B489615A29C",
    };
  },
};