|
@@ -46,6 +46,7 @@
|
|
|
title="表单详情"
|
|
|
:visible="visible"
|
|
|
:confirm-loading="confirmLoading"
|
|
|
+ @cancel="modalCancel"
|
|
|
>
|
|
|
<template slot="footer">
|
|
|
<a-button @click="handleCancel">驳回</a-button>
|
|
@@ -209,12 +210,13 @@ import {getAction, deleteAction, banli, postAction} from '@/api/manage'
|
|
|
//console.log('转为模型', res)
|
|
|
if (res.code == 200) {
|
|
|
//this.$message.success(res.msg);
|
|
|
- //console.log('------转为模型', res.result.fromData2)
|
|
|
- this.circleData = res.result.fromData1;
|
|
|
- for (let i = 0; i < this.circleData.length; i++) {
|
|
|
- this.circleData[i].fillData = JSON.parse(this.circleData[i].value.split('###')[1]);
|
|
|
- this.circleData[i].formData = JSON.parse(this.circleData[i].value.split('###')[0]);
|
|
|
- }
|
|
|
+ console.log('------转为模型', res.result)
|
|
|
+ // todo 这个位置不知道为啥 有问题
|
|
|
+ // this.circleData = res.result.fromData1;
|
|
|
+ // for (let i = 0; i < this.circleData.length; i++) {
|
|
|
+ // this.circleData[i].fillData = JSON.parse(this.circleData[i].value.split('###')[1]);
|
|
|
+ // this.circleData[i].formData = JSON.parse(this.circleData[i].value.split('###')[0]);
|
|
|
+ // }
|
|
|
//console.log('----------------转为模型', this.circleData[0].formData)
|
|
|
this.myjsonData = JSON.parse(res.result.fromData2);
|
|
|
|
|
@@ -247,6 +249,10 @@ import {getAction, deleteAction, banli, postAction} from '@/api/manage'
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ modalCancel(){
|
|
|
+ this.visible = false
|
|
|
+
|
|
|
+ },
|
|
|
handleCancel(e) {
|
|
|
this.visible = false;
|
|
|
let p = {};
|