功能优化

This commit is contained in:
hayu 2024-11-18 13:42:41 +08:00
parent 487e29604d
commit efbb633d10
1 changed files with 4 additions and 25 deletions

View File

@ -378,7 +378,9 @@ export default {
typeList:[{value:'1',label:'固定班制'},{value:'2',label:'自由工时'}], typeList:[{value:'1',label:'固定班制'},{value:'2',label:'自由工时'}],
attDayList:[{id:0,label:'周一'},{id:1,label:'周二'},{id:2,label:'周三'},{id:3,label:'周四'},{id:4,label:'周五'},{id:5,label:'周六'},{id:6,label:'周日'}], attDayList:[{id:0,label:'周一'},{id:1,label:'周二'},{id:2,label:'周三'},{id:3,label:'周四'},{id:4,label:'周五'},{id:5,label:'周六'},{id:6,label:'周日'}],
// //
form: {}, form: {
userName: ''
},
// //
rules: { rules: {
userName:[ userName:[
@ -563,7 +565,7 @@ export default {
}, },
handleClick(type,row) { handleClick(type,row) {
this.tableDialogList=[]; this.tableDialogList=[];
this.userName=''; this.form.userName = '';
// //
this.open = true; this.open = true;
if (type==='轮休'){ if (type==='轮休'){
@ -641,29 +643,6 @@ export default {
this.$set(this.form,"id",row.id); this.$set(this.form,"id",row.id);
this.form.content=content; this.form.content=content;
}, },
handleView(row) {
this.reset();
const Id = row.id
const userId = this.$store.state.user.id;
let postName;
getPostName(userId).then(response => {
postName = response.data.postName;
return getHoliday(Id);
}).then(holidayResponse => {
// holiday
this.form = holidayResponse.data;
console.log(this.form);
// hostUserId
let numArr = this.form.hostUserId.split(",");
let num = numArr.map(item => parseInt(item)); // 使 map
this.$set(this.form, "hostUserId", num);
this.$set(this.form,"postName",postName)
this.open = true;
this.isView = true;
this.title = "查看";
});
},
// //
changDept(e){ changDept(e){
console.log(e) console.log(e)