diff --git a/ruoyi-ui/src/api/benyi/activity.js b/ruoyi-ui/src/api/benyi/activity.js index d5b6ecea8..470aefebc 100644 --- a/ruoyi-ui/src/api/benyi/activity.js +++ b/ruoyi-ui/src/api/benyi/activity.js @@ -50,4 +50,12 @@ export function exportActivity(query) { method: 'get', params: query }) +} + +// 删除主题整合活动 +export function listActivityByThemeId(id) { + return request({ + url: '/benyi/activity/listbythemeid/' + id, + method: 'post' + }) } \ No newline at end of file diff --git a/ruoyi-ui/src/api/benyi/planweek.js b/ruoyi-ui/src/api/benyi/planweek.js index cbf6d2d02..ff0e85aa1 100644 --- a/ruoyi-ui/src/api/benyi/planweek.js +++ b/ruoyi-ui/src/api/benyi/planweek.js @@ -2,52 +2,60 @@ import request from '@/utils/request' // 查询周计划(家长和教育部门)列表 export function listPlanweek(query) { - return request({ - url: '/benyi/planweek/list', - method: 'get', - params: query - }) + return request({ + url: '/benyi/planweek/list', + method: 'get', + params: query + }) } // 查询周计划(家长和教育部门)详细 export function getPlanweek(id) { - return request({ - url: '/benyi/planweek/' + id, - method: 'get' - }) + return request({ + url: '/benyi/planweek/' + id, + method: 'get' + }) } // 新增周计划(家长和教育部门) export function addPlanweek(data) { - return request({ - url: '/benyi/planweek', - method: 'post', - data: data - }) + return request({ + url: '/benyi/planweek', + method: 'post', + data: data + }) } // 修改周计划(家长和教育部门) export function updatePlanweek(data) { - return request({ - url: '/benyi/planweek', - method: 'put', - data: data - }) + return request({ + url: '/benyi/planweek', + method: 'put', + data: data + }) } // 删除周计划(家长和教育部门) export function delPlanweek(id) { - return request({ - url: '/benyi/planweek/' + id, - method: 'delete' - }) + return request({ + url: '/benyi/planweek/' + id, + method: 'delete' + }) +} + +// 提交周计划(家长和教育部门) +export function checkPlanweek(id) { + return request({ + url: '/benyi/planweek/check/' + id, + method: 'post' + }) } // 导出周计划(家长和教育部门) export function exportPlanweek(query) { - return request({ - url: '/benyi/planweek/export', - method: 'get', - params: query - }) -} + return request({ + url: '/benyi/planweek/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/api/benyi/thememonthplan.js b/ruoyi-ui/src/api/benyi/thememonthplan.js index f6283aa4f..784e0d05b 100644 --- a/ruoyi-ui/src/api/benyi/thememonthplan.js +++ b/ruoyi-ui/src/api/benyi/thememonthplan.js @@ -43,6 +43,14 @@ export function delMonthplan(id) { }) } +// 提交主题整合学期计划 +export function checkMonthplan(id) { + return request({ + url: '/benyi/thememonthplan/check/' + id, + method: 'post' + }) +} + // 导出主题整合月计划 export function exportMonthplan(query) { return request({ diff --git a/ruoyi-ui/src/api/benyi/thememonthplanitem.js b/ruoyi-ui/src/api/benyi/thememonthplanitem.js new file mode 100644 index 000000000..9a76e9eeb --- /dev/null +++ b/ruoyi-ui/src/api/benyi/thememonthplanitem.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询主题整合周计划列表 +export function listMonthplanitem(query) { + return request({ + url: '/benyi/thememonthplanitem/list', + method: 'get', + params: query + }) +} + +// 查询主题整合周计划详细 +export function getMonthplanitem(id) { + return request({ + url: '/benyi/thememonthplanitem/' + id, + method: 'get' + }) +} + +// 新增主题整合周计划 +export function addMonthplanitem(data) { + return request({ + url: '/benyi/thememonthplanitem', + method: 'post', + data: data + }) +} + +// 修改主题整合周计划 +export function updateMonthplanitem(data) { + return request({ + url: '/benyi/thememonthplanitem', + method: 'put', + data: data + }) +} + +// 删除主题整合周计划 +export function delMonthplanitem(id) { + return request({ + url: '/benyi/thememonthplanitem/' + id, + method: 'delete' + }) +} + +// 导出主题整合周计划 +export function exportMonthplanitem(query) { + return request({ + url: '/benyi/thememonthplanitem/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/api/benyi/themetermplan.js b/ruoyi-ui/src/api/benyi/themetermplan.js index 47f5d0308..f1d8a0eef 100644 --- a/ruoyi-ui/src/api/benyi/themetermplan.js +++ b/ruoyi-ui/src/api/benyi/themetermplan.js @@ -43,6 +43,14 @@ export function delTermplan(id) { }) } +// 提交主题整合学期计划 +export function checkTermplan(id) { + return request({ + url: '/benyi/themetermplan/check/' + id, + method: 'post' + }) +} + // 导出主题整合学期计划 export function exportTermplan(query) { return request({ diff --git a/ruoyi-ui/src/api/benyi/themeweekplan.js b/ruoyi-ui/src/api/benyi/themeweekplan.js new file mode 100644 index 000000000..a0293bf73 --- /dev/null +++ b/ruoyi-ui/src/api/benyi/themeweekplan.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 查询主题整合周计划(根据月计划明细)列表 +export function listWeekplan(query) { + return request({ + url: '/benyi/themeweekplan/list', + method: 'get', + params: query + }) +} + +// 查询主题整合周计划(根据月计划明细)详细 +export function getWeekplan(id) { + return request({ + url: '/benyi/themeweekplan/' + id, + method: 'get' + }) +} + +// 新增主题整合周计划(根据月计划明细) +export function addWeekplan(data) { + return request({ + url: '/benyi/themeweekplan', + method: 'post', + data: data + }) +} + +// 修改主题整合周计划(根据月计划明细) +export function updateWeekplan(data) { + return request({ + url: '/benyi/themeweekplan', + method: 'put', + data: data + }) +} + +// 删除主题整合周计划(根据月计划明细) +export function delWeekplan(id) { + return request({ + url: '/benyi/themeweekplan/' + id, + method: 'delete' + }) +} + +// 提交主题整合学期计划 +export function checkWeekplan(id) { + return request({ + url: '/benyi/themeweekplan/check/' + id, + method: 'post' + }) +} + +// 导出主题整合周计划(根据月计划明细) +export function exportWeekplan(query) { + return request({ + url: '/benyi/themeweekplan/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/api/benyi/themeweekplanitem.js b/ruoyi-ui/src/api/benyi/themeweekplanitem.js new file mode 100644 index 000000000..1bf675582 --- /dev/null +++ b/ruoyi-ui/src/api/benyi/themeweekplanitem.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询主题整合周计划明细列表 +export function listWeekplanitem(query) { + return request({ + url: '/benyi/themeweekplanitem/list', + method: 'get', + params: query + }) +} + +// 查询主题整合周计划明细详细 +export function getWeekplanitem(id) { + return request({ + url: '/benyi/themeweekplanitem/' + id, + method: 'get' + }) +} + +// 新增主题整合周计划明细 +export function addWeekplanitem(data) { + return request({ + url: '/benyi/themeweekplanitem', + method: 'post', + data: data + }) +} + +// 修改主题整合周计划明细 +export function updateWeekplanitem(data) { + return request({ + url: '/benyi/themeweekplanitem', + method: 'put', + data: data + }) +} + +// 删除主题整合周计划明细 +export function delWeekplanitem(id) { + return request({ + url: '/benyi/themeweekplanitem/' + id, + method: 'delete' + }) +} + +// 导出主题整合周计划明细 +export function exportWeekplanitem(query) { + return request({ + url: '/benyi/themeweekplanitem/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 786e35421..4c9ccc429 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -208,6 +208,21 @@ export const constantRoutes = [{ } }] }, + { + path: '/benyi_course/planweek', + component: Layout, + hidden: true, + children: [{ + path: 'data/:id', + component: () => + import('@/views/benyi/planweek/data'), + name: 'planweek1', + meta: { + title: '周计划(明细)', + icon: '' + } + }] + }, { path: '/benyi_course/theme', component: Layout, @@ -233,7 +248,37 @@ export const constantRoutes = [{ import('@/views/benyi/themetermplan/data'), name: 'Themetermplan1', meta: { - title: '主题整合学期计划', + title: '主题整合学期计划(明细)', + icon: '' + } + }] + }, + { + path: '/benyi_course/thememonthplan', + component: Layout, + hidden: true, + children: [{ + path: 'data/:id', + component: () => + import('@/views/benyi/thememonthplan/data'), + name: 'Thememonthplan1', + meta: { + title: '主题整合月计划(明细)', + icon: '' + } + }] + }, + { + path: '/benyi_course/themeweekplan', + component: Layout, + hidden: true, + children: [{ + path: 'data/:id', + component: () => + import('@/views/benyi/themeweekplan/data'), + name: 'Themeweekplan1', + meta: { + title: '主题整合周计划(明细)', icon: '' } }] diff --git a/ruoyi-ui/src/views/benyi/child/index.vue b/ruoyi-ui/src/views/benyi/child/index.vue index c28ab7028..0d5532d23 100644 --- a/ruoyi-ui/src/views/benyi/child/index.vue +++ b/ruoyi-ui/src/views/benyi/child/index.vue @@ -350,7 +350,7 @@ import { delChild, addChild, updateChild, - updateChild_tb + updateChild_tb, } from "@/api/benyi/child"; import { listClass } from "@/api/system/class"; @@ -365,22 +365,22 @@ export default { placeholders: { province: "请选择省", city: "请选择市", - area: "请选择区" + area: "请选择区", }, diglogForm: { province: null, city: null, - area: null + area: null, }, diglogForm1: { province: null, city: null, - area: null + area: null, }, diglogForm2: { province: null, city: null, - area: null + area: null, }, // 遮罩层 loading: true, @@ -455,46 +455,47 @@ export default { firstLanguage: undefined, seconderLanguage: undefined, otherLanguage: undefined, - createuserid: undefined + createuserid: undefined, }, // 表单参数 form: {}, // 表单校验 rules: { name: [ - { required: true, message: "幼儿姓名不能为空", trigger: "blur" } + { required: true, message: "幼儿姓名不能为空", trigger: "blur" }, ], phone: [ - { required: true, message: "家长手机号码不能为空", trigger: "blur" } - ] + { required: true, message: "家长手机号码不能为空", trigger: "blur" }, + ], + classid: [{ required: true, message: "班级不能为空", trigger: "blur" }], }, rules_tb: { - classid: [{ required: true, message: "班级不能为空", trigger: "blur" }] - } + classid: [{ required: true, message: "班级不能为空", trigger: "blur" }], + }, }; }, created() { this.getList(); this.getClassList(); - this.getDicts("sys_user_sex").then(response => { + this.getDicts("sys_user_sex").then((response) => { this.sexOptions = response.data; }); - this.getDicts("sys_normal_disable").then(response => { + this.getDicts("sys_normal_disable").then((response) => { this.statusOptions = response.data; }); - this.getDicts("sys_dm_mz").then(response => { + this.getDicts("sys_dm_mz").then((response) => { this.mzOptions = response.data; }); - this.getDicts("sys_yes_no").then(response => { + this.getDicts("sys_yes_no").then((response) => { this.ynOptions = response.data; }); - this.getDicts("sys_dm_ryqd").then(response => { + this.getDicts("sys_dm_ryqd").then((response) => { this.sourceOptions = response.data; }); }, components: { //省市区三级联动全局组件 - VDistpicker + VDistpicker, }, methods: { // 性别字典翻译 @@ -522,7 +523,7 @@ export default { // return this.selectDictLabel(this.classOptions, row.classid); var actions = []; var datas = this.classOptions; - Object.keys(datas).map(key => { + Object.keys(datas).map((key) => { if (datas[key].bjbh == "" + row.classid) { actions.push(datas[key].bjmc); return false; @@ -531,14 +532,14 @@ export default { return actions.join(""); }, getClassList() { - listClass(null).then(response => { + listClass(null).then((response) => { this.classOptions = response.rows; }); }, /** 查询幼儿信息列表 */ getList() { this.loading = true; - listChild(this.queryParams).then(response => { + listChild(this.queryParams).then((response) => { this.childList = response.rows; this.total = response.total; this.loading = false; @@ -597,7 +598,7 @@ export default { seconderLanguage: undefined, otherLanguage: undefined, createuserid: undefined, - createTime: undefined + createTime: undefined, }; this.diglogForm.province = ""; @@ -626,7 +627,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; }, @@ -640,7 +641,7 @@ export default { handleUpdate(row) { this.reset(); const id = row.id || this.ids; - getChild(id).then(response => { + getChild(id).then((response) => { this.form = response.data; this.diglogForm.province = response.data.birthProvincename; @@ -660,11 +661,11 @@ export default { }); }, /** 提交按钮 */ - submitForm: function() { - this.$refs["form"].validate(valid => { + submitForm: function () { + this.$refs["form"].validate((valid) => { if (valid) { if (this.form.id != undefined) { - updateChild(this.form).then(response => { + updateChild(this.form).then((response) => { if (response.code === 200) { this.msgSuccess("修改成功"); this.open = false; @@ -672,7 +673,7 @@ export default { } }); } else { - addChild(this.form).then(response => { + addChild(this.form).then((response) => { if (response.code === 200) { this.msgSuccess("新增成功"); this.open = false; @@ -684,11 +685,11 @@ export default { }); }, /** 提交按钮 */ - submitForm_tb: function() { - this.$refs["form"].validate(valid => { + submitForm_tb: function () { + this.$refs["form"].validate((valid) => { if (valid) { console.log(this.ids + "---" + this.form.classid); - updateChild_tb(this.form, this.ids).then(response => { + updateChild_tb(this.form, this.ids).then((response) => { if (response.code === 200) { this.msgSuccess("调班成功"); this.open_tb = false; @@ -714,17 +715,17 @@ export default { { confirmButtonText: "确定", cancelButtonText: "取消", - type: "warning" + type: "warning", } ) - .then(function() { + .then(function () { return delChild(ids); }) .then(() => { this.getList(); this.msgSuccess("删除成功"); }) - .catch(function() {}); + .catch(function () {}); }, //所在省市区触发联动方法 onSelected_brith(data) { @@ -779,7 +780,7 @@ export default { this.form.addrAreaname = data.area.value; this.form.addrArea = data.area.code; } - } - } + }, + }, }; \ No newline at end of file diff --git a/ruoyi-ui/src/views/benyi/planweek/data.vue b/ruoyi-ui/src/views/benyi/planweek/data.vue new file mode 100644 index 000000000..61188c8d9 --- /dev/null +++ b/ruoyi-ui/src/views/benyi/planweek/data.vue @@ -0,0 +1,430 @@ + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/benyi/planweek/index.vue b/ruoyi-ui/src/views/benyi/planweek/index.vue index 89241a865..bca9758a4 100644 --- a/ruoyi-ui/src/views/benyi/planweek/index.vue +++ b/ruoyi-ui/src/views/benyi/planweek/index.vue @@ -1,24 +1,6 @@