forked from github/dataease
Merge pull request #106 from dataease/pr@dev@feat_视图tree增加重命名
fix: 视图tree支持重命名
This commit is contained in:
commit
ac06b6fa94
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user