|
@@ -42,7 +42,21 @@
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleReport"
|
|
@click="handleReport"
|
|
v-hasPermi="['production:quality:list']"
|
|
v-hasPermi="['production:quality:list']"
|
|
- >报告生成</el-button>
|
|
|
|
|
|
+ >当前页报告生成</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ icon="el-icon-time"
|
|
|
|
+ size="mini"
|
|
|
|
+ v-hasPermi="['production:quality:list']"
|
|
|
|
+ >历史报告查看</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
+ size="mini"
|
|
|
|
+ v-hasPermi="['production:quality:list']"
|
|
|
|
+ >批量删除</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -2353,7 +2367,7 @@
|
|
<td class="td-transparent"></td>
|
|
<td class="td-transparent"></td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
- <div style="white-space: pre-wrap; margin: 0px auto; margin-top: 25px;text-align: center;">{{analysisDescription}}</div>
|
|
|
|
|
|
+ <!--<div style="white-space: pre-wrap; margin: 0px auto; margin-top: 25px;text-align: center;">{{analysisDescription}}</div>-->
|
|
<el-input type="textarea" :rows="6" placeholder="请输入内容" v-model="comment" style="margin-top: 25px;"></el-input>
|
|
<el-input type="textarea" :rows="6" placeholder="请输入内容" v-model="comment" style="margin-top: 25px;"></el-input>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button type="primary" @click="submitComment">确 定</el-button>
|
|
<el-button type="primary" @click="submitComment">确 定</el-button>
|
|
@@ -3512,6 +3526,8 @@ export default {
|
|
this.comment = null;
|
|
this.comment = null;
|
|
this.analysisQueryParams.startDate = this.analysisSampleDate[0];
|
|
this.analysisQueryParams.startDate = this.analysisSampleDate[0];
|
|
this.analysisQueryParams.endDate = this.analysisSampleDate[1];
|
|
this.analysisQueryParams.endDate = this.analysisSampleDate[1];
|
|
|
|
+ this.sampleDate[0] = this.analysisSampleDate[0];
|
|
|
|
+ this.sampleDate[1] = this.analysisSampleDate[1];
|
|
let dictLabel = "";
|
|
let dictLabel = "";
|
|
for(let i = 0; i < this.analysisOptions.length; i++) {
|
|
for(let i = 0; i < this.analysisOptions.length; i++) {
|
|
if (this.analysisOptions[i].dictValue == this.analysisValue) {
|
|
if (this.analysisOptions[i].dictValue == this.analysisValue) {
|
|
@@ -3608,6 +3624,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case "2":
|
|
case "2":
|
|
@@ -3699,6 +3716,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case "3":
|
|
case "3":
|
|
@@ -3791,6 +3809,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
@@ -3876,6 +3895,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case "5":
|
|
case "5":
|
|
@@ -3992,6 +4012,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
@@ -4063,6 +4084,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case "7":
|
|
case "7":
|
|
@@ -4150,6 +4172,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case "8":
|
|
case "8":
|
|
@@ -4220,6 +4243,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case "9":
|
|
case "9":
|
|
@@ -4307,6 +4331,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case "10":
|
|
case "10":
|
|
@@ -4377,6 +4402,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
c2ReactorTable({
|
|
c2ReactorTable({
|
|
"startDate": this.analysisSampleDate[0],
|
|
"startDate": this.analysisSampleDate[0],
|
|
@@ -4455,6 +4481,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
c3ReactorTable({
|
|
c3ReactorTable({
|
|
"startDate": this.analysisSampleDate[0],
|
|
"startDate": this.analysisSampleDate[0],
|
|
@@ -4567,6 +4594,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case "13":
|
|
case "13":
|
|
@@ -4644,6 +4672,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case "14":
|
|
case "14":
|
|
@@ -4739,6 +4768,7 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case "15":
|
|
case "15":
|
|
@@ -4842,15 +4872,23 @@ export default {
|
|
};
|
|
};
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart = this.echarts.init(document.getElementById('chart'));
|
|
this.chart.setOption(option);
|
|
this.chart.setOption(option);
|
|
|
|
+ this.queryComment();
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ queryComment() {
|
|
getCommentInfo({
|
|
getCommentInfo({
|
|
"commentType": this.analysisValue,
|
|
"commentType": this.analysisValue,
|
|
"startDate": this.sampleDate[0],
|
|
"startDate": this.sampleDate[0],
|
|
"endDate": this.sampleDate[1]
|
|
"endDate": this.sampleDate[1]
|
|
}).then(response => {
|
|
}).then(response => {
|
|
- this.comment = response.data.qualityComment;
|
|
|
|
|
|
+ let qualityComment = response.data.qualityComment;
|
|
|
|
+ if (qualityComment == null || qualityComment == '') {
|
|
|
|
+ this.comment = this.analysisDescription;
|
|
|
|
+ } else {
|
|
|
|
+ this.comment = qualityComment;
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
/** 搜索按钮操作 */
|
|
/** 搜索按钮操作 */
|