master
wangxubin1999 3 years ago
parent b2e87212f6
commit b123386cb2

@ -225,6 +225,38 @@ export default {
openStaffRatio(row, text) {
this.$refs.staffratio.show(row, text);
},
handleChange(data, row, text) {
let form = { ...row };
if (text == "managerList") {
this.managerOptions.forEach((item, index) => {
if (item.id == data) {
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) {
item.ratio = 100;
form[text] = [];
form[text].push(item);
form.texts = item.label;
}
});
} else {
this.options.forEach((item, index) => {
if (item.id == data) {
item.ratio = 100;
form[text] = [];
form[text].push(item);
form.texts = item.label;
}
});
}
this.list.splice(row.index, 1, form);
},
staffratioData(v) {
console.log(v);
this.list.forEach((item, index) => {
@ -295,8 +327,6 @@ export default {
this.$refs.rec.show(row);
},
recData(v) {
console.log("🚀 ~ file: index.vue ~ line 298 ~ recData ~ v", v)
let form = JSON.parse(JSON.stringify(v));
this.list.splice(form.index, 1, form);
this.sumList();

Loading…
Cancel
Save