From 01c4b38e7de6196fabee2c0932d52cb0de8a7d81 Mon Sep 17 00:00:00 2001 From: zhanglipeng Date: Sun, 4 Apr 2021 17:34:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E4=B8=80=E6=97=A5=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/benyi/dayflowassessment/index.vue | 276 ++++++------------ .../benyi/dayflowassessmentplan/index.vue | 4 +- 2 files changed, 89 insertions(+), 191 deletions(-) diff --git a/ruoyi-ui/src/views/benyi/dayflowassessment/index.vue b/ruoyi-ui/src/views/benyi/dayflowassessment/index.vue index e0e346f7b..7f4c1375b 100644 --- a/ruoyi-ui/src/views/benyi/dayflowassessment/index.vue +++ b/ruoyi-ui/src/views/benyi/dayflowassessment/index.vue @@ -6,7 +6,7 @@ :inline="true" label-width="70px" > - + + + + + - + - - - - - +
+ 评估 +
+ - + + - - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -241,11 +160,13 @@ import { listDayflowassessment, getDayflowassessment, - delDayflowassessment, addDayflowassessment, updateDayflowassessment, } from "@/api/benyi/dayflowassessment"; -import { listDayflowassessmentplan, getDayflowassessmentplan, } from "@/api/benyi/dayflowassessmentplan"; +import { + listDayflowassessmentplan, + getDayflowassessmentplan, +} from "@/api/benyi/dayflowassessmentplan"; import { listClass } from "@/api/system/class"; import { getUsersByRoleId } from "@/api/system/user"; import { listUser } from "@/api/system/user"; @@ -268,7 +189,7 @@ export default { // 幼儿园一日流程评估表格数据 dayflowassessmentList: [], // 一日流程评估计划数据 - dayflowassessmentplanOptions: [], + // dayflowassessmentplanOptions: [], // 班级 classOptions: [], //主班教师角色用户 @@ -321,7 +242,7 @@ export default { this.getClassList(); this.getUserList(); this.getDayFlowList(); - this.getDayflowassessmentplan(); + // this.getDayflowassessmentplan(); //获取主班教师角色用户列表 getUsersByRoleId().then((response) => { this.zbjsOptions = response.zbjs; @@ -344,11 +265,11 @@ export default { }); }, /** 查询一日流程评估计划列表 */ - getDayflowassessmentplan() { - listDayflowassessmentplan(null).then((response) => { - this.dayflowassessmentplanOptions = response.rows; - }); - }, + // getDayflowassessmentplan() { + // listDayflowassessmentplan(null).then((response) => { + // this.dayflowassessmentplanOptions = response.rows; + // }); + // }, // 获取班级列表 getClassList() { listClass(null).then((response) => { @@ -373,11 +294,9 @@ export default { }, /** 查询用户列表 */ getUserList() { - listUser(null).then( - (response) => { - this.userOptions = response.rows; - } - ); + listUser(null).then((response) => { + this.userOptions = response.rows; + }); }, // 教师字典翻译 bzbhFormat(row, column) { @@ -428,17 +347,17 @@ export default { return actions.join(""); }, // 计划字典翻译 - planFormat(row, column) { - var actions = []; - var datas = this.dayflowassessmentplanOptions; - Object.keys(datas).map((key) => { - if (datas[key].id == "" + row.planid) { - actions.push(datas[key].name); - return false; - } - }); - return actions.join(""); - }, + // planFormat(row, column) { + // var actions = []; + // var datas = this.dayflowassessmentplanOptions; + // Object.keys(datas).map((key) => { + // if (datas[key].id == "" + row.planid) { + // actions.push(datas[key].name); + // return false; + // } + // }); + // return actions.join(""); + // }, /** 查询一日流程列表 */ getDayFlowList() { listDetail(null).then((response) => { @@ -565,27 +484,6 @@ export default { } }); }, - /** 删除按钮操作 */ - handleDelete(row) { - const ids = row.id || this.ids; - this.$confirm( - '是否确认删除幼儿园一日流程评估编号为"' + ids + '"的数据项?', - "警告", - { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - } - ) - .then(function () { - return delDayflowassessment(ids); - }) - .then(() => { - this.getList(); - this.msgSuccess("删除成功"); - }) - .catch(function () {}); - }, }, }; \ No newline at end of file diff --git a/ruoyi-ui/src/views/benyi/dayflowassessmentplan/index.vue b/ruoyi-ui/src/views/benyi/dayflowassessmentplan/index.vue index 1596a3f3c..7beafe728 100644 --- a/ruoyi-ui/src/views/benyi/dayflowassessmentplan/index.vue +++ b/ruoyi-ui/src/views/benyi/dayflowassessmentplan/index.vue @@ -117,8 +117,8 @@ :formatter="classFormat" /> - - +