Merge pull request #106 from dataease/pr@dev@feat_视图tree增加重命名

fix: 视图tree支持重命名
This commit is contained in:
XiaJunjie2020 2021-06-30 10:44:08 +08:00 committed by GitHub
commit ac06b6fa94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,9 +129,9 @@
/> />
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<!-- <el-dropdown-item icon="el-icon-edit-outline" :command="beforeClickMore('renameChart',data,node)">--> <el-dropdown-item icon="el-icon-edit-outline" :command="beforeClickMore('renameChart',data,node)">
<!-- {{ $t('chart.rename') }}--> {{ $t('chart.rename') }}
<!-- </el-dropdown-item>--> </el-dropdown-item>
<el-dropdown-item icon="el-icon-right" :command="beforeClickMore('moveDs',data,node)"> <el-dropdown-item icon="el-icon-right" :command="beforeClickMore('moveDs',data,node)">
{{ $t('dataset.move_to') }} {{ $t('dataset.move_to') }}
</el-dropdown-item> </el-dropdown-item>
@ -544,6 +544,7 @@ export default {
saveTable(view) { saveTable(view) {
this.$refs['tableForm'].validate((valid) => { this.$refs['tableForm'].validate((valid) => {
if (valid) { if (valid) {
view.title = view.name
post('/chart/view/save', view).then(response => { post('/chart/view/save', view).then(response => {
this.closeTable() this.closeTable()
this.$message({ this.$message({