发布内容管理 国际化

This commit is contained in:
joylink_cuiweidong 2019-09-18 13:36:57 +08:00
parent 0ae296a87f
commit ae68018734
5 changed files with 24 additions and 11 deletions

View File

@ -26,7 +26,7 @@ export default {
taskName: 'Task Name',
createTime: 'Creation Time',
detail: 'Detail',
generateRunPlan: 'Generate Daily Paln',
generateRunPlan: 'Generate Daily Plan',
selectTemplateRunPlan: 'Select Template Run Plan',
pleaseSelectTemplate: 'Please Select Template Run Plan',
selectMap: 'Select Map',
@ -42,6 +42,9 @@ export default {
setSuccess: 'Set successfully',
wellPutawayPaper: 'This operation puts the paper on the shelf. Do you want to continue?',
wellSoldOutPaper: 'This operation removes the paper from the shelf. Do you want to continue?',
wellDelPaper: 'This operation will delete the paper. Do you want to continue?'
wellDelPaper: 'This operation will delete the paper. Do you want to continue?',
publishHistory: 'Publish history',
deleteGenerateEveryRunPlan: 'This operation will delete the daily running diagram. Do you want to continue?',
deleteGenerateRunPlanSuccess: 'Delete load plan successfully!',
addEveryRunPlanSuccess: 'Load plan create daily plan successfully!'
};

View File

@ -42,6 +42,10 @@ export default {
setSuccess: '设置成功',
wellPutawayPaper: '此操作将此试卷上架, 是否继续?',
wellSoldOutPaper: '此操作将此试卷下架, 是否继续?',
wellDelPaper: '此操作将删除该试卷, 是否继续?'
wellDelPaper: '此操作将删除该试卷, 是否继续?',
publishHistory: '发布历史',
deleteGenerateEveryRunPlan: '此操作将删除此运行图, 是否继续?',
deleteGenerateRunPlanSuccess: '删除加载计划成功!',
addEveryRunPlanSuccess: '加载计划创建每日计划成功!'
};

View File

@ -71,7 +71,7 @@ export default {
width: this.$i18n.locale == 'en' ? '540': '540',
buttons: [
{
name: '发布历史',
name: this.$t('publish.publishHistory'),
handleClick: this.publicList,
type: ''
},
@ -401,3 +401,9 @@ export default {
}
};
</script>
<style lang="scss" scoped>
/deep/
.el-button+.el-button{
margin-top: 10px;
}
</style>

View File

@ -34,7 +34,7 @@ export default {
},
queryForm: {
reset: true,
labelWidth: '100px',
labelWidth: '140px',
queryObject: {
name: {
type: 'text',

View File

@ -64,7 +64,7 @@ export default {
type: ''
},
{
name: '生成每日运行图',
name: this.$t('publish.generateRunPlan'),
handleClick: this.createActionChart,
type: ''
},
@ -110,25 +110,25 @@ export default {
},
//
handleDelete(index, row) {
this.$confirm('此操作将删除此运行图, 是否继续?', this.$t('global.tips'), {
this.$confirm(this.$t('publish.deleteGenerateEveryRunPlan'), this.$t('global.tips'), {
confirmButtonText: this.$t('global.confirm'),
cancelButtonText: this.$t('global.cancel'),
type: 'warning'
}).then(async () => {
await deleteDailyRunPlanLoad(row.id);
this.reloadTable();
this.$message.success('删除加载计划成功!');
this.$message.success(this.$t('publish.deleteGenerateRunPlanSuccess'));
}).catch(() => { });
},
//
createActionChart(index, row) {
this.$confirm('此操作将生成每日运行图, 是否继续?', this.$t('global.tips'), {
this.$confirm(this.$t('publish.wellGenerateEveryRunPlan'), this.$t('global.tips'), {
confirmButtonText: this.$t('global.confirm'),
cancelButtonText: this.$t('global.cancel'),
type: 'warning'
}).then(async () => {
await postDailyRunPlanLoadGenerate(row.id);
this.$message.success('加载计划创建每日计划成功!');
this.$message.success(this.$t('publish.addEveryRunPlanSuccess'));
}).catch(() => { });
},
//