|
@@ -4,7 +4,7 @@
|
|
<div style="display: flex;gap:20px;">
|
|
<div style="display: flex;gap:20px;">
|
|
<div class="select-item">
|
|
<div class="select-item">
|
|
<div class="select-item">
|
|
<div class="select-item">
|
|
- <label>图表类型</label>
|
|
|
|
|
|
+ <label>{{$t('SystemManage.ChartSet.label01')}}</label>
|
|
<el-select v-model="formData.chartType" style="margin-left: 15px;" @change="getThemeList();">
|
|
<el-select v-model="formData.chartType" style="margin-left: 15px;" @change="getThemeList();">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in chartTypeOpts"
|
|
v-for="item in chartTypeOpts"
|
|
@@ -16,7 +16,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="select-item">
|
|
<div class="select-item">
|
|
- <label>ETA图库默认主题</label>
|
|
|
|
|
|
+ <label>{{$t('SystemManage.ChartSet.label02')}}</label>
|
|
<el-select v-model="formData.theme" style="margin-left: 10px;">
|
|
<el-select v-model="formData.theme" style="margin-left: 10px;">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in themeOpts"
|
|
v-for="item in themeOpts"
|
|
@@ -28,7 +28,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <el-button type="primary" v-permission="permissionBtn.chartThemePermission.chartTheme_edit" @click="setConfigTheme">保存</el-button>
|
|
|
|
|
|
+ <el-button type="primary" v-permission="permissionBtn.chartThemePermission.chartTheme_edit" @click="setConfigTheme">{{$t('Dialog.confirm_save_btn')}}</el-button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 主题列表 -->
|
|
<!-- 主题列表 -->
|
|
@@ -43,8 +43,8 @@
|
|
<div slot="header" class="item-top">
|
|
<div slot="header" class="item-top">
|
|
<span class="text_oneLine">{{item.ChartThemeName}}</span>
|
|
<span class="text_oneLine">{{item.ChartThemeName}}</span>
|
|
<div>
|
|
<div>
|
|
- <el-button type="text" @click="editThemeHandle(item)" v-permission="permissionBtn.chartThemePermission.chartTheme_edit">编辑</el-button>
|
|
|
|
- <span class="deletesty" @click="delThemeHandle(item,index)" v-permission="permissionBtn.chartThemePermission.chartTheme_del" v-if="!item.IsSystemTheme">删除</span>
|
|
|
|
|
|
+ <el-button type="text" @click="editThemeHandle(item)" v-permission="permissionBtn.chartThemePermission.chartTheme_edit">{{$t('Table.edit_btn')}}</el-button>
|
|
|
|
+ <span class="deletesty" @click="delThemeHandle(item,index)" v-permission="permissionBtn.chartThemePermission.chartTheme_del" v-if="!item.IsSystemTheme">{{$t('Table.delete_btn')}}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="chart-img" :style="`backgroundImage:url(${item.ChartImage})`"></div>
|
|
<div class="chart-img" :style="`backgroundImage:url(${item.ChartImage})`"></div>
|
|
@@ -54,7 +54,7 @@
|
|
<div class="chart-img"></div>
|
|
<div class="chart-img"></div>
|
|
<div class="add-cont">
|
|
<div class="add-cont">
|
|
<i class="el-icon-plus"/>
|
|
<i class="el-icon-plus"/>
|
|
- <el-button type="text" style="font-size:16px;">添加自定义主题</el-button>
|
|
|
|
|
|
+ <el-button type="text" style="font-size:16px;">{{$t('SystemManage.ChartSet.add_btn')}}</el-button>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
@@ -64,16 +64,16 @@
|
|
|
|
|
|
<!-- 弹窗 -->
|
|
<!-- 弹窗 -->
|
|
<m-dialog
|
|
<m-dialog
|
|
- :title="`${addThemeForm.id?'编辑':'添加'}自定义主题`"
|
|
|
|
|
|
+ :title="`${addThemeForm.id?$t('SystemManage.ChartSet.edit_btn'):$t('SystemManage.ChartSet.edit_btn')}`"
|
|
:show.sync="isOpenThemeDia"
|
|
:show.sync="isOpenThemeDia"
|
|
width="650px"
|
|
width="650px"
|
|
>
|
|
>
|
|
<div style="padding:30px 60px">
|
|
<div style="padding:30px 60px">
|
|
<div>
|
|
<div>
|
|
- <label class="el-form-item__label">主题名称</label>
|
|
|
|
|
|
+ <label class="el-form-item__label">{{$t('SystemManage.ChartSet.theme_name')}}</label>
|
|
<el-input
|
|
<el-input
|
|
v-model="addThemeForm.themeName"
|
|
v-model="addThemeForm.themeName"
|
|
- placeholder="请输入主题名称"
|
|
|
|
|
|
+ :placeholder="$t('SystemManage.ChartSet.theme_name_placeholder')"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -82,11 +82,11 @@
|
|
@click="saveThemeHandle"
|
|
@click="saveThemeHandle"
|
|
type="primary"
|
|
type="primary"
|
|
style="width: 132px; height: 40px"
|
|
style="width: 132px; height: 40px"
|
|
- >保存</el-button>
|
|
|
|
|
|
+ >{{$t('Dialog.confirm_save_btn')}}</el-button>
|
|
<el-button
|
|
<el-button
|
|
@click="isOpenThemeDia=false"
|
|
@click="isOpenThemeDia=false"
|
|
style="width: 132px; height: 40px"
|
|
style="width: 132px; height: 40px"
|
|
- >取消</el-button>
|
|
|
|
|
|
+ >{{$t('Dialog.cancel_btn')}}</el-button>
|
|
</div>
|
|
</div>
|
|
</m-dialog>
|
|
</m-dialog>
|
|
|
|
|
|
@@ -159,10 +159,10 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
async delThemeHandle(item,index) {
|
|
async delThemeHandle(item,index) {
|
|
- await this.$confirm('删除后,所有采用该主题的图表,将采用ETA主题,是否确定删除?',
|
|
|
|
- '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
|
|
+ await this.$confirm(this.$t('SystemManage.ChartSet.alert_msg'),
|
|
|
|
+ this.$t('Confirm.prompt'), {
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
+ // cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
})
|
|
})
|
|
|
|
|
|
@@ -170,7 +170,7 @@ export default {
|
|
if(res.Ret!==200) return
|
|
if(res.Ret!==200) return
|
|
|
|
|
|
this.themeOpts.splice(index,1)
|
|
this.themeOpts.splice(index,1)
|
|
- this.$message.success('删除成功')
|
|
|
|
|
|
+ this.$message.success(this.$t('MsgPrompt.delete_msg'))
|
|
},
|
|
},
|
|
|
|
|
|
editThemeHandle({ChartThemeId}) {
|
|
editThemeHandle({ChartThemeId}) {
|
|
@@ -185,7 +185,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
async saveThemeHandle() {
|
|
async saveThemeHandle() {
|
|
- if(!this.addThemeForm.themeName) return this.$message.warning('请输入主题名称')
|
|
|
|
|
|
+ if(!this.addThemeForm.themeName) return this.$message.warning(this.$t('SystemManage.ChartSet.theme_name_placeholder'))
|
|
|
|
|
|
let res = await chartThemeInterface.addTheme({
|
|
let res = await chartThemeInterface.addTheme({
|
|
ChartThemeName: this.addThemeForm.themeName,
|
|
ChartThemeName: this.addThemeForm.themeName,
|
|
@@ -193,7 +193,7 @@ export default {
|
|
})
|
|
})
|
|
|
|
|
|
if(res.Ret !== 200) return
|
|
if(res.Ret !== 200) return
|
|
- this.$message.success('添加成功')
|
|
|
|
|
|
+ this.$message.success(this.$t('MsgPrompt.add_msg'))
|
|
this.isOpenThemeDia = false;
|
|
this.isOpenThemeDia = false;
|
|
|
|
|
|
this.getThemeList()
|
|
this.getThemeList()
|