|
@@ -191,10 +191,11 @@
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
- <div style="padding-top: 10px;"
|
|
|
- v-permission="pageType == 'create' ? {child: 'teacherDefaultMusicGroupSalary/batchUpset', parent: 'teacherAdd/batchUpset'} : {child: 'teacherDefaultMusicGroupSalary/batchUpset', parent: 'teacherUpdate/batchUpset'}">
|
|
|
- <el-button @click="onSave()"
|
|
|
- type="primary">保存</el-button>
|
|
|
+ <!-- v-permission="pageType == 'create' ? {child: 'teacherDefaultMusicGroupSalary/batchUpset', parent: 'teacherAdd/batchUpset'} : {child: 'teacherDefaultMusicGroupSalary/batchUpset', parent: 'teacherUpdate/batchUpset'}" -->
|
|
|
+ <div style="padding-top: 10px;">
|
|
|
+ <auth :auths="pageType == 'create' ? ['/teacherOperationAdd', 'teacherDefaultCreateSave'] : ['/teacherOperationUpdate', 'teacherDefaultUpdateSave']" mulit>
|
|
|
+ <el-button @click="onSave()" type="primary">保存</el-button>
|
|
|
+ </auth>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -338,13 +339,13 @@ export default {
|
|
|
},
|
|
|
created () { },
|
|
|
mounted () {
|
|
|
- this.pageType = this.$route.query.type;
|
|
|
- this.__init();
|
|
|
- },
|
|
|
- activated () {
|
|
|
- this.pageType = this.$route.query.type;
|
|
|
+ // this.pageType = this.$route.query.type;
|
|
|
this.__init();
|
|
|
},
|
|
|
+ // activated () {
|
|
|
+ // this.pageType = this.$route.query.type;
|
|
|
+ // this.__init();
|
|
|
+ // },
|
|
|
methods: {
|
|
|
__init () {
|
|
|
if (this.$route.query.search) {
|