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;