|
|
|
@ -116,11 +116,12 @@ export default {
|
|
|
|
console.log("getTownsman", data);
|
|
|
|
console.log("getTownsman", data);
|
|
|
|
if (that.persenInfo.length == 0) {
|
|
|
|
if (that.persenInfo.length == 0) {
|
|
|
|
that.persenInfo[0] = { ...data.info, index: that.persenInfo.length };
|
|
|
|
that.persenInfo[0] = { ...data.info, index: that.persenInfo.length };
|
|
|
|
} else if (data.info.index) {
|
|
|
|
} else if (data.info.index || data.info.index === 0) {
|
|
|
|
that.persenInfo[data.info.index] = data.info;
|
|
|
|
that.persenInfo[data.info.index] = data.info;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
that.persenInfo[that.persenInfo.length] = { ...data.info, index: that.persenInfo.length };
|
|
|
|
that.persenInfo[that.persenInfo.length] = { ...data.info, index: that.persenInfo.length };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log("that.persenInfo", that.persenInfo);
|
|
|
|
that.$forceUpdate();
|
|
|
|
that.$forceUpdate();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
uni.$on("changeJobInfo", function (data) {
|
|
|
|
uni.$on("changeJobInfo", function (data) {
|
|
|
|
@ -407,7 +408,7 @@ export default {
|
|
|
|
index: $index,
|
|
|
|
index: $index,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log('params',params);
|
|
|
|
if (info) {
|
|
|
|
if (info) {
|
|
|
|
uni.navigateTo({
|
|
|
|
uni.navigateTo({
|
|
|
|
url: "/root/home/editTownsman?" + that.G.objToStr(params),
|
|
|
|
url: "/root/home/editTownsman?" + that.G.objToStr(params),
|
|
|
|
|