Преглед на файлове

Merge branch 'develop5.0-grouplist' of http://106.12.23.251:10000/TEAMMODEL/TEAMModelOS into develop5.0-grouplist

CrazyIter_Bin преди 3 години
родител
ревизия
b14a75692f

+ 8 - 0
TEAMModelOS/ClientApp/src/locale/lang/en-US/cusMgt.js

@@ -232,6 +232,14 @@ export default {
     notSet:'未設置',
     irsTips1:'1、按照名單順序快速設置IRS號碼;',
     irsTips2:'2、如果學生已經設置IRS號碼將被重置。 ',
+    irsRepeat:'IRS號碼重複',
+    remvContent1:'是否確認從名單移除',
+    remvContent2:'位學生',
+    okText:'是',
+    cancelText:'否',
+    remvTips:'請選擇需要移除的學生',
+    findListInfoErr:'查詢教學班信息失敗',
+    findListErr:'查詢教學班列表失敗',
 
     //TeaTable.vue
     am:'Morning',

+ 8 - 0
TEAMModelOS/ClientApp/src/locale/lang/zh-CN/cusMgt.js

@@ -232,6 +232,14 @@ export default {
     notSet:'未设置',
     irsTips1:'1、按照名单顺序快速设置IRS号码;',
     irsTips2:'2、如果学生已经设置IRS号码将被重置。',
+    irsRepeat:'IRS号码重复',
+    remvContent1:'是否确认从名单移除',
+    remvContent2:'位学生',
+    okText:'是',
+    cancelText:'否',
+    remvTips:'请选择需要移除的学生',
+    findListInfoErr:'查询教学班信息失败',
+    findListErr:'查询教学班列表失败',
 
     //TeaTable.vue
     am:'上午',

+ 8 - 0
TEAMModelOS/ClientApp/src/locale/lang/zh-TW/cusMgt.js

@@ -232,6 +232,14 @@ export default {
     notSet:'未設置',
     irsTips1:'1、按照名單順序快速設置IRS號碼;',
     irsTips2:'2、如果學生已經設置IRS號碼將被重置。 ',
+    irsRepeat:'IRS號碼重複',
+    remvContent1:'是否確認從名單移除',
+    remvContent2:'位學生',
+    okText:'是',
+    cancelText:'否',
+    remvTips:'請選擇需要移除的學生',
+    findListInfoErr:'查詢教學班信息失敗',
+    findListErr:'查詢教學班列表失敗',
 
     //TeaTable.vue
     am: '上午',

+ 13 - 13
TEAMModelOS/ClientApp/src/view/student-account/stulist/MgtStuList.vue

@@ -224,7 +224,7 @@ export default {
                 }
             })
             if (isRepeat) {
-                this.$Message.error('IRS号码重复')
+                this.$Message.error(this.$t('cusMgt.irsRepeat'))
             } else {
                 let student = this._.cloneDeep(this.students[this.editIndex])
                 student.irs = this.editIrs + ''
@@ -245,10 +245,10 @@ export default {
         batchRemove() {
             if (this.rmSelctions.length) {
                 this.$Modal.confirm({
-                    title: '移除学生',
-                    content: `确认移除选择的${this.rmSelctions.length}位学生吗?`,
-                    okText: '是',
-                    cancelText: '否',
+                    title: this.$t('cusMgt.remvStu'),
+                    content: `${this.$t('cusMgt.remvContent1')}${this.rmSelctions.length}${this.$t('cusMgt.remvContent2')}?`,
+                    okText: this.$t('cusMgt.okText'),
+                    cancelText: this.$t('cusMgt.cancelText'),
                     onOk: () => {
                         let rmIds = this.rmSelctions.map(item => {
                             return item.id
@@ -264,16 +264,16 @@ export default {
                     }
                 })
             } else {
-                this.$Message.warning('请选择需要移除的学生')
+                this.$Message.warning(this.$t('cusMgt.remvTips'))
             }
         },
         // 单个移除学生
         removeStu(row, index) {
             this.$Modal.confirm({
-                title: '移除学生',
-                content: `是否确认移除${row.name}?`,
-                okText: '是',
-                cancelText: '否',
+                title: this.$t('cusMgt.remvStu'),
+                content: `${this.$t('cusMgt.remvContent1')}${row.name}?`,
+                okText: this.$t('cusMgt.okText'),
+                cancelText: this.$t('cusMgt.cancelText'),
                 onOk: () => {
                     this.stuListShow[this.curIndex].members.splice(index, 1)
                     this.stuListShow[this.curIndex].scount--
@@ -350,11 +350,11 @@ export default {
                             }
                             this.students = res.groupList.members
                         } else {
-                            this.$Message.error('查询教学班信息失败')
+                            this.$Message.error(this.$t('cusMgt.findListInfoErr'))
                         }
                     },
                     err => {
-                        this.$Message.error('查询教学班信息失败')
+                        this.$Message.error(this.$t('cusMgt.findListInfoErr'))
                     }
                 ).finally(() => {
                     this.tableLoading = false
@@ -454,7 +454,7 @@ export default {
                     if (this.stuListShow.length) this.selectList(0)
                 },
                 err => {
-                    this.$Message.error('教学班查询失败')
+                    this.$Message.error(this.$t('cusMgt.findListErr'))
                 }
             )
         },