From 33c8db885ab2b5117c064d064f6e7c7eb0357a1c Mon Sep 17 00:00:00 2001 From: fujunling <2984387807@qq.com> Date: 星期五, 02 六月 2023 16:24:54 +0800 Subject: [PATCH] 动态模块 --- Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue | 48 ++++++++++++++---------------------------------- 1 files changed, 14 insertions(+), 34 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue b/Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue index 894b3c0..86dce48 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue @@ -25,21 +25,23 @@ </template> </el-table-column> </el-table> - <FormTemplate - ref="FormTemplate" + <FormTemplateDialog + ref="FormTemplateDialog" type="detail" :visible.sync="formTemplateVisible" :templateOid="this.resembleTemplateOid" :codeClassifyOid="this.resembleCodeClassifyOid" - ></FormTemplate> + ></FormTemplateDialog> </div> </template> <script> import { findLike } from "@/api/formTemplate.js"; +import FormTemplateDialog from "./index.vue"; export default { name: "ResembleQuery", + components: { FormTemplateDialog }, props: { column: { type: Array, @@ -53,10 +55,6 @@ type: String, default: "", }, - hasResemble: { - type: Boolean, - default: false, - }, type: { type: String, default: "add", @@ -67,8 +65,8 @@ }, codeRuleOid: { type: String, - default: '' - } + default: "", + }, }, data() { return { @@ -116,34 +114,20 @@ formItems: [], }; }, - created() { - this.getCodeRule(); - }, - computed: { - showCodeOrder() { - if (this.type === "add") { - if (this.secVOList.length == 0 && this.hasResemble) { - return false; - } - } else { - if (this.hasResemble) { - return false; - } - } - return true; - }, - }, + created() {}, + computed: {}, methods: { // 鐩镐技椤规煡璇� resembleQuery(form) { this.loading = true; this.activeName = "findlike"; - const { defaultValue, formValue } = this.getDefaultValueAndFormValues(form); + const { defaultValue, formValue } = + this.getDefaultValueAndFormValues(form); let params = { codeClassifyOid: this.codeClassifyOid, codeRuleOid: this.codeRuleOid, templateOid: this.templateOid, - data: formValue, + data: formValue }; params = Object.assign(params, defaultValue); this.tableVisible = true; @@ -152,11 +136,8 @@ this.tableData = res.data.data || []; }); }, - + openFormTemlpate(row) { - this.$nextTick(() => { - console.log(this.$refs.FormTemplate); - }); this.codetemplateoid = row.codetemplateoid; this.formTemplateVisible = true; }, @@ -179,6 +160,5 @@ }; }, }, - }; -</script> \ No newline at end of file +</script> -- Gitblit v1.9.3