From 3820710c561240bfdbdd1884dea5aa7dc0b30e96 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Tue, 26 Mar 2024 10:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E5=B0=81=E8=A3=85=20form-cre?= =?UTF-8?q?ate=20=E7=BB=84=E4=BB=B6=EF=BC=8C=E4=BD=BF=E7=94=A8=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=87=8D=E6=96=B0=E5=B0=81=E8=A3=85=E7=9A=84=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FormCreate/index.ts | 3 + .../FormCreate/src/MyFormCreate.vue | 54 ++++++++++ src/components/UploadFile/src/UploadFile.vue | 10 +- src/components/UploadFile/src/UploadImg.vue | 11 +- src/components/UploadFile/src/UploadImgs.vue | 3 +- src/utils/formCreate.ts | 2 +- src/views/bpm/definition/index.vue | 48 ++++----- src/views/bpm/form/index.vue | 2 +- src/views/bpm/model/index.vue | 102 ++++++++++-------- .../bpm/processInstance/create/index.vue | 22 ++-- .../bpm/processInstance/detail/index.vue | 10 +- src/views/infra/build/index.vue | 9 +- 12 files changed, 172 insertions(+), 104 deletions(-) create mode 100644 src/components/FormCreate/index.ts create mode 100644 src/components/FormCreate/src/MyFormCreate.vue diff --git a/src/components/FormCreate/index.ts b/src/components/FormCreate/index.ts new file mode 100644 index 00000000..df750822 --- /dev/null +++ b/src/components/FormCreate/index.ts @@ -0,0 +1,3 @@ +import MyFormCreate from './src/MyFormCreate.vue' + +export { MyFormCreate } diff --git a/src/components/FormCreate/src/MyFormCreate.vue b/src/components/FormCreate/src/MyFormCreate.vue new file mode 100644 index 00000000..e72144b6 --- /dev/null +++ b/src/components/FormCreate/src/MyFormCreate.vue @@ -0,0 +1,54 @@ + + + diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index c91f977a..71f944ed 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -6,7 +6,9 @@ :action="uploadUrl" :auto-upload="autoUpload" :before-upload="beforeUpload" + :disabled="disabled" :drag="drag" + :http-request="httpRequest" :limit="props.limit" :multiple="props.limit > 1" :on-error="excelUploadError" @@ -15,15 +17,14 @@ :on-remove="handleRemove" :on-success="handleFileSuccess" :show-file-list="true" - :http-request="httpRequest" class="upload-file-uploader" name="file" > - + 选取文件 - - + - + diff --git a/src/views/bpm/processInstance/create/index.vue b/src/views/bpm/processInstance/create/index.vue index a10e0208..988004c4 100644 --- a/src/views/bpm/processInstance/create/index.vue +++ b/src/views/bpm/processInstance/create/index.vue @@ -2,22 +2,23 @@ - - + + - + - - + + @@ -30,14 +31,15 @@
申请信息【{{ selectProcessInstance.name }}】 - 选择其它流程 + + 选择其它流程
- - + diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index 074d1329..5b16a558 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -68,9 +68,9 @@ - @@ -229,9 +229,9 @@ const getProcessInstance = async () => { data.formVariables ) nextTick().then(() => { - fApi.value?.fapi?.btn.show(false) - fApi.value?.fapi?.resetBtn.show(false) - fApi.value?.fapi?.disabled(true) + fApi.value?.btn.show(false) + fApi.value?.resetBtn.show(false) + fApi.value?.disabled(true) }) } else { // 注意:data.processDefinition.formCustomViewPath 是组件的全路径,例如说:/crm/contract/detail/index.vue diff --git a/src/views/infra/build/index.vue b/src/views/infra/build/index.vue index 11bfc999..4f509986 100644 --- a/src/views/infra/build/index.vue +++ b/src/views/infra/build/index.vue @@ -23,7 +23,7 @@
-
+
@@ -81,15 +81,14 @@ const makeTemplate = () => { const rule = designer.value.getRule() const opt = designer.value.getOption() return `