|
@@ -280,6 +280,7 @@ it .ql-editor,
|
|
|
ref="ScoreResultsRef"
|
|
|
>
|
|
|
<ScoreResultsTable
|
|
|
+ v-if="ScoreResultsShow"
|
|
|
:list="scoreresults.scoreresultsdatas"
|
|
|
@CHANEG_SCORE_RESULT="CHANEG_SCORE_RESULT"
|
|
|
/>
|
|
@@ -366,7 +367,7 @@ export default {
|
|
|
{
|
|
|
groupId: 0,
|
|
|
issueId: 0,
|
|
|
- two_constant:0,
|
|
|
+ two_constant: 0,
|
|
|
two_content: "",
|
|
|
two_factor: 1,
|
|
|
two_orderNo: 0,
|
|
@@ -505,9 +506,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- onEditorChange(e){
|
|
|
- e.quill.deleteText(1000,4);
|
|
|
- console.log(e.quill.getLength());
|
|
|
+ onEditorChange(e) {
|
|
|
+ e.quill.deleteText(1000, 4);
|
|
|
+ console.log(e.quill.getLength());
|
|
|
// if(e.quill.getLength()>1000){
|
|
|
|
|
|
// }
|
|
@@ -692,7 +693,9 @@ export default {
|
|
|
textType: 13
|
|
|
};
|
|
|
// 13. 将得分结果加入到提交数据中
|
|
|
- params.klScaleParent.push(table);
|
|
|
+ if (this.ScoreResultsShow) {
|
|
|
+ params.klScaleParent.push(table);
|
|
|
+ }
|
|
|
// 14 提交数据设置新的orderNo,删除issueId
|
|
|
params.klScaleParent.forEach((tableItem, tableIndex) => {
|
|
|
tableItem.orderNo = tableIndex;
|
|
@@ -902,6 +905,18 @@ export default {
|
|
|
deep: true
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ // 判断是否需要得分结果
|
|
|
+ ScoreResultsShow() {
|
|
|
+ const index = this.scaleData.klScaleParent.findIndex(
|
|
|
+ (item) => item.textType === 11
|
|
|
+ );
|
|
|
+ if (index === -1) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
this.editorOption.modules.toolbar.container =
|
|
|
this.toolbars[this.toolbarMode];
|