|
@@ -278,7 +278,7 @@ export default {
|
|
|
{
|
|
|
title: this.$t('teachermgmt.table.th1'),
|
|
|
width: 230,
|
|
|
- key: 'userid',
|
|
|
+ key: 'id',
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
@@ -317,12 +317,12 @@ export default {
|
|
|
switchTrueColor: '#008f6b',
|
|
|
switchFalseColor: '#4e4d4d',
|
|
|
authSelected: [], // 選取的權限
|
|
|
- userSelected: undefined, // 被選取的使用者資訊(單人) [object]
|
|
|
+ userSelected: undefined, // 被選取的使用者資訊(單人) [object]
|
|
|
}
|
|
|
},
|
|
|
computed:{
|
|
|
...mapGetters({
|
|
|
- data: 'user/getSchoolUserJoined', // 取得已加入此學校的使用者
|
|
|
+ data: 'user/getSchoolUserJoined', // 取得已加入此學校的使用者
|
|
|
authListAll: 'user/getschoolSettingAuthList' //取得所有權限總列表
|
|
|
}),
|
|
|
tableData: function(){
|
|
@@ -365,10 +365,10 @@ export default {
|
|
|
if (selectUserList.length > 0) {
|
|
|
this.userSelected = selectUserList[0]
|
|
|
}
|
|
|
- console.log('this.userSelected') // 被選取得使用者資料 (各權限反映使用者設定 未製作)
|
|
|
+ console.log('this.userSelected') // 被選取得使用者資料 (各權限反映使用者設定 未製作)
|
|
|
console.log(this.userSelected)
|
|
|
},
|
|
|
- removeUser: function(val){ //val:使用者的資料(object)
|
|
|
+ removeUser: function(val){ //val:使用者的資料(object)
|
|
|
this.$Modal.confirm({
|
|
|
title: this.$t('teachermgmt.model.delTeacher.title'),
|
|
|
content: '<p>'+this.$t('teachermgmt.model.delTeacher.text1') + ' ' + val.name + '(' + val.id +') ?</p>',
|