|
@@ -12,12 +12,12 @@
|
|
|
<span class="move-btn resize" v-drag id="resize"></span>
|
|
|
<div class="btn-wrap">
|
|
|
<el-button type="primary" @click="$router.push('/addframe')"
|
|
|
- v-permission="permissionBtn.chartFramePermission.chartframe_my_editFrame">添加框架</el-button>
|
|
|
+ v-permission="permissionBtn.chartFramePermission.chartframe_my_editFrame"><!-- 添加框架 -->{{$t('ChartFramePage.add_frame_btn')}}</el-button>
|
|
|
</div>
|
|
|
<div class="search-wrap">
|
|
|
<el-select style="width:100%"
|
|
|
filterable remote
|
|
|
- placeholder="请输入框架名称"
|
|
|
+ :placeholder="$t('ChartFramePage.ph_search')"
|
|
|
v-model.trim="searchText"
|
|
|
:remote-method="searchHandle"
|
|
|
value-key="ChartFrameworkId"
|
|
@@ -34,12 +34,12 @@
|
|
|
</div>
|
|
|
<div class="catalog-list">
|
|
|
<div class="public-catalog">
|
|
|
- <p @click="expandPublic = !expandPublic" class="title">公共框架<span><i :class="{'el-icon-arrow-down':!expandPublic,'el-icon-arrow-up':expandPublic}"></i></span></p>
|
|
|
+ <p @click="expandPublic = !expandPublic" class="title"><!-- 公共框架 -->{{$t('ChartFramePage.tab_public')}}<span><i :class="{'el-icon-arrow-down':!expandPublic,'el-icon-arrow-up':expandPublic}"></i></span></p>
|
|
|
<div class="catalog-tree" v-show="expandPublic">
|
|
|
<el-tree
|
|
|
ref="catalogTree"
|
|
|
class="catalog-tree other-tree"
|
|
|
- empty-text="暂无分类"
|
|
|
+ :empty-text="$t('Common.no_classify_msg')"
|
|
|
:data="publicFrameList"
|
|
|
node-key="nodeKeyId"
|
|
|
:expand-on-click-node="false"
|
|
@@ -53,7 +53,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="my-list">
|
|
|
- <p>我的框架</p>
|
|
|
+ <p><!-- 我的框架 -->{{$t('ChartFramePage.tab_my')}}</p>
|
|
|
<draggable
|
|
|
v-model="myFrameList"
|
|
|
class="classify-ul"
|
|
@@ -88,7 +88,7 @@
|
|
|
>
|
|
|
<div style="display: flex;align-items: center;">
|
|
|
<img src="~@/assets/img/chart_m/Group.png">
|
|
|
- <span style="margin-left:5px">仅自己可见</span>
|
|
|
+ <span style="margin-left:5px"><!-- 仅自己可见 -->{{$t('ChartFramePage.option_view_person')}}</span>
|
|
|
</div>
|
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item
|
|
@@ -97,7 +97,7 @@
|
|
|
>
|
|
|
<div style="display: flex;align-items: center;">
|
|
|
<img src="~@/assets/img/chart_m/User.png">
|
|
|
- <span style="margin-left:5px">所有人可见</span>
|
|
|
+ <span style="margin-left:5px"><!-- 所有人可见 -->{{$t('ChartFramePage.option_view_all')}}</span>
|
|
|
</div>
|
|
|
|
|
|
</el-dropdown-item>
|
|
@@ -111,9 +111,9 @@
|
|
|
</span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item v-if="permissionBtn.isShowBtn('chartFramePermission','chartframe_my_rename')"
|
|
|
- :command="{key:'edit'}">重命名</el-dropdown-item>
|
|
|
+ :command="{key:'edit'}"><!-- 重命名 -->{{$t('ChartFramePage.option_op_rename')}}</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="permissionBtn.isShowBtn('chartFramePermission','chartframe_my_delFrame')"
|
|
|
- :command="{key:'del'}">删除</el-dropdown-item>
|
|
|
+ :command="{key:'del'}"><!-- 删除 -->{{$t('Table.delete_btn')}}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
|
|
@@ -124,7 +124,7 @@
|
|
|
</div>
|
|
|
<div class="detail-wrap page-block-wrap" id="detail-right">
|
|
|
<div class="empty" v-if="!currentFrame.ChartFrameworkId&¤tList.length===0">
|
|
|
- <tableNoData text="暂无数据"/>
|
|
|
+ <tableNoData :text="$t('Table.prompt_slogan')"/>
|
|
|
</div>
|
|
|
<template v-else>
|
|
|
<div class="list" v-if="model==='list'">
|
|
@@ -140,28 +140,28 @@
|
|
|
:style="`background-image:url(${item.FrameworkImg?item.FrameworkImg:require('@/assets/img/document_m/default-img.png')})`"></div>
|
|
|
<div style="height:1px;background:#ECECEC;margin:10px -10px;"></div>
|
|
|
<div class="item-time">
|
|
|
- 创建时间:{{item.CreateTime}}
|
|
|
+ <!-- 创建时间 -->{{$t('ChartFramePage.label_create_time')}}:{{item.CreateTime}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="empty" v-if="currentList.length===0">
|
|
|
- <tableNoData text="暂无数据"/>
|
|
|
+ <tableNoData :text="$t('Table.prompt_slogan')"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="detail" v-else>
|
|
|
<div class="top-info">
|
|
|
- <span>更新时间:{{currentFrame.ModifyTime}}</span>
|
|
|
+ <span><!-- 更新时间 -->{{$t('ChartFramePage.label_update_time')}}:{{currentFrame.ModifyTime}}</span>
|
|
|
<span class="title text_oneLine">{{currentFrame.FrameworkName}}</span>
|
|
|
<div class="tool">
|
|
|
<el-button type="text" @click="handleOption('edit',currentFrame)"
|
|
|
- v-if="frameType==='my'&&permissionBtn.isShowBtn('chartFramePermission','chartframe_my_editFrame')">编辑</el-button>
|
|
|
+ v-if="frameType==='my'&&permissionBtn.isShowBtn('chartFramePermission','chartframe_my_editFrame')"><!-- 编辑 -->{{$t('Table.edit_btn')}}</el-button>
|
|
|
|
|
|
<el-button type="text" @click="handleOption('copy',currentFrame)" :disabled="!currentFrame.FrameworkContent"
|
|
|
- v-if="frameType==='my'&&permissionBtn.isShowBtn('chartFramePermission','chartframe_my_copyImg')">复制图片</el-button>
|
|
|
+ v-if="frameType==='my'&&permissionBtn.isShowBtn('chartFramePermission','chartframe_my_copyImg')"><!-- 复制图片 -->{{$t('ChartFramePage.detail_copy_img')}}</el-button>
|
|
|
<el-button type="text" @click="handleOption('copy',currentFrame)" :disabled="!currentFrame.FrameworkContent"
|
|
|
- v-if="frameType==='public'&&permissionBtn.isShowBtn('chartFramePermission','chartframe_public_copyImg')">复制图片</el-button>
|
|
|
+ v-if="frameType==='public'&&permissionBtn.isShowBtn('chartFramePermission','chartframe_public_copyImg')"><!-- 复制图片 -->{{$t('ChartFramePage.detail_copy_img')}}</el-button>
|
|
|
|
|
|
<el-button type="text" @click="handleOption('del',currentFrame)" style="color:red;"
|
|
|
- v-if="frameType==='my'&&permissionBtn.isShowBtn('chartFramePermission','chartframe_my_delFrame')">删除</el-button>
|
|
|
+ v-if="frameType==='my'&&permissionBtn.isShowBtn('chartFramePermission','chartframe_my_delFrame')"><!-- 删除 -->{{$t('Table.delete_btn')}}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="frame-wrap">
|
|
@@ -176,7 +176,7 @@
|
|
|
</div>
|
|
|
<!-- 重命名弹窗 -->
|
|
|
<el-dialog
|
|
|
- title="重命名框架"
|
|
|
+ :title="$t('ChartFramePage.label_rename')"
|
|
|
:visible.sync="isRenameDialogShow"
|
|
|
:close-on-click-modal="false"
|
|
|
:modal-append-to-body="false"
|
|
@@ -187,13 +187,13 @@
|
|
|
>
|
|
|
<div class="dialog-container">
|
|
|
<div>
|
|
|
- <span style="margin-right:5px;">框架名称</span>
|
|
|
+ <span style="margin-right:5px;"><!-- 框架名称 -->{{$t('ChartFramePage.label_frame_name')}}</span>
|
|
|
<el-input v-model.trim="modifyFrame.FrameworkName" placeholder="请输入框架名称"></el-input>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="dialog-footer">
|
|
|
- <el-button @click="isRenameDialogShow=false">取消</el-button>
|
|
|
- <el-button type="primary" @click="renameFrame">确定</el-button>
|
|
|
+ <el-button @click="isRenameDialogShow=false"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
+ <el-button type="primary" @click="renameFrame"><!-- 确定 -->{{$t('Dialog.confirm_btn')}}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- my eta图表详情弹窗 -->
|
|
@@ -208,7 +208,7 @@
|
|
|
/>
|
|
|
<!-- my eta图表复制到弹窗 -->
|
|
|
<el-dialog
|
|
|
- title="复制到我的图库"
|
|
|
+ :title="$t('ChartFramePage.label_copy_mine')"
|
|
|
:visible.sync="isCopyDialogShow"
|
|
|
:close-on-click-modal="false"
|
|
|
:modal-append-to-body="false"
|
|
@@ -235,8 +235,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="dialog-footer">
|
|
|
- <el-button @click="isCopyDialogShow=false">取消</el-button>
|
|
|
- <el-button type="primary" @click="copyToClass">确定</el-button>
|
|
|
+ <el-button @click="isCopyDialogShow=false"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
+ <el-button type="primary" @click="copyToClass"><!-- 确定 -->{{$t('Dialog.confirm_btn')}}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -441,7 +441,8 @@ export default {
|
|
|
NextChartFrameworkId:this.nextFrame?this.nextFrame.ChartFrameworkId:0,
|
|
|
}).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
- this.$message.success("移动成功")
|
|
|
+ // this.$message.success("移动成功")
|
|
|
+ this.$message.success(this.$t('MsgPrompt.move_success_msg'))
|
|
|
this.getMyList()
|
|
|
})
|
|
|
},
|
|
@@ -462,7 +463,8 @@ export default {
|
|
|
if(res.Ret!==200) return
|
|
|
this.getPublicList()
|
|
|
this.getMyList()
|
|
|
- this.$message.success(`操作成功`)
|
|
|
+ // this.$message.success(`操作成功`)
|
|
|
+ this.$message.success(this.$t('MsgPrompt.operate_success_msg'))
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -489,7 +491,7 @@ export default {
|
|
|
copyFrameImg(data){
|
|
|
this.lockLoding = this.$loading({
|
|
|
lock: true,
|
|
|
- text: '复制图片中...',
|
|
|
+ text: `${this.$t('ChartFramePage.detail_copy_img')}...`,
|
|
|
target: '.frame-container-wrap',
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255, 255, 255, 0.8)'
|
|
@@ -500,16 +502,16 @@ export default {
|
|
|
},1,'svg')
|
|
|
},
|
|
|
deleteFrame(data){
|
|
|
- this.$confirm("删除后不可恢复,确认删除吗?","提示",{
|
|
|
- confirmButtonText:"确定",
|
|
|
- cancelButtonText:"取消",
|
|
|
+ this.$confirm(this.$t('ChartFramePage.del_confirm_msg'),this.$t('Dialog.warn_tit'),{
|
|
|
+ confirmButtonText:/* "确定" */this.$t('Dialog.confirm_btn'),
|
|
|
+ cancelButtonText:/* "取消" */this.$t('Dialog.cancel_btn'),
|
|
|
type:"warning"
|
|
|
}).then(()=>{
|
|
|
chartFrameInterface.deleteFrame({
|
|
|
ChartFrameworkId:data.ChartFrameworkId
|
|
|
}).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
- this.$message.success("删除成功")
|
|
|
+ this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'))
|
|
|
this.getPublicList()
|
|
|
this.getMyList()
|
|
|
this.currentFrame = {}
|
|
@@ -529,7 +531,7 @@ export default {
|
|
|
this.getPublicList()
|
|
|
await this.getMyList()
|
|
|
this.currentFrame = this.myFrameList.find(item=>item.ChartFrameworkId===this.modifyFrame.ChartFrameworkId)||{}
|
|
|
- this.$message.success("编辑成功")
|
|
|
+ this.$message.success(/* "编辑成功" */this.$t('MsgPrompt.edit_msg'))
|
|
|
this.isRenameDialogShow = false
|
|
|
})
|
|
|
|
|
@@ -537,7 +539,7 @@ export default {
|
|
|
//点击框架内节点
|
|
|
handleShowDialog({id,nodeLink}){
|
|
|
if(!id){
|
|
|
- this.$message.warning("该节点没有选择图分类")
|
|
|
+ this.$message.warning(/* "该节点没有选择图分类" */ this.$t('ChartFrameEditorPage.no_classify_msg'))
|
|
|
return
|
|
|
}
|
|
|
//请求接口看有没有数据
|
|
@@ -557,7 +559,7 @@ export default {
|
|
|
this.myETADetailDialogShow = true
|
|
|
}
|
|
|
}else{
|
|
|
- this.$message.warning('该节点链接的图库没有图表')
|
|
|
+ this.$message.warning(/* '该节点链接的图库没有图表' */ this.$t('ChartFrameEditorPage.no_link_msg'))
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -590,7 +592,7 @@ export default {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.Ret !== 200) return;
|
|
|
- this.$message.success('复制成功');
|
|
|
+ this.$message.success(/* '复制成功' */this.$t('MsgPrompt.copy_success_msg'));
|
|
|
this.isCopyDialogShow = false;
|
|
|
});
|
|
|
},
|