diff --git a/src/views/modules/result/record/recorddetail-add-or-update.vue b/src/views/modules/result/record/recorddetail-add-or-update.vue index 3647fb4..ea7c228 100644 --- a/src/views/modules/result/record/recorddetail-add-or-update.vue +++ b/src/views/modules/result/record/recorddetail-add-or-update.vue @@ -11,6 +11,15 @@
+ + +
+
+ + +
+
+ @@ -103,6 +112,8 @@ export default { checkResultEditor: null, recordResultId: null, scoreCommentEditor: null, + keyResultEditorElem3_5: null, + keyResultEditorElem3_7: null, auth: [], recordType: 0, type: 0, @@ -124,9 +135,6 @@ export default { }, { score: 3.583, label: '3.5(+)-合格' - }, { - score: 3.583, - label: '3.5(+)-合格' }, { score: 3.5, label: '3.5分-合格' @@ -203,6 +211,12 @@ export default { if (this.scoreCommentEditor !== null) { this.scoreCommentEditor.txt.html('') } + if (this.keyResultEditorElem3_5 !== null) { + this.keyResultEditorElem3_5.txt.html('') + } + if (this.keyResultEditorElem3_7 !== null) { + this.keyResultEditorElem3_7.txt.html('') + } this.visible = true this.$nextTick(async () => { this.$refs['dataForm'].resetFields() @@ -239,6 +253,28 @@ export default { this.scoreCommentEditor.$textElem.attr('contenteditable', false) } } + if (this.keyResultEditorElem3_5 === null) { + this.keyResultEditorElem3_5 = new E('#keyResultEditorElem3_5') + this.keyResultEditorElem3_5.customConfig.uploadImgServer = '/uploadPicture' + this.keyResultEditorElem3_5.customConfig.uploadFileName = 'file' + this.keyResultEditorElem3_5.customConfig.uploadImgParams = '' + this.keyResultEditorElem3_5.customConfig.debug = true + this.keyResultEditorElem3_5.create() + if (this.auth.keyResult35 < 2) { + this.keyResultEditorElem3_5.$textElem.attr('contenteditable', false) + } + } + if (this.keyResultEditorElem3_7 === null) { + this.keyResultEditorElem3_7 = new E('#keyResultEditorElem3_7') + this.keyResultEditorElem3_7.customConfig.uploadImgServer = '/uploadPicture' + this.keyResultEditorElem3_7.customConfig.uploadFileName = 'file' + this.keyResultEditorElem3_7.customConfig.uploadImgParams = '' + this.keyResultEditorElem3_7.customConfig.debug = true + this.keyResultEditorElem3_7.create() + if (this.auth.keyResult37 < 2) { + this.keyResultEditorElem3_7.$textElem.attr('contenteditable', false) + } + } if (this.dataForm.id && this.dataForm.id > 0) { const data = await apiDetailInfo(this.dataForm.id) if (data && data.code === 0) { @@ -252,6 +288,12 @@ export default { if (this.scoreCommentEditor !== null) { this.scoreCommentEditor.txt.html(this.dataForm.scoreComment || '') } + if (this.keyResultEditorElem3_5 !== null) { + this.keyResultEditorElem3_5.txt.html(this.dataForm.keyResult35 || '') + } + if (this.keyResultEditorElem3_7 !== null) { + this.keyResultEditorElem3_7.txt.html(this.dataForm.keyResult37 || '') + } } } }) @@ -346,6 +388,8 @@ export default { 'type': this.type, 'target': this.dataForm.target, 'keyResult': Base64.encode(this.keyResultEditor.txt.html()), + 'keyResult35': Base64.encode(this.keyResultEditorElem3_5.txt.html()), + 'keyResult37': Base64.encode(this.keyResultEditorElem3_7.txt.html()), 'checkWeight': this.dataForm.checkWeight, 'checkResult': Base64.encode(this.checkResultEditor.txt.html()), 'superScore': superScore1, diff --git a/src/views/modules/result/record/recorddetail.vue b/src/views/modules/result/record/recorddetail.vue index eb4d8bc..5f89895 100644 --- a/src/views/modules/result/record/recorddetail.vue +++ b/src/views/modules/result/record/recorddetail.vue @@ -79,8 +79,26 @@
- + + + + + + + + + + + + +