|
@@ -643,19 +643,19 @@ export default {
|
|
|
|
|
|
/* 添加分类回调 */
|
|
|
addClassifyBack(params, title) {
|
|
|
- title === '新增分类' &&
|
|
|
+ title === this.$t('MyEtaPage.label_add_classify') &&
|
|
|
mychartInterface
|
|
|
.addClassify({
|
|
|
MyChartClassifyName: params.name,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.Ret !== 200) return;
|
|
|
- this.$message.success('新增成功');
|
|
|
+ this.$message.success(/* '新增成功' */this.$t('MsgPrompt.add_msg'));
|
|
|
this.isClassifyDia = false;
|
|
|
this.getClassify();
|
|
|
});
|
|
|
|
|
|
- title === '重命名分类' &&
|
|
|
+ title === this.$t('MyEtaPage.label_rename_classify') &&
|
|
|
mychartInterface
|
|
|
.editClassify({
|
|
|
MyChartClassifyName: params.name,
|
|
@@ -663,13 +663,13 @@ export default {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.Ret !== 200) return;
|
|
|
- this.$message.success('编辑成功');
|
|
|
+ this.$message.success(/* '编辑成功' */this.$t('MsgPrompt.edit_msg'));
|
|
|
this.isClassifyDia = false;
|
|
|
this.getClassify();
|
|
|
this.getPublicClassify();
|
|
|
});
|
|
|
|
|
|
- title === '复制图表分类' &&
|
|
|
+ title === this.$t('MyEtaPage.label_copy_classify') &&
|
|
|
mychartInterface
|
|
|
.copyMyChart({
|
|
|
ChartInfoId: this.move_id,
|
|
@@ -677,7 +677,7 @@ export default {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.Ret !== 200) return;
|
|
|
- this.$message.success('复制成功');
|
|
|
+ this.$message.success(/* '复制成功' */this.$t('MsgPrompt.copy_success_msg'));
|
|
|
this.isClassifyDia = false;
|
|
|
// this.isOpenDetail = false;
|
|
|
// this.select_classify = '';
|
|
@@ -716,7 +716,7 @@ export default {
|
|
|
MyChartClassifyId: this.select_classify
|
|
|
}).then(res => {
|
|
|
if(res.Ret !== 200) return;
|
|
|
- this.$message.success('复制成功');
|
|
|
+ this.$message.success(/* '复制成功' */this.$t('MsgPrompt.copy_success_msg'));
|
|
|
this.getClassify();
|
|
|
});
|
|
|
|
|
@@ -727,7 +727,7 @@ export default {
|
|
|
MyChartClassifyId: this.select_classify
|
|
|
}).then(res => {
|
|
|
if(res.Ret !== 200) return;
|
|
|
- this.$message.success('设置成功');
|
|
|
+ this.$message.success(/* '设置成功' */this.$t('MsgPrompt.set_success_msg'));
|
|
|
if(key === 'own'){
|
|
|
item.IsPublic=0
|
|
|
item.IsCompanyPublic=0
|
|
@@ -744,7 +744,7 @@ export default {
|
|
|
IsCompanyPublic:IsCompanyPublic
|
|
|
}).then(res=>{
|
|
|
if(res.Ret !== 200) return;
|
|
|
- this.$message.success('操作成功');
|
|
|
+ this.$message.success(/* '操作成功' */this.$t('MsgPrompt.operate_success_msg'));
|
|
|
item.IsCompanyPublic=IsCompanyPublic
|
|
|
// 不想请求接口
|
|
|
// this.getPublicClassify();
|
|
@@ -794,11 +794,9 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.$confirm(
|
|
|
- '若删除该分类,则分类下关联的所有图表将被全部删除, 是否继续?',
|
|
|
- '提示',
|
|
|
+ /* '若删除该分类,则分类下关联的所有图表将被全部删除, 是否继续?' */this.$t('Chart.OptMsg.del_classify_chart_msg'),
|
|
|
+ /* '提示' */this.$t('Dialog.warn_tit'),
|
|
|
{
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
type: 'warning',
|
|
|
}
|
|
|
)
|
|
@@ -809,7 +807,7 @@ export default {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.Ret !== 200) return;
|
|
|
- this.$message.success('删除成功');
|
|
|
+ this.$message.success(/* '删除成功' */ this.$t('MsgPrompt.delete_msg'));
|
|
|
this.getClassify();
|
|
|
this.getPublicClassify();
|
|
|
});
|
|
@@ -930,7 +928,7 @@ export default {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.Ret !== 200) return;
|
|
|
- this.$message.success('移出成功');
|
|
|
+ this.$message.success(/* '移出成功' */this.$t('MsgPrompt.move_out_msg'));
|
|
|
this.page_no = 1;
|
|
|
this.getChartList();
|
|
|
});
|