From 69184022247c3a64abee1a6cfb63ccdb71a17009 Mon Sep 17 00:00:00 2001 From: zhanglipeng Date: Wed, 18 Nov 2020 11:23:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=A8=E6=95=99=E5=AD=A6=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/benyi/assessmentintroduce/index.vue | 6 +- ruoyi-ui/src/views/benyi/planweek/data.vue | 147 ++++++++++++------ ruoyi-ui/src/views/benyi/planweek/index.vue | 4 +- ruoyi-ui/src/views/benyi/planweek/table.vue | 17 +- .../controller/ByPlanweekController.java | 3 + 5 files changed, 113 insertions(+), 64 deletions(-) diff --git a/ruoyi-ui/src/views/benyi/assessmentintroduce/index.vue b/ruoyi-ui/src/views/benyi/assessmentintroduce/index.vue index 2f95917d8..3be07d9b0 100644 --- a/ruoyi-ui/src/views/benyi/assessmentintroduce/index.vue +++ b/ruoyi-ui/src/views/benyi/assessmentintroduce/index.vue @@ -77,7 +77,11 @@ align="center" :show-overflow-tooltip="true" prop="content" - /> + > + +
- + - + - 搜索 - 重置 + 搜索 + 重置 @@ -46,7 +64,8 @@ size="mini" @click="handleAdd" v-hasPermi="['benyi:planweek:add']" - >新增 + >新增 修改 + >修改 删除 + >删除 导出 + >导出 @@ -86,21 +108,39 @@ > - - + + + + - + - + - + @@ -160,8 +207,8 @@ type="date" value-format="yyyy-MM-dd" placeholder="选择活动时间" - :picker-options="pickerOptions7" - >> + >> @@ -185,7 +232,7 @@ import { delPlanweekitem, addPlanweekitem, updatePlanweekitem, - exportPlanweekitem + exportPlanweekitem, } from "@/api/benyi/planweekitem"; import Editor from "@/components/Editor"; @@ -199,12 +246,12 @@ const weekArr = [ "星期三", "星期四", "星期五", - "星期六" + "星期六", ]; export default { name: "Planweekitem", components: { - Editor + Editor, }, data() { return { @@ -240,7 +287,7 @@ export default { activitytime: undefined, createuserid: undefined, updateuserid: undefined, - day: undefined + day: undefined, }, // 日期控件 只显示今天和今天以后一周时间区间 pickerOptions7: { @@ -250,7 +297,7 @@ export default { let threeMonths = curDate + three; let datestart = Date.now() - 86400000; return time.getTime() < datestart || time.getTime() > threeMonths; - } + }, }, // 表单参数 @@ -258,32 +305,32 @@ export default { // 表单校验 rules: { activitytype: [ - { required: true, message: "活动类型不能为空", trigger: "blur" } + { required: true, message: "活动类型不能为空", trigger: "blur" }, ], content: [ - { required: true, message: "活动内容不能为空", trigger: "blur" } + { required: true, message: "活动内容不能为空", trigger: "blur" }, ], activitytime: [ - { required: true, message: "活动时间不能为空", trigger: "blur" } + { required: true, message: "活动时间不能为空", trigger: "blur" }, ], // day: [ // { required: true, message: "星期不能为空", trigger: "blur" } // ] - } + }, }; }, created() { const planweekid = this.$route.params && this.$route.params.id; this.getPlanweek2(planweekid); this.getPlanWeekList(); - this.getDicts("sys_dm_qyhdxs").then(response => { + this.getDicts("sys_dm_qyhdxs").then((response) => { this.activitytypeOptions = response.data; }); }, methods: { // 周计划 getPlanweek2(planweekid) { - getPlanweek(planweekid).then(response => { + getPlanweek(planweekid).then((response) => { this.queryParams.wid = response.data.id; this.defaultWeekType = response.data.id; this.getList(); @@ -292,7 +339,7 @@ export default { /** 查询周计划(家长和教育部门细化)列表 */ getList() { this.loading = true; - listPlanweekitem(this.queryParams).then(response => { + listPlanweekitem(this.queryParams).then((response) => { this.planweekitemList = response.rows; this.total = response.total; this.loading = false; @@ -300,7 +347,7 @@ export default { }, // 查询周计划选项 getPlanWeekList() { - listPlanweek().then(response => { + listPlanweek().then((response) => { this.planweekOptions = response.rows; }); }, @@ -309,7 +356,7 @@ export default { // return this.selectDictLabel(this.classOptions, row.classid); var actions = []; var datas = this.planweekOptions; - Object.keys(datas).map(key => { + Object.keys(datas).map((key) => { if (datas[key].id == "" + row.wid) { actions.push(datas[key].name); return false; @@ -338,7 +385,7 @@ export default { createTime: undefined, updateuserid: undefined, updateTime: undefined, - day: undefined + day: undefined, }; this.resetForm("form"); }, @@ -355,7 +402,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; }, @@ -370,18 +417,18 @@ export default { handleUpdate(row) { this.reset(); const id = row.id || this.ids; - getPlanweekitem(id).then(response => { + getPlanweekitem(id).then((response) => { this.form = response.data; this.open = true; this.title = "修改周计划(家长和教育部门细化)"; }); }, /** 提交按钮 */ - submitForm: function() { - this.$refs["form"].validate(valid => { + submitForm: function () { + this.$refs["form"].validate((valid) => { if (valid) { if (this.form.id != undefined) { - updatePlanweekitem(this.form).then(response => { + updatePlanweekitem(this.form).then((response) => { if (response.code === 200) { this.msgSuccess("修改成功"); this.open = false; @@ -389,7 +436,7 @@ export default { } }); } else { - addPlanweekitem(this.form).then(response => { + addPlanweekitem(this.form).then((response) => { if (response.code === 200) { this.msgSuccess("新增成功"); this.open = false; @@ -404,22 +451,22 @@ export default { handleDelete(row) { const ids = row.id || this.ids; this.$confirm( - '是否确认删除周计划(家长和教育部门细化)编号为"' + ids + '"的数据项?', + '是否确认删除周计划(家长和教育部门细化)数据项?', "警告", { confirmButtonText: "确定", cancelButtonText: "取消", - type: "warning" + type: "warning", } ) - .then(function() { + .then(function () { return delPlanweekitem(ids); }) .then(() => { this.getList(); this.msgSuccess("删除成功"); }) - .catch(function() {}); + .catch(function () {}); }, /** 导出按钮操作 */ handleExport() { @@ -430,17 +477,17 @@ export default { { confirmButtonText: "确定", cancelButtonText: "取消", - type: "warning" + type: "warning", } ) - .then(function() { + .then(function () { return exportPlanweekitem(queryParams); }) - .then(response => { + .then((response) => { this.download(response.msg); }) - .catch(function() {}); - } - } + .catch(function () {}); + }, + }, }; \ 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 44288dc1f..17cb16392 100644 --- a/ruoyi-ui/src/views/benyi/planweek/index.vue +++ b/ruoyi-ui/src/views/benyi/planweek/index.vue @@ -383,7 +383,7 @@ export default { id: undefined, schoolid: undefined, classid: undefined, - name: undefined, + name: '教学计划', starttime: undefined, endtime: undefined, themeofweek: undefined, @@ -486,7 +486,7 @@ export default { handleDelete(row) { const ids = row.id || this.ids; this.$confirm( - '是否确认删除周计划(家长和教育部门)编号为"' + ids + '"的数据项?', + '是否确认删除周计划(家长和教育部门)数据项?', "警告", { confirmButtonText: "确定", diff --git a/ruoyi-ui/src/views/benyi/planweek/table.vue b/ruoyi-ui/src/views/benyi/planweek/table.vue index f309f6fd9..74894db6a 100644 --- a/ruoyi-ui/src/views/benyi/planweek/table.vue +++ b/ruoyi-ui/src/views/benyi/planweek/table.vue @@ -34,28 +34,23 @@ 周教学目标 社会 - {{sh}} - + 语言 - {{yy}} - + 健康 - {{jk}} - + 科学 - {{kx}} - + 艺术 - {{ys}} - + @@ -77,7 +72,7 @@ {{item.activitytime}} {{item.day}} {{activitytypeFormat(item.activitytype)}} - {{(item.content)}} +