diff --git a/ruoyi-ui/src/views/benyi/mathtermplan/data.vue b/ruoyi-ui/src/views/benyi/mathtermplan/data.vue index 7ff5cea0e..65c8e9a61 100644 --- a/ruoyi-ui/src/views/benyi/mathtermplan/data.vue +++ b/ruoyi-ui/src/views/benyi/mathtermplan/data.vue @@ -383,6 +383,7 @@ export default { updateTime: undefined, }; this.resetForm("form"); + this.mathFaList = []; }, /** 搜索按钮操作 */ handleQuery() { @@ -416,6 +417,15 @@ export default { this.form = response.data; this.open = true; this.title = "修改游戏数学学期计划明细"; + var mathconent = response.data.mathconent.split(";"); + var array = []; + //console.log(arr); + mathconent.forEach(function (value, key, arr) { + if (value != "") { + array.push(parseInt(value)); + } + }); + this.mathFaList = array; }); }, /** 提交按钮 */ diff --git a/ruoyi-ui/src/views/benyi/mathtermplan/index.vue b/ruoyi-ui/src/views/benyi/mathtermplan/index.vue index 2bede1a01..02bd8159f 100644 --- a/ruoyi-ui/src/views/benyi/mathtermplan/index.vue +++ b/ruoyi-ui/src/views/benyi/mathtermplan/index.vue @@ -188,7 +188,6 @@ icon="el-icon-view" @click="handleView(scope.row)" v-hasPermi="['benyi:mathtermplan:query']" - :disabled=true >预览 @@ -492,12 +491,12 @@ export default { .catch(function () {}); }, /** 预览按钮操作 */ - // handleView(row) { - // const id = row.id; - // this.$router.push({ - // path: "/benyi_course/mathtermplanprint/table/"+id, - // }); - // }, + handleView(row) { + const id = row.id; + this.$router.push({ + path: "/benyi_course/mathtermplanprint/table/"+id, + }); + }, }, }; diff --git a/ruoyi-ui/src/views/benyi/mathtermplan/table.vue b/ruoyi-ui/src/views/benyi/mathtermplan/table.vue new file mode 100644 index 000000000..879107c78 --- /dev/null +++ b/ruoyi-ui/src/views/benyi/mathtermplan/table.vue @@ -0,0 +1,226 @@ + + + {{title}} + + + + + + + + + 班级: + {{classname}} + + + 学期: + {{xnxqFormat(xnxq)}} + + + 制定人: + {{tbr}} + + + + + {{h.label}} + + + + + {{item.month}} + + {{mathFormat(item.mathconent)}} + {{item.remark}} + + + 教学主管审批 + {{spyj}} + + + + + + + + + \ No newline at end of file