From 5b09d5b39d1409367a3aa409a8633ec0fd608980 Mon Sep 17 00:00:00 2001 From: zhanglipeng Date: Wed, 1 Sep 2021 22:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=95=B4=E5=90=88=E6=9C=88?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E4=BC=98=E5=8C=96=20table=E9=A1=B5=E8=83=BD?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E6=9F=A5=E7=9C=8B=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/benyi/thememonthplan/data.vue | 60 ++++++++++--------- .../src/views/benyi/thememonthplan/table.vue | 57 ++++++++++++------ .../views/benyi/themestudy_tremplan/index.vue | 1 + .../src/views/benyi/themetermplan/data.vue | 2 +- 4 files changed, 73 insertions(+), 47 deletions(-) diff --git a/ruoyi-ui/src/views/benyi/thememonthplan/data.vue b/ruoyi-ui/src/views/benyi/thememonthplan/data.vue index d5b87a2e1..597fb4f16 100644 --- a/ruoyi-ui/src/views/benyi/thememonthplan/data.vue +++ b/ruoyi-ui/src/views/benyi/thememonthplan/data.vue @@ -21,6 +21,7 @@ placeholder="周次" clearable size="small" + :min="1" class="my-date-picker" @keyup.enter.native="handleQuery" /> @@ -156,7 +157,7 @@ > - + - + - - + + + - + { if (valid) { + let arrTime = this.form.starttime; + this.form.starttime = arrTime[0]; + this.form.endtime = arrTime[1]; if (this.form.id != undefined) { updateMonthplanitem(this.form).then((response) => { if (response.code === 200) { @@ -479,7 +501,7 @@ export default { handleDelete(row) { const ids = row.id || this.ids; this.$confirm( - '是否确认删除主题整合周计划编号为"' + ids + '"的数据项?', + '是否确认删除主题整合周计划明细的数据项?', "警告", { confirmButtonText: "确定", @@ -496,22 +518,6 @@ export default { }) .catch(function () {}); }, - /** 导出按钮操作 */ - handleExport() { - const queryParams = this.queryParams; - this.$confirm("是否确认导出所有主题整合周计划数据项?", "警告", { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - }) - .then(function () { - return exportWeekplan(queryParams); - }) - .then((response) => { - this.download(response.msg); - }) - .catch(function () {}); - }, }, }; diff --git a/ruoyi-ui/src/views/benyi/thememonthplan/table.vue b/ruoyi-ui/src/views/benyi/thememonthplan/table.vue index cb11aace5..8f467a8c1 100644 --- a/ruoyi-ui/src/views/benyi/thememonthplan/table.vue +++ b/ruoyi-ui/src/views/benyi/thememonthplan/table.vue @@ -49,8 +49,15 @@ {{ item.zc }} {{ item.starttime }}至{{ item.endtime }} - - {{ themeactivityFormat(item.activityid) }} + + +

{{ themeactivityFormat(index) }}

{{ item.jzzc }} @@ -84,6 +91,8 @@ export default { name: "MonthTable", data() { return { + //url + url: "/benyi_course/tremplan/themestudy/", tableData: [], title: "", month: "", @@ -228,24 +237,34 @@ export default { }); }, // 主题--字典状态字典翻译 + // themeactivityFormat(activityid) { + // if (activityid != null) { + // var ilength = activityid.split(";").length - 1; + // var names = ""; + // for (var i = 1; i < ilength; i++) { + // // console.log(activityid.split(";")[i]); + // // console.log(this.themeactivityOptions); + // names = + // names + + // this.selectMoeDictLabel( + // this.themeactivityOptions, + // activityid.split(";")[i] + // ) + + // ";"; + // } + // //this.selectDictLabel(this.scopeOptions, row.xnxq); + // // console.log(names); + // return names; + // } + // return ""; + // }, themeactivityFormat(activityid) { - if (activityid != null) { - var ilength = activityid.split(";").length - 1; - var names = ""; - for (var i = 1; i < ilength; i++) { - // console.log(activityid.split(";")[i]); - // console.log(this.themeactivityOptions); - names = - names + - this.selectMoeDictLabel( - this.themeactivityOptions, - activityid.split(";")[i] - ) + - ";"; - } - //this.selectDictLabel(this.scopeOptions, row.xnxq); - // console.log(names); - return names; + if (activityid != "" && activityid != null) { + var name = this.selectMoeDictLabel( + this.themeactivityOptions, + activityid + ); + return name; } return ""; }, diff --git a/ruoyi-ui/src/views/benyi/themestudy_tremplan/index.vue b/ruoyi-ui/src/views/benyi/themestudy_tremplan/index.vue index 12229b0f4..e489b3aca 100644 --- a/ruoyi-ui/src/views/benyi/themestudy_tremplan/index.vue +++ b/ruoyi-ui/src/views/benyi/themestudy_tremplan/index.vue @@ -249,6 +249,7 @@ export default { this.queryParams.themeid = ""; //console.log(this.id); listActivity(this.queryParams).then((req) => { + this.title = req.rows[0].name; //console.log(req); if (req.code == "200") { this.activityList = req.rows; diff --git a/ruoyi-ui/src/views/benyi/themetermplan/data.vue b/ruoyi-ui/src/views/benyi/themetermplan/data.vue index 02c561b0d..c67efd06f 100644 --- a/ruoyi-ui/src/views/benyi/themetermplan/data.vue +++ b/ruoyi-ui/src/views/benyi/themetermplan/data.vue @@ -441,7 +441,7 @@ export default { handleDelete(row) { const ids = row.id || this.ids; this.$confirm( - '是否确认删除主题整合学期计划明细编号为"' + ids + '"的数据项?', + '是否确认删除主题整合学期计划明细的数据项?', "警告", { confirmButtonText: "确定",