From 05a125cfa1e3ed003838f9dffcc9900286ab94a5 Mon Sep 17 00:00:00 2001 From: Jam Date: Thu, 9 Mar 2023 23:37:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/component/formItem.html | 10 +++++----- app/view/page/todo.html | 5 ++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/view/component/formItem.html b/app/view/component/formItem.html index 308b75f..dbc927b 100644 --- a/app/view/component/formItem.html +++ b/app/view/component/formItem.html @@ -11,7 +11,7 @@ dense single-line filled label="" v-model="formItem.answer" - :readonly="readonly" + :readonly="typeof readonly == 'boolean'? readonly: readonly.indexOf(formItem.id) > -1" > @@ -21,7 +21,7 @@ :items="formItem.optionList" dense single-line filled :rules="validationRules.requireRules" - :readonly="readonly" + :readonly="typeof readonly == 'boolean'? readonly: readonly.indexOf(formItem.id) > -1" > @@ -32,7 +32,7 @@ multiple dense single-line filled :rules="validationRules.requireRules" - :readonly="readonly" + :readonly="typeof readonly == 'boolean'? readonly: readonly.indexOf(formItem.id) > -1" > @@ -41,8 +41,8 @@ :rules="validationRules.requireRules" class="jh-v-input" no-resize dense single-line filled label="备注" - :readonly="readonly" v-model="formItem.answer" + :readonly="typeof readonly == 'boolean'? readonly: false" > @@ -70,7 +70,7 @@ Vue.component('form-item', { }, }, readonly: { - type: Boolean, + type: [Array, Boolean], default: false } }, diff --git a/app/view/page/todo.html b/app/view/page/todo.html index 3d4d4c6..d1b2aa5 100644 --- a/app/view/page/todo.html +++ b/app/view/page/todo.html @@ -124,7 +124,7 @@ - + 备注 @@ -318,6 +318,9 @@ // ---------- 审核、查看 uiAction >>>>>>>>>>>> -------- async prepareUpdateFormData(funObj) { this.updateItem = _.cloneDeep(funObj); + this.updateItem.workflowConfig = JSON.parse(funObj.workflowConfig); + this.updateItem.currentNode = this.updateItem.workflowConfig.nodeList.find(e => e.id === this.updateItem.taskConfigId); + this.updateItem.readonlyFormIdList = this.updateItem.taskFormInput.formList.map(form => form.id).filter(formId => this.updateItem.currentNode.formId.indexOf(formId) === -1); this.updateItem.taskHistoryList = []; // 审核历史 this.updateItem.taskComment = ''; // 备注 this.lineTypeList = []; // 所有操作按钮