| | |
| | | <template>
|
| | | <div>
|
| | | <el-button @click="visible = true">测试</el-button>
|
| | | <FormTemplateDialog
|
| | | :visible.sync="visible"
|
| | | :FormTemplateProp="FormTemplateProp"
|
| | | :type="this.type"
|
| | | :editForm="editForm"
|
| | | :templateOid="this.templateOid"
|
| | | :codeClassifyOid="this.codeClassifyOid"
|
| | | :disabledProp="disabledProp"
|
| | | ></FormTemplateDialog>
|
| | | </div>
|
| | | </template>
|
| | | codeClassifyOid
|
| | |
|
| | | <script>
|
| | | export default {
|
| | | name: "FormTempalteTest",
|
| | | data() {
|
| | | return {
|
| | | visible: false,
|
| | | // 默认禁用的表元素
|
| | | disabledProp: ["id"],
|
| | | // 修改回显的数据
|
| | | editForm: {},
|
| | | // 表单类型
|
| | | type: "add",
|
| | | templateOid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
|
| | | codeClassifyOid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
|
| | | };
|
| | | },
|
| | | };
|
| | | </script>
|
| | | <template> |
| | | <div> |
| | | <el-button @click="visible = true">测试</el-button> |
| | | <el-button @click="visible1 = true">相似项查询</el-button> |
| | | <el-button @click="visible3 = true">批量导入</el-button> |
| | | <el-button @click="visible2 = true">附件管理dialog</el-button> |
| | | <FormTemplateDialog |
| | | :visible.sync="visible" |
| | | :type="type" |
| | | :templateOid="templateOid" |
| | | :codeClassifyOid="codeClassifyOid" |
| | | :codeRuleOid="codeRuleOid" |
| | | :disabledProp="disabledProp" |
| | | :rowOid="rowOid" |
| | | @submit="submit" |
| | | ></FormTemplateDialog> |
| | | <ResembleQueryDialog |
| | | :visible.sync="visible1" |
| | | :type="type" |
| | | :templateOid="templateOid" |
| | | :codeClassifyOid="codeClassifyOid" |
| | | :rowOid="rowOid" |
| | | :codeRuleOid="codeRuleOid" |
| | | ></ResembleQueryDialog> |
| | | <BatchImport |
| | | :visible.sync="visible3" |
| | | type="historyImport" |
| | | :downloadTemplateFun="downloadTemplateFun" |
| | | :codeClassifyOid="codeClassifyOid" |
| | | ></BatchImport> |
| | | <fileInHtml :options="fileOptions"></fileInHtml> |
| | | <fileinDialog |
| | | :visible="visible2" |
| | | :options="fileOptions" |
| | | @close="visible2 = false" |
| | | ></fileinDialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue"; |
| | | import fileInHtml from "@/components/file/inHtml.vue"; |
| | | import fileinDialog from "@/components/file/inDialog.vue"; |
| | | import BatchImport from "@/components/BatchImport"; |
| | | export default { |
| | | name: "FormTemplateTest", |
| | | components: { ResembleQueryDialog, fileInHtml, fileinDialog, BatchImport }, |
| | | data() { |
| | | return { |
| | | visible: false, |
| | | visible1: false, |
| | | visible2: false, |
| | | visible3: false, |
| | | // 默认禁用的表元素 |
| | | disabledProp: ["id", "lcstatus"], |
| | | // 表单类型 |
| | | type: "add", |
| | | templateOid: "f441b131-5ea0-4672-ab74-735b11161928", |
| | | codeClassifyOid: "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B", |
| | | codeRuleOid: "B95872A6-9CEA-D490-8F1B-9D26548CAF96", |
| | | rowOid: "551FBA49-9A94-2F83-9126-9DD4F9BB14B5", |
| | | fileOptions:{ |
| | | ownbizOid:"6EF696C3-CD87-0E7C-1EA1-8DE3913A95C9", |
| | | ownbizBtm:"wupin", |
| | | fileDocClassify:'!=processAuditSuggest', |
| | | fileDocClassifyName:'', |
| | | hasDownload:true, |
| | | hasUpload:true, |
| | | tableHeight: 'auto' |
| | | } |
| | | }; |
| | | }, |
| | | methods: { |
| | | submit(data) { |
| | | //console.log(data); |
| | | }, |
| | | downloadTemplateFun() { |
| | | |
| | | } |
| | | }, |
| | | }; |
| | | </script> |