diff --git a/ruoyi-ui/src/views/benyi/schoolcalendar/index.vue b/ruoyi-ui/src/views/benyi/schoolcalendar/index.vue index fe84efdcd..21bea0c22 100644 --- a/ruoyi-ui/src/views/benyi/schoolcalendar/index.vue +++ b/ruoyi-ui/src/views/benyi/schoolcalendar/index.vue @@ -2,6 +2,23 @@
+ + + + + + + - - - - - - - - + { + this.getDicts("sys_schoolcalendartype").then((response) => { this.schoolcalendartypeOptions = response.data; }); - this.getDicts("sys_yebjlx").then(response => { + this.getDicts("sys_yebjlx").then((response) => { this.scopeOptions = response.data; }); - this.getDicts("sys_xnxq").then(response => { + this.getDicts("sys_xnxq").then((response) => { this.xnxqOptions = response.data; }); }, @@ -400,7 +397,7 @@ export default { this.loading = true; listSchoolcalendar( this.addDateRange(this.queryParams, this.dateRange) - ).then(response => { + ).then((response) => { this.schoolcalendarList = response.rows; this.total = response.total; this.loading = false; @@ -418,7 +415,7 @@ export default { name: undefined, type: undefined, scope: undefined, - activitytime: undefined + activitytime: undefined, }; this.resetForm("form"); }, @@ -435,7 +432,7 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map(item => item.id); + this.ids = selection.map((item) => item.id); this.single = selection.length != 1; this.multiple = !selection.length; }, @@ -450,7 +447,7 @@ export default { this.reset(); const id = row.id || this.ids; var myArray = new Array(2); - getSchoolcalendar(id).then(response => { + getSchoolcalendar(id).then((response) => { this.form = response.data; myArray[0] = response.data.activitytime; myArray[1] = response.data.activityendtime; @@ -463,8 +460,8 @@ export default { }); }, /** 提交按钮 */ - submitForm: function() { - this.$refs["form"].validate(valid => { + submitForm: function () { + this.$refs["form"].validate((valid) => { if (valid) { var arrscope = this.form.scope; this.form.scope = arrscope.join(";"); @@ -475,7 +472,7 @@ export default { this.form.activityendtime = v2; if (this.form.id != undefined) { - updateSchoolcalendar(this.form).then(response => { + updateSchoolcalendar(this.form).then((response) => { if (response.code === 200) { this.msgSuccess("修改成功"); this.open = false; @@ -486,7 +483,7 @@ export default { }); } else { //console.log(this.form.activitytime[1]); - addSchoolcalendar(this.form).then(response => { + addSchoolcalendar(this.form).then((response) => { if (response.code === 200) { this.msgSuccess("新增成功"); this.open = false; @@ -508,17 +505,17 @@ export default { { confirmButtonText: "确定", cancelButtonText: "取消", - type: "warning" + type: "warning", } ) - .then(function() { + .then(function () { return delSchoolcalendar(ids); }) .then(() => { this.getList(); this.msgSuccess("删除成功"); }) - .catch(function() {}); + .catch(function () {}); }, /** 导出按钮操作 */ handleExport() { @@ -526,17 +523,17 @@ export default { this.$confirm("是否确认导出所有园历管理数据项?", "警告", { confirmButtonText: "确定", cancelButtonText: "取消", - type: "warning" + type: "warning", }) - .then(function() { + .then(function () { return exportSchoolcalendar(queryParams); }) - .then(response => { + .then((response) => { this.download(response.msg); }) - .catch(function() {}); - } - } + .catch(function () {}); + }, + }, };