学期计划添加设置按钮

This commit is contained in:
sk1551 2021-02-03 15:08:39 +08:00
parent a9092c1325
commit f00b46b35b
4 changed files with 63 additions and 0 deletions

View File

@ -167,6 +167,14 @@
class-name="small-padding fixed-width edit-btns"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-setting"
@click="handleSetting(scope.row)"
v-hasPermi="['benyi:mathtermplan:edit']"
>设置</el-button
>
<el-button
size="mini"
type="text"
@ -332,6 +340,14 @@ export default {
});
},
methods: {
/** 设置按钮操作 */
handleSetting(row) {
const id = row.id;
this.$router.push({
path: "/benyi_course/mathtermplan/data/" + id,
});
},
//
isShow(row) {
if (row.status == "0") {
return true;

View File

@ -190,6 +190,14 @@
width="60"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-setting"
@click="handleSetting(scope.row)"
v-hasPermi="['benyi:thememonthplan:edit']"
>设置</el-button
>
<el-button
size="mini"
type="text"
@ -375,6 +383,14 @@ export default {
});
},
methods: {
/** 设置按钮操作 */
handleSetting(row) {
const id = row.id;
this.$router.push({
path: "/benyi_course/thememonthplan/data/" + id,
});
},
//
isShow(row) {
if (row.status == "0") {
return true;

View File

@ -167,6 +167,14 @@
class-name="small-padding fixed-width edit-btns"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-setting"
@click="handleSetting(scope.row)"
v-hasPermi="['benyi:themetermplan:edit']"
>设置</el-button
>
<el-button
size="mini"
type="text"
@ -506,6 +514,13 @@ export default {
path: "/benyi_course/themetermplanprint/table/" + id,
});
},
/** 设置按钮操作 */
handleSetting(row) {
const id = row.id;
this.$router.push({
path: "/benyi_course/themetermplan/data/" + id,
});
},
},
};
</script>

View File

@ -180,6 +180,14 @@
width="60"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-setting"
@click="handleSetting(scope.row)"
v-hasPermi="['benyi:themeweekplan:edit']"
>设置</el-button
>
<el-button
size="mini"
type="text"
@ -358,6 +366,14 @@ export default {
});
},
methods: {
/** 设置按钮操作 */
handleSetting(row) {
const id = row.id;
this.$router.push({
path: "/benyi_course/themeweekplan/data/" + id,
});
},
//
isShow(row) {
if (row.status == "0") {
return true;