@@ -113,6 +113,7 @@ export default {
},
// 改变下拉框导航索引
changeLoginNavIndex(key) {
+ console.log(key);
if (!key) return;
this.LoginNavIndex = this.projectList.findIndex(item => item.key === key);
@@ -345,7 +345,7 @@ export default {
goBook(book_id) {
if (!this.is_buy) {
- window.location.href = `/GCLS-Book/#/GoodsDetail?goods_id=${book_id}&goods_type=101`;
+ window.location.href = `/GCLS-Book/#/GoodsDetail?goods_id=${book_id}&goods_type=101&invok_module=${this.invok_module ? this.invok_module : 'GCLS-Learn'}`;
}
@@ -102,7 +102,7 @@ export function createLocalStream(streamName) {
// 创建本地流失败,应用层处理
Message({
type: 'error',
- message: `创建本地流失败:${data}`
+ message: `${i18n.t('Key441')}:${data}`
});
@@ -331,7 +331,19 @@ export default {
this.updateWordPack({
- word_key_list: ['Key459', 'Key398', 'Key461', 'Key422', 'Key409', 'Key410', 'Key302', 'Key296', 'Key425', 'Key431']
+ word_key_list: [
+ 'Key459',
+ 'Key398',
+ 'Key461',
+ 'Key422',
+ 'Key409',
+ 'Key410',
+ 'Key302',
+ 'Key296',
+ 'Key425',
+ 'Key431',
+ 'Key441'
+ ]
mounted() {
@@ -447,7 +447,8 @@ export default {
'Key437',
'Key438',
'Key399',
- 'Key401'
+ 'Key401',
]
@@ -28,6 +28,11 @@ export default {
return {
menuList: getMenuList()
};
+ },
+ created() {
+ this.updateWordPack({
+ word_key_list: ['Key289', 'Key215', 'Key290']
+ });
</script>
@@ -59,7 +59,7 @@
</el-form-item>
<el-form-item :label="$t('Key254')">
- <el-input v-model.number.lazy="form.student_count_max" class="student-count" />
+ <el-input v-model="form.student_count_max" class="student-count" oninput="value=value.replace(/[^\d]/g,'')" />
<el-checkbox v-model="form.is_auto_close">
{{ $t('Key266') }}
</el-checkbox>
@@ -53,7 +53,7 @@
<div v-else class="task-item-list-title">
{{ $t('Key268') }}
</div>
- <el-button class="create-item selected" type="primary" @click="dialogVisible = true">
+ <el-button class="create-item selected" type="primary" @click="handleCSItem({ id: '', type: 'add' })">
<svg-icon icon-class="create-white" /> {{ $t('Key269') }}
</el-button>
@@ -466,11 +466,17 @@ export default {
this.itemId = id;
this.type = 'edit';
+
+ if (type === 'add') {
+ this.dialogVisible = true;
+ this.itemId = id;
+ this.type = 'add';
+ }
dialogConfirm(type) {
this.dialogVisible = false;
- this.type = 'add';
+ this.type = '';
if (type === 'add') {
this.getCourseInfo();
@@ -481,7 +487,7 @@ export default {
dialogClose() {
getCSItemInfoBox() {