|
@@ -230,9 +230,9 @@ export default {
|
|
|
basicCount: 99,
|
|
|
pointNum: 0,
|
|
|
pieNumData: [
|
|
|
- { value: 0, name: '固定分配授權數' },
|
|
|
- { value: 0, name: '今日動態取用數' },
|
|
|
- { value: 0, name: '今日可用授權數' }
|
|
|
+ { value: 0, name: this.$t("serviceDriveAuth['固定分配授權數']") },
|
|
|
+ { value: 0, name: this.$t("serviceDriveAuth['今日動態取用數']") },
|
|
|
+ { value: 0, name: this.$t("serviceDriveAuth['今日可用授權數']") }
|
|
|
],
|
|
|
|
|
|
color: ['#eb974e', '#fb62bb', '#00f492'],
|
|
@@ -309,7 +309,7 @@ export default {
|
|
|
|
|
|
saveAuth() {
|
|
|
if (this.currentAssignType == 0) {
|
|
|
- this.$Message.warning('請先選擇套用,再按保存')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['請先選擇套用,再按保存']"))
|
|
|
}
|
|
|
|
|
|
//情況1:純勾選
|
|
@@ -357,15 +357,15 @@ export default {
|
|
|
//傳給後端
|
|
|
this.$store.dispatch('studentAclassOneAuth/setSchoolAclassOneState', this.sentParams)
|
|
|
if (this.finalAdd == 0) {
|
|
|
- this.$Message.success('保存成功,本次尚無新增授權數量')
|
|
|
+ this.$Message.success(this.$t("serviceDriveAuth['保存成功,本次尚無新增授權數量']"))
|
|
|
} else {
|
|
|
- this.$Message.success('保存成功,本次新增' + this.finalAdd + '個固定分配')
|
|
|
+ this.$Message.success(this.$t("serviceDriveAuth['保存成功,本次新增']") + this.finalAdd + this.$t("serviceDriveAuth['個固定分配']"))
|
|
|
//保存後重置狀態
|
|
|
this.pieNumData[0].value = this.aclassOneInfoNum.total - this.aclassOneInfoNum.dyncNum
|
|
|
this.pieNumData[2].value = this.aclassOneInfoNum.total - (this.pieNumData[1].value + this.pieNumData[0].value)
|
|
|
}
|
|
|
} else {
|
|
|
- this.$Message.error('保存失敗,超過可用授權數!')
|
|
|
+ this.$Message.error(this.$t("serviceDriveAuth['保存失敗,超過可用授權數!']"))
|
|
|
}
|
|
|
|
|
|
this.currentFilter = -1
|
|
@@ -384,16 +384,16 @@ export default {
|
|
|
this.$store.dispatch('studentAclassOneAuth/getSchoolAclassOne', schoolCode).then(
|
|
|
res => {
|
|
|
this.isloading = false
|
|
|
- this.$Message.success('取得getSchoolAclassOne API資料')
|
|
|
+ //this.$Message.success('取得getSchoolAclassOne API資料')
|
|
|
},
|
|
|
err => {
|
|
|
- this.$Message.error('取得getSchoolAclassOne API資料失敗')
|
|
|
+ //this.$Message.error('取得getSchoolAclassOne API資料失敗')
|
|
|
}
|
|
|
)
|
|
|
},
|
|
|
resetAll() {
|
|
|
this.$store.dispatch('studentAclassOneAuth/recallSchoolAclassOne', this.$store.state.user.schoolCode)
|
|
|
- this.$Message.success('全部收回成功')
|
|
|
+ this.$Message.success(this.$t("serviceDriveAuth['全部收回成功']"))
|
|
|
this.isOpenRemove = false
|
|
|
},
|
|
|
|
|
@@ -410,7 +410,7 @@ export default {
|
|
|
this.searchGrade = ''
|
|
|
this.searchClassroom = ''
|
|
|
if (this.selected.length == 0) {
|
|
|
- this.$Message.warning('請先勾選欲授權之學生 !')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['請先勾選欲授權之學生']"))
|
|
|
}
|
|
|
this.currentAssignNum = this.selected.length
|
|
|
|
|
@@ -421,10 +421,10 @@ export default {
|
|
|
this.searchGrade = ''
|
|
|
this.searchClassroom = ''
|
|
|
if (this.selected.length == 0) {
|
|
|
- this.$Message.warning('請先勾選欲授權之學生')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['請先勾選欲授權之學生']"))
|
|
|
}
|
|
|
if (this.inputSelectMin > this.selected.length == true || this.inputSelectMax > this.selected.length == true || this.inputSelectMin > this.inputSelectMax == true || this.inputSelectMax <= 0 || this.inputSelectMax == '' || this.inputSelectMin <= 0 || this.inputSelectMin == '') {
|
|
|
- this.$Message.warning('請設定有效的目標項 !')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['請設定有效的目標項 !']"))
|
|
|
this.currentAssignNum = 0
|
|
|
} else {
|
|
|
this.currentAssignNum = parseInt(this.inputSelectMax) - (parseInt(this.inputSelectMin) - 1)
|
|
@@ -435,10 +435,10 @@ export default {
|
|
|
if (this.currentFilter == 0) {
|
|
|
this.currentAssignNum = this.tableFilterData.length
|
|
|
if (this.tableFilterData.length == 0) {
|
|
|
- this.$Message.warning('目前所選學制人數為 0 人!')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['目前所選學制人數為 0 人!']"))
|
|
|
}
|
|
|
} else {
|
|
|
- this.$Message.warning('請先選學制!')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['請先選學制!']"))
|
|
|
this.currentAssignNum = 0
|
|
|
}
|
|
|
break
|
|
@@ -446,10 +446,10 @@ export default {
|
|
|
if (this.currentFilter == 1) {
|
|
|
this.currentAssignNum = this.tableFilterData.length
|
|
|
if (this.tableFilterData.length == 0) {
|
|
|
- this.$Message.warning('目前所選學級人數為 0 人!')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['目前所選學級人數為 0 人!']"))
|
|
|
}
|
|
|
} else {
|
|
|
- this.$Message.warning('請先選學級!')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['請先選學級!']"))
|
|
|
this.currentAssignNum = 0
|
|
|
}
|
|
|
break
|
|
@@ -457,10 +457,10 @@ export default {
|
|
|
if (this.currentFilter == 2) {
|
|
|
this.currentAssignNum = this.tableFilterData.length
|
|
|
if (this.tableFilterData.length == 0) {
|
|
|
- this.$Message.warning('目前所選班級人數為 0 人!')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['目前所選班級人數為 0 人!']"))
|
|
|
}
|
|
|
} else {
|
|
|
- this.$Message.warning('請先選班級!')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['請先選班級!']"))
|
|
|
this.currentAssignNum = 0
|
|
|
}
|
|
|
break
|
|
@@ -472,7 +472,7 @@ export default {
|
|
|
this.searchGrade = ''
|
|
|
this.searchClassroom = ''
|
|
|
if (this.students.length > this.totalAuth) {
|
|
|
- this.$Message.warning('全校人數超過所購買授權數,無法使用')
|
|
|
+ this.$Message.warning(this.$t("serviceDriveAuth['全校人數超過所購買授權數,無法使用']"))
|
|
|
this.currentAssignNum = 0
|
|
|
} else {
|
|
|
this.currentAssignNum = this.students.length
|