From ffb3d0f1af7e5a93b9a509b0838d9b58a1449bdc Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期三, 14 六月 2023 14:27:16 +0800
Subject: [PATCH] 批量申请接口提交
---
Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue b/Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue
index 3aaf6fe..da90c5c 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue
@@ -36,7 +36,9 @@
ref="FormTemplateDialog"
type="detail"
:visible.sync="formTemplateVisible"
- :templateOid="this.resembleTemplateOid"
+ :templateOid="resembleTemplateOid"
+ :rowOid="rowOid"
+ title="鏌ョ湅璇︾粏淇℃伅"
:codeClassifyOid="this.resembleCodeClassifyOid"
></FormTemplateDialog>
</div>
@@ -44,11 +46,10 @@
<script>
import { findLike } from "@/api/formTemplate.js";
-import FormTemplateDialog from "./index.vue";
export default {
name: "ResembleQuery",
- components: { FormTemplateDialog },
+ components: { FormTemplateDialog: () => import('./index.vue') },
props: {
column: {
type: Array,
@@ -83,6 +84,7 @@
loading: false,
resembleTemplateOid: "78B8C7C5-A042-0B96-FE6D-65421451782A",
resembleCodeClassifyOid: "4524E801-6CC6-92E8-1AC3-2AB9604E8F96",
+ rowOid: '',
defaultValue: {},
secVOList: [],
defaultKeys: [
@@ -122,7 +124,7 @@
},
methods: {
// 鐩镐技椤规煡璇�
- resembleQuery(form) {
+ async resembleQuery(form) {
this.loading = true;
this.activeName = "findlike";
const { defaultValue, formValue } =
@@ -134,14 +136,15 @@
data: formValue,
};
params = Object.assign(params, defaultValue);
- findLike(params).then((res) => {
- this.loading = false;
- this.tableData = res.data.data || [];
- });
+ this.tableData = (await findLike(params)).data.data || []
+ this.loading = false
+ return this.tableData
},
openFormTemlpate(row) {
- this.codetemplateoid = row.codetemplateoid;
+ this.resembleTemplateOid = row.codetemplateoid
+ this.resembleCodeClassifyOid = row.codeClassifyOid
+ this.rowOid = row.oid
this.formTemplateVisible = true;
},
getDefaultValueAndFormValues(form) {
--
Gitblit v1.9.3