mode
This commit is contained in:
parent
dd75e22eda
commit
72a1d56e6e
|
@ -122,6 +122,7 @@ export default {
|
|||
},
|
||||
|
||||
backData(val) {
|
||||
var target = [];
|
||||
var data = val.map((item) => {
|
||||
return Object.keys(item).map((key) => {
|
||||
if (key !== "报告期") {
|
||||
|
@ -135,16 +136,16 @@ export default {
|
|||
} else {
|
||||
return { [key]: item[key] };
|
||||
}
|
||||
})
|
||||
});
|
||||
data.forEach((item,index)=>{
|
||||
var obj = {}
|
||||
item.forEach(child=>{
|
||||
obj = {...obj, ...child}
|
||||
})
|
||||
this.data["财务填报"][this.prop][index] = obj
|
||||
})
|
||||
console.log(this.data["财务填报"]);
|
||||
});
|
||||
data.forEach((item, index) => {
|
||||
var obj = {};
|
||||
item.forEach((child) => {
|
||||
obj = { ...obj, ...child };
|
||||
});
|
||||
target[index] = obj;
|
||||
});
|
||||
this.data["财务填报"][this.prop] = target;
|
||||
},
|
||||
|
||||
isSuccess(val) {
|
||||
|
|
|
@ -148,7 +148,7 @@
|
|||
>确定</el-button
|
||||
>
|
||||
</div>
|
||||
<el-button slot="reference" type="primary" @click="save">
|
||||
<el-button slot="reference" type="primary">
|
||||
提 交
|
||||
</el-button>
|
||||
</el-popover>
|
||||
|
@ -505,11 +505,11 @@ export default {
|
|||
state.push(item[keys] !== null && item[keys] !== ""? true : false);
|
||||
});
|
||||
});
|
||||
|
||||
val[key]["其他类型问卷"].forEach((item) => {
|
||||
state.push(item !== null && item !== "" &&item !==undefined ? true : false);
|
||||
});
|
||||
});
|
||||
console.log(state)
|
||||
this.submitStatus = state.every((item) => {
|
||||
return item;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue