|
@@ -36,17 +36,17 @@
|
|
|
<!-- 功能按钮 -->
|
|
|
<el-row class="filter-container">
|
|
|
<el-col>
|
|
|
- <el-button type="primary" icon="el-icon-setting" size="medium" @click="add">{{ $t("common.setting") }}</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-setting" size="medium" @click="add" v-has-permission="['classSchedule:add']" >{{ $t("common.setting") }}</el-button>
|
|
|
<el-button type="primary" icon="el-icon-view" size="medium" @click="viewOne(null)">
|
|
|
{{ $t("common.view") }}
|
|
|
</el-button>
|
|
|
<!--<el-button type="success" icon="el-icon-edit" size="medium" @click="editOne">
|
|
|
{{ $t("common.edit") }}
|
|
|
</el-button>-->
|
|
|
- <el-button type="danger" icon="el-icon-delete" size="medium" @click="clearBtn">
|
|
|
+ <el-button type="danger" icon="el-icon-delete" size="medium" @click="clearBtn" v-has-permission="['classSchedule:delete']">
|
|
|
{{ $t("common.clear") }}
|
|
|
</el-button>
|
|
|
- <el-button type="danger" icon="el-icon-delete" size="medium" @click="clearAllBtn">
|
|
|
+ <el-button type="danger" icon="el-icon-delete" size="medium" @click="clearAllBtn" v-has-permission="['classSchedule:delete']">
|
|
|
{{ $t("calssSchedule.buttons.allClear") }}
|
|
|
</el-button>
|
|
|
</el-col>
|
|
@@ -531,7 +531,7 @@
|
|
|
},
|
|
|
// 加载Tree数据
|
|
|
getTreeData(){
|
|
|
- orgApi.allTree({}).then((response) => {
|
|
|
+ orgApi.allTree({status:1}).then((response) => {
|
|
|
const res = response.data
|
|
|
this.depts = res.data
|
|
|
})
|