From a59e0ed925f3d01879a5c3ebc89b98742fe29695 Mon Sep 17 00:00:00 2001 From: zhanglipeng Date: Thu, 2 Sep 2021 16:47:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=95=B4=E5=90=88=E5=91=A8?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=AE=A1=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/router/index.js | 16 + .../benyi/thememonthplanapproval/approval.vue | 5 +- .../benyi/themetermplanapproval/approval.vue | 4 + .../benyi/themeweekplanapproval/approval.vue | 440 ++++++++++++++++++ .../benyi/themeweekplanapproval/index.vue | 52 ++- 5 files changed, 493 insertions(+), 24 deletions(-) create mode 100644 ruoyi-ui/src/views/benyi/themeweekplanapproval/approval.vue diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index a95e36e1e..a05e0588e 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -489,6 +489,22 @@ export const constantRoutes = [ } ] }, + { + path: "/benyi/themeweekplan", + component: Layout, + hidden: true, + children: [ + { + path: "approval/:id", + component: () => import("@/views/benyi/themeweekplanapproval/approval"), + name: "ThemeweekplanApproval", + meta: { + title: "主题整合月计划审批", + icon: "" + } + } + ] + }, { path: "/benyi_course/learndevelopmentteacherprint", component: Layout, diff --git a/ruoyi-ui/src/views/benyi/thememonthplanapproval/approval.vue b/ruoyi-ui/src/views/benyi/thememonthplanapproval/approval.vue index 07f5f754c..88969f9d2 100644 --- a/ruoyi-ui/src/views/benyi/thememonthplanapproval/approval.vue +++ b/ruoyi-ui/src/views/benyi/thememonthplanapproval/approval.vue @@ -94,7 +94,7 @@ /> - @@ -212,6 +212,9 @@ export default { this.themeFormat(response.data.themes); this.form = response.data; + if (response.data.status == "1") { + this.form.status = null; + } this.getList(); }); diff --git a/ruoyi-ui/src/views/benyi/themetermplanapproval/approval.vue b/ruoyi-ui/src/views/benyi/themetermplanapproval/approval.vue index fb33d45f1..1f47973ef 100644 --- a/ruoyi-ui/src/views/benyi/themetermplanapproval/approval.vue +++ b/ruoyi-ui/src/views/benyi/themetermplanapproval/approval.vue @@ -186,6 +186,10 @@ export default { this.spyj = response.data.shyj; this.remark = response.data.remark; this.form = response.data; + if (response.data.status == "1") { + this.form.status = null; + } + }); this.getThemeTermItemPlan(); }, diff --git a/ruoyi-ui/src/views/benyi/themeweekplanapproval/approval.vue b/ruoyi-ui/src/views/benyi/themeweekplanapproval/approval.vue new file mode 100644 index 000000000..94af7f798 --- /dev/null +++ b/ruoyi-ui/src/views/benyi/themeweekplanapproval/approval.vue @@ -0,0 +1,440 @@ + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/benyi/themeweekplanapproval/index.vue b/ruoyi-ui/src/views/benyi/themeweekplanapproval/index.vue index 0837762a2..5d11759f5 100644 --- a/ruoyi-ui/src/views/benyi/themeweekplanapproval/index.vue +++ b/ruoyi-ui/src/views/benyi/themeweekplanapproval/index.vue @@ -191,7 +191,7 @@ /> - 确 定 取 消 - + --> @@ -407,32 +407,38 @@ export default { this.multiple = !selection.length; }, /** 修改按钮操作 */ + // handleUpdate(row) { + // this.reset(); + // const id = row.id || this.ids; + // getWeekplan(id).then((response) => { + // this.form = response.data; + // this.open = true; + // this.title = "审批主题整合周计划"; + // this.disable = true; + // }); + // }, handleUpdate(row) { - this.reset(); const id = row.id || this.ids; - getWeekplan(id).then((response) => { - this.form = response.data; - this.open = true; - this.title = "审批主题整合周计划"; - this.disable = true; + this.$router.push({ + path: "/benyi/themeweekplan/approval/" + id, }); }, /** 提交按钮 */ - submitForm: function () { - this.$refs["form"].validate((valid) => { - if (valid) { - if (this.form.id != undefined) { - updateWeekplan(this.form).then((response) => { - if (response.code === 200) { - this.msgSuccess("审批成功"); - this.open = false; - this.getList(); - } - }); - } - } - }); - }, + // submitForm: function () { + // this.$refs["form"].validate((valid) => { + // if (valid) { + // if (this.form.id != undefined) { + // updateWeekplan(this.form).then((response) => { + // if (response.code === 200) { + // this.msgSuccess("审批成功"); + // this.open = false; + // this.getList(); + // } + // }); + // } + // } + // }); + // }, /** 预览按钮操作 */ handleView(row) { const id = row.id;