|
@@ -490,7 +490,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
}
|
|
|
sandInterface.sandboxClassifyMove(params).then(res=>{
|
|
|
if(res.Ret == 200){
|
|
|
- this.$message.success('移动分类成功')
|
|
|
+ this.$message.success(/* '移动分类成功' */this.$t('SandboxManage.SandList.move_classify_success'))
|
|
|
if(parentNode){
|
|
|
this.zTreeObj.removeChildNodes(parentNode)
|
|
|
}
|
|
@@ -499,7 +499,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
// 接口失败后的还原位置
|
|
|
let result=this.zTreeObj.moveNode(this.movingRecoveData.targetNode,this.movingRecoveData.treeNode,this.movingRecoveData.moveType)
|
|
|
if(!result){
|
|
|
- this.$message.error('目录位置还原失败,刷新目录')
|
|
|
+ this.$message.error(/* '目录位置还原失败,刷新目录' */this.$t('SandboxManage.SandList.move_classify_fail'))
|
|
|
setTimeout(()=>{
|
|
|
this.getSandboxClassify()
|
|
|
},1000)
|
|
@@ -645,7 +645,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
*/
|
|
|
const deleteLabelMap = {
|
|
|
1: this.$t('SandboxManage.SandList.delete_attention_msg1')||'该分类下存在沙盘图,不可删除',
|
|
|
- 2: '确认删除当前分类及包含的子分类吗?',
|
|
|
+ 2: this.$t('SandboxManage.SandList.delete_attention_msg3')||'确认删除当前分类及包含的子分类吗?',
|
|
|
4: res.Data.TipsMsg
|
|
|
}
|
|
|
|
|
@@ -660,7 +660,9 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
else if([0,2].includes(res.Data.DeleteStatus)) this.$confirm(
|
|
|
res.Data.DeleteStatus === 2
|
|
|
? deleteLabelMap[res.Data.DeleteStatus]
|
|
|
- : node.SandboxId?'确认删除该沙盘图吗?':this.$t('SandboxManage.SandList.delete_attention_msg2'),
|
|
|
+ : node.SandboxId
|
|
|
+ ?/* '确认删除该沙盘图吗?' */this.$t('SandboxManage.SandList.delete_check')
|
|
|
+ :/* '确定删除当前分类吗?' */this.$t('SandboxManage.SandList.delete_attention_msg2'),
|
|
|
this.$t('Confirm.prompt'),
|
|
|
{
|
|
|
confirmButtonText: this.$t('Dialog.confirm_btn'),
|
|
@@ -706,7 +708,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
sandInterface.editSandboxClassify(params).then(res=>{
|
|
|
if(res.Ret == 200){
|
|
|
this.classifyAddShow=false
|
|
|
- this.$message.success(this.classifyAddTitle+"成功")
|
|
|
+ this.$message.success(this.classifyAddTitle+/* "成功" */this.$t('SandboxManage.SandList.success_text'))
|
|
|
let parentNode = this.locationNode.getParentNode()
|
|
|
|
|
|
if(!parentNode){
|
|
@@ -730,7 +732,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
sandInterface.addSandboxClassify(params).then(res=>{
|
|
|
if(res.Ret == 200){
|
|
|
this.classifyAddShow=false
|
|
|
- this.$message.success(this.classifyAddTitle+"成功")
|
|
|
+ this.$message.success(this.classifyAddTitle+/* "成功" */this.$t('SandboxManage.SandList.success_text'))
|
|
|
if(!this.addClassifyNodeTid){
|
|
|
this.getSandboxClassify()
|
|
|
}else{
|
|
@@ -841,10 +843,10 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
})
|
|
|
},
|
|
|
copyHandle:_.debounce(function ({ PicUrl }){
|
|
|
- if(!PicUrl) return this.$message('暂无内容可复制')
|
|
|
+ if(!PicUrl) return this.$message(/* '暂无内容可复制' */this.$t('SandboxManage.SandList.no_content_copy'))
|
|
|
this.lockLoding = this.$loading({
|
|
|
lock: true,
|
|
|
- text: '复制图片中...',
|
|
|
+ text: this.$t('SandboxManage.SandList.copy_pic'),
|
|
|
target: '.sandbox-pictures-box',
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255, 255, 255, 0.8)'
|
|
@@ -869,7 +871,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
this.$message.success(this.$t('MsgPrompt.copy_success_msg'))
|
|
|
},
|
|
|
() => {
|
|
|
- this.$message.warning('浏览器不支持')
|
|
|
+ this.$message.warning(/* '浏览器不支持' */this.$t('MsgPrompt.browser_not_support'))
|
|
|
}
|
|
|
).finally(()=>{
|
|
|
this.lockLoding && this.lockLoding.close();
|
|
@@ -882,7 +884,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
}
|
|
|
},500),
|
|
|
deleteHandle(item,type){
|
|
|
- this.$confirm("确定删除该沙盘图吗?", this.$t('Confirm.prompt'), {
|
|
|
+ this.$confirm(/* "确定删除该沙盘图吗?" */this.$t('SandboxManage.SandList.delete_check'), this.$t('Confirm.prompt'), {
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
@@ -960,13 +962,13 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
this.saveOtherForm.classifyId=value[value.length-1]
|
|
|
},
|
|
|
saveOtherSubmit: _.debounce( function() {
|
|
|
- if(!this.graph.toJSON().cells.length) return this.$message.warning('画布无内容');
|
|
|
+ if(!this.graph.toJSON().cells.length) return this.$message.warning(/* '画布无内容' */this.$t('SandboxManage.SandList.no_content_pic'));
|
|
|
this.$refs.saveOtherFormRef.validate(valid=>{
|
|
|
if(valid){
|
|
|
const { Content,MindmapData} = this.viewSandbox;
|
|
|
this.lockLoding = this.$loading({
|
|
|
lock: true,
|
|
|
- text: '保存中...',
|
|
|
+ text: this.$t('SandboxManage.SandList.save_pic'),
|
|
|
target: '.save-as-dialog',
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255, 255, 255, 0.8)'
|
|
@@ -1044,11 +1046,11 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
},
|
|
|
copySandHandle: _.debounce(function() {
|
|
|
const { cells } = this.graph.toJSON();
|
|
|
- if(!cells.length) return this.$message.warning('当前画布无可复制内容');
|
|
|
+ if(!cells.length) return this.$message.warning(/* '当前画布无可复制内容' */this.$t('SandboxManage.SandList.no_content_copy'));
|
|
|
|
|
|
this.lockLoding = this.$loading({
|
|
|
lock: true,
|
|
|
- text: '复制图片中...',
|
|
|
+ text: this.$t('SandboxManage.SandList.save_pic'),
|
|
|
target: '.sandbox-chart-box',
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255, 255, 255, 0.8)'
|