|
|
|
|
@ -260,21 +260,27 @@ export default {
|
|
|
|
|
console.log(this.managerOptions);
|
|
|
|
|
this.managerOptions.forEach((item, index) => {
|
|
|
|
|
if (item.id == data) {
|
|
|
|
|
form[text].splice(0, 1, item);
|
|
|
|
|
item.ratio = 100;
|
|
|
|
|
form[text] = [];
|
|
|
|
|
form[text].push(item);
|
|
|
|
|
form.texts = item.label;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else if (text == "adminList") {
|
|
|
|
|
this.adminOptions.forEach((item, index) => {
|
|
|
|
|
if (item.id == data) {
|
|
|
|
|
form[text].splice(0, 1, item);
|
|
|
|
|
item.ratio = 100;
|
|
|
|
|
form[text] = [];
|
|
|
|
|
form[text].push(item);
|
|
|
|
|
form.texts = item.label;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.options.forEach((item, index) => {
|
|
|
|
|
if (item.id == data) {
|
|
|
|
|
form[text].splice(0, 1, item);
|
|
|
|
|
item.ratio = 100;
|
|
|
|
|
form[text] = [];
|
|
|
|
|
form[text].push(item);
|
|
|
|
|
form.texts = item.label;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|