Compare commits

...

4 Commits

  1. 17
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/components/ModifyDutyInformationTable.vue

17
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/components/ModifyDutyInformationTable.vue

@ -31,7 +31,7 @@
<p <p
v-for="(item, index) in dayShift" v-for="(item, index) in dayShift"
:key="`${item.id}_${index}`" :key="`${item.id}_${index}`"
@click="removeDutyPerson(item)" @click="removeDutyPerson(item,'dayShift')"
> >
{{ item.name }} {{ item.name }}
</p> </p>
@ -45,7 +45,7 @@
<p <p
v-for="(item, index) in graveyardShift" v-for="(item, index) in graveyardShift"
:key="`${index}_${item.id}`" :key="`${index}_${item.id}`"
@click="removeDutyPerson(item)" @click="removeDutyPerson(item,'graveyardShift')"
> >
{{ item.name }} {{ item.name }}
</p> </p>
@ -137,6 +137,13 @@ export default {
return this.visible; return this.visible;
}, },
set(bool) { set(bool) {
//,
if(!bool) {
this.dayShift = [];
this.graveyardShift = [];
this.peopleList = [];
}
this.$emit("close", bool); this.$emit("close", bool);
}, },
}, },
@ -175,7 +182,9 @@ export default {
this[this.active].push(item); this[this.active].push(item);
}, },
removeDutyPerson(item) { removeDutyPerson(item, activeCheck) {
if(activeCheck != this.active) return;
const index = this[this.active].findIndex( const index = this[this.active].findIndex(
(_item) => _item.id === item.id (_item) => _item.id === item.id
); );
@ -273,7 +282,7 @@ export default {
// console.log("%c [ data ]-202-ModifyDutyInformationTable.vue", "font-size:15px; background:#9afce6; color:#deffff;", data, this.value2); // console.log("%c [ data ]-202-ModifyDutyInformationTable.vue", "font-size:15px; background:#9afce6; color:#deffff;", data, this.value2);
const closeMessage = loadingMessage({ const closeMessage = loadingMessage({
message: "正在保存值班信息111...", message: "正在保存值班信息...",
}); });
if (!this.data) { if (!this.data) {

Loading…
Cancel
Save