|
@@ -183,8 +183,9 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- listInspectionReport, getInspectionReport, delInspectionReport, addInspectionReport, updateInspectionReport,
|
|
|
+ addInspectionReport, delInspectionReport, getInspectionReport, listInspectionReport, updateInspectionReport,
|
|
|
} from '@/api/task/inspectionReport';
|
|
|
+import { Base64 } from 'js-base64';
|
|
|
|
|
|
export default {
|
|
|
name: 'InspectionReport',
|
|
@@ -305,6 +306,9 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs['form'].validate(valid => {
|
|
|
if (valid) {
|
|
|
+ if (this.form.resultMsg) {
|
|
|
+ this.form.resultMsg = Base64.encode(this.form.resultMsg);
|
|
|
+ }
|
|
|
if (this.form.id != null) {
|
|
|
updateInspectionReport(this.form).then(response => {
|
|
|
this.$modal.msgSuccess('修改成功');
|