From 861c2ebc96fa1a3c53cdd6e63f09232339501f19 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Wed, 17 Sep 2025 23:04:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=20=E9=9B=86=E5=90=88?= =?UTF-8?q?=E4=BB=98=E6=AC=BE=E7=99=BB=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/flow/create.vue | 11 +++++++---- src/views/flow/list.vue | 41 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 45 insertions(+), 7 deletions(-) diff --git a/src/views/flow/create.vue b/src/views/flow/create.vue index 1f35126..50fbf2e 100644 --- a/src/views/flow/create.vue +++ b/src/views/flow/create.vue @@ -797,14 +797,15 @@ export default { this.$message.warning('数据校验失败') return } - console.log("this.$refs['desktopForm'].form",this.$refs["desktopForm"].form) - // copyForm = deepCopy(this.$refs["desktopForm"].form); - copyForm = this.$refs["desktopForm"].form; + + copyForm = deepCopy(this.$refs["desktopForm"].form); const uploadHandler = (form, fields) => { let keys = Object.keys(form) - keys.forEach(key => { + if(fields){ + keys.forEach(key => { if (form[key] instanceof Array) { if (form[key].length > 0 && typeof form[key][0] === 'object') { + console.log("key",key,fields) const myField = fields.find(field => field.name === key) if (myField) { if (myField.type === 'file') { @@ -826,6 +827,8 @@ export default { } } }) + } + } console.log("copyForm",copyForm,this.fields) console.log("this.writeableFields",this.writeableFields) diff --git a/src/views/flow/list.vue b/src/views/flow/list.vue index 95145ae..0843a42 100644 --- a/src/views/flow/list.vue +++ b/src/views/flow/list.vue @@ -35,6 +35,23 @@ :label="item.name" > + + + i.can_pay) + }else if(e===0){ + this.list = arr.filter(i=>i.can_pay===0) + }else{ + this.list = arr + } + }, // 获取 字段 showExport() { this.$refs.isShowFieldExport.config = this.config; @@ -961,6 +994,7 @@ export default { } }, async getList(refresh = false) { + console.log("this.select", this.select.page_size); if (this.loading) return; this.loading = true; try { @@ -970,6 +1004,7 @@ export default { const res = await flowList(this.$route.params.type, this.select, false); res.data?.data?.forEach((i) => this.contentFormatter(i)); this.list = res?.data?.data || []; + this.beforeList = res?.data?.data || []; this.total = res?.data?.total ?? 0; this.models = res.customModels; this.title = res.pageTitle;