Commit 6421e0e6 authored by renjintao's avatar renjintao

addTemp

parent dbda6e15
......@@ -173,6 +173,21 @@ export default {
templateList:
this.listTemp.length < 1 ? this.tempDataList : this.listTemp
};
let tempArray = params.templateList;
params.templateList = [];
tempArray.forEach((dataArray, index,tempArray) => {
dataArray.seq = index + 1;
if (dataArray.sons && dataArray.sons.length > 1) {
let tempSons=[]
tempSons=dataArray.sons
tempSons.forEach((dataArraySons, index1,tempSons) => {
dataArraySons.seq = index1 + 1;
});
}
params.templateList.push(dataArray);
alert(JSON.stringify(params.templateList));
});
Api.savesorttemplate(params)
.then(res => {
if (res.success && res.result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment