diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtStaffInfoDaoController.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtStaffInfoDaoController.java index e86c95c0c..4584c34c2 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtStaffInfoDaoController.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtStaffInfoDaoController.java @@ -13,7 +13,6 @@ import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.system.fantang.domain.FtStaffInfoDao; import com.ruoyi.system.fantang.service.IFtStaffInfoDaoService; -import com.ruoyi.system.service.ISysUserService; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; @@ -36,8 +35,6 @@ public class FtStaffInfoDaoController extends BaseController { private final IFtStaffInfoDaoService iFtStaffInfoDaoService; - private final ISysUserService userService; - /** * 查询员工管理列表 */ diff --git a/ruoyi-ui/src/views/fantang/careStaffInfo/index.vue b/ruoyi-ui/src/views/fantang/careStaffInfo/index.vue index 4803a3d4a..d88233365 100644 --- a/ruoyi-ui/src/views/fantang/careStaffInfo/index.vue +++ b/ruoyi-ui/src/views/fantang/careStaffInfo/index.vue @@ -323,6 +323,7 @@ export default { this.getList(); }); } else { + console.log(this.form); addStaffInfo(this.form).then(response => { this.msgSuccess("新增成功"); this.open = false; diff --git a/ruoyi-ui/src/views/fantang/foodDefault/index.vue b/ruoyi-ui/src/views/fantang/foodDefault/index.vue index a25555a2f..40e1533a7 100644 --- a/ruoyi-ui/src/views/fantang/foodDefault/index.vue +++ b/ruoyi-ui/src/views/fantang/foodDefault/index.vue @@ -115,11 +115,8 @@ > - - - - + { - console.log("depart", response); this.foodListOptions = response.rows; }) }, @@ -256,12 +259,14 @@ export default { const id = row.id || this.ids getFoodDefault(id).then(response => { this.form = response.data; + this.form.foodList = response.data.foodList.split(',').map(Number); this.open = true; this.title = "修改默认报餐管理"; }); }, /** 提交按钮 */ submitForm() { + this.form.foodList = this.form.foodList.toString(); this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != null) { @@ -271,6 +276,7 @@ export default { this.getList(); }); } else { + console.log(this.form); addFoodDefault(this.form).then(response => { this.msgSuccess("新增成功"); this.open = false;