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 = []; // 所有操作按钮